Interpolate values when "overzooming" dataset ? #1189
-
Hello, I am working with the Copernicus DEM dataset (10m), and I am facing this problem, when I request a tile that is too "zoomed in" regarding of the accuracy of the dataset, titiler just set the same value in the nearest pixels, is there a way to interpolate values ? For example, this tile from the copernicus DEM (10m resolution) tiled by titiler (zoom 15 over Rio de Janeiro): And the exact same tile from the mapzen dataset that seems to interpolates values (30m resolution in brasil from SRTM dataset, data for mapzen terrarium on this area is less accurate than copernicus dem):
I want to interpolate values because when using titiler, depending on the latitude on earth, the max zoom corresponding to the source data 10m horizontal resolution can be different between 11 , 12 and 13 for z value. Thanks a lot, happy to provide more context if this isn't clear. Thibault |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can use |
Beta Was this translation helpful? Give feedback.
You can use
reproject
and
resampling` options but this is not dynamic (meaning it cannot depends on the zoom level)https://titiler.xyz/cog/tiles/WebMercatorQuad/15/12450/18531.png?url=https://copernicus-dem-30m.s3.amazonaws.com/Copernicus_DSM_COG_10_S23_00_W044_00_DEM/Copernicus_DSM_COG_10_S23_00_W044_00_DEM.tif&algorithm=terrarium&resampling=bilinear&reproject=bilinear