[gdal-dev] C++ interface to lists of coordinate systems in data dir ?

Alexandre Gacon alexandre.gacon+gdal at gmail.com
Wed Sep 8 15:01:54 EDT 2010


The OGR CSV support is a supported driver and I think it will work better
than the built-in GDAL support (but perhaps it the same think).

Alexandre

On Tue, Sep 7, 2010 at 8:58 PM, Ivan Lucena <ivan.lucena at pmldnet.com> wrote:

> >  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
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
Alexandre Gacon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100908/f02fda65/attachment.html


More information about the gdal-dev mailing list