We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type
Ingest currently determines if an input JSON is a Collection or an Item based on a heuristic of it it has an extent or a geometry:
if (data && data.hasOwnProperty('extent')) { index = COLLECTIONS_INDEX } else if (data && data.hasOwnProperty('geometry')) { index = data.collection } else { return null }
However, STAC API 1.0.0 requires the field type for both Item and Collection. This should be used for this determination instead.
The text was updated successfully, but these errors were encountered:
Use the type field to determin if ingest is collection or item
7506eef
The `type` field is required in STAC API 1.0.0 and using that field is preferable to a heuristic based on other field values. Connects #486
7dd0587
Use the type field to determine if ingest is collection or item
94a37ed
b1b284e
jwalgran
No branches or pull requests
Ingest currently determines if an input JSON is a Collection or an Item based on a heuristic of it it has an extent or a geometry:
However, STAC API 1.0.0 requires the field
type
for both Item and Collection. This should be used for this determination instead.The text was updated successfully, but these errors were encountered: