gbif/pipelines

Index data present in Protected Areas

Opened this issue · 1 comments

UNEP-WCMC provide a database of Protected Areas (PAs) at https://www.protectedplanet.net/.

For pipelines we should determine the set of protected areas which include the occurrence, in the same way as GADM interpretation. Note there may be more than one area, so this is an (unordered) array.

There will need to be a new GbifTerm, wdpaId, "World Database of Protected Areas identifier".

The identifiers are integers, and we can store them as integers. They should be available on occurrence records, in searches and in DWCA occurrence downloads.

We'll need an API to map the integers to more information (names etc) for search and use, but that is part of gbif/geocode#21

Example geocode response: https://api.gbif-dev.org/v1/geocode/reverse?lat=46.90172&lng=8.09375

I did the implementation in pipelines in the branch #891_protected_areas but I won't merge it until we progress with the rest of the things(especially the geocode-ws changes to be deployed to production and to wait for the needed feedback)