Raster to TIN (3D Analyst)

Converts a raster to a TIN.

Learn more about how Raster TIN (3D Analyst) works


Illustration

Create TIN from Raster illustration

Usage tips

Syntax

RasterTin_3d (in_raster, out_tin, z_tolerance, max_points, z_factor)
Parameter Explanation Datatype
Input raster (Required)

The input raster.

Raster Layer
Output TIN (Required)

The output TIN.

TIN
Z Tolerance (Optional)

The maximum allowable difference in (z units) between the height of the input raster and the height of the output TIN. By default, the z tolerance is 1/10 of the z range of the input raster.

Double
Maximum Number of Points (Optional)

The maximum number of points that will be added to the TIN before the process is terminated. By default, the process will continue until all the points are added.

Long
Z Factor (Optional)

The factor that the heights of the resultant TIN will be multiplied from those of the input raster. Used to convert z units to x and y units.

Double
Data types for geoprocessing tool parameters

Script Example

# Purpose: Create a TIN from a raster surface.

# 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 from a raster
    gp.rastertin_3d ("elev_grid", "elev_tin", "2", "1000")

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
  • TIN to Raster (3D Analyst)