This task exports a raster and its footprint to Google Earth's KMZ (Keyhole Markup Language Zipped) format.

Example


; Start the application
e = ENVI()
 
; Open an input raster file
imgFile = Filepath('qb_boulder_msi', Subdir=['data'], $
  Root_Dir=e.Root_Dir)
raster = e.OpenRaster(imgFile)
 
; Define inputs
Task = ENVITask('ExportRasterToKMZ')
Task.INPUT_RASTER = raster
Task.FILL = !true
Task.THICK = 3
Task.FILL_TRANSPARENCY = 50
 
; Run the task
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


ENVI 5.6.4

Introduced

API Version


4.2

See Also


ENVITask, ExportRasterToCADRG Task, ExportRasterToCOG Task, ExportRasterToENVI Task, ExportRasterToNITF20 Task, ExportRasterToNITF21 Task, ExportRasterToNSIF10 Task, ExportRasterToPNG Task, ExportRasterToTIFF Task