[gdal-dev] Transforming rasters with the C API

Pablo Rozas Larraondo pablo.larraondo at anu.edu.au
Tue Jul 26 17:20:22 PDT 2016


Hello,

I'm trying to transform a raster into a different projection using the
public C functions exposed in gdal_alg.h

I have some code that I have been testing using the functions
GDALCreateGenImgProjTransformer()
and GDALGenImgProjTransform():

https://gist.github.com/monkeybutter/8367132e9683a4eb823a0175586a25b1

Obviously I'm doing something wrong (the code segment faults), but I cannot
find any example or tutorial that explains how this operations should be
performed. Does anyone have a recommendation or example that shows this
functionality?

Thank you very much for your help,

Kind regards,
Pablo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20160727/cc88962a/attachment.html>


More information about the gdal-dev mailing list