- URL:
- https://<imageservice-url>/kml/image.kmz
- Methods:
GET
- Required Capability:
- Image
- Version Introduced:
- 10.0
Description
The KML Image
resource represents a ground overlay document wrapped in a KMZ file. When using an image service, KML regions are not supported.
Request parameters
Parameter | Details |
---|---|
| The size (width and height) of the exported image in pixels. If the Syntax: Example: |
| The format of the exported image. The default format is Values: |
| The pixel type, also known as data type, pertains to the type of values stored in the raster, such as signed integer, unsigned integer, or floating point. Integers are whole numbers; floating points have decimals. Values: |
| The pixel value representing no information. Example: |
| The resampling process of extrapolating the pixel values while transforming the raster dataset when it undergoes warping or when it changes coordinate space. Values: |
| Controls how much loss the image will be subjected to by the compression algorithm. Valid value ranges of compression quality are from 0 to 100. Example: |
| If there are multiple bands, you can specify a single band to export, or you can change the band combination (red, green, blue) by specifying the band number. Example: |
| Controls what mosaic operation will be used to create the displayed raster from an image service. Examples:
|
| The viewpoint properties determine the desired viewing angle of a theoretical observer and subsequently the ordering of rasters in a given data frame extent. Example:
|
Example usage
Example: Request a KML ground overlay document for an image service.
https:
KML response example
The following is a typical response KML document wrapped in an example KMZ response:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="https://earth.google.com/kml/2.2">
<NetworkLink>
<open>1</open>
<name>Images/World</name>
<LookAt>
<longitude>0</longitude>
<latitude>0</latitude>
<range>23400000</range>
</LookAt>
<Region>
<LatLonAltBox>
<north>90</north>
<south>-90</south>
<east>180</east>
<west>-180</west>
</LatLonAltBox>
<Lod>
<minLodPixels>128</minLodPixels>
<maxLodPixels>-1</maxLodPixels>
</Lod>
</Region>
<Link>
<viewRefreshMode>onStop</viewRefreshMode>
<viewRefreshTime>2</viewRefreshTime>
<href>https://myserver:8399/arcgis/rest/services/Images/World/ImageServer/exportImage</href>
<viewFormat>
<![CDATA[
f=kmz&bboxSR=4326&imageSR=4326&bbox=[bboxWest],[bboxSouth],[bboxEast],[bboxNorth]&size=[horizPixels],[vertPixels]
]]>
</viewFormat>
</Link>
</NetworkLink>
</kml>