Pixel-Center Masking
Includes pixels according to the standard rasterization/mask rule around pixel centers/line traversal.
Best used when: a conservative standard raster mask is desired.
Clip a raster using a polygon/multipolygon boundary and optionally crop the output extent to the mask.
Shared Raster ToolsEnd-User DocumentationTheory + Formula + ParametersClip a raster using a polygon/multipolygon boundary and optionally crop the output extent to the mask.
Includes pixels according to the standard rasterization/mask rule around pixel centers/line traversal.
Includes every pixel touched by the polygon boundary.
| Input | Type | Requirement | Description |
|---|---|---|---|
| Raster Input | raster | Required | Raster to be clipped. |
| Clip Mask | vector | Required | Polygon or multipolygon layer used as the clipping boundary. |
| Parameter | Default | Choices / Range | How to Use It |
|---|---|---|---|
| Raster Bands | — | — | 1-based band numbers. Leave empty to clip all raster bands. |
| Crop to Mask Extent | On | — | Reduce the output extent to the mask bounding box. |
| Include All Touched Pixels | Off | — | When enabled, every pixel touched by the mask polygon is included. When disabled, standard pixel-center/Bresenham behavior is used. |
| Output Nodata | -9999.0 | — | Preferred nodata for numeric rasters. If it cannot be represented by the source dtype it is adjusted automatically. RGB/RGBA imagery uses an internal transparency mask instead of forcing this value. |
The result should be interpreted according to the selected method and the physical meaning of the input data. Preserve source units, coordinate reference information, NoData meaning, acquisition date, and preprocessing level when comparing results.