[gdal-dev] GDAL_DATA
Mateusz Loskot
mateusz at loskot.net
Fri Oct 23 02:38:04 PDT 2015
On 23 October 2015 at 11:04, Gane R <gane.prog at gmail.com> wrote:
> I have two applications (postgres with postgis) one running with gdal 1.10.1
> and other in gdal 2.0.1 but I see
> gdal-data files are different in gdal 1.10.1 and gdal 2.0.1
>
> So Will the GDAL_DATA point gdal 2.0.1 file or how to solve this ?
I think you should be able to solve it this way:
1) For PostgreSQL/PostGIS do not set GDAL_DATA as environment variable
but as postgresql.gdal_datapath option
Read here http://postgis.net/docs/manual-dev/postgis_gdal_datapath.html
2) Set GDAL_DATA env var for GDAL 2.0.1 apps
If postgresql.gdal_datapath is defined, PostGIS should prefer it.
without trying GDAL_DATA env variable.
Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
More information about the gdal-dev
mailing list