[GIS] Installing gdal to geoserver running with apache tomcat

apachegdalgeoservertomcat

I have been following Mastering GeoServer pdf from Colin Henderson to install gdal but didn't succeed. Here is what I did:

  1. install Java, I've installed JRE windowsx64 (because my pc is x64)

  2. install apache tomcat, I've decided to go with the version 8.5.13 instead of version 9 (because it would be more reliable) then I've installed apache-tomcat 8.5.13 via 32-bit/64-bit Windows Service Installer. While installing I've ticked service startup and native and unticked documentation, host manager and example. I've configured tomcat, in Java section I've added following parameters ;

-Dserver
-Xmx1024m
-Xms512m
-XX:MaxPermSize=128m

locahost:8080 is working now.

  1. deploying geoserver to apache tomcat, I've downloaded GeoServer 2.11.0, war file from Geoserver's website.

drag n drop

localhost:8080/geoserserver/web Works now.

  1. Installing the GDAL binary libraries;
    From gisinternals, I have tried many of them over and over, none of them worked. For example I've downloaded complete versions of these core and mrsid as mentioned
    (I have c++2012 and c++2013 os my system)
    then set the environment variables as needed. Then applied this "To perform the installation, we just need to extract the .jar files contained within the archive into the WEB-INF/lib folder of our GeoServer installation."

it didn't work.

What's wrong ?

Best Answer

GeoServer's GDAL extension is very picky about the version of GDAL you need - please follow the instructions in the extension documentation.

This is due to the way the JAva to C(++) bindings work and to be honest is something of a mystery to Java developers but seems to keep the C++ boys happy.

Related Question