Assigns a native status classification to each occurrence record by matching validated coordinates to WCVP distribution data via WGSRPD Level 3 polygons.
Native status is determined in two stages, working one taxon at a time.
Stage 1 — classify WGSRPD areas. The internal Distributions dataset
links each WGSRPD Level 3 area code to WCVP flags (introduced, extinct,
location_doubtful). These flags are resolved into a single status label
with the following priority:
If
location_doubtful == 1, the area is classified as"location_doubtful"regardless of other flags.Otherwise, if
introduced == 1, the area is"introduced".Otherwise, if
extinct == 1, the area is"extinct".If all three flags are
0, the area is"native".Any remaining case defaults to
"unknown".
Stage 2 — spatial intersection. For each taxon, the validated
occurrence points are overlaid on the WGSRPD Level 3 polygon map (via
terra::extract()) to assign an area code to each record. That area code
is then looked up in the classified distribution table. Records falling
outside any documented area, or whose taxon has no entry in
Distributions, are labelled "unknown".
