Clip Raster with Polygons

Running programmatically

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

Inputs:

Output:

Examples:

Input raster and clip polygons

clip0.jpg

Result raster

clip1.jpg

Notes:

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name ClipRasterWithPolygons
<input raster> A String representing the input raster dataset.
<output raster> A String - the full name of the output raster.
<clip dataset> Clip 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, "ClipRasterWithPolygons", "input raster", "output raster", "clip dataset"])
.NET using ETSRun.exe StartInfo.FileName = ETSPath
StartInfo.Arguments = "ClipRasterWithPolygons" "input raster" "output raster" "clip dataset"
.NET using ETSOutX.dll ClipRasterWithPolygons(input raster, output raster, clip dataset)
ArcPy arcpy.ClipRasterWithPolygons("input raster", "output raster", "clip dataset")

Notes:

(Go to TOP)