|
From: Michael S. <spe...@gm...> - 2012-11-29 00:33:04
|
Greetings, I am attempting to use a recent version of gdal (1.9.2) with Geotools. I have tried using the latest stable (8.4) as well as 9-SNAPSHOT (which I assume is the latest development version). Both of these versions give me the following error when attempting to use gdal: INFO: GDAL Native Library loaded (version: 1.9.2) > Exception in thread "main" java.lang.UnsatisfiedLinkError: > org.gdal.gdalconst.gdalconstJNI.DMD_LONGNAME_get()Ljava/lang/String; > at org.gdal.gdalconst.gdalconstJNI.DMD_LONGNAME_get(Native Method) > at > org.gdal.gdalconst.gdalconstConstants.<clinit>(gdalconstConstants.java:75) > at > it.geosolutions.imageio.gdalframework.GDALImageReader.setInput(GDALImageReader.java:703) > at javax.imageio.ImageReader.setInput(ImageReader.java:380) > at > org.geotools.coverageio.BaseGridCoverage2DReader.<init>(BaseGridCoverage2DReader.java:172) > at > org.geotools.coverageio.gdal.BaseGDALGridCoverage2DReader.<init>(BaseGDALGridCoverage2DReader.java:84) > at > org.geotools.coverageio.gdal.erdasimg.ErdasImgReader.<init>(ErdasImgReader.java:66) > at > org.geotools.coverageio.gdal.erdasimg.ErdasImgReader.<init>(ErdasImgReader.java:52) > at org.geotools.tutorial.App.main(App.java:31) It seems that gdal has changed the function name from *DMD_LONGNAME_get* to *GDAL_DMD_LONGNAME_get*. Is there any suggestions on how to work around this problem? I have read from the docs that GeoTools should be compatible with gdal 1.4.5 but that's a fairly out-dated version of gdal released back in dec 2008 (which I wasn't able to compile due to my system libraries are not compatible). Thanks -- Michael Speth Research Systems Developer Landcare Research |