Vectorization

Transforms rasters into vectors.


Description

A processing block that converts raster data into vector data.

See this block on the marketplace.

How it works

The input for this block should be a thematic raster with relatively few classes so that the output geometry is meaningful. Examples: outputs from the processing blocks K-Means Clustering, Land Cover or NDVI Threshold.

ParameterOverview
n_sieve_pixelsinteger / required
A minimum number of pixels in each geometry patch. The default value is 1.
dst_crsstring
An output coordinate reference system. Set with an EPSG code. The default value is EPSG:4326.
src_bandinteger
A band number to use for vectorization. The default value is 1 (first band).
n_connectivity_pixelsinteger
A number of connected pixels required to make a patch. The default value is 4. Another possible value is 8, it includes diagonal connections.

Example

A workflow with the following blocks:

{
  "oneatlas-spot-aoiclipped:1": {
    "bbox": null,
    "time": null,
    "limit": 3,
    "intersects": {
      "type": "Polygon",
      "coordinates": [
        [
          [18.42631, -33.912732],
          [18.420799, -33.922741],
          [18.44355, -33.924784],
          [18.441069, -33.913781],
          [18.42631, -33.912732]
        ]
      ]
    },
    "zoom_level": 17
  },
  "k-means-clustering:1": {
    "n_clusters": 8
  },
  "vectorising:1": {
    "n_sieve_pixels": 20,
    "dst_crs": "EPSG:4326",
    "src_band": 2,
    "n_connectivity_pixels": 8
  }
}

Capabilities

Input

Output

To know more please check the block capabilities specifications.