{"id":344,"date":"2008-12-15T12:34:32","date_gmt":"2008-12-15T17:34:32","guid":{"rendered":"http:\/\/crschmidt.net\/blog\/?p=344"},"modified":"2008-12-15T12:34:32","modified_gmt":"2008-12-15T17:34:32","slug":"using-jython-geotools","status":"publish","type":"post","link":"https:\/\/crschmidt.net\/blog\/archives\/344\/using-jython-geotools\/","title":{"rendered":"Using Jython + GeoTools"},"content":{"rendered":"<p>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&#8217;t know anything about the project, packaging&#8230; or language. <\/p>\n<p>Thankfully, I&#8217;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.<\/p>\n<p>The code is very simple: the <a href=\"http:\/\/crschmidt.net\/mapping\/geotools-epsg-server.py\">geotools-epsg-server<\/a> just takes in a code, and spits out WKT. It uses the GeoTools CRS package, and a BaseHTTPServer.<\/p>\n<p>It&#8217;s not much, but it&#8217;s enough to get me in the right direction. Maybe I&#8217;ll even stop whining about Java so much, since I can use it more like Python&#8230;<\/p>\n<p>Nah, that wouldn&#8217;t be any fun.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;t know anything about the project, packaging&#8230; or language. Thankfully, I&#8217;m now much better off, and have put together a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[108,44],"tags":[],"class_list":["post-344","post","type-post","status-publish","format-standard","hentry","category-jython","category-locality-and-space"],"_links":{"self":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/posts\/344","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/comments?post=344"}],"version-history":[{"count":0,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/posts\/344\/revisions"}],"wp:attachment":[{"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/media?parent=344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/categories?post=344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/crschmidt.net\/blog\/wp-json\/wp\/v2\/tags?post=344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}