UP42 Count Objects

Computes the number of geometry features and geometry types extracted by other processing blocks.


For more information, please read the block description.

Block type: PROCESSING

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

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

Supported parameters

This block takes no input parameters.

Example usage

Example running a full Count Objects workflow (SPOT 6/7 streaming data block → Tiling → Ship Detection → Count Objects).

  "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": [
  "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": {}

Output format

Output format is a JSON.

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