Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


  >  Docs Center  >  ENVI API  >  Crop Science  >  ENVIAgConvertZonesToShapefileTask

ENVIAgConvertZonesToShapefileTask

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


; 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.OUTPUT_VECTOR_URI = e.GetTemporaryFilename('shp')
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


1.1

Introduced

See Also


ENVIAgZones, ENVIAgCreateZonesTask



© 2018 Harris Geospatial Solutions, Inc. |  Privacy Policy
My Account    |    Store    |    Contact Us