This task opens one or more vectors given an input URI.

Example


; Start the application
e = ENVI()
 
; Open a vector file
File = Filepath('countries.shp', $
  Subdir=['data','natural_earth_vectors'], $
  Root_Dir=e.Root_Dir)
 
; Get the task from the catalog of ENVITasks
Task = ENVITask('ExtractVectorFromFile')
 
; Define task inputs
Task.INPUT_URI = File
 
; Run the task
Task.Execute
 
; Display the vector
view = e.GetView()
layer = view.CreateLayer(Task.OUTPUT_VECTOR)

Syntax


Result = ENVITask('ExtractVectorFromFile')

Input parameters (Set, Get): INPUT_URI

Output parameters (Get only): OUTPUT_VECTOR

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

Specify the input URI.

Output Parameters


OUTPUT_VECTOR

This is the vector or array of vectors extracted from the URI.

Methods


Execute

Parameter

ParameterNames

Properties


DESCRIPTION

DISPLAY_NAME

NAME

REVISION

TAGS

Version History


ENVI 6.2

Introduced

See Also


ENVITask, ENVI::OpenVector