Installing GDAL plugin on Geoserver binary

Krishna G. Lodha
SpatialOps
Published in
3 min readDec 8, 2020
Photo by CHUTTERSNAP on Unsplash

GeoServer is a JAVA based application developed to ease the styling and sharing of geospatial data using Opensource technology. It follows the standards of the Open Geospatial Consortium (OGC) and thus has wide application in a variety of industries. GeoServer’s website states more clearly regarding its usability and documentation.

Let’s install GDAL plugin for Geoserver 2.18.0

Make sure that you are aware of the geoserver version you are using. You can check it as follow

Check Geoserver Version

Install GDAL plugin :

Head over to geoserver.org and click on the link mentioning your GeoServer Version and scroll down to extensions tab, there you can find GDAL plugin. Click on plugin to download the zip.

Click on GDAL to download plugin

Once the Zip is downloaded successfully, unzip it and copy all .jar files in the unzipped folder to /usr/share/geoserver/webapps/geoserver/WEB-INF/lib/

Copy .jar file from plugin to lib folder in geoserver

Once the plugin is copied successfully, We need to also install GDAL into core OS.

Install GDAL on Ubuntu :

Fire up new terminal and paste following command

sudo apt-get install gdal-bin libgdal-java
install gdal on ubuntu

Generally this will install /usr/ folder

export LD_LIBRARY_PATH=/<path_to_gdal_install>/lib
export GDAL_DATA=/<path_to_gdal_install>/share/gdal

for me <path_to_gdal_install> is usr, thus above to commands for me will be

export LD_LIBRARY_PATH=/usr/lib
export GDAL_DATA=/usr/share/gdal

Restart GeoServer :

Once everything is done, stop the server and start again by calling startup.sh file.

Go to Stores and click on add new stores and you will see all available raster formats.

access different Raster formats by clicking on create new store

About me

Hi, I’m Krishna Lodha, I’m a full-stack Web GIS developer. I’m really enthusiastic about the power of locations and what story it tells us. Read more about me at http://krishnaglodha.com, to get more information about this code or suggest a better way to do it. ping me on LinkedIn 💼 , Twitter 🐦 , and Youtube📺

I write most of my post for the ‘Random GIS Talks’, which is a medium publication dedicated to posts regarding GIS installations, inventions, technologies, Case studies, etc. make sure to hit the subscribe button to stay updated for further posts 👉🏻 here 👈🏻

Make sure to leave 👏🏻 to the posts, this boosts the motivation for me to write more 😄

Adios!

--

--