IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

IGN API Géoportail Discussion :

Affichage fichier KML (fait manuellement)


Sujet :

IGN API Géoportail

  1. #1
    Membre à l'essai
    Homme Profil pro
    Technicien maintenance
    Inscrit en
    Avril 2020
    Messages
    18
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Charente (Poitou Charente)

    Informations professionnelles :
    Activité : Technicien maintenance

    Informations forums :
    Inscription : Avril 2020
    Messages : 18
    Points : 15
    Points
    15
    Par défaut Affichage fichier KML (fait manuellement)
    bonjour
    je pense être au bon endroit pour poster ce message.

    j'ai reconstitué un fichier kml pour mes besoins particuliers.

    il devrait afficher 2 carrés au dessus de la corse, mais je n'affiche que le 2eme carré, pas le 1er.
    je suis un peu perdu
    si une âme charitable passez par la

    merci

    Code XML : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    <kml xmlns="http://www.opengis.net/kml/2.2"
    xmlns:gx="http://www.google.com/kml/ext/2.2"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.opengis.net/kml/2.2 
    https://developers.google.com/kml/schema/kml22gx.xsd">
    	<Placemark>
    		<ExtendedData>
    		</ExtendedData>
    		<description>
    (0).map
            </description>
    	<Style>
    		<LineStyle>
    			<color>ff502a00</color>
    		<width>3</width>
    		</LineStyle>
    		<PolyStyle>
    			<color>0098b700</color>
    		</PolyStyle>
    	</Style>
    	<Polygon>
    		<outerBoundaryIs>
    			<LinearRing>
    				<coordinates>
    8.437500,43.084937
    8.865924,43.084937
    8.865924,42.771243
    8.437500,42.771243
    8.437500,43.084937
         </coordinates>
    			</LinearRing>
    		</outerBoundaryIs>
    	</Polygon>
     
    		<description>
    (1).map
            </description>
    	<Style>
    		<LineStyle>
    			<color>ff502a00</color>
    		<width>3</width>
    		</LineStyle>
    		<PolyStyle>
    			<color>0098b700</color>
    		</PolyStyle>
    	</Style>
    	<Polygon>
    		<outerBoundaryIs>
    			<LinearRing>
    				<coordinates>
    8.437500,42.771211
    8.865924,42.771211
    8.865924,42.455919
    8.437500,42.455919
    8.437500,42.771211
         </coordinates>
    			</LinearRing>
    		</outerBoundaryIs>
    	</Polygon> 
     
     
     </Placemark>
     </kml>

  2. #2
    Membre régulier
    Homme Profil pro
    Retraité
    Inscrit en
    Août 2012
    Messages
    157
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 76
    Localisation : France, Puy de Dôme (Auvergne)

    Informations professionnelles :
    Activité : Retraité

    Informations forums :
    Inscription : Août 2012
    Messages : 157
    Points : 96
    Points
    96
    Par défaut
    Bonjour,

    Dans ton code il manque les balises <Document> et </Documents> lignes 6 et 61 et les balises </Placemark> et <Placemark>lignes 33 et 34.

    Bonne journée.


    Code xml : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    <kml xmlns="http://www.opengis.net/kml/2.2"
    xmlns:gx="http://www.google.com/kml/ext/2.2"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.opengis.net/kml/2.2 
    https://developers.google.com/kml/schema/kml22gx.xsd">
    <Document>
    	<Placemark>
    		<description>
    (0).map
            </description>
    	<Style>
    		<LineStyle>
    			<color>ff502a00</color>
    		<width>3</width>
    		</LineStyle>
    		<PolyStyle>
    			<color>0098b700</color>
    		</PolyStyle>
    	</Style>
    	<Polygon>
    		<outerBoundaryIs>
    			<LinearRing>
    				<coordinates>
    8.437500,43.084937
    8.865924,43.084937
    8.865924,42.771243
    8.437500,42.771243
    8.437500,43.084937
         </coordinates>
    			</LinearRing>
    		</outerBoundaryIs>
    	</Polygon>
    </Placemark>
    <Placemark> 
    		<description>
    (1).map
            </description>
    	<Style>
    		<LineStyle>
    			<color>ff502a00</color>
    		<width>3</width>
    		</LineStyle>
    		<PolyStyle>
    			<color>0098b700</color>
    		</PolyStyle>
    	</Style>
    	<Polygon>
    		<outerBoundaryIs>
    			<LinearRing>
    				<coordinates>
    8.437500,42.771211
    8.865924,42.771211
    8.865924,42.455919
    8.437500,42.455919
    8.437500,42.771211
         </coordinates>
    			</LinearRing>
    		</outerBoundaryIs>
    	</Polygon> 
     </Placemark>
     </Document>
     </kml>

  3. #3
    Membre à l'essai
    Homme Profil pro
    Technicien maintenance
    Inscrit en
    Avril 2020
    Messages
    18
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Charente (Poitou Charente)

    Informations professionnelles :
    Activité : Technicien maintenance

    Informations forums :
    Inscription : Avril 2020
    Messages : 18
    Points : 15
    Points
    15
    Par défaut
    merci pour ton aide,

    j'ai pus terminer mon petit programme
    2 image du pourquoi de la chose
    j'ai des dalles xxx.map associes au xxx.png image "Map"
    et a la fin j'ai une representation de l'emplacement des dalles sur la carte image "corse"

    merciNom : corse.JPG
Affichages : 237
Taille : 30,7 KoNom : map.JPG
Affichages : 234
Taille : 52,3 Ko

Discussions similaires

  1. [XSLT 1.0] Probleme d'affichage fichier xml et xsl sous IE11
    Par lolo1790 dans le forum XSL/XSLT/XPATH
    Réponses: 9
    Dernier message: 03/02/2016, 13h49
  2. Probleme affichage fichier KML
    Par zombine666 dans le forum IGN API Géoportail
    Réponses: 14
    Dernier message: 29/06/2012, 05h48
  3. Probleme d'affichage de fichiers
    Par mehdi.berra dans le forum C
    Réponses: 35
    Dernier message: 11/09/2006, 16h56
  4. Problème d'affichage nom de fichier
    Par melmouj dans le forum Shell et commandes GNU
    Réponses: 1
    Dernier message: 06/07/2006, 16h53
  5. Problème d'affichage fichier texte
    Par justind1989 dans le forum Langage
    Réponses: 5
    Dernier message: 06/04/2006, 19h21

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo