{ "name": "MapToKML", "displayName": "Map To KML", "description": "Converts a map to a KML file containing geometries and symbology. The output file is compressed using ZIP compression, has a .kmz extension, and can be read by any KML client including ArcGIS Earth and Google Earth.", "category": "", "helpUrl": "https://mcgdplgis.com/server/rest/directories/arcgisoutput/MapToKML_GPServer/MapToKML/MapToKML.htm", "executionType": "esriExecutionTypeAsynchronous", "parameters": [ { "name": "in_map", "dataType": "GPString", "displayName": "Input Map", "description": "The map, scene or basemap to convert to KML.", "direction": "esriGPParameterDirectionInput", "defaultValue": "parent", "parameterType": "esriGPParameterTypeRequired", "category": "", "choiceList": [ "parent", "Map", "Map1", "Light Grey Base", "CNG Public Map", "Map2", "FeatureMap" ] }, { "name": "out_kmz_file", "dataType": "GPDataFile", "displayName": "Output File", "description": "The output KML file. This file is compressed and has a .kmz extension. The file can be read by any KML client including ArcGIS Earth and Google Earth.", "direction": "esriGPParameterDirectionOutput", "defaultValue": null, "parameterType": "esriGPParameterTypeRequired", "category": "" }, { "name": "map_output_scale", "dataType": "GPDouble", "displayName": "Map Output Scale", "description": "The scale at which each layer in the map will be exported.This parameter is important with any scale dependency, such as layer visibility or scale-dependent rendering. If the layer is not visible at the output scale, it is not included in the output KML. Any value, such as 1, can be used if there are no scale dependencies.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 determines the output resolution of the raster. This parameter has no effect on layers that are not raster layers.Only numeric characters are accepted; for example, enter 20000 as the scale, not 1:20000. In languages that use commas as the decimal point, 20,000 is also acceptable.If you're exporting a layer that is to be displayed as 3D vectors and the Return single composite image parameter is checked, you can set this parameter to any value as long as the features do not have any scale-dependent rendering.", "direction": "esriGPParameterDirectionInput", "defaultValue": 0, "parameterType": "esriGPParameterTypeOptional", "category": "" }, { "name": "is_composite", "dataType": "GPBoolean", "displayName": "Return single composite image", "description": "Specifies whether the output KML will contain a single composite image or separate layers.Checked\u2014The output KML will contain a single image that composites all the features in the map into a single raster image. The raster is draped over the terrain as a KML GroundOverlay. This option reduces the size of the output KML. Individual features and layers in the KML are not selectable.Unchecked\u2014The output KML will contain separate, individual layers. This is the default. Whether the layers are returned as rasters or as a combination of vectors and rasters is determined by the Convert Vector to Raster parameter.", "direction": "esriGPParameterDirectionInput", "defaultValue": false, "parameterType": "esriGPParameterTypeOptional", "category": "Data Content Properties" }, { "name": "is_vector_to_raster", "dataType": "GPBoolean", "displayName": "Convert Vector to Raster", "description": "Specifies whether each vector layer in the map will be converted to a separate raster image or preserved as vector layers.This parameter is inactive if the Return single composite image parameter is checked.Checked\u2014Vector layers will be converted to a separate raster image in the KML output. Normal raster layers are also added to the KML output. Each output KML raster layer is selectable, and its transparency can be adjusted in certain KML clients.Unchecked\u2014Vector layers will be preserved as KML vectors. This is the default.", "direction": "esriGPParameterDirectionInput", "defaultValue": false, "parameterType": "esriGPParameterTypeOptional", "category": "Data Content Properties" }, { "name": "extent_to_export", "dataType": "GPString", "displayName": "Extent to Export", "description": "The geographic extent of the area to be exported. Specify the extent rectangle bounds as a space-delimited string of WGS84 geographic coordinates in the form left lower right upper (x-min, y-min, x-max, y-max).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": "DEFAULT", "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 Map Output Scale parameter value is set to a value greater than or equal to 1. This parameter only has an effect on 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 any rasters in the output KML document. Typical screen resolution is 96 dpi. If the data in the map supports a high resolution and the KML requires it, consider increasing the value. Use this parameter with the Size of returned image (pixels) parameter to control output image resolution. The default value is 96.", "direction": "esriGPParameterDirectionInput", "defaultValue": 96, "parameterType": "esriGPParameterTypeOptional", "category": "Output Image Properties" }, { "name": "ignore_zvalue", "dataType": "GPBoolean", "displayName": "Clamped features to ground", "description": "Specifies whether features will be clamped to the ground.Checked\u2014The z-values of the input features will be ignored and the KML output will be created with the features clamped to the ground. The features will be draped over the terrain. Use this option when features that do not have z-values. This is the default.Unchecked\u2014The z-values of the input features will be used when creating the KML output. The features will be drawn in KML clients relative to sea level.", "direction": "esriGPParameterDirectionInput", "defaultValue": true, "parameterType": "esriGPParameterTypeOptional", "category": "" }, { "name": "layout", "dataType": "GPString", "displayName": "Legend Layout Source", "description": "The name of a layout that contains legend elements that will be included in the KML output as screen overlays.", "direction": "esriGPParameterDirectionInput", "defaultValue": "", "parameterType": "esriGPParameterTypeOptional", "category": "Legend Screen Overlay", "choiceList": [ "Summary Letter Landscape" ] } ] }