Contour List (3D Analyst)

Summary

Creates a feature class of selected contour values from a raster surface.

Learn more about how Contouring works

Usage

Syntax

ContourList_3d (in_raster, out_polyline_features, contour_values)
ParameterExplanationData Type
in_raster

The input surface raster.

Raster Layer
out_polyline_features

Output contour polyline features.

Feature Class
contour_values
[contour_value,...]

List of z-values for which to create contours.

Double

Code Sample

ContourList example 1 (Python window)

This example creates contours for three elevation values from an Esri Grid raster and outputs them as a shapefile.

import arcpy
from arcpy import env  
env.workspace = "C:/data"
arcpy.ContourList_3d("elevation", "C:/sapyexamples/output/outcontourlist.shp", 
            "600; 935; 1237.4")
ContourList example 2 (stand-alone script)

This example creates contours for three elevation values from an Esri Grid raster and outputs them as a shapefile.

# Name: ContourList_3d_Ex_02.py
# Description: Creates contours or isolines based on a list of contour values.
# Requirements: 3D Analyst Extension

# Import system modules
import arcpy
from arcpy import env

# Set environment settings
env.workspace = "C:/data"

# Set local variables
inRaster = "elevation"
contourIntervalList = "600; 935; 1237.4"
outContours = "C:/output/outcontlist.shp"

# Check out the ArcGIS 3D Analyst extension license
arcpy.CheckOutExtension("3D")

# Execute ContourList
arcpy.ContourList_3d(inRaster, outContours, contourIntervalList)

Environments

Related Topics

Licensing Information

ArcView: Requires 3D Analyst or Spatial Analyst
ArcEditor: Requires 3D Analyst or Spatial Analyst
ArcInfo: Requires 3D Analyst or Spatial Analyst

6/10/2013