[gdal-dev] DEM handling in GDAL
Cédric Traizet
cedric.traizet at csgroup.eu
Mon May 25 09:00:35 PDT 2020
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 I also need to use DEM in other processings, so I wanted
to know if there was a way to reuse these DEM routines. Anyway, it
shouldn't be too hard to re-implement the DEM interpolation in my code.
Cédric
On 25/05/2020 16:30, Even Rouault wrote:
>
> 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
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200525/8931c9c0/attachment.html>
More information about the gdal-dev
mailing list