Re: [gdal-dev] Reading various zoom-levels from a MBTiles db

2021-12-29 Thread Deyan Vasilev
Hello Even, My map contains no overviews but a seamless collection of PNG tiles with zoom levels ranging from 13 to 17 (which I suppose is similar to overviews). Each tile is 256 x 256 pixels with the pixel being RGB888, a pretty much standard arrangement. When reading I call each band's

Re: [gdal-dev] Reading various zoom-levels from a MBTiles db

2021-12-29 Thread Even Rouault
Deyan, you generally don't need to use that option. The driver should automatically select the right overview level when you use the dataset or band RasterIO() methods, according to the window of interest and the size of the buffer you specify. Even Le 29/12/2021 à 19:47, Deyan Vasilev a

[gdal-dev] Reading various zoom-levels from a MBTiles db

2021-12-29 Thread Deyan Vasilev
Hello, I am trying to handle map zooming in a GDAL-based MBTiles windows app. The only way I have found to control the raster's zoom level is through GDALOpenEx's open options. Changing the zoom-level app-side would require closing the MBTiles db and reopening it, passing the new zoom level as an

Re: [gdal-dev] [EXTERNAL] Re: Get max elevation on "squares"

2021-12-29 Thread Baker (US), Anthony W
unsubscribe -Original Message- From: gdal-dev [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Luca Bertoncello Sent: Wednesday, December 29, 2021 5:49 AM To: gdal-dev@lists.osgeo.org Subject: [EXTERNAL] Re: [gdal-dev] Get max elevation on "squares" EXT email: be mindful of

Re: [gdal-dev] Get max elevation on "squares"

2021-12-29 Thread Luca Bertoncello
Am 29.12.2021 um 11:42 schrieb Andrew C Aitchison: > Is this the max or the average height of the square ? Mmmm... Now I'm unsure... > Do you need to warn of pylons, skyscrapers, bridges or radio masts ? > These are unlikely to be included in such map data. None of them. Gound elevation > I

Re: [gdal-dev] Get max elevation on "squares"

2021-12-29 Thread Andrew C Aitchison
On Tue, 28 Dec 2021, Luca Bertoncello wrote: Am 28.12.2021 um 16:45 schrieb Alan Snow: This resource is useful to help you get started exploring raster data with Python: Maybe there is other possibility than write a Python code? I really don't know Python and if I first need to learn it to

Re: [gdal-dev] Get max elevation on "squares"

2021-12-29 Thread Luca Bertoncello
Am 29.12.2021 um 10:30 schrieb Volker Wichmann: Hi Volker > I haven't followed the discussion in detail, but you could use > > https://gdal.org/programs/gdallocationinfo.html > > to read out the values from your resampled raster. I did that. And got a little Python script to export the data

Re: [gdal-dev] Get max elevation on "squares"

2021-12-29 Thread Volker Wichmann
Hi Luca, I haven't followed the discussion in detail, but you could use https://gdal.org/programs/gdallocationinfo.html to read out the values from your resampled raster. The elevation differences between high and coarse resolution DEMs strongly depend on the relief in the area of