uw-cryo / coincident

Search and analysis of STV Precursor Coincident Datasets
https://coincident.readthedocs.io
MIT License
3 stars 1 forks source link

WESM.gpkg coordinate ordering changed! #29

Open scottyhq opened 4 days ago

scottyhq commented 4 days ago

Very strange, but sometime recently, the coordinate ordering in the USGS WESM.gpkg changed, causing our search and tests to fail 🤦 :

ogrinfo -so -al /vsicurl/https://prd-tnm.s3.amazonaws.com/StagedProducts/Elevation/metadata/WESM.gpkg | grep Extent
#Extent: (13.232000, -179.250067) - (71.507000, 179.854651)
ogrinfo -so -al WESM.gpkg | grep Extent            
#Extent: (-179.250067, 13.232000) - (179.854651, 71.507000)

(maybe last update on 2024-11-24T06:33:34.000Z according to https://prd-tnm.s3.amazonaws.com/index.html?prefix=StagedProducts/Elevation/metadata/)

I'll setup a workflow to run tests nightly to keep track better track of these sorts of changes... Also sent an email to USGS.

dshean commented 4 days ago

Good catch! Did the crs and axis order definition change? Are we loading that directly, or assuming 4326?

scottyhq commented 4 days ago

Did the crs and axis order definition change? Are we loading that directly, or assuming 4326?

No, unchanged from https://epsg.io/4269 (with Data axis to CRS axis mapping: 2,1). But the coordinates themselves have all changed from (lon, lat) to (lat, lon). So opening WESM.gpkg in QGIS now looks like this :)

image