radiantearth / stac-browser

A full-fledged UI in Vue for browsing and searching static STAC catalogs and STAC APIs
https://radiantearth.github.io/stac-browser
ISC License
275 stars 136 forks source link

Sorting collection search results using "item property paths" instead of "collection property paths" ? #431

Open ycespb opened 4 months ago

ycespb commented 4 months ago

StacBrowser sends sorting requests to the server (for collection search) using property names such as "properties.title" while these paths do not exist in the STAC JSON representation of the collection as "properties" does not exist. The path "title" does exist. Similarly, properties.datetime is used as sorting key for collections. Should "extent/temporal/interval" not be used instead in the requests to sort by date ? Maybe the explanation in https://github.com/stac-api-extensions/collection-search ("it works as it does for Items") could be more explicit if the intention is to use the same paths even when they do not really exist in the response...

m-mohr commented 4 months ago

Oh yeah, good point. This need to be worked out better in the Collection Search spec and then be adapted in STAC Browser, too.