ENVIVector
This is a reference to a vector object. For details on creating an ENVIVector, see ENVI::OpenVector.
Example
The following code sample opens a shapefile and prints the properties of the created ENVIVector.
; Launch the application
e = ENVI()
; Create an ENVIVector from the shapefile data
file = FILEPATH('states.shp', $
SUBDIRECTORY=['examples', 'data'])
vector = e.OpenVector(file)
; Print the ENVIVector property values
PRINT, vector
Syntax
Result = ENVIVector([, Data] [, Keywords=value] [, Properties=value])
Return Value
This function returns a reference to an ENVIVector object.
Arguments
Data
A supported vector format such as a shapefile, GeoPackage file, or ENVI Vector File (.evf
).
Methods
Properties
Properties marked as (Get) can be retrieved, but not set.
AUXILIARY_URI (Get)
This property retrieves a string array containing the URIs for the ENVIVector's associated files. If there are no associated files, !NULL is returned.
COORD_SYS (Get)
This property retrieves a reference to the ENVICoordSys associated with the vector.
DATA_RANGE (Get)
This property retrieves a four-element array containing the boundary of the entire data space, in the form [xmin, ymin, xmax, ymax]. The data space may contain a combination of rasters and vectors.
The DATA_RANGE values are taken directly from the data, and therefore use the coordinate system of the dataset.
RECORD_TYPE (Get)
A string specifying the type of the vector record. The values are:
RECORD_TYPE Strings |
---|
'MultiPoint' |
'MultiPointM' |
'MultiPointZ' |
'Point' |
'PointM' |
'PointZ' |
'Polygon' |
'PolygonM' |
'PolygonZ' |
'Polyline' |
'PolylineM' |
'PolylineZ' |
URI (Get)
A string that is a fully-qualified vector filepath.
Version History
ENVI 5 |
Introduced |
ENVI 5.3. 1 |
Added Dehydrate method |
ENVI 5.4 | Added Hydrate method |
API Version
4.2
See Also
ENVI, ENVI::OpenVector, ENVICoordSys, DownloadOSMVectors Task, ReprojectVector Task, VectorAttributeToROIs Task, VectorMaskRaster Task, VectorRecordsToROI Task, VectorRecordsToSeparateROI Task