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

Result Raster

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. |
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:
<> - required parameter
{} - optional parameter
The argument separator for StartInfo.Arguments is space. If a string might contain a space, you need to double quote it.