Converts a TIN to a raster.
Converts a TIN to a raster.
TIN Raster interpolates cell z-values from the input TIN at the specified resolution or sampling interval to produce the output raster.
Because interpolation of the input TIN surface occurs at regular intervals, some loss of information in the output raster should be expected. How well the raster represents the TIN is dependent on the resolution of the raster and the degree and interval of TIN surface variation. Generally, as the resolution is increased, the output raster more closely represents the TIN surface. Because the raster is a cell structure, it cannot maintain the hard and soft breakline edges that may be present in the TIN.
You can accept the TIN's XMIN,YMIN as the default origin, and the XMAX,YMAX as the upper right corner of the extent to generate a raster covering the full extent of the TIN. Alternatively, you can specify the output raster's origin, extent, and resolution or cell spacing to create a raster covering only a portion of the TIN.
The data_type option determines the data type of the output raster. Floating point preserves the accuracy of z-values, possibly at the expense of disk storage space. On average, integer grids require less storage space than floating-point grids when dealing with terrain data. If the accuracy requirements of your z-values are such that they can be represented by integer data, you may want to consider using the INT option.
The output raster may be file based or created as a raster dataset in a geodatabase. Supported file based formats include ESRI Grid, ERDAS Imagine, and TIFF. The format is determined based on the output name. If the output path references a geodatabase then a geodatabase raster will be created. If the output resides in a normal file folder and does not include a file extension an ESRI Grid will be produced. Use of the extensions ".img" and ".tif" will produce Imagine or TIFF files.
|Input TIN (Required)||
The TIN to be converted.
|Output Raster (Required)||
The output raster.
|Output Data Type (Optional)||
Choose whether the output raster will be floating-point or integer. By default, the output raster is floating-point.
|Interpolation method (Optional)||
Choose an interpolation method. By default, cell values are calculated using the LINEAR method.
|Sampling Distance (Optional)||
Choose the sampling distance.
|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.
# 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") 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: creating a raster out of a TIN gp.tinraster_3d ("dtm_tin", "TinRaster") except: # If an error occurred while running the tool print the error messages. print gp.GetMessages()