/

Count Objects

Counts the number of vector objects.


Description

A processing block that computes the number of geometry features and geometry types (Point, LineString, Polygon etc.) extracted by other processing blocks such as:

See this block on the marketplace.

How it works

This block has no configurable JSON parameters.

The output is a JSON file count_objects.json containing the number of occurrences per geometry type:

[Counter({'LineString': 2621, 'Polygon': 46}), Counter({'Polygon': 5, 'MultiPolygon': 1}), Counter({'Polygon': 4087, 'MultiPolygon': 93})]

Example

A workflow with the following blocks:

{
  "oneatlas-spot-aoiclipped:1": {
    "ids": null,
    "time": "2018-01-01T00:00:00+00:00/2020-12-31T23:59:59+00:00",
    "limit": 1,
    "zoom_level": 17,
    "time_series": null,
    "max_cloud_cover": 100,
    "panchromatic_band": false,
    "bbox": [12.099895, 54.143786, 12.105646, 54.153186]
  },
  "tiling:1": {
    "nodata": null,
    "tile_width": 768,
    "tile_height": 768,
    "match_extents": false,
    "output_prefix": "",
    "augmentation_factor": 1,
    "discard_empty_tiles": true
  },
  "ship-detection:1": {},
  "up42-countobjects:1": {}
}

Capabilities

Input

Output

To know more please check the block capabilities specifications.