Re: [gdal-dev] C++ interface to lists of coordinate systems in data dir ?
Ivan Lucena
ivan.lucena at pmldnet.com
Tue Sep 7 14:58:38 EDT 2010
> On Sep 7, 2010, at 8:59 AM, Anders Moe wrote:
>
> >
> > Hi everyone
> >
> > Creating a C++ enduser app I was wondering if there is a programmatic way to read the various datums/projections etc. files in the gdal data directory ? I would like to present these in the interface if the user is to perform conversion, etc.
>
> Anders,
>
> There's no interfaces as far as I know. People usually consume the files in the GDAL_DATA directory using their favorite text manipulation methods
That is right, you can also the GDAL own CSV support:
http://trac.osgeo.org/gdal/browser/trunk/gdal/port/cpl_csv.cpp
Example of use are everywhere in the code, like here:
http://trac.osgeo.org/gdal/browser/trunk/gdal/frmts/idrisi/IdrisiDataset.cpp#L2301
I believe that CPL_CSV is not exposed on the GDAL API but it is available for C and C++ coders.
Regards,
Ivan
More information about the gdal-dev
mailing list