Professional Documents
Culture Documents
Outline :
The Consumers View of the Servers KML capabilities at 9.3 End Users Web Page Developers The Publishers View of the Servers KML capabilities at 9.3 The Authors View of the Servers KML capabilities at 9.3
Web Pages that contain links to kml content (that happens to come from an ArcGIS Server )
Using Services Explorer View Footprints View Services Search for pages populate service descriptions
Using KML from an ArcGIS Server The Web Page Developers View Web Page Developers can build pages that contain links to kml content that comes from an ArcGIS Server Web Page Developers use the REST API to construct urls that deliver kml
The footprints of map and image services The fused raster representation for any map or image service Custom raster or vector compositions corresponding to selected layers from a map service The results of queries that they define The results of geoprocessing tasks that they invoke The results of geocoding operations that they execute
5
KML Rest API - The Web Page Developers View : Spatial Footprints
KML Rest API - The Web Page Developers View : Fused Raster Representations
URL to the fused raster representation of a Map Service that includes all its layers as a network link KMZ :
http://<root>/<folder>/<name>/MapServer/kml/mapImage.kmz
If cached and in WGS84 or Mercator you get a KML SuperOverlay (Regionated KML)
http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Portland /Portland_ESRI_LandBase_AGO/MapServer/kml/mapImage.kmz
KML Rest API - The Web Page Developers View : Fused Raster Representations contd. URL to the raster representation of an Image Service as a network link KMZ
http://<root>/<folder>/<name>/ImageServer/kml/mapImage.kmz
KML REST API The Web Page Developers View : Query, Geocode and Geoprocessing results as KML
http://myServer/ArcGIS/rest/services/MessageInABottle/GPServer/Mes sage%20in%20a%20bottle/execute?Input_Point=150+20&Days=150&env%3AoutSR=&env%3AprocessSR=&f=kmz
9
KML REST API The Web Page Developers View : Custom compositions built from the layers in a map service
10
ArcGIS Server KML The Publishers View At 9.3 KML is automatically available via the REST API when you publish a service :
Service footprints are automatically available to consumers as KML. The fused raster representation of any map or image service is automatically available to consumers in KML. Query, Geocoding and Geoprocessing results are automatically available to web developers in KML By default, Web developers also have the ability to create KML compositions that dynamically fuse selected layers in a map service.
You can also continue to use Manager to explicitly author and publish KML network links as at 9.2
The REST API uses the KML capability of the Map Service
The KML capability is turned on by default at 9.3 Certain REST Operations are not supported if the KML capability is turned off.
Composition
The 9.2 URL for the KML capability (kmlserver) continues to be supported for backward compatibility
http://myServer/arcgis/services/Germany/MapServer/kmlServer?Composite=True>
12
ArcGIS Server KML The Authors View ArcGIS 9.3 gives you additional options for configuring the content and appearance of your features in KML.
The KML Description for a feature is now based on the HTML Popup configured for the feature layer in ArcMap. Point features are no longer automatically labeled. Labeling size and color is now honored in all cases where the server returns features as point vector placemarks. New help on authoring layers for KML
ArcGIS Server KML The Authors View The KML Description of the feature and its symbology are honored in all cases where the server returns features as vector placemarks
Queries, Geoprocessing Results, Vector Compositions
You can include a legend in the layout of a published map document that will be exposed to consumers as a Legend (KML ScreenOverlay) positioned in screen space of a KML client at the consumers discretion.
ArcGIS Server KML The Authors View: HTML Popup KML Descriptions are populated using an xsl template and feature data. Accept default xsl template or create one.
ArcGIS Server KML The Authors View: Point Feature Labeling Points are labeled only if explicitly specified to do so. Label color and size are honored.
ArcGIS Server KML The Authors View: Legends Any legends authored in the layout view will be exported for generateKML and Network Links authored in Manager.
ArcGIS Server KML The Authors View: Legends Legends can be placed at any of 9 cardinal screen locations in the KML client at the discretion of the end user.
Deep Dive 1: Authoring Maps for KML export Authoring Maps for KML export
Configuring Layer, Feature and Legend Export Properties
Rendering/Labeling/Descriptions/Legends HTML Popup derive custom xsl style templates from those provided in %ArcGISInstallDir%\Styles\HTMLPopup Example: Show inline images from fields with URLs to JPG images
<xsl:choose>
Deep Dive 2: Hurricane Impact ArcGIS Server Query and GP results in KML
Create an HTML Form with action = URL to the REST MapService Query Layer operation and method = get. Edit XSL template for MapService Hurricane tracks layer to create an HTML Anchor URL to the REST GP Execute Task with query string parameters culled from Feature Class Field values. Use Default HTML Popup for GP Tool Layer File
Questions?