4-Neighbor Connectivity
Cells are connected only through shared edges.
Best used when: diagonal contact should remain separate.
Convert connected raster cells with the same value/class into vector polygon features.
Shared Raster ToolsEnd-User DocumentationTheory + Formula + ParametersConvert connected raster cells with the same value/class into vector polygon features.
Cells are connected only through shared edges.
Cells connected by edges or corners are considered neighbors.
| Input | Type | Requirement | Description |
|---|---|---|---|
| Input Raster | raster | Required | Raster layer to polygonize. One raster band is converted to vector polygon regions. |
| Parameter | Default | Choices / Range | How to Use It |
|---|---|---|---|
| Raster Band | — | — | Select one band from the selected raster. Available bands are loaded from the Raster Info application; arbitrary band numbers are not accepted by the user interface. |
| Pixel Connectivity | 4 | 4-neighbour, 8-neighbour | 4-neighbour joins pixels through shared edges. 8-neighbour also joins diagonally touching pixels. |
| Exclude Nodata | On | — | Do not create polygons for the raster nodata/masked region. |
| Exclude Zero | Off | — | Ignore pixels with value 0. Useful for classification rasters where zero represents background. |
| Maximum Polygon Features | 250000 | 1 to 1000000 | Safety limit. Polygonization stops with an error if the output would exceed this number of polygon features. |
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.