[Gdal-dev] projection, geodesy and csv files

Frank Warmerdam warmerdam at pobox.com
Thu Jul 10 08:56:04 EDT 2003

mathieu_gdal wrote:
> Dear all,
> I use GDAL to display and geo-reference GeoTiff files.
> I have noticed that the geo-referencement procedures I use fail if the 
> .csv files (ellipsoid.csv, gpc.csv, …) are not installed with the app.
> -          Where could I get a definition of each .csv files?


The files required by GDAL should be available from the gdal/data directory
in the CVS source tree.  Are you asking what each file is used for?  That
is somewhat complicated to answer.  In short most of them are derived from
specific tables in the EPSG database so reviewing information from the EPSG
site might be helpful.


> -          Are those .csv files specific to GDAL, or LiGeoTiff?

The .csv files were created by me based on a simple dump of EPSG .mdb
tables to .csv format primarily for the use of GDAL and libgeotiff.  Other
packages also use either my .csv files, or other dumps of the same tables,
in order to implement EPSG support.

> -          Where in the GDAL could could I find sample for accessing 
> those tables? cpl_csv.h is for parsing csv files, is there a layer on 
> top of this to access a list of projections and datums?

Specific places where they are used are:

   gdal/frmts/gtiff/libgeotiff/geo_normalize.c - GeoTIFF support
   gdal/ogr/ogr_fromepsg.cpp - Translate EPSG coordsys to WKT format.

Best regards,
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

More information about the Gdal-dev mailing list