-
Notifications
You must be signed in to change notification settings - Fork 33
add ogc maps #236
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
base: main
Are you sure you want to change the base?
add ogc maps #236
Conversation
| **layer_params.as_dict(), | ||
| **dataset_params.as_dict(), | ||
| **assets_accessor_params.as_dict(), | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should use
A Content-Attribution: header SHOULD be included in the response to a map request to indicate any attribution relevant to the data being returned, especially if this attribution varies based on the subset and scale of the request.
when returning the full image created with https://www.naturalearthdata.com/downloads/10m-raster-data/10m-natural-earth-2/
| add_statistics=True, | ||
| add_viewer=True, | ||
| add_part=True, | ||
| add_ogc_maps=True, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In theory we could add https://docs.ogc.org/is/20-058/20-058.html#conf_collection-map to the conformance link
|
Note: next major version of titiler will add support for OGC maps natively developmentseed/titiler#1283 |
| ) | ||
| search_info = cursor.fetchone() | ||
|
|
||
| shapes = [Polygon.from_bounds(-180, -90, 180, 90).model_dump(exclude_none=True)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if we were burning the first 100/1000 items returned by the /search ?
This PR adds a
/mapsendpoint which follow the OGC Maps API specThe main issue is that we need to enable
previewfor collection/search which will be super expensive/slow operation. In this PR I choose to usecollectionextent footprint to create thepreview