Display Name: Layer To KML
Description: Converts a feature or raster layer to KML format (.kmz or .kml file) containing a translation of Esri geometries and symbology.
Category:
Help URL: https://mcgdplgis.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, raster layer, or layer file (.lyrx) that will be converted to KML format.
Direction: esriGPParameterDirectionInput
Filter:
Dependency:
Default Value: CNG
Parameter Type: esriGPParameterTypeRequired
Category:
Choice List: [ CNG, Consumers, Elbow, Industries, Commercials, reducers, Service_Regulator, Tee, CP, RegulatingStations, Warning_Marker, Valve, Crossings, Insulating Joint, Gas_Source, EndCap, Steel Network, Proposed Network, MDPE_20mm, MDPE_Network, CGS, Roads, GA_Boundary, Districts, Ward_Boundaries ]
Parameter: out_kmz_file
Data Type: GPDataFile
Display Name Output File (.kmz or .kml)
Description: The output .kmz or .kml 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.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:
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 KML format file with a .kmz extension, 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: Data Content Properties
Parameter: boundary_box_extent
Data Type: GPString
Display Name Extent to Export
Description: The geographic extent of the area to be exported. Define the extent box (in the WGS84 coordinate system) or choose a layer or dataset that defines an extent.Default—The extent will be based on the maximum extent of all participating inputs. This is the default.Current Display Extent—The extent is equal to the data frame or visible display. The option is not available when there is no active map.As Specified Below—The extent will be based on the minimum and maximum extent values specified.Browse—The extent will be based on an existing dataset.
Direction: esriGPParameterDirectionInput
Filter:
Dependency:
Default Value: -5817530.8566 1075612.2929 10522871.5397 17989393.3823 PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",0.0],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]
Parameter Type: esriGPParameterTypeOptional
Category: Extent Properties
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 set to a value 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: Output Image Properties
Parameter: dpi_of_client
Data Type: GPLong
Display Name DPI of output image
Description: The device resolution for KML output when the Return single composite image parameter is checked. This parameter is used 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: Output Image Properties
Parameter: ignore_zvalue
Data Type: GPBoolean
Display Name Clamped features to ground
Description: Specifies whether the z-values of the input features will be overridden.Checked—The z-values of the features will be overridden and draped over the terrain. This setting is used for features that do not have z-values. This is the default.Unchecked—The z-values of the features will be respected. The features will be drawn in KML clients relative to sea level.
Direction: esriGPParameterDirectionInput
Filter:
Dependency:
Default Value: true
Parameter Type: esriGPParameterTypeOptional
Category:
Supported Operations:
Submit Job
Child Resources:
Metadata