Features to Raster

Running programmatically

Converts features (Points, Polylines, Polygons) to a raster dataset.

Inputs:

Outputs:

Examples:

Source polygons

Result Raster

Notes:

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name FeaturesToRaster
<input dataset> A String representing the input dataset.
<output raster> A String - the full name of the output raster.
<cell size> A Double representing the cell size.
<value field> A String representing the name of the field which values are going to be used for Z values.
{priority field} A String representing the name of the field which values are going to be used define the priority of the features. See explanations above.
{thick Line} For polylines only - if True will include all cells touched by the polyline.
{reference dataset} A String - the full path to the reference dataset.

Running the function

ETSPath used in the table below is the full path to ETSRun.exe (E.G. "C:\Program Files\ETSpatial Techniques\ETSurface\ETSRun.exe")

Language Syntax
Python subprocess.call([ETSPath, "FeaturesToRaster", "input dataset", "output raster", "cell size", "value field", "priority field", "thick line", "reference dataset"])
.NET using ETSRun.exe StartInfo.FileName = ETSPath
StartInfo.Arguments = "FeaturesToRaster" "input dataset" "output raster" "cell size" "value field" "priority field" "thick line" "reference dataset"
.NET using ETSOutX.dll FeaturesToRaster(input dataset, output raster, cell size, value field, priority field, thick line, reference dataset)
ArcPy arcpy.FeaturesToRaster("input dataset", "output raster", "cell size", "value field", "priority field", "thick line", "reference dataset")

Notes:

(Go to TOP)