[gdal-dev] Utilities as a library, C API

Even Rouault even.rouault at spatialys.com
Wed Oct 19 12:55:09 PDT 2016


The fact that GDALTranslateOptions is opaque is a design decision that was the 
outcome of the discussion phase of RFC 59. It was thought that it would be 
difficult to have a stable C structure that could be also extented in the future 
without becoming too messy. For example regarding old options that would have 
been generalized into newer syntax. Hence the decision to have a minimal 
string based interface that takes the same arguments than the command line 
strings that lead to RFC 59.1.
So it is up to you to build a nicer API on top of this and build the string 
array (that's what the python bindings do for example). Note that the strings 
must be split like the arguments of the main(), ie. { "-of", "GTiff", NULL }. 


Spatialys - Geospatial professional services

More information about the gdal-dev mailing list