[gdal-dev] Reading interpolated values on DSM
Even Rouault
even.rouault at spatialys.com
Wed Apr 24 03:51:22 PDT 2024
Hi,
I guess this discussion, and past similar ones, calls for an
enhancement. A new API function, like CPLErr
GDALRasterInterpolateAtPoint(GDALRasterBandH, double dfPixel, double
dfLocation, GDALRIOResampleAlg eInterpolation, double *pdfValue), that
could be used by a new mode of gdallocationinfo. The
GDALRPCGetDEMHeight() function in alg/gdal_rpc.cpp is a plausible
candidate implementation for bilinear and bicubic (we could potentially
restrict to that at the moment).
Even
Le 24/04/2024 à 10:33, Javier Jimenez Shaw via gdal-dev a écrit :
> Hi
>
> I would like to read in QGIS or GDAL an interpolated value in a DSM
> (well, actually it is a geoid model, but it is the same behaviour).
> See that I do not want the pixel value, but the linear interpolation
> among the neighbour pixels, assuming that the pixel value is in the
> center of the pixel.
> For instance, this file
> https://www.isgeoid.polimi.it/Geoid/Asia/Japan/japan2000_g.html
>
> Is there any way to get it (without implementing the interpolation
> myself)?
> If I understood correctly gdallocationinfo is not interpolating, just
> giving the pixel value.
>
> Thanks
>
> .___ ._ ..._ .. . ._. .___ .. __ . _. . __.. ... .... ._ .__
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
--
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240424/adc66b99/attachment.htm>
More information about the gdal-dev
mailing list