Sunday, June 12, 2011

Geoserver and CADRG RPFTOC support

I always wanted to start a blog, but always thought that the things I am doing, learning or discovering are trivial. I am interested in many things. One of the things I like is Geoserver. It is easy to setup and adding new data stores and layers is easy. For me the biggest lack in functionality is the support for the RPF TOC format. GDAL supports this format, however the software layers between GDAL and Geoserver do not have the required functionality. The documentation claims it is is easy to add the missing functionality by implementing a few classes and actually it is really not that hard. I managed to do this in a couple of hours. The patches are submitted to the imageio-ext project (patch 1) and the Geotools project (patch 2), so I expect this functionality to end up in Geoserver in the near future. To my surprise no changes where necessary to Geoserver and the functionality was available after deploying the jar files to the right locations. My compliments to the Geoserver team.
Update: The patch has been committed to imageio-ext and will appear in geoserver. My guess is that is will be in the next version of geoserver (2.2). If you want to try out this new functionality in version 2.1.0 then you can download unsupported patched jar files (download). Install your geoserver 2.1.0 with GDAL support and install the jar files in webapps/geoserver/WEB-INF/lib. Make sure you replace gt-imageio-ext-gdal-2.7.1.jar with gt-imageio-ext-gdal-2.7.1.modified.jar.

2 comments:

  1. This is great and answers the question on one of my projects. Any other updates on documentation of how to use this after you get the jars in place? Expected functionality in the geoserver admin page?

    ReplyDelete
  2. The easiest way of getting the RPFTOC support is to get the nightly build of geoserver (Trunk). You will also need to download the gdal extensions (geoserver-2.2-SNAPSHOT-gdal-plugin.zip). Unzip according to the description in http://docs.geoserver.org/latest/en/user/data/gdal.html

    You will still need to install the GDAL libraries, JAI etc. (http://java.net/projects/imageio-ext/downloads/directory/Releases/Dependencies/GDAL)

    ReplyDelete