Generate tiles for a specified region of an image #527
Replies: 3 comments 5 replies
-
Found a relevant discussion: #376. My user case is a bit simpler than using a GeoJSON as an ROI. I just want to tiles to be cropped to a bounding box [minx, miny, maxx, maxy] |
Beta Was this translation helpful? Give feedback.
-
I think you'd typically want the client to limit the tile requests sent to the server within the desired bounds instead of the server. I'm not sure if this is supported by folium / ipyleaflet, but it is by leaflet (https://leafletjs.com/reference.html#gridlayer-bounds). Titiler does support TileJSON which is another client-side approach to restricting tile requests to bounds but I'm not sure if that is supported by folium / ipyleaflet either. |
Beta Was this translation helpful? Give feedback.
-
The ipyleaflet TileLayer |
Beta Was this translation helpful? Give feedback.
-
It seems the TiTiler Crop / Part only returns a static image. Is it possible to return the dynamic tiles for a specified region of an image? Imagine that a COG covers a large region, but the user is only interested in a small region of interest. It would be great if the tile shown on an interactive map can be limited to a specified ROI.
This URL generates a static image of the ROI, but I want the cropped image/tile to show on an interactive map.
https://titiler.xyz/cog/crop/57.707,-20.4351,57.7269,-20.4203.png?url=https://opendata.digitalglobe.com/events/mauritius-oil-spill/post-event/2020-08-12/105001001F1B5B00/105001001F1B5B00.tif
Beta Was this translation helpful? Give feedback.
All reactions