This task exports a raster and its footprint to Google Earth's KMZ (Keyhole Markup Language Zipped) format.
Example
e = ENVI()
imgFile = Filepath('qb_boulder_msi', Subdir=['data'], $
Root_Dir=e.Root_Dir)
raster = e.OpenRaster(imgFile)
Task = ENVITask('ExportRasterToKMZ')
Task.INPUT_RASTER = raster
Task.FILL = !true
Task.THICK = 3
Task.FILL_TRANSPARENCY = 50
Task.Execute
Syntax
Result = ENVITask('ExportRasterToKMZ')
Input properties (Set, Get): COLOR, INPUT_RASTER, FILL, FILL_TRANSPARENCY, OUTPUT_KMZ_URI, THICK
Output properties (Get only):
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:
COLOR (optional)
Specify the footprint color.
FILL (optional)
Set this property to fill the footprint.
FILL_TRANSPARENCY (optional)
Specify the fill transparency (from 0 to 100: fully opaque to fully transparent).
INPUT_RASTER (required)
Specify a raster to export to KMZ format.
OUTPUT_KMZ_URI (optional)
Specify a string with the fully-qualified path and filename for the KMZ file.
THICK (optional)
Specify the footprint thickness (width), in pixels.
Version History
API Version
4.3
See Also
ENVITask, ExportRasterToCADRG Task, ExportRasterToCOG Task, ExportRasterToENVI Task, ExportRasterToJPEG2000 Task, ExportRasterToNITF20 Task, ExportRasterToNITF21 Task, ExportRasterToNSIF10 Task, ExportRasterToPNG Task, ExportRasterToTIFF Task