Surface Contour (3D Analyst)

Resumen

Creates contour lines derived using a terrain or TIN surface.

Learn more about how Surface Contour (3D Analyst) works

Ilustración

TIN Contour illustration

Uso

Sintaxis

SurfaceContour_3d (in_surface, out_feature_class, interval, {base_contour}, {contour_field}, {contour_field_precision}, {index_interval}, {index_interval_field}, {z_factor}, {pyramid_level_resolution})
ParámetroExplicaciónTipo de datos
in_surface

The input terrain or TIN dataset.

Terrain Layer; TIN Layer
out_feature_class

The output feature class.

Feature Class
interval

The interval between the contours.

Double
base_contour
(Opcional)

Along with the index interval, the base height is used to determine what contours are produced. The base height is a starting point from which the index interval is either added or subtracted. By default, the base contour is 0.0.

Double
contour_field
(Opcional)

The field that stores the contour value associated with each line in the output feature class.

String
contour_field_precision
(Opcional)

The precision of the contour field. Zero specifies an integer, and the numbers 1–9 indicate how many decimal places the field will contain. By default, the field will be an integer (0).

Long
index_interval
(Opcional)

An optional value that specifies the difference in elevation between index contours. This value is typically five times larger than the contour interval. Use of this parameter adds an integer field defined by the Index Interval Field to the attribute table of the output feature class, where a value of 1 defines index contours.

Double
index_interval_field
(Opcional)

The name of the field that specifies whether an isoline is an index contour. This will only be used if the Index Interval is defined. By default, the field name is Index.

String
z_factor
(Opcional)

Specifies a factor by which to multiply the surface heights for converting Z units to match XY units. The Z Factor parameter only affects results for rasters and TINs, not terrain datasets.

Double
pyramid_level_resolution
(Opcional)

The z-tolerance or window size resolution of the terrain pyramid level that will be used by this tool. The default is 0, or full resolution.

Double

Ejemplo de código

SurfaceContour example 1 (Python window)

The following sample demonstrates the use of this tool in the Python window:

import arcpy
from arcpy import env

arcpy.CheckOutExtension("3D")
env.workspace = "C:/data"
arcpy.SurfaceContour_3d("sample.gdb/featuredataset/terrain", "contour.shp", 10)
SurfaceContour example 2 (stand-alone script)

The following sample demonstrates the use of this tool in a stand-alone Python script:

'''****************************************************************************
Name: SurfaceContour Example
Description: This script demonstrates how to use the 
             SurfaceContour tool.
             
****************************************************************************'''

# Import system modules
import arcpy
from arcpy import env

# Obtain a license for the ArcGIS 3D Analyst extension
arcpy.CheckOutExtension("3D")

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

# Set Local Variables
inSurface = "sample.gdb/featuredataset/terrain"
outContour = arcpy.CreateUniqueName("contour.shp")

#Execute SurfaceContour
arcpy.SurfaceContour_3d(inSurface, outContour, 10)

del inSurface, outContour, arcpy

Entornos

Temas relacionados

Información de licencia

ArcView: Requiere 3D Analyst
ArcEditor: Requiere 3D Analyst
ArcInfo: Requiere 3D Analyst

7/10/2012