radiantearth / stac-spec

SpatioTemporal Asset Catalog specification - making geospatial assets openly searchable and crawlable
https://stacspec.org
Apache License 2.0
784 stars 179 forks source link

STAC Media Types #1265

Closed mhogeweg closed 10 months ago

mhogeweg commented 10 months ago

hi, can you expand on the STAC Media Types listed here: https://github.com/radiantearth/stac-spec/blob/master/catalog-spec/catalog-spec.md#stac-media-types to include the preferred media types for all STAC API resources?

there appears to be some confusion as to whether the /items API resource should return application/json or application/geo+json. The former is used for catalog, collections, and several others. the latter is used for an individual item. /items returns a geojson feature collection consisting of items.

m-mohr commented 10 months ago

This is the static STAC specification and it has nothhing to do with the API specification directly, as such we won't list it in this table. But the API specification is pretty clear about the media type, it must be application/geo+json: See https://github.com/radiantearth/stac-api-spec/tree/release/v1.0.0/ogcapi-features#endpoints and https://github.com/radiantearth/stac-api-spec/tree/release/v1.0.0/ogcapi-features#collection-items-collectionscollectioniditems . I've also created https://github.com/radiantearth/stac-api-spec/pull/439 to add the missing items relation type.