ExportVectorToGeoJSON Task

This task exports one or more vectors to a GeoJSON file format.

Example

; Start the application

e = ENVI()

 

; Open an input file

File = Filepath('qb_boulder_msi_vectors.shp', Subdir=['data'], $

  Root_Dir=e.Root_Dir)

Vector = e.OpenVector(File)

 

; Get the task from the catalog of ENVITasks

Task = ENVITask('ExportVectorToGeoJSON')

 

; Define inputs

Task.INPUT_VECTOR = Vector

Task.OUTPUT_URI = e.GetTemporaryFilename('.json')

 

; Run the task

Task.Execute

Syntax

Result = ENVITask('ExportVectorToGeoJSON')

Input parameters (Set, Get): INPUT_VECTOR, OUTPUT_GEOJSON, OUTPUT_GEOJSON_URI, PRETTY

Output parameters (Get only): None

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_VECTOR (required)

Specify ENVIVector(s) to convert to a single GeoJSON file.

OUTPUT_GEOJSON (required)

This is a reference to the output GeoJSON object.

OUTPUT_URI (optional)

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

PRETTY (optional)

Set this parameter to true format the output GeoJSON in a readable fashion. False will produce a smaller dataset without formatting.

Methods

Execute

Parameter

ParameterNames

Properties

DESCRIPTION

DISPLAY_NAME

NAME

REVISION

TAGS

Version History

ENVI 6.2

Introduced

See Also

ENVITask, ENVIVector