Skip To Content
ArcGIS Developer

KML Image (Image Service)

  • URL:https://<imageservice-url>/kml/image.kmz
  • Required Capability:Image
  • Version Introduced:10.0


The KML Image resource represents a ground overlay document wrapped in a KMZ file. When using an image service, KML regions are not supported.

For more information about KML as an output option, see KML support.

Request parameters


The size (width and height) of the exported image in pixels. If the size is not specified, an image with a default size of 400x400 will be exported.

Syntax: <width>, <height>

Example: size=600,550


The format of the exported image. The default format is png.

Values: png | png8 | png24 | jpg | bmp | gif


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: C128 | C64 | F32 | F64 | S16 | S32 | S8 | U1 | U16 | U2 | U32 | U4 | U8 | UNKNOWN


The pixel value representing no information.

Example: noData=0


The resampling process of extrapolating the pixel values while transforming the raster dataset when it undergoes warping or when it changes coordinate space.

Values: RSP_BilinearInterpolation | RSP_CubicConvolution | RSP_Majority | RSP_NearestNeighbor


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: compressionQuality=75


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: bandIds=2,1,3


Controls what mosaic operation will be used to create the displayed raster from an image service. mosaicProperties is an XML-formatted string.



<MosaicMethod>ByAttribute</MosaicMethod> <TileOrderField>Month</TileOrderField> <TileOrderBase>6</TileOrderBase>


The viewpoint properties determine the desired viewing angle of a theoretical observer and subsequently the ordering of rasters in a given data frame extent. viewpointProperties is an XML-formatted string.


<ViewPointDefShiftX>0</ViewPointDefShiftX> <ViewPointDefShiftY>0</ViewPointDefShiftY> <ViewPointX>4489898.428</ViewPointX> <ViewPointY>5478905.02941413</ViewPointY>

Example usage

Example: Request a KML ground overlay document for an image service.


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="">