Erase Raster with Polygons

Running programmatically

Erases a raster dataset with the polygons of the input polygon feature class.

Inputs:

Output:

Examples:

Input raster and erase polygons

clip0.jpg

Result raster

erase1.jpg

Notes:

Running Programmatically

(Go to TOP)

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

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, "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:

(Go to TOP)