PR #10696 added support for the GTI driver to work with stac-geoparquet format, which is really neat! However, it seems to identify stac-geoparquet files by the presence of an asset with an 'image' key:
Because asset keys are not standard, there are many stac geoparquets without this key. While you can overridde this by setting LOCATION_FIELD it seems this skips automatically getting proj:epsgproj:transform fields as described in the docs (https://gdal.org/en/latest/drivers/raster/gti.html#stac-geoparquet-support)
What is the bug?
PR #10696 added support for the GTI driver to work with stac-geoparquet format, which is really neat! However, it seems to identify stac-geoparquet files by the presence of an asset with an 'image' key:
https://github.com/OSGeo/gdal/blob/1344d8ddd5438668d99568ae603fbfa439673d3a/frmts/gti/gdaltileindexdataset.cpp#L895-L897
Because asset keys are not standard, there are many stac geoparquets without this key. While you can overridde this by setting
LOCATION_FIELD
it seems this skips automatically gettingproj:epsg
proj:transform
fields as described in the docs (https://gdal.org/en/latest/drivers/raster/gti.html#stac-geoparquet-support)Steps to reproduce the issue
ERROR 1: Cannot find field location
Note that assets in this collection are "data", "rendered_preview", and "tilejson" https://planetarycomputer.microsoft.com/api/stac/v1/collections/io-lulc-annual-v02/items/60L-2017
Versions and provenance
Additional context
As an alternative stac-geoparquet can be identified by file-level metadata "geo" key (https://geoparquet.org/releases/v1.1.0/)
Or individual STAC Items can also be identified by the presence of a required
stac_version
property (https://github.com/radiantearth/stac-spec/blob/master/item-spec/item-spec.md)