[GRASS-dev] PROJ csv files sync GDAL -> GRASS?

Maciej Sieczka msieczka at sieczka.org
Sat Apr 25 09:58:52 EDT 2009


Markus Neteler pisze:

> Ideally we would just use those from GDAL. Asking Frank in IRC how to
> obtain the related GDAL directory, he suggested:
> 
> "There is a function (CPLFindFile()) to find particular files.
>  If you really need a directory, you could likely search for a GDAL only
>  file, and strip the result down to a directory path"
> 
> I.e.,
> const char *    CPLFindFile (const char *pszClass, const char *pszBasename)
> http://www.gdal.org/cpl__conv_8h.html
> 
> I presume that we could seek for "gcs.csv" and then dirname() it.

How about gdal-config --datadir?

$ ls `gdal-config --datadir`/*.csv

/usr/local/share/gdal/coordinate_axis.csv
/usr/local/share/gdal/ellipsoid.csv
/usr/local/share/gdal/gcs.csv
/usr/local/share/gdal/gcs.override.csv
/usr/local/share/gdal/gdal_datum.csv
/usr/local/share/gdal/gt_datum.csv
/usr/local/share/gdal/gt_ellips.csv
/usr/local/share/gdal/pcs.csv
/usr/local/share/gdal/pcs.override.csv
/usr/local/share/gdal/prime_meridian.csv
/usr/local/share/gdal/projop_wparm.csv
/usr/local/share/gdal/s57agencies.csv
/usr/local/share/gdal/s57attributes_aml.csv
/usr/local/share/gdal/s57attributes.csv
/usr/local/share/gdal/s57attributes_iw.csv
/usr/local/share/gdal/s57expectedinput.csv
/usr/local/share/gdal/s57objectclasses_aml.csv
/usr/local/share/gdal/s57objectclasses.csv
/usr/local/share/gdal/s57objectclasses_iw.csv
/usr/local/share/gdal/stateplane.csv
/usr/local/share/gdal/unit_of_measure.csv

Maciek

-- 
Maciej Sieczka
http://www.sieczka.org



More information about the grass-dev mailing list