KML support in ArcGIS Server |
|
Release 9.3.1 |
Keyhole Markup Language (KML) is an XML-based file format used to represent geographic features in applications such as Google Earth and ArcGIS Explorer. KML allows you to draw points, lines, and polygons on maps and globes and share them with others. Using KML you can also designate text, pictures, movies or links to other GIS services that appear when the user clicks the feature. Many KML client applications are free and provide a familiar, user-friendly navigation experience.
ArcGIS Server allows you to share your maps and data as KML in several ways:
In all these cases, the KML is dynamically generated, meaning that users who view the KML will always see the latest maps and data from your server. If you just want to generate static KML documents that you can e-mail or place on a file server, you can use the Map To KML and Layer To KML tools from ArcGIS Desktop.
To share your maps and imagery as dynamic KML, all you have to do is publish them as services. Both map and image services can return KML through REST. Manager has tools that you can use to quickly publish the services.
Before you publish the services, you'll need to do some preparatory work. Map services require that you first prepare a map document containing the layers you want to make available as KML. In this map document, you can specify specific labeling, rendering, symbology and HTML Popup properties that will be reflected in your KML. 3D properties need to be set in ArcGlobe and imported as layer files into your map document.
Learn more about authoring maps for publishing as KML.
Image services require a raster dataset, a raster layer file, or a compiled image service definition file (.ISCDef) that you have created with ArcGIS Image Server.
All map and image services expose a KML network link through REST. Simply put, REST is a way of exposing information about your services through a series of navigable URLs. You can discover the URL to the network link using Services Directory, which is an application designed to help you navigate the REST endpoints on your server. The URL points to a .kmz file that you can add to Google Earth or any other client that supports KML network links.
If you don't want to use the default network link, you can use Services Directory or Manager to generate your own. See Viewing services as KML to learn more about REST, KML network links, and how ArcGIS Server works with both.
Through the ArcGIS Services Directory, you can also view the footprints of all the map and image services on your GIS server. At any level of the server (for a folder or for the entire server) you can access a footprints KML network link that displays locations and descriptions of your services. You can use this footprints network link as a guide to show others what's available on your server.
ArcGIS Server 9.3 map services can return the results of geoprocessing, geocoding, and query operations as KML. These services can be used in applications and can also be used directly by analysts typing in REST URLs. This is a good way to allow applications and users to selectively retrieve information from online geodatabases in KML format.
If you're already familiar with KML services from ArcGIS Server 9.2, here are some improvements that you'll see when using 9.3: