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: [email protected] [mailto:[email protected]] On Behalf Of Chris Lawrence Sent: Thursday, May 02, 2013 5:46 PM To: [email protected] 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
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
