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 properties (Set, Get): FORMAT, INPUT_VECTOR, NAME_FIELD, OUTPUT_URI
Output properties (Get only): None
Properties marked as "Set" are those that you can set to specific values. You can also retrieve their current values any time. Properties marked as "Get" are those whose values you can retrieve but not set.
Methods
This task inherits the following methods from ENVITask:
AddParameter
Execute
Parameter
ParameterNames
RemoveParameter
Properties
This task inherits the following properties from ENVITask:
COMMUTE_ON_DOWNSAMPLE
COMMUTE_ON_SUBSET
DESCRIPTION
DISPLAY_NAME
NAME
REVISION
TAGS
This task also contains the following properties:
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
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.
Version History
API Version
4.3
See Also
ENVITask, ENVIVector