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).<br><br>Alexandre<br><br><div class="gmail_quote">On Tue, Sep 7, 2010 at 8:58 PM, Ivan Lucena <span dir="ltr"><<a href="mailto:ivan.lucena@pmldnet.com">ivan.lucena@pmldnet.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">> On Sep 7, 2010, at 8:59 AM, Anders Moe wrote:<br>
><br>
> ><br>
> > Hi everyone<br>
> ><br>
> > 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.<br>
><br>
> Anders,<br>
><br>
> 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<br>
<br>
</div>That is right, you can also the GDAL own CSV support:<br>
<br>
<a href="http://trac.osgeo.org/gdal/browser/trunk/gdal/port/cpl_csv.cpp" target="_blank">http://trac.osgeo.org/gdal/browser/trunk/gdal/port/cpl_csv.cpp</a><br>
<br>
Example of use are everywhere in the code, like here:<br>
<br>
<a href="http://trac.osgeo.org/gdal/browser/trunk/gdal/frmts/idrisi/IdrisiDataset.cpp#L2301" target="_blank">http://trac.osgeo.org/gdal/browser/trunk/gdal/frmts/idrisi/IdrisiDataset.cpp#L2301</a><br>
<br>
I believe that CPL_CSV is not exposed on the GDAL API but it is available for C and C++ coders.<br>
<br>
Regards,<br>
<font color="#888888"><br>
Ivan<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Alexandre Gacon<br>