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

2021-12-27 Thread Luca Bertoncello
Am 28.12.2021 um 04:54 schrieb Alan Snow: Hi Alan > After some thought, you may achieve what you want by resampling the file > to a 5km grid size with the Resampling.max option: This is a good idea... I will need to write some code in Python (I don't really know this language), but I think I'll

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

2021-12-27 Thread Alan Snow
After some thought, you may achieve what you want by resampling the file to a 5km grid size with the Resampling.max option: https://rasterio.readthedocs.io/en/latest/topics/resampling.html https://rasterio.readthedocs.io/en/latest/api/rasterio.enums.html#rasterio.enums.Resampling.max You can the

[gdal-dev] GDAL 3.4.1 RC1 available

2021-12-27 Thread Even Rouault
Hi, I have prepared a GDAL/OGR 3.4.1 release candidate. Pick up an archive among the following ones (by ascending size):   https://download.osgeo.org/gdal/3.4.1/gdal-3.4.1rc1.tar.xz   https://download.osgeo.org/gdal/3.4.1/gdal-3.4.1rc1.tar.gz   https://download.osgeo.org/gdal/3.4.1/gdal341rc1.z

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

2021-12-27 Thread Luca Bertoncello
Am 27.12.2021 um 20:20 schrieb Alan Snow: Hi Alan, thank you very much for your answer! > You may be looking for clip/mask: > > https://rasterio.readthedocs.io/en/latest/topics/masking-by-shapefile.html > > https://corteva.github.io/rioxarray/stable/examples/clip_geom.html > > After clipping, yo

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

2021-12-27 Thread Alan Snow
You may be looking for clip/mask: https://rasterio.readthedocs.io/en/latest/topics/masking-by-shapefile.html https://corteva.github.io/rioxarray/stable/examples/clip_geom.html After clipping, you can use numpy to do the sum. On Mon, Dec 27, 2021, 12:58 PM Luca Bertoncello wrote: > Hi list! >

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

2021-12-27 Thread Luca Bertoncello
Hi list! I'm very new to GDAL, so please excuse me if the question is too simple... My problem: I'm writing an App to fly VFR and I'd like to display a vertical profile of the route. Of course, it must work offline, so I cannot use a service like Google Maps or similar... I tryed OpenTopoData wi