[gdal-dev] DEM handling in GDAL

Even Rouault even.rouault at spatialys.com
Mon May 25 07:30:53 PDT 2020


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
> resampling methods, GDALRPCOpenDEM). These functions are used internally
> by the RPC algorithms. However, these DEM processing functions are not
> exposed in GDAL API (only the rpc functions are). Is there a reason for
> this ? These functions could be useful in other applications than rpc
> transformations !

Those routines are DEM specific usages for the RPC transformer. They are implementation 
details.

But if you just need to extract elevation values from a DEM, this is exactly the same as 
reading pixel values from a generic raster.
Look at https://gdal.org/tutorials/raster_api_tut.html or any documentation related to 
reading raster in GDAL.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200525/1ec8765c/attachment.html>


More information about the gdal-dev mailing list