-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
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
POST search with intersects containing GeometryCollection fails with 400 #187
Comments
Thats interesting. My interpretation of the spec was that the search endpoint should only accept geojson geometry types, not any of the geometry containers. Here is the language in the stac api spec:
And the GeoJSON spec says that the valid geometry types are Assuming that |
Your link to the GeoJSON spec has: The semantics are intersection with any of the geometries in the geometry collection. |
wow I'm awful at reading 😆
👍 |
I proposed this change in stac-pydantic to allow for GeometryCollections: stac-utils/stac-pydantic#102 |
Can be removed when stac-utils/stac-fastapi#187 is closed
* Remove erroneous stac_extensions on landing page Can be removed once stac-utils/stac-fastapi#334 is fixed * Allow search to state datetimes with date only * Allow GeometryCollection Can be removed when stac-utils/stac-fastapi#187 is closed * Formatting * Update CHANGELOG
Currently we aren't using the stac-pydantic search model (https://github.com/stac-utils/stac-fastapi/blob/master/stac_fastapi/types/stac_fastapi/types/search.py#L85-L86). But it looks like we could be using it from the docstring. |
According to the STAC API spec, all GeoJSON shape types must be supported by intersects. GeometryCollection is explicity defined in the openapi spec as one of these.
Running this search fails with a 400 error:
POST /search
The text was updated successfully, but these errors were encountered: