Skip to content

Commit 1b2fefb

Browse files
committed
Removed ItemCollection from STAC detection heuristic, may get invalid soon. radiantearth#141
1 parent 517c5fb commit 1b2fefb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

best-practices.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -728,8 +728,7 @@ database, but it could just as easily be a server-based process.
728728
## How to Differentiate STAC Files
729729

730730
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,
731-
Collection, Catalog or [ItemCollection](https://github.com/radiantearth/stac-api-spec/tree/v1.0.0-beta.1/fragments/itemcollection)
732-
(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
731+
Collection or Catalog. As of 1.0.0 this is done primarily
733732
with the `type` field, and secondarily in Items with `stac_version`, or optionally the `rel` of the link to it.
734733

735734
```shell
@@ -739,8 +738,6 @@ else if type is 'Catalog'
739738
=> Catalog
740739
else if type is 'Feature' and stac_version is defined
741740
=> Item
742-
else if type is 'FeatureCollection' and stac_version is defined
743-
=> ItemCollection
744741
else
745742
=> Invalid (JSON)
746743
```

0 commit comments

Comments
 (0)