[gdal-dev] Unable to access GDAL_DATA directory on Android
Chris Lawrence
chris_lawrence at partech.com
Mon May 6 07:14:53 PDT 2013
Following up as I found the (obvious) issue in case anyone else
encouters it: I was statically linking libgdal as per the examples for
android. Linking against the libgdal.so library resolved the issue. As
an aside, be aware that Android does not support versioned .so
libraries.
-chris
________________________________
From: gdal-dev-bounces at lists.osgeo.org
[mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of Chris Lawrence
Sent: Thursday, May 02, 2013 5:46 PM
To: gdal-dev at lists.osgeo.org
Subject: [gdal-dev] Unable to access GDAL_DATA directory on Android
I am developing an Android-based GDAL application. I have successfully
built GDAL v1.9.2 and the SWIG-based Java bindings using the
instructions provided on the building GDAL page. I am able to register
the drivers and load a dataset in my application, however, I am unable
to initialize a SpatialReference using an EPSG code (4326). I have
placed the contents of gdal/data at /sdcard/gdal on the device; I have
tried both gdal.SetConfigOption("GDAL_DATA", "/sdcard/gdal") as well as
gdal.PushFinderLocation("/sdcard/gdal"). If anyone has experience using
GDAL on Android and has encountered and resolved this situation
previously, your insight would be greatly appreciated.
Thanks,
-chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130506/807c5982/attachment.html>
More information about the gdal-dev
mailing list