bdq
bdq copied to clipboard
TG2-AMENDMENT_COORDINATES_TRANSPOSED
TestField | Value |
---|---|
GUID | f2b4a50a-6b2f-4930-b9df-da87b6a21082 |
Label | AMENDMENT_COORDINATES_TRANSPOSED |
Description | Proposes an amendment of the signs of dwc:decimalLatitude and/or dwc:decimalLongitude to align the location with the dwc:countryCode. |
TestType | Amendment |
Darwin Core Class | dcterms:Location |
Information Elements ActedUpon | dwc:decimalLatitude |
dwc:decimalLongitude | |
Information Elements Consulted | dwc:countryCode |
Expected Response | INTERNAL_PREREQUISITES_NOT_MET if any of dwc:decimalLatitude or dwc:decimalLongitude or dwc:countryCode are bdq:Empty; AMENDED dwc:decimalLatitude and dwc:decimalLongitude if the coordinates were transposed or one or more of the signs of the coordinates were reversed to align the location with dwc:countryCode according to the bdq:sourceAuthority; otherwise NOT_AMENDED |
Data Quality Dimension | Consistency |
Term-Actions | COORDINATES_TRANSPOSED |
Parameter(s) | bdq:sourceAuthority |
Source Authority | bdq:sourceAuthority default = "10m-admin-1 boundaries UNION with Exclusive Economic Zones" {[https://www.naturalearthdata.com/downloads/10m-cultural-vectors/10m-admin-1-states-provinces/] spatial UNION [https://www.marineregions.org/downloads.php#marbound]} |
Specification Last Updated | 2024-11-11 |
Examples | [dwc:decimalLatitude="25.46", dwc:decimalLongitude="135.87", dwc:countryCode="AU": Response.status=AMENDED, Response.result=dwc:decimalLatitude="-25.46", dwc:decimalLongitude="135.87", Response.comment="dwc:decimalLatitude sign reversed to fit dwc:countryCode=AU"] |
[dwc:decimalLatitude="25.46", dwc:decimalLongitude="135.87", dwc:countryCode="AX": Response.status=NOT_AMENDED, Response.result=, Response.comment="dwc:countryCode is uninterpretable"] | |
Source | iDigBio, GBIF, BISON, FP, Kurator, ALA |
References |
|
Example Implementations (Mechanisms) | Kurator |
Link to Specification Source Code | https://github.com/FilteredPush/geo_ref_qc/blob/master/src/main/java/org/filteredpush/qc/georeference/DwCGeoRefDQ.java#L324 |
Notes | The dwc:geodeticDatum is not necessary for this test. The maximum positional shift between any geographic coordinate reference system and WGS84 is less than 6 km, so any hemisphere test that relies on a country code for consistency would not be affected by the potential shift. The prior VALIDATION for this test is VALIDATION_COORDINATE_COUNTRYCODE_CONSISTENT (adb27d29-9f0d-4d52-b760-a77ba57a69c9). |
Comment by Paula Zermoglio (@pzermoglio) migrated from spreadsheet: Should this be two separate tests?
Comment by Paul Morris (@chicoreus) migrated from spreadsheet: Corresponding validation is COUNTRY_COORDINATE_MISMATCH (VALIDATION_COORDINATE_COUNTRY_INCONSISTENT)
This one still has problems. I would replace the current Expected Response
"INTERNAL_PREREQUISITES_NOT_MET if dwc:decimalLatitude and dwc:decimalLongitude are EMPTY or the values of dwc:decimalLatitude and dwc:decimalLongitude passed to the dwc:countryCode specified source authority service were not in the same spatial reference system as that of the service; AMENDED if the supplied geographic coordinates were transposed or one or more of the signs were reversed (negated) to place the record in the region defined by the supplied dwc:countryCode; otherwise NOT_CHANGED"
with
"INTERNAL_PREREQUISITES_NOT_MET if any of dwc:decimalLatitude or dwc:decimalLongitude or dwc:countryCode is EMPTY; AMENDED if the supplied geographic coordinates were transposed or one or more of the signs were reversed (negated) to place the record in the region defined by the supplied dwc:countryCode; otherwise NOT_CHANGED"
For the Notes, I would add
"The dwc:geodeticDatum is not necessary for this test. The maximum positional shift between any geographic coordinate reference system and WGS84 is less than 6 km, so any hemisphere test that relies on a country code for consistency would not be affected by the potential shift."
We have a quorum, so edited accordingly, with one change "is" to "are".
Updated Note #50 to VALIDATION_COORDINATE_COUNTRYCODE_CONSISTENT (adb27d29-9f0d-4d52-b760-a77ba57a69c9)
Splitting bdqffdq:Information Elements into "Information Elements ActedUpon" and "Information Elements Consulted". Also changed "Field" to "TestField" and "Output Type" to "TestType".