Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when using gdal.jar #116

Open
AarjavP opened this issue Oct 17, 2017 · 0 comments
Open

Exception when using gdal.jar #116

AarjavP opened this issue Oct 17, 2017 · 0 comments

Comments

@AarjavP
Copy link

AarjavP commented Oct 17, 2017

This might just be a setup issue but I'm not sure.
I am getting exception

java.lang.UnsatisfiedLinkError: org.gdal.ogr.ogrJNI.DataSource_SWIGUpcast(J)J
	at org.gdal.ogr.ogrJNI.DataSource_SWIGUpcast(Native Method)
	at org.gdal.ogr.DataSource.<init>(DataSource.java:18)
	at org.gdal.ogr.ogr.Open(ogr.java:212)

However I am able to call ogr.RegisterAll() and ogr.GetDriverCount() just fine without any exceptions. I have added the GDAL directory to PATH, as well as set GDAL_DATA, GDAL_DRIVER_PATH, and PROJ_LIB.
Do I need to include something for SWIG? I have downloaded SWIG 2.0.12 but don't see how to/if i need to install it for this.

I am using http://www.gisinternals.com/packageinfo.php?file=release-1800-x64-gdal-2-2-1-mapserver-7-0-6.zip

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant