100 likes | 228 Vues
This guide explores Keyhole Markup Language (KML), an XML-based format designed for representing geographic data in Google Earth. KML files can originate from internet servers or local files, providing flexibility and complexity compared to traditional Shapefiles. It offers features for converting layers and entire map documents to KMZ format, a zipped version of KML. The simple structure of KML, including tags and coordinates, allows for effective visualization and geographic data manipulation. Learn how to utilize KML in your projects effectively.
E N D
GoogleEarth • Keyhole Markup Language (KML) • Based on Extensible Markup Language (XML) • KML files can come from Internet servers or files on your computer • Much more flexible, and complicated than Shapefiles • Documented at: • http://code.google.com/apis/kml/ • Or type “KML” into Google
3D Analyst • ArcToolbox -> Conversion Tools -> To KML • Layer to KML • Converts one layer to a KMZ file • Map to KML • Converts an entire map document (“.mxd”) to a KMZ file • KMZ is a “zipped” KML
XML <tag attribute=‘value’/> <tag> Content </tag> <tag> <nestedtag/> </tag
Simple KML <?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"> <Document> <Placemark> <name>Simple placemark</name> <description>Description</description> <Point> <coordinates> -122.0822035425683, 37.42228990140251, 0 </coordinates> </Point> </Placemark> </Document> </kml>