KML elements |
|
|
Release 9.3
Last modified October 13, 2010 |
|
The goal of this topic is to give you a quick overview of the types of data elements that you can publish using KML.
Keyhole Markup Language (KML) is a language that enables you to present your GIS data as a series of graphics within Google Earth™, Google Maps™, and other web-based mapping applications that support KML (e.g., ArcGIS Explorer). In addition, you can define how to explore and interact with your KML elements within the Google Earth™ and Google Maps™ context. For example, what will happen when you click or pause on a KML graphic location?
The KML structure is quite flexible and web-friendly. In addition, KML content can be quite rich. It supports many data types and a number of interactive query operations. Therefore, it's useful to understand how to translate your geographic information into KML graphic elements and to define the exploration and interaction behavior you want to provide for users to work with your GIS data through KML.
| ArcGIS data types | KML elements |
| Point features | Placemarks |
|
|
Or, you can use a KML ground overlay to display a collection of points as an image |
| Line features | Paths ** |
|
|
Or, you can use a KML ground overlay to display a collection of paths as an image. |
| Polygon features | Polygons ** |
|
|
Or, you can use a KML ground overlay to display a collection of polygons as an image. |
| Imagery | Ground overlays |
| Map documents | Each layer can be displayed separately. Feature classes are displayed as KML features. Imagery and rasters as ground overlays. |
|
|
Or, the entire map can be displayed as an image by choosing to use a KML ground overlay. |
|
Map and screen graphics (e.g., logos, map legends, pictures, and so forth)
|
KML Screen Overlays
Elements such as symbol legends, logos, and pictures can be displayed using KML Screen Overlays. |
KML placemarks are symbolized point locations on a 2D or 3D map. They have two primary roles:
In a manner similar to the way you work with feature layers in ArcMap and ArcGlobe, KML can portray the contents of your GIS map layers as symbolized points, lines, polygons, and multipatches. Using KML, you set properties for how features are to be portrayed. However, the mechanism used for identification and interaction in KML is different from ArcGIS. In KML, each feature can have an associated KML placemark that enables feature identification and interaction.
NOTE: When using KML polygons, you can use CTRL-Click on polygons to display feature information in a balloon popup
KML ground overlays are used to display aerial imagery as well as static map images that are draped onto the globe surface. Ground overlays can be used to add your more detailed and up-to-date orthoimagery or to generate thematic map information as a raster picture that can be placed on the Google basemap.
Using KML, you can import 3D models in the COLLADA interchange file format.
Three-dimensional objects (such as buildings, trees, and airplanes) can be modeled naturally with photorealistic representations. Many users build 3D models of their buildings, and places of interest.
KML supports COLLADA, and models from a number of 3D graphics applications can be exported to COLLADA -- for example, from applications such as Google SketchUp™, 3ds max (formerly known as 3D Studio Max from AutoDesk), and OpenFlight.
Once exported, COLLADA interchange files (.dae) can be imported into Google Earth™ using KML and located using placemarks.
KML screen overlays are page graphics that pop up at predefined locations on the Google Earth™ screen. These are not part of the geographic display but are useful within a GIS context as information displays. For example, you can use screen overlays to present a symbol key, map legend, or company logo.
Here is an example of a screen overlay using the ESRI corporate logo. The logo graphic element remains fixed in the display if the globe is navigated. Because it is an element in the KML Contents list, its visibility can be turned on or off.
KML regions allow you to add large datasets to Google Earth™ and Google Maps™ without sacrificing performance. The data is not displayed until you zoom into an appropriate map resolution. Regions are useful for managing the display of multi-resolution map information such as image pyramids for a specific extent.
Data at each resolution is drawn only when it falls within the user's view and occupies a certain portion of the screen. Using regions, you can supply multiple levels of detail for your data, so that higher resolution datasets are added as you zoom in. Data for each level of detail is displayed automatically at the appropriate screen resolution.
Some of the types of ArcGIS content that you may want to serve using KML regions includes:
KML network links are the mechanism used to reference data that is being served dynamically on the web. This makes it possible for multiple clients to view the same network-based or web-based KML information and to automatically access content that is served dynamically.
The ability to retrieve up-to-date information as it changes is important in many applications. Instead of publishing KML to a static file, you can use ArcGIS Server to serve maps and other information dynamically using KML. This helps to ensure that KML data services are up-to-date.
KML network links enable you to specify how often to refresh the data being served.