KML: Difference between revisions
Jump to navigation
Jump to search
(Created page with " Format XML décrivant des lieux, de trajets, ... KMZ = zip(KML+ressources multimedia) Utilisé pour export par de nombreux équipements : Sport trainers, Suivi de flotte (espi…") |
No edit summary |
||
| Line 1: | Line 1: | ||
Format XML décrivant des lieux, de trajets, ... |
Format XML décrivant des lieux, de trajets, ... |
||
| Line 23: | Line 22: | ||
</Placemark> |
</Placemark> |
||
</kml> |
</kml> |
||
</pre> |
|||
Ground Overlays |
|||
<pre> |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<kml xmlns="http://www.opengis.net/kml/2.2"> |
|||
<Folder> |
|||
<name>Ground Overlays</name> |
|||
<description>Examples of ground overlays</description> |
|||
<GroundOverlay> |
|||
<name>Large-scale overlay on terrain</name> |
|||
<description>Overlay shows Mount Etna erupting |
|||
on July 13th, 2001.</description> |
|||
<Icon> |
|||
<href>http://code.google.com/apis/kml/documentation/etna.jpg</href> |
|||
</Icon> |
|||
<LatLonBox> |
|||
<north>37.91904192681665</north> |
|||
<south>37.46543388598137</south> |
|||
<east>15.35832653742206</east> |
|||
<west>14.60128369746704</west> |
|||
<rotation>-0.1556640799496235</rotation> |
|||
</LatLonBox> |
|||
</GroundOverlay> |
|||
</Folder> |
|||
</kml> |
|||
</pre> |
|||
Path |
|||
<pre> |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<kml xmlns="http://www.opengis.net/kml/2.2"> |
|||
<Document> |
|||
<Placemark> |
|||
<name>Absolute Extruded</name> |
|||
<LineString> |
|||
<extrude>1</extrude> |
|||
<tessellate>1</tessellate> |
|||
<altitudeMode>absolute</altitudeMode> |
|||
<coordinates> -112.2550785337791,36.07954952145647,2357 |
|||
-112.2549277039738,36.08117083492122,2357 |
|||
-112.2552505069063,36.08260761307279,2357 |
|||
-112.2564540158376,36.08395660588506,2357 |
|||
-112.2580238976449,36.08511401044813,2357 |
|||
-112.2595218489022,36.08584355239394,2357 |
|||
-112.2608216347552,36.08612634548589,2357 |
|||
-112.262073428656,36.08626019085147,2357 |
|||
-112.2633204928495,36.08621519860091,2357 |
|||
-112.2644963846444,36.08627897945274,2357 |
|||
</coordinates> |
|||
</LineString> |
|||
</Placemark> |
|||
</Document> |
|||
</kml> |
|||
</pre> |
</pre> |
||
Revision as of 20:32, 24 February 2011
Format XML décrivant des lieux, de trajets, ...
KMZ = zip(KML+ressources multimedia)
Utilisé pour export par de nombreux équipements : Sport trainers, Suivi de flotte (espion) …
Visualisation : Google earth, Google earth plugin
Placemark
<?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"> <Placemark> <name>Simple placemark</name> <description>Attached to the ground. Intelligently places itself at the height of the underlying terrain.</description> <Point> <coordinates>-122.0822035425683,37.42228990140251,0</coordinates> </Point> </Placemark> </kml>
Ground Overlays
<?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"> <Folder> <name>Ground Overlays</name> <description>Examples of ground overlays</description> <GroundOverlay> <name>Large-scale overlay on terrain</name> <description>Overlay shows Mount Etna erupting on July 13th, 2001.</description> <Icon> <href>http://code.google.com/apis/kml/documentation/etna.jpg</href> </Icon> <LatLonBox> <north>37.91904192681665</north> <south>37.46543388598137</south> <east>15.35832653742206</east> <west>14.60128369746704</west> <rotation>-0.1556640799496235</rotation> </LatLonBox> </GroundOverlay> </Folder> </kml>
Path
<?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"> <Document> <Placemark> <name>Absolute Extruded</name> <LineString> <extrude>1</extrude> <tessellate>1</tessellate> <altitudeMode>absolute</altitudeMode> <coordinates> -112.2550785337791,36.07954952145647,2357 -112.2549277039738,36.08117083492122,2357 -112.2552505069063,36.08260761307279,2357 -112.2564540158376,36.08395660588506,2357 -112.2580238976449,36.08511401044813,2357 -112.2595218489022,36.08584355239394,2357 -112.2608216347552,36.08612634548589,2357 -112.262073428656,36.08626019085147,2357 -112.2633204928495,36.08621519860091,2357 -112.2644963846444,36.08627897945274,2357 </coordinates> </LineString> </Placemark> </Document> </kml>