[Geotiff] bug in libgeotiff 1.2.3 file geo_normalize.c used with cpl_csv_incode.c

Dmitry V. Fedorov dima at dimin.net
Tue Apr 11 15:15:01 EDT 2006


Hi all,

The update in geo_normalize.c to support gdal breaks libgeotiff with in-code csv database (cpl_csv_incode.c).  

Suggested fix:

    // dima: fix for the incode csv tables
    if( (fp = VSIFOpen(pszFilename,"r")) == NULL )
    {
      if( (fp = VSIFOpen("gdal_datum.csv", "r")) != NULL )
      {
        pszFilename = CSVFilename( "gdal_datum.csv" );
        VSIFClose( fp );
      }
    }
    else
        VSIFClose( fp );

Dmitry
_____________________________________________________________

Dmitry Fedorov Levit <dima at dimin.net> <http://www.dimin.net/>           
_____________________________________________________________
Image Registration:
  http://vision.ece.ucsb.edu/
  http://nayana.ece.ucsb.edu/registration/
  http://regima.dpi.inpe.br/

Bio-Informatics: http://www.bioimage.ucsb.edu/

Vision Research Lab, Electrical and Computer Engineering
University of California, Santa Barbara
_____________________________________________________________

DIMIN Viewer n5 - <http://www.dimin.net/software/viewer/>
_____________________________________________________________



More information about the Geotiff mailing list