Contours from Raster

Open Table of Contents ToolBox Implementation
Interpolates contours from a raster. The contours can be created as PolylineZs with constant Z values representing the elevation.

Inputs:

  • A raster dataset.
  • Base value - the contour from which to begin generation of contours.
  • Contour interval - Z value difference between adjacent contours in map units.
  • Option for interpolating 3D contours.
  • Option for smoothing the contours.
     

Outputs:

  • New polyline feature class. If the option for creating 3D contours is used the output will be PolylineZ feature class.
  • A new field ET_Height is added to the attribute table. The values of this field contain the Z value for each contour.

Notes:

  • The smooth polylines option might be time consuming.
  • The input raster must have a projected coordinate system.

ToolBox implementation

Command line syntax

ETS_GPContoursFromRaster <Input Raster>  <Out Feature Class> <Base Contour> <Contour Interval> {3D Contours}

Parameters

Expression Explanation
<Input Raster> A Raster dataset or Raster layer
<Out Feature Class> A String - the full name of the output feature class.
<Base Contour> A Double representing the Z level of the contour from which to begin generation of contours.
<Contour Interval> A Double representing the contour interval
 {3D Contours}  A Boolean indicating whether the output to be Polyline or PolylineZ feature class 

Scripting syntax

ETS_GPContoursFromRaster (Input Raster, Out Feature Class , Base Contour, Contour Interval, 3D Contours)

See the explanations above:
<> - required parameter
{} - optional parameter

All ESRI products mentioned are trademarks of Environmental Systems Research Institute, Inc.
Copyright: Ianko Tchoukanski