{ "name": "LayerToKML", "displayName": "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": "", "helpUrl": "https://mcgdplgis.com/server/rest/directories/arcgisoutput/LayerToKML_GPServer/LayerToKML/LayerToKML.htm", "executionType": "esriExecutionTypeAsynchronous", "parameters": [ { "name": "layer", "dataType": "GPString", "displayName": "Input Layer", "description": "The feature, raster layer, or layer file (.lyrx) that will be converted to KML format.", "direction": "esriGPParameterDirectionInput", "defaultValue": "CNG", "parameterType": "esriGPParameterTypeRequired", "category": "", "choiceList": [ "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" ] }, { "name": "out_kmz_file", "dataType": "GPDataFile", "displayName": "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", "defaultValue": null, "parameterType": "esriGPParameterTypeRequired", "category": "" }, { "name": "layer_output_scale", "dataType": "GPDouble", "displayName": "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", "defaultValue": 0, "parameterType": "esriGPParameterTypeOptional", "category": "" }, { "name": "is_composite", "dataType": "GPBoolean", "displayName": "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\u2014The 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\u2014If the input layer has vector features, they will be preserved as KML vectors.", "direction": "esriGPParameterDirectionInput", "defaultValue": false, "parameterType": "esriGPParameterTypeOptional", "category": "Data Content Properties" }, { "name": "boundary_box_extent", "dataType": "GPString", "displayName": "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\u2014The extent will be based on the maximum extent of all participating inputs. This is the default.Current Display Extent\u2014The extent is equal to the data frame or visible display. The option is not available when there is no active map.As Specified Below\u2014The extent will be based on the minimum and maximum extent values specified.Browse\u2014The extent will be based on an existing dataset.", "direction": "esriGPParameterDirectionInput", "defaultValue": "-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]]", "parameterType": "esriGPParameterTypeOptional", "category": "Extent Properties" }, { "name": "image_size", "dataType": "GPLong", "displayName": "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", "defaultValue": 1024, "parameterType": "esriGPParameterTypeOptional", "category": "Output Image Properties" }, { "name": "dpi_of_client", "dataType": "GPLong", "displayName": "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", "defaultValue": 96, "parameterType": "esriGPParameterTypeOptional", "category": "Output Image Properties" }, { "name": "ignore_zvalue", "dataType": "GPBoolean", "displayName": "Clamped features to ground", "description": "Specifies whether the z-values of the input features will be overridden.Checked\u2014The 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\u2014The z-values of the features will be respected. The features will be drawn in KML clients relative to sea level.", "direction": "esriGPParameterDirectionInput", "defaultValue": true, "parameterType": "esriGPParameterTypeOptional", "category": "" } ] }