This task converts geometry-based regions of interest (ROIs) to GeoJSON features.

Example


; Start the application
e = ENVI()
 
; Open an ROI file
File = Filepath('qb_boulder_roi.xml', Subdir=['data'], $
  Root_Dir=e.Root_Dir)
rois = e.OpenROI(File)
 
; Get the task from the catalog of ENVITasks
task = ENVITask('ROIToGeoJSON')
 
; Define task inputs
task.Input_ROI = rois[2]
outFile = e.GetTemporaryFilename('.json')
task.Output_GeoJSON_URI = outFile
 
; Run the task
task.Execute
 
; Display the result
xdisplayfile, outFile

Syntax


Result = ENVITask('ROIToGeoJSON')

Input parameters (Set, Get): INPUT_ROI, OUTPUT_GEOJSON_URI

Output parameters (Get only): OUTPUT_GEOJSON

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


INPUT_ROI (required)

Specify the ENVI ROIs to convert to GeoJSON. Only geometry-based ROIs are supported; pixel ROIs are not.

OUTPUT_GEOJSON_URI (optional)

Specify a string with the fully-qualified path and filename for the GeoJSON file.

Output Parameters


OUTPUT_GEOJSON

This is a reference to the output GeoJSON object.

Methods


Execute

Parameter

ParameterNames

Properties


DESCRIPTION

DISPLAY_NAME

NAME

REVISION

TAGS

Version History


ENVI 5.5.3

Introduced

See Also


ENVITask, GeoJSONToROI Task, ExtractGeoJSONFromFile Task