Erases a raster dataset with the polygons of the input polygon feature class.
Input raster and erase polygons
Result raster
Parameters
Expression | Explanation |
---|---|
Function Name | EraseRasterWithPolygons |
<input raster> | A String representing the input raster dataset. |
<output raster> | A String - the full name of the output raster. |
<erase dataset> | Erase Polygon 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, "EraseRasterWithPolygons", "input raster", "output raster", "erase dataset"]) |
.NET using ETSRun.exe | StartInfo.FileName = ETSPath StartInfo.Arguments = "EraseRasterWithPolygons" "input raster" "output raster" "erase dataset" |
.NET using ETSOutX.dll | EraseRasterWithPolygons(input raster, output raster, erase dataset) |
ArcPy | arcpy.EraseRasterWithPolygons("input raster", "output raster", erase 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.