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
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to