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.luc...@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@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
Alexandre Gacon
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to