Skip to content

Commit

Permalink
Merge pull request #200 from geosolutions-it/revert-199-gdal_2x_12x
Browse files Browse the repository at this point in the history
Revert "Update to GDAL 2.x bindings #198"
  • Loading branch information
aaime authored Feb 27, 2019
2 parents 0d41cff + a36b62a commit 997c9fe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 20 deletions.
11 changes: 5 additions & 6 deletions library/gdalframework/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.gdal</groupId>
<artifactId>gdal</artifactId>
<version>${gdal.version}</version>
</dependency>
<dependency>
<dependency>
<groupId>it.geosolutions.imageio-ext</groupId>
<artifactId>imageio-ext-gdal-bindings</artifactId>
</dependency>
<dependency>
<groupId>it.geosolutions.imageio-ext</groupId>
<artifactId>imageio-ext-streams</artifactId>
<version>${project.version}</version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,8 @@ public static void loadGDAL() {
// GDAL version >= 2.3.0
System.loadLibrary("gdalalljni");
} catch (UnsatisfiedLinkError e1) {
if (LOGGER.isLoggable(Level.FINE)) {
LOGGER.log(Level.FINE,"Failed to load the GDAL native libs from \"gdalalljni\". " +
if (LOGGER.isLoggable(Level.INFO)) {
LOGGER.log(Level.INFO,"Failed to load the GDAL native libs from \"gdalalljni\". " +
"Falling back to \"gdaljni\".\n" +
e1.toString());
}
Expand All @@ -638,17 +638,6 @@ public static void loadGDAL() {
LOGGER.info("GDAL Native Library loaded (version: " + versionInfo + ")");
}

if (LOGGER.isLoggable(Level.FINE)) {
int driverCount = gdal.GetDriverCount();
List<String> drivers = new ArrayList<>();
for (int i = 0; i < driverCount; i++) {
Driver driver = gdal.GetDriver(i);
drivers.add(driver.getShortName());
driver.delete();
}
LOGGER.fine("Formats available in GDAL (not all exposed by imageio-ext): " + drivers);
}

// //
//
// Setting error messages handler.
Expand Down
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<gdal.version>1.9.2</gdal.version>
<kakadu.version>5.2.6</kakadu.version>
<java.awt.headless>true</java.awt.headless>
<gdal.version>2.2.0</gdal.version>
</properties>

<!-- ======================================================== -->
Expand Down

0 comments on commit 997c9fe

Please sign in to comment.