This task converts an ENVIAgZones object to a shapefile.

This task requires a separate license for the ENVI Crop Science Module; contact your sales representative for more information.

Example


; Start the application
e = ENVI()
 
; Open a DEM file
File = Filepath('FieldDEM.dat', $
  Subdir=['data','crop_science'], $
  Root_Dir=e.Root_Dir)
Raster = e.OpenRaster(File)
 
; Create management zones
Task = ENVITask('AgCreateZones')
Task.INPUT_RASTER = Raster
Task.MINIMUM_AREA = 2023
Task.NUMBER_OF_APPLICATION_CATEGORIES = 4
Task.Execute
 
; Convert the zones object to a shapefile
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 "Set" are those that you can set to specific values. 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:

AddParameter

Execute

Parameter

ParameterNames

RemoveParameter

Properties


This task inherits the following properties from ENVITask:

COMMUTE_ON_DOWNSAMPLE

COMMUTE_ON_SUBSET

DESCRIPTION

DISPLAY_NAME

NAME

REVISION

TAGS

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


Crop Science 1.1

Introduced

See Also


ENVIAgZones, AgCreateZones Task