[gdal-dev] GDAL app won't read SRS...

bradh at frogmouth.net bradh at frogmouth.net
Fri Jan 11 19:20:23 PST 2019


It might help if you can say how you built GDAL. For example, how did you
set up the build-time variables in nmake.opt?

https://github.com/OSGeo/gdal/blob/master/gdal/nmake.opt#L56 

Does the DATADIR there point to the directory that contains the right data?

 

Brad

 

From: gdal-dev <gdal-dev-bounces at lists.osgeo.org> On Behalf Of TUELLER,
SHAYNE R CIV USAF AFMC 519 SMXS/MXDEC
Sent: Saturday, 12 January 2019 12:50 PM
To: gdal-dev at lists.osgeo.org
Subject: [gdal-dev] GDAL app won't read SRS...

 

Hello,

 

I built GDAL 2.3.1 library from source on Windows successfully. To test the
library out, I tried running "gdalinfo" on a GeoTIFF file, and it reported
the following error.

 

"ERROR 4: Unable to open EPSG support file gcs.csv. Try setting the
GDAL_DATA environment variable to point to the directory containing EPSG csv
files." The info for the SRS doesn't print.

 

I set the GDAL_DATA and the error goes away but I don't want to be dependent
upon this setting. In previous binary versions of GDAL, I didn't need to set
GDAL_DATA variable in order for gdalinfo to read and print out the SRS.
Obviously I'm missing something or some dependency with the library build?

 

Can anyone shed light on what is going on or what I need to do to get the
GDAL library to read the SRS without the need for the GDAL_DATA environment
variable?

 

Thanks.

 

Shayne

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20190112/30029772/attachment.html>


More information about the gdal-dev mailing list