COG bbox queries return same statistics as the entire file #1361
-
|
So I have interest in requesting screen bounds and I am using Leaflet.js and retrieving correct coordinates from the view, then requesting the statistics using
Those statistics never update irrespective of what the bounding box is. Things I have tried:
The reason I want this is because my COG file contains 1 band of elevation data for all landmasses in the globe. I want to use the min/max to change the rescale parameters when the view changes, automatically. TiTiler docker image tags tested: 2.0.0, 2.0.1 Here is the gdalinfo of my COG file: Here is the ONLY config I get from the requests: I know that both |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
The statistics endpoint does not accept You can use the |
Beta Was this translation helpful? Give feedback.
The statistics endpoint does not accept
bboxhttps://developmentseed.org/titiler/endpoints/cog/#statisticsYou can use the
POST - /statisticsendpoint with a GeoJSON feature to achieve this