springboot中调用gdal的gdalconstConstants静态方法报错,错误如下
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.gdal.gdalconst.gdalconstJNI.GDT_UInt64_get()I
at org.gdal.gdalconst.gdalconstJNI.GDT_UInt64_get(Native Method)
at org.gdal.gdalconst.gdalconstConstants.<clinit>(gdalconstConstants.java:18)
at com.spike.GisApplication.main(GisApplication.java:10)
使用 release-1900-x64 高版本gdalconstConstants类已经被gdalconstJNI类取代
不能再使用gdalconstConstants的静态方法
正确示例:
Band.WriteRaster(0, i, width, 1,gdalconstJNI.GDT_Int32_get(), cache);
错误示例:
Band.WriteRaster(0, i, width, 1,gdalconstConstants.GDT_Int32, cache);