Doing some stuff on OGR in Java - specifically importing a spatial reference from EPSG code, I get this 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.
Problem is (unlike the other question on stack I saw about the same error) that I already have a GDAL_DATA
in my user environment variables (win7) pointing to C:\Program Files\GDAL\gdal-data
where gcs.csv exists.
I do have the line -Djava.library.path="C:\Program Files\GDAL\"
in my project's runtime options to ensure GDAL is linked (even though I have an env variable PATH pointing there as well), do I need to do something similar to that or in the code to force/set the GDAL_DATA
environment variable or is that not the problem and is this something else? (wouldn't be the first time GDAL/OGR bindings have been weird on me)