This task searches and opens vectors in a given directory based on a match pattern.

Example


; Start the application
e = ENVI()
 
; Specify directory
Dir = Filepath('', Root_Dir=e.Root_Dir, Subdir=['data'])
 
; Get the task from the catalog of ENVITasks
Task = ENVITask('FindVectors')
; Define inputs
Task.DIRECTORY = Dir
 
; Run the task
Task.Execute
 
; Display the result
View = e.GetView()
foreach Vector, Task.OUTPUT_VECTORS do Layer = View.CreateLayer(Vector)

Syntax


Result = ENVITask('FindVectors')

Input parameters (Set, Get): DIRECTORY, IGNORE_ERRORS, INCLUDE_SUBFOLDERS, SEARCH_PATTERN

Output parameters (Get only): OUTPUT_VECTORS

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


DIRECTORY (required)

Specify the directory in which to find vector files.

IGNORE_ERRORS (optional)

Specify whether to ignore errors during opening, or to halt execution.

INCLUDE_SUBFOLDERS (optional)

Specify whether or not to include subdirectories in the search.

SEARCH_PATTERN (optional)

Specify an array of strings containing the patterns for files to match. The default is *.shp, which will find all files in shapefile format.

Output Parameters


OUTPUT_VECTORS

The resulting vectors found.

Methods


Execute

Parameter

ParameterNames

Properties


DESCRIPTION

DISPLAY_NAME

NAME

REVISION

TAGS

Version History


ENVI 6.2

Introduced

See Also


ENVITask, FindRasters Task