Display Name: Layer To KML
Description: Converts a feature or raster layer to KML format (.kmz or .kml file). The output KML will contain a translation of Esri feature geometries, raster cells, layer symbology, and other properties.
Category:
Help URL: https://timsdev.cultivategeospatial.com/server/rest/directories/arcgisoutput/LayerToKML_GPServer/LayerToKML/LayerToKML.htm
Execution Type: esriExecutionTypeAsynchronous
Parameters:
Parameter: layer
Data Type: GPString
Display Name Input Layer
Description: The feature or raster layer, or group layer that will be converted to KML format.
Direction: esriGPParameterDirectionInput
Filter:
Dependency:
Default Value: Layer To KML Input Layer (Polygons)
Parameter Type: esriGPParameterTypeRequired
Category:
Choice List: [ Layer To KML Input Layer (Polygons) ]
Parameter: out_kmz_file
Data Type: GPDataFile
Display Name Output File (KML or KMZ)
Description: The output .kml or .kmz file. The output file can use a .kmz extension to produce an archive or zipped file, or a .kml extension to produce a basic KML format file. An output .kmz file is the default.Output .kmz files support raster layers, symbology and other layer properties, attachments, and other advanced features. Output .kml files will use basic KML symbols and properties.
Direction: esriGPParameterDirectionOutput
Filter:
Dependency:
Default Value:
Parameter Type: esriGPParameterTypeRequired
Category:
Parameter: layer_output_scale
Data Type: GPDouble
Display Name Layer Output Scale
Description: The scale of the output file. For raster layers, a value of 0 can be used to create one untiled output image. If a value greater than or equal to 1 is used, it will determine the output resolution of the raster. This parameter has no effect on layers that are not raster layers.
Direction: esriGPParameterDirectionInput
Filter:
Dependency:
Default Value: 0
Parameter Type: esriGPParameterTypeOptional
Category: Additional Output Settings
Parameter: is_composite
Data Type: GPBoolean
Display Name Return single composite image
Description: Specifies whether the output will be a single composite image. This parameter only applies if you specify the output as a .kmz file, as output .kml files do not support ground overlay images or rasters.Checked—The output will be a single composite image representing the raster or vector features in the source layer. The raster is draped over the terrain as a GroundOverlay. Use this option to reduce the size of the output file. When this option is used, individual features and layers in the .kml file cannot be selected. Only output .kmz files support images.Unchecked—If the input layer has vector features, they will be preserved as KML vectors.
Direction: esriGPParameterDirectionInput
Filter:
Dependency:
Default Value: false
Parameter Type: esriGPParameterTypeOptional
Category: Additional Output Settings
Parameter: boundary_box_extent
Data Type: GPString
Display Name Extent
Description: The geographic extent of the layer to be converted. Only features or raster cells in this extent will be included in the output KML.Current Display Extent—The extent will be based on the active map or scene. This option is only available when there is an active map.Extent of a Layer—The extent will be based on an active map layer. Use the drop-down list to choose an available layer or use the Extent of data in all layers option to get the combined extent of all active map layers, excluding the basemap. This option is only available when there is an active map with layers.Browse—The extent will be based on an existing dataset.Reset Extent—The extent will be reset to the default value.Manually entered coordinates—The coordinates must be numeric values and in the active map's coordinate system.The map may be using different display units
Direction: esriGPParameterDirectionInput
Filter:
Dependency:
Default Value: -180 -90 180 90 GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],VERTCS["EGM96_Geoid",VDATUM["EGM96_Geoid"],PARAMETER["Vertical_Shift",0.0],PARAMETER["Direction",1.0],UNIT["Meter",1.0]]
Parameter Type: esriGPParameterTypeOptional
Category: Processing Extent
Parameter: image_size
Data Type: GPLong
Display Name Size of Returned Image (Pixels)
Description: The size of the tiles for raster layers if the Layer Output Scale parameter value is greater than or equal to 1. This parameter has no effect on layers that are not raster layers.
Direction: esriGPParameterDirectionInput
Filter:
Dependency:
Default Value: 1024
Parameter Type: esriGPParameterTypeOptional
Category: Additional Output Settings
Parameter: dpi_of_client
Data Type: GPLong
Display Name Output Image DPI
Description: The device resolution for KML output when the Return single composite image parameter is checked. Use this parameter with the Size of Returned Image (Pixels) parameter to control output image resolution.This parameter does not resample source rasters. Input rasters will have a snapshot taken and included in the KML output as a simple .png image.
Direction: esriGPParameterDirectionInput
Filter:
Dependency:
Default Value: 96
Parameter Type: esriGPParameterTypeOptional
Category: Additional Output Settings
Parameter: ignore_zvalue
Data Type: GPBoolean
Display Name Clamp features to ground
Description: Specifies whether the z-values of the input features will be ignored and all features will be located, or clamped, at the ground elevation.Checked—The z-values of the input features will be ignored and all features will be located, or clamped, at the ground elevation. If the input features do not have z-values, they will always be clamped to the ground. This is the default.Unchecked—The z-values of the features will be maintained in the output KML. The features will be drawn in KML clients relative to sea level.
Direction: esriGPParameterDirectionInput
Filter:
Dependency:
Default Value: true
Parameter Type: esriGPParameterTypeOptional
Category: Additional Output Settings
Supported Operations:
Submit Job
Child Resources:
Metadata