KML versions have a double numbering system: majorVersion.minorVersion. To view the corresponding KML for the copied object, open your favorite text editor and paste the selection into it. In Google Earth, you can right-click a Feature in the Places panel and copy it. Here is a handy feature of Google Earth that makes it easy to view the KML file for any Feature. Tip: Viewing KML for Google Earth Features
#Gx works 2 cross reference code
When you are editing KML text files, you can load this Schema into any XML editor and validate your KML code with it. If you're familiar with XML, you will also be interested in the KML 2.2 Schema. The id is a standard XML ID.īecause KML is an XML grammar and file format, tag names are case-sensitive and must appear exactly as shown here.
#Gx works 2 cross reference update
This id is used by the KML update mechanism (see ) for files loaded with a NetworkLink. Understanding this object-oriented hierarchy is also a good way for you to learn KML, since you can easily see groupings of related elements.Īll elements derived from Object can have an id assigned to them. They are a useful way for a single element to serve as the programmatic foundation for multiple similar (but different) derived elements. Note that abstract elements (shown in boxes in the diagram) are not actually used in KML files. Note: Click an element name in this diagram to jump to its entry in the reference section.
The complete XML schema for KML is located at. The complete specification for OGC KML can be found at. It is maintained by the Open Geospatial Consortium, Inc. KML is an open standard officially named the OpenGIS® KML Encoding Standard (OGC KML). It contains all of the elements that belong to Feature, and it adds some elements that are specific to the Placemark element. For example, Placemark is a special kind of Feature. In this diagram, elements to the right on a particular branch in the tree are extensions of the elements to their left. The class tree for KML elements is shown below. This section contains an alphabetical reference for all KML elements defined in KML Version 2.2, as well as elements in the Google extension namespace.