You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was expecting that STACIT and GTI drivers would recognize a STAC item's CRS in the same way, but this is currently only true if an item uses proj:epsg.
For the STAC projection extension, it's possible to specify proj:projjson and proj:wkt2 (and proj:epsg has been deprecated in favor of proj:code... I see those changes for STACIT are being worked on here #10773).
If I understand correctly, the STACIT driver chooses the CRS with the following order (1. epsg code, 2. wkt2, 3. projjson)
The docs are currently accurate in that the GTI driver only seems to look at proj:epsg and proj:transform, but it would be great if these similar drivers worked consistently with the CRS parsing.
It can make use of fields proj:epsg and proj:transform from the Projection Extension Specification, to correctly infer the appropriate projection and resolution.
The text was updated successfully, but these errors were encountered:
Feature description
I was expecting that STACIT and GTI drivers would recognize a STAC item's CRS in the same way, but this is currently only true if an item uses
proj:epsg
.For the STAC projection extension, it's possible to specify
proj:projjson
andproj:wkt2
(and proj:epsg has been deprecated in favor ofproj:code
... I see those changes for STACIT are being worked on here #10773).If I understand correctly, the STACIT driver chooses the CRS with the following order (1. epsg code, 2. wkt2, 3. projjson)
gdal/frmts/stacit/stacitdataset.cpp
Lines 221 to 237 in 42ca02c
But the GTI driver currently does not read projjson or wkt2:
gdal/frmts/gti/gdaltileindexdataset.cpp
Lines 1171 to 1178 in 42ca02c
Additional context
Here is a valid STAC item without epsg, but with wkt2:
For example, here is a STAC Item without an EPSG code:
https://landsatlook.usgs.gov/stac-server/collections/landsat-c2l2alb-sr/items/LC09_L2SP_062047_20241216_20241217_02_A1_SR
And here is a valid item with projjson:
https://raw.githubusercontent.com/uw-cryo/stv-aux-data/refs/heads/main/CO_WestCentral_2019_A19/utm12/USGS_1M_12_x76y426_CO_WestCentral_2019_A19.json
The docs are currently accurate in that the GTI driver only seems to look at
proj:epsg
andproj:transform
, but it would be great if these similar drivers worked consistently with the CRS parsing.The text was updated successfully, but these errors were encountered: