This task exports a vector to a KML (Keyhole Markup Language) or compressed KMZ (Keyhole Markup Language Zipped) file format. See the URI argument in ENVI::OpenVector for supported vector formats.
Example
e = ENVI()
File = Filepath('qb_boulder_msi_vectors.shp', Subdir=['data'], $
Root_Dir=e.Root_Dir)
Vector = e.OpenVector(File)
Task = ENVITask('ExportVectorToKML')
Task.INPUT_VECTOR = Vector
Task.OUTPUT_URI = e.GetTemporaryFilename('.kml')
Task.Execute
Syntax
Result = ENVITask('ExportVectorToKML')
Input parameters (Set, Get): FORMAT, INPUT_VECTOR, NAME_FIELD, OUTPUT_URI
Output parameters (Get only): None
Parameters marked as "Set" are those that you can set to specific values. You can also retrieve their current values any time. Parameters marked as "Get" are those whose values you can retrieve but not set.
Input Parameters
FORMAT (optional)
Specify the format to save the vector to KML (Keyhole Markup Language) or compressed KMZ (Keyhole Markup Language Zipped). The default is KML.
INPUT_VECTOR (required)
Specify an ENVIVector to convert to KML/KMZ.
NAME_FIELD (optional)
Specify the name for the KML Placemark. The default is name.
OUTPUT_URI (optional)
Specify a string with the fully-qualified path and filename for the KML/KMZ file.
Methods
Execute
Parameter
ParameterNames
Properties
DESCRIPTION
DISPLAY_NAME
NAME
REVISION
TAGS
Version History
See Also
ENVITask, ENVIVector