Display Name: Layer To KML
Description: Geoprocessing tool that converts a feature or raster layer into a Keyhole Markup Language (KML) file.
Category:
Help URL: https://gis.odot.state.or.us/arcgis1006/rest/directories/arcgisoutput/agol/LayerToKML_GPServer/agol_LayerToKML/LayerToKML.htm
Execution Type: esriExecutionTypeSynchronous
Parameters:
Parameter: layer
Data Type: GPString
Display Name Layer
Description: The feature or raster layer or layer file (.lyr) to be converted to KML.
Direction: esriGPParameterDirectionInput
Default Value: Bicycle Facilities
Parameter Type: esriGPParameterTypeRequired
Category:
Choice List: [ All Public Roads, Annual Average Daily Traffic Future Projected 20 Years, Annual Average Daily Traffic Non State, Annual Average Daily Traffic State, Approaches Champs Inventory Data, Approaches, Approaches Upermit, Area Commissions on Transportation, Automatic Traffic Recorders Data, Automatic Traffic Recorder Stations, Bicycle Facilities, Bicycle Facility Needs, Bricklayer Zones, Bridges, City Limits, Climate Divisions, County Boundaries, Crashes 2017, Crashes 2016, Crashes 2015, Crashes 2014, Crashes 2013, DFMS Culverts Advanced Inspection, DFMS Culverts From Plans with No Inspection, Electrician Zones, Environmental Justice, Faults OGDC v6, Federal Aid Eligible Road Network, Federal Aid Urban Boundaries, Federal Functional Class State, Federal Functional Class Non State, Federal Functional Class Non State Mile Point Hundreths, Fish Barriers, Fish Passage, Fix It Priority Corridor STIP 2021 through 2024, Fix It Priority Corridor STIP 2018 through 2021, Fix It Priority Corridor STIP 2015 through 2018, Folds OGDC v6, Geologic Units Map OGDC v6, High Clearance Routes, Highway Connections, Highway Frontage Roads, Highway Mile Posts, Highway Mile Point Tenths, Highway Mile Point Hundredths, Highway Network, Highway Network by ODOT Highway Number, Hydric or Wetland Soils, Lane Width, Low Clearance Bridges, Major Traffic Structures, Metropolitan Planning Area, National Highway System State, National Highway System Non State, National Network State, National Network Non State, Number of Lanes, ODOT Areas, ODOT Facilities, ODOT Leased Buildings, ODOT Maintenance Districts, ODOT Maintenance Stations, ODOT Regions, ODOT Transit Regions, OHP Expressways, OHP Freight Routes, OHP Highway Classification, Oregon POINT Bus Stops Fixed Route, Oregon POINT Bus Routes Fixed Route, Oregon Rivers, Oregon Scenic Bikeways, Oregon Scenic Byways, Oregon Scenic Waterways, Oregon Wetlands, Pavement Condition, PLSS Sections, PLSS Township and Range, Park and Ride Lots, Posted Bridges, Posted Speed, Power Equipment Operator Zones, Rail Bridges, Rail Crossings, Rail Mile Posts, Rail Network, Rail Tunnels, Reduction Review Routes, Retaining Walls, Review for Emergency Vehicle Loads, Review for SHV Loads, Safety Scoping Projects, Scour Critical Bridges, Seismic Program Highways, Shoulder Width and Type, Sidewalk Needs, Signed Routes, Signals, Signs, Sound Barrier, Special Transportation for Areas Urban Business Areas and Commercial Centers, SPIS 2017 2014 through 2016 crashes, SPIS 2016 2013 through 2015 crashes, SPIS 2015 2012 through 2014 crashes, SPIS 2014 2011 through 2013 crashes, SPIS 2013 2010 through 2012 crashes, State House Districts, State Senate Districts, STIP 2012 through 2015 Points, STIP 2012 through 2015 Segments, STIP 2008 through 2011 Final, STIP 2006 through 2009 Final, Stormwater Management Facilities, Structurally Deficient Bridges, Tidegates, Traffic Barriers, Traffic Flow, Transit Stops Fixed Route, Transit Routes Fixed Route, Travel Oregon Regions, Truck Flow, Tunnels, Unstable Slopes, Urban Growth Boundaries, US Congressional Districts, USGS Quads Index, Waterbodies, Water Courses, Weigh In Motion Sites, Weight Restricted Bridges, Wildlife Collisions, Zip Codes ]
Parameter: out_kmz_file
Data Type: GPDataFile
Display Name Output File
Description: The KML file to write. This file is compressed and has a .kmz extension. It can be read by any KML client including ArcGIS Earth, ArcGlobe, and Google Earth.
Direction: esriGPParameterDirectionOutput
Default Value:
Parameter Type: esriGPParameterTypeRequired
Category:
Parameter: layer_output_scale
Data Type: GPDouble
Display Name Layer Output Scale
Description: The scale at which to export the layer. This parameter is used with any scale dependency, such as layer visibility or scale-dependent rendering. If the layer is not visible at the export scale, it will not be included in the created KML file. Any value, such as 0, can be used if there are no scale dependencies.A scale value of 0 is an override switch to ignore scale dependencies set on the layer. Any actual scale value will produce a KML with the layers visible at the given input.If exporting a layer that is to be displayed as 3D vectors and the Return single composite image parameter is unchecked, you can set this parameter to any value, as long as your features do not have any scale-dependent rendering.Only numeric characters should be entered; for example, enter 20000 as the scale, not 1:20000 or 20,000.This parameter does not control the output resolution of a raster.
Direction: esriGPParameterDirectionInput
Default Value: 0
Parameter Type: esriGPParameterTypeOptional
Category:
Parameter: is_composite
Data Type: GPBoolean
Display Name Return single composite image
Description: Checked—The output KML file 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 KML GroundOverlay. Select this option to reduce the size of the output KMZ file. When you check this box, individual features and layers in the KML are not selectable.Unchecked—If your layer has vector features, they are preserved as KML vectors. If your layer is a raster, you can choose either option for this parameter without any visual difference.
Direction: esriGPParameterDirectionInput
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. Either define the extent box (in the WGS84 coordinate system) or choose a layer or dataset that defines an extent.
Direction: esriGPParameterDirectionInput
Default Value: DEFAULT
Parameter Type: esriGPParameterTypeOptional
Category: Extent Properties
Parameter: image_size
Data Type: GPLong
Display Name Size of returned image (pixels)
Description: Defines the vertical and horizontal resolution when the Return single composite image parameter is used. Use this parameter with the DPI parameter to control output image resolution.This parameter does not provide the ability to resample source rasters. Any input rasters will have a snapshot taken and included in the KML output as a simple .png image.
Direction: esriGPParameterDirectionInput
Default Value: 1024
Parameter Type: esriGPParameterTypeOptional
Category: Output Image Properties
Parameter: dpi_of_client
Data Type: GPLong
Display Name DPI of output image
Description: Defines the device resolution for KML output when the Return single composite image parameter is used. Use this parameter with the image_size parameter to control output image resolution.This parameter does not provide the ability to resample source rasters. Any input rasters will have a snapshot taken and included in the KML output as a simple .png image.
Direction: esriGPParameterDirectionInput
Default Value: 96
Parameter Type: esriGPParameterTypeOptional
Category: Output Image Properties
Parameter: ignore_zvalue
Data Type: GPBoolean
Display Name Clamped features to ground
Description: Checked—You can override the Z-values inside your features or force them to be clamped to the ground. You should use this setting if you are not working with 3D features or have features with Z-values that might not honor values relative to sea level. This is the default. Unchecked—The output KML file will be created, which respects the Z-values of features. Your output KML features will be set to the absolute value, which could place features below the earth's surface in some KML clients. Most KML clients allow you to set the display mode for features when viewing the KML file. Most KML viewers set absolute as sea level and draw features with elevation (Z-values) based on that value.
Direction: esriGPParameterDirectionInput
Default Value: true
Parameter Type: esriGPParameterTypeOptional
Category:
Supported Operations:
Execute Task