[gdal-dev] Transforming rasters with the C API

Even Rouault even.rouault at spatialys.com
Wed Jul 27 08:42:27 PDT 2016


Pablo,

Have a look at http://gdal.org/warptut.html if not already done.

If using GDAL 2.1, you can also use GDALWarp() : 
http://gdal.org/gdal__utils_8h.html#ab2094d5332364d63e0851dcb12398469

Even

> 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

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list