TIN to Raster (3D Analyst)

Converts a TIN to a raster.

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


Create Raster From TIN illustration

Usage tips


TinRaster_3d (in_tin, out_raster, data_type, method, sample_distance, z_factor)
Parameter Explanation Datatype
Input TIN (Required)

The TIN to be converted.

Tin Layer
Output Raster (Required)

The output raster.

Raster Dataset
Output Data Type (Optional)

Choose whether the output raster will be floating-point or integer. By default, the output raster is floating-point.

  • FLOAT—The output raster is created with floating-point cell values.
  • INT—The output raster is created using integer cell values. This option will round the output z values to the nearest whole number and write an integer to each raster cell value.

Interpolation method (Optional)

Choose an interpolation method. By default, cell values are calculated using the LINEAR method.

  • LINEAR—Calculates cell values by using linear interpolation of the TIN triangles.
  • NATURAL_NEIGHBORS—Calculates cell values by using natural neighbors interpolation of TIN triangles.

Sampling Distance (Optional)

Choose the sampling distance.

  • OBSERVATIONS—The number of cells on the longest dimension of the output raster. Will affect the cell size.
  • CELLSIZE—The cell size of the output raster. Will affect the number of observations.

Z Factor (Optional)

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

Data types for geoprocessing tool parameters

Script Example

# Purpose: Create a raster using a TIN.

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

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

    # 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: creating a raster out of a TIN
    gp.tinraster_3d ("dtm_tin", "TinRaster")

    # 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
  • Create TIN (3D Analyst)