COUNTRY_DERIVED_FROM_COORDINATES - AtlasOfLivingAustralia/ala-dataquality GitHub Wiki

Description

If country and/or countryCode are not supplied or the supplied values cannot be matched to a known country, an attempt will be made to find the country the records are from using a spatial search based on the supplied coordinates. The derived country and countryCode will be stored as processed values.

Related fields

  • dwc:decimalLatitude
  • dwc:verbatimLatitude
  • dwc:verbatimCoordinates
  • dwc:geodeticDatum
  • dwc:countryCode
  • dwc:country
  • dwc:decimalLongitude
  • dwc:verbatimLongitude

Implications and caveats

Severity: Warning

If no country has been supplied, there is no way to verify whether the supplied coordinates are correct, or even in the ball park. For example, all HumanObservation records in ALA that are ostensibly from Europe were supplied with coordinates only and had the country derived from the coordinates. These records have to be assumed to be Australian records with incorrect coordinates, but are not flagged by any other assertions that indicate that the coordinates might be incorrect.

Data custodian recommendations

Never supply only coordinates. Always supply complete location information, at the very least country (or waterBody for marine records). This way, if the coordinates happen to be outrageously incorrect, the records can be marked with more informative flags, like COUNTRY_COORDINATE_MISMATCH.

Code reference

OccurrenceIssue.COUNTRY_DERIVED_FROM_COORDINATES

The country is changed to the alternative country name matched as listed in https://github.com/gbif/pipelines/blob/dev/sdks/core/src/main/resources/confused-country-pairs.txt where "add_issue=true".

Replaces

COUNTRY_INFERRED_FROM_COORDINATES