Skip to content

Commit

Permalink
Removed ItemCollection from STAC detection heuristic, may get invalid…
Browse files Browse the repository at this point in the history
… soon. #141
  • Loading branch information
m-mohr committed May 25, 2021
1 parent 517c5fb commit 1b2fefb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions best-practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -728,8 +728,7 @@ database, but it could just as easily be a server-based process.
## How to Differentiate STAC Files

Any tool that crawls a STAC implementation or encounters a STAC file in the wild needs a clear way to determine if it is an Item,
Collection, Catalog or [ItemCollection](https://github.com/radiantearth/stac-api-spec/tree/v1.0.0-beta.1/fragments/itemcollection)
(part of the [STAC API spec](https://github.com/radiantearth/stac-api-spec/tree/v1.0.0-beta.1)). As of 1.0.0 this is done primarily
Collection or Catalog. As of 1.0.0 this is done primarily
with the `type` field, and secondarily in Items with `stac_version`, or optionally the `rel` of the link to it.

```shell
Expand All @@ -739,8 +738,6 @@ else if type is 'Catalog'
=> Catalog
else if type is 'Feature' and stac_version is defined
=> Item
else if type is 'FeatureCollection' and stac_version is defined
=> ItemCollection
else
=> Invalid (JSON)
```
Expand Down

0 comments on commit 1b2fefb

Please sign in to comment.