Interpolates a raster surface from contour polylines.
Output raster (DEM).

Parameters
| Expression | Explanation |
|---|---|
| Function Name | ContoursToRaster |
| <input dataset> | A String representing the input layer. Must be of Polyline type. |
| <output raster> | A String - the full name of the output raster. |
| <elevation field> | A String representing the name of the field which values are going to be used for interpolation. Use "Shape" to use the feature Z values. |
| <cell size> | A Double representing the cell size of the output raster. |
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, "ContoursToRaster", "input dataset", "output raster", "elevation field", "cell size"]) |
| .NET using ETSRun.exe | StartInfo.FileName = ETSPath StartInfo.Arguments = "ContoursToRaster" "input dataset" "output raster" "elevation field" "cell size" |
| .NET using ETSOutX.dll | ContoursToRaster(input dataset, output raster, elevation field, cell size) |
| ArcPy | arcpy.ContoursToRaster("input dataset", "output raster", "elevation field", "cell size") |
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.