KML support in ArcGIS Server

Release 9.3.1 E-mail This Topic Printable Version Give Us Feedback

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.

What can you do with KML using ArcGIS Server?

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.

How do you configure map and image services to return KML?

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.

KML through REST

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.

Viewing what's available on your server

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.

How do you get geocoding, geoprocessing, or query results as KML?

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.

What's new with KML in 9.3?

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: