Syntax

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.

Properties

INPUT_RASTER (required)

Specify a single-band raster from which to generate contour lines; for example, a DEM, gridded bathymetry data, or gridded magnetic anomaly data.

LEVELS (required)

Specify an array of data values to create create contours for. You can provide discrete values; for example, [100, 500, 750] to create contour lines at 100, 500, and 700 meters elevation. Or, use ENVIGenerateIndexArrayTask to create an array of values as input to the LEVELS property. See the code example in the More Example section.

MINIMUM_LENGTH (optional)

Specify the minimum contour length to be considered. Lines shorter than this value will be discarded. This property is not set by default, which means that all contours will be included in the output. The units depend on the coordinate system of the input raster.

OUTPUT_VECTOR

This is a reference to the output vector.

OUTPUT_VECTOR_URI (optional)

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

More Examples

This example plots contour lines every 5 meters in a DEM. It uses ENVIRasterStatisticsTask to get the minimum and maximum elevation values from a DEM. These are passed to ENVIGenerateIndexArrayTask, which creates the array of values needed for the LEVELS property.