AgConvertZonesToShapefile Task

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 parameters (Set, Get): INPUT_ZONES, OUTPUT_VECTOR_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_ZONES (required)

Specify an input ENVIAgZones object.

OUTPUT_VECTOR_URI (optional)

Specify a string with the fully qualified path and filename for OUTPUT_VECTOR.

Output Parameters

OUTPUT_VECTOR

This is a reference to the output vector. The file will be in shapefile format.

Methods

Execute

Parameter

ParameterNames

Properties

DESCRIPTION

DISPLAY_NAME

NAME

REVISION

TAGS

Version History

Crop Science 1.1

Introduced

See Also

ENVIAgZones, AgCreateZones Task