This task converts geometry-based regions of interest (ROIs) to GeoJSON features.
Example
e = ENVI()
File = Filepath('qb_boulder_roi.xml', Subdir=['data'], $
Root_Dir=e.Root_Dir)
rois = e.OpenROI(File)
task = ENVITask('ROIToGeoJSON')
task.Input_ROI = rois[2]
outFile = e.GetTemporaryFilename('.json')
task.Output_GeoJSON_URI = outFile
task.Execute
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
See Also
ENVITask, GeoJSONToROI Task, ExtractGeoJSONFromFile Task