Skip to content

Totals appear to be doubled #90

@timrobertson100

Description

@timrobertson100

Using vt2geojson you can see that totals are doubled:

vt2geojson 'https://api.gbif.org/v2/map/occurrence/density/1/1/0.mvt?srs=EPSG:3857&bin=hex&hexPerTile=17&verbose=true&year=2000,2000'
...
      "properties": {
        "2000": 1157,
        "total": 2314
      }
...
      },
      "properties": {
        "2000": 94,
        "total": 188
      }

This happens whether the verbose mode is used or otherwise.

This is happening after the tile is read from the HBase table as I discovered it when doing a clickhouse backend and saw the same behaviour. Interestingly, if the backend puts the value in the tile using a different name e.g. total2, then it passes through correctly. Something is rewriting the total, probably accumulating all values for the years and the original total and then replacing the total value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions