ExportRasterToCOG Task

This task exports a raster to a Cloud Optimized GeoTIFF (COG) file format.

Example

; Start the application

e = ENVI()

 

; Open an input file

File = Filepath('qb_boulder_msi', Subdir=['data'], $

  Root_Dir=e.Root_Dir)

Raster = e.OpenRaster(File)

 

; Get the task from the catalog of ENVITasks

Task = ENVITask('ExportRasterToCOG')

 

; Define inputs

Task.INPUT_RASTER = Raster

 

; Run the task

Task.Execute

 

; Add the output to the Data Manager

e.Data.Add, Task.OUTPUT_RASTER

 

; Display the result

View = e.GetView()

Layer = View.CreateLayer(Task.OUTPUT_RASTER)

Syntax

Result = ENVITask('ExportRasterToCOG')

Input parameters (Set, Get): COMPRESSION_TYPE, DATA_IGNORE_VALUE, INPUT_RASTER, INTERLEAVE, OUTPUT_RASTER_URI, RESAMPLING_TYPE, TILE_MATRIX_SET

Output parameters (Get only): OUTPUT_RASTER

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

COMPRESSION_TYPE (optional)

Specify the type of compression. The choices are:

All options except for JPEG can be used for lossless compression. JPEG can be used for lossy compression.

DATA_IGNORE_VALUE (optional)

Specify a unique data value for pixels in the output raster that have a non-zero pixel state value. If you do not set this parameter and the input raster already has a data ignore value defined, that value will be used in the output COG file.

INPUT_RASTER (required)

Specify a raster to export to COG format.

INTERLEAVE (optional)

Specify a string indicating the data interleave of the output raster. The choices are:

OUTPUT_RASTER_URI (optional)

Specify a string with the fully qualified filename and path of the associated OUTPUT_RASTER.

RESAMPLING_TYPE (optional)

The resampling method to use when generating overviews and reprojecting. The choices are:

TILE_MATRIX_SET (optional)

The tile matrix set to use for tile generation. Optimized should almost always be used. The choices are:

Output Parameters

OUTPUT_RASTER

This is a reference to the output raster.

Methods

Execute

Parameter

ParameterNames

Properties

DESCRIPTION

DISPLAY_NAME

NAME

REVISION

TAGS

Version History

ENVI 5.6.1

Introduced

See Also

ENVITask, ExportRasterToCADRG Task, ExportRasterToENVI Task, ExportRasterToJPEG2000 Task, ExportRasterToKMZ Task, ExportRasterToNITF20 Task, ExportRasterToNITF21 Task, ExportRasterToNSIF10 Task, ExportRasterToPNG Task, ExportRasterToTIFF Task, Masking Support in ENVITasks