Re: [gdal-dev] DEM handling in GDAL

2020-05-25 Thread Even Rouault
On lundi 25 mai 2020 18:00:35 CEST Cédric Traizet wrote: > Thanks for your answer, In addition to the extraction of values from the > DEM raster, these functions implement the interpolation of the DEM > height on any point. Is there any chance to have this kind of function > in the public API somed

Re: [gdal-dev] DEM handling in GDAL

2020-05-25 Thread Cédric Traizet
Thanks for your answer, In addition to the extraction of values from the DEM raster, these functions implement the interpolation of the DEM height on any point. Is there any chance to have this kind of function in the public API someday ? In my project I want to use the GDAL RPC algorithms, but

Re: [gdal-dev] DEM handling in GDAL

2020-05-25 Thread Even Rouault
On lundi 25 mai 2020 16:22:15 CEST Cédric Traizet wrote: > Hi all, > > I am trying to use the GDAL C++ API to read and use DEMs. Is it possible ? > > In GDAL source code, in alg/gdal_rpc.cpp, there are several functions > for DEM handling (e.g. GDALRPCGetHeigthAtLongLat that supports several > re

[gdal-dev] DEM handling in GDAL

2020-05-25 Thread Cédric Traizet
Hi all, I am trying to use the GDAL C++ API to read and use DEMs. Is it possible ? In GDAL source code, in alg/gdal_rpc.cpp, there are several functions for DEM handling (e.g. GDALRPCGetHeigthAtLongLat that supports several resampling methods, GDALRPCOpenDEM). These functions are used internal

Re: [gdal-dev] python code inside of VRT results to empty values

2020-05-25 Thread Jachym Cepicky
Aahaa, the problem was out_ar[:] = data while I was using out_ara = data Thank you! Jachym po 25. 5. 2020 v 11:14 odesílatel Even Rouault napsal: > > On lundi 25 mai 2020 10:44:10 CEST Jachym Cepicky wrote: > > > Hi all, > > > > > > I have some python code inside of VRT file, but I can not p

Re: [gdal-dev] python code inside of VRT results to empty values

2020-05-25 Thread Even Rouault
On lundi 25 mai 2020 10:44:10 CEST Jachym Cepicky wrote: > Hi all, > > I have some python code inside of VRT file, but I can not produce > reasonable output with gdal_transalte. All the input data do look ok, > even when I print() the values I would like to store, the data are > displayed, but the

Re: [gdal-dev] python code inside of VRT results to empty values

2020-05-25 Thread Even Rouault
Jachym, > I have some python code inside of VRT file, but I can not produce > reasonable output with gdal_transalte. All the input data do look ok, > even when I print() the values I would like to store, the data are > displayed, but the resulting TIFF file is just empty, any hint how to > approac

[gdal-dev] python code inside of VRT results to empty values

2020-05-25 Thread Jachym Cepicky
Hi all, I have some python code inside of VRT file, but I can not produce reasonable output with gdal_transalte. All the input data do look ok, even when I print() the values I would like to store, the data are displayed, but the resulting TIFF file is just empty, any hint how to approach? I've te