Terrain to TIN (3D Analyst)

Converts a terrain dataset to a file based TIN.


Usage tips

Syntax

TerrainToTin_3d (in_terrain, out_tin, pyramid_level_resolution, max_nodes, clip_to_extent)
Parameter Explanation Datatype
Input Terrain (Required)

The terrain dataset to be converted.

Terrain Layer
Output TIN (Required)

The TIN to be created.

TIN
Pyramid Level Resolution (Optional)

The resolution, given in z-tolerance, of the pyramid level to use for conversion. The default is 0, full resolution.

Double
Maximum Number of Nodes (Optional)

The maximum number of nodes permitted in the output TIN. The tool will return an error if the conversion properties (i.e. analysis extent and pyramid level) would produce a TIN that exceeds this size. The default is 5 million.

Long
Clip to Extent (Optional)

Performs a neatline clip on the output TIN. The analysis extent is used as the clip polygon. This only has an effect if the analysis extent is defined and it's smaller than the extent of the input terrain.

Boolean
Data types for geoprocessing tool parameters

Script Example

# Purpose: Create a TIN using an input Terrain.

# Create the Geoprocessor object
import arcgisscripting
gp = arcgisscripting.create()

#Check out the 3D Analyst extension
gp.CheckOutExtension ("3D")

try:
    # Set the workspace (to avoid having to type in the full path to the data every time)
    gp.workspace = "D:/Docs1/GP/GPOutput"

    # Select the 3D Analyst Toolbox
    gp.toolbox = "3D"

    # Process: create a TIN using a Terrain
    gp.terraintotin_3d("napa_terrain.mdb\\napa_buildtest\\test_terrain", "TerrainTin")

except:
    # If an error occurred while running the tool print the error messages.
    print gp.GetMessages()

See Also

  • An overview of the 3D Analyst Conversion toolset
  • Raster to TIN (3D Analyst)
  • Terrain to Raster (3D Analyst)
  • TIN to Raster (3D Analyst)