ENVIAgConvertZonesToShapefileTask
This task converts an ENVIAgZones object to a shapefile.
This task is part of ENVI Crop Science, which requires a separate license and installation.
Example
e = ENVI()
File = Filepath('FieldDEM.dat', $
Subdir=['data','crop_science'], $
Root_Dir=e.Root_Dir)
Raster = e.OpenRaster(File)
Task = ENVITask('AgCreateZones')
Task.INPUT_RASTER = Raster
Task.MINIMUM_AREA = 2023
Task.NUMBER_OF_APPLICATION_CATEGORIES = 4
Task.Execute
shapefileTask = ENVITask('AgConvertZonesToShapefile')
shapefileTask.INPUT_ZONES = Task.OUTPUT_ZONES
shapefileTask.Execute
Syntax
Result = ENVITask('AgConvertZonesToShapefile')
Input properties (Set, Get): INPUT_ZONES, OUTPUT_VECTOR_URI
Output properties (Get only): OUTPUT_VECTOR
Properties marked as "Init" are applied only during the initial creation of the object. Properties marked as "Set" are those that you can set to specific values after the object has been created. You can also retrieve their current values any time. Properties marked as "Get" are those whose values you can retrieve but not set.
Methods
This task inherits the following methods from ENVITask. See the ENVITask topic in ENVI Help.
- AddParameter
- Execute
- Parameter
- ParameterNames
- RemoveParameters
Properties
This task inherits the following properties from ENVITask:
COMMUTE_ON_DOWNSAMPLE
COMMUTE_ON_SUBSET
DESCRIPTION
DISPLAY_NAME
NAME
REVISION
See the ENVITask topic in ENVI Help for details.
This task also contains the following properties:
INPUT_ZONES (required)
Specify an input ENVIAgZones object.
OUTPUT_VECTOR
This is a reference to the output ENVIVector object in shapefile format.
OUTPUT_VECTOR_URI (optional)
Specify a string with the fully qualified path and filename for OUTPUT_VECTOR.
Version History
See Also
ENVIAgZones, ENVIAgCreateZonesTask