Contour List (3D Analyst)

License Level:BasicStandardAdvanced

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

ArcGIS for Desktop Basic: Requires 3D Analyst or Spatial Analyst
ArcGIS for Desktop Standard: Requires 3D Analyst or Spatial Analyst
ArcGIS for Desktop Advanced: Requires 3D Analyst or Spatial Analyst
3/7/2014