Using Jython + GeoTools

So, after a weekend of working with Java and GeoTools, suddenly things got a lot simpler to work with in Jython. This is a case of trying to do the completely wrong thing because I don’t know anything about the project, packaging… or language.

Thankfully, I’m now much better off, and have put together a little HTTP server that runs and gives me back WKT for any EPSG code, using Jython + GeoTools.

The code is very simple: the geotools-epsg-server just takes in a code, and spits out WKT. It uses the GeoTools CRS package, and a BaseHTTPServer.

It’s not much, but it’s enough to get me in the right direction. Maybe I’ll even stop whining about Java so much, since I can use it more like Python…

Nah, that wouldn’t be any fun.

One Response to “Using Jython + GeoTools”

  1. whit Says:

    I’ve been looking for an excuse to play with http://modjy.xhaus.com/index.html which looks like it would allow you to run a python wsgi app as a serverlet. Might be useful for something like this, or serving a python based webapp from the same server container as an instance of geoserver.

Leave a Reply