Wednesday, March 11, 2009

Toronto Code Sprint in absentia

While I was prevented from attending the recent code sprint in Toronto due to a large rock, Jody and I decided to use the excuse to sprint along in our time zone.

I had spent some time working on issues with PostGIS' support for curved geometries and was able to commit the fixes prior to the sprint. I had focused on the well known text (wkt) representations and parsing, simply because it's easier to fake up some data in a text format. This meant that the SQL-MM defined well known binary (wkb) was still unsupported. I spent much of my time sorting this out. It is in need of further test cases, but most of the heavy lifting is now done.

Jody took on a much more satisfying challenge, which was to connect uDig to my development PostGIS instance and actually render out a curved geometry. With time short, we took the approach of parsing the wkt and converting it into a linear approximation of the geometry using the segmentisation code I wrote for PostGIS back in the day. We had a great time porting the C code into Java, with Jody taking every opportunity to expound on the virtues of garbage collection and slagging C. For my part, I was happy to have another set of eyes on my code and once again rediscovered the virtues of clear comments, if only they would be read.

The end result, after two evenings work, is the following image. On the left is the geometry I drew using OpenJump to provide sensible points from which to derive a curved geometry. On the right is the uDig representation. It's curvy!

While this is not the end of the work required, it's a good start and paints a pretty picture.

Monday, March 2, 2009

Moving Target

It seems that no sooner have I finished blogging than the world shifts around me. At the time I was not sowing lies, but due to a slow response from presenters the deadline for submissions of workshops and tutorials for FOSS4G has been extended by one week to March 9th. So finally, score one for the procrastinators.
procrastinating kitteh

Thursday, February 26, 2009

FOSS4G 2009 - Workshops and Tutorial

After much procrastination, some humming and even a little hawing I've finally put in my submission to run a workshop this October at FOSS4G in Sydney. The process is quite painless, requiring only an abstract, description and some details about your presentation experience. Tutorials are also welcome, but act fast as the call for submissions closes on Monday.

Monday, February 23, 2009

PUGs in Paradise

A few weeks ago I had the opportunity to present an Introduction to PostGIS talk at the local PostgreSQL Users Group meeting. Having attended all of one meeting previously I knew the technical expertise that attendees were likely to have and was a little apprehensive about the presentation. On the bright side, I also had no expectation that I would be allowed to stick to my slides and was able to save some time in their production as a result.

I wasn't disappointed by the crowd. It more than filled the boardroom at Fujitsu in North Sydney; maybe fifteen people all told. I managed to make it to my third slide before I was sidetracked, leaping half way through the presentation for an example and not getting back on track for ten minutes or so. The group was much more up to speed in the intricacies of spatial data than I had feared and I was able to spend my time in interesting discussions instead of harping on about the basics. I did manage to work through all my slides, but I did so by taking twice the time I was alloted. The discussion continued across the street at the pub, as all such discussions do, though my inability to eat pub fare kept my evening short and somewhat giddy near the end.

I posted the slides on SlideShare and much to my surprise discover I had reached 128 views this morning. It's a small number by any standard, but in the absence of any particular linking (I haven't even blogged about it until today), or any effort at all spent in making it a pleasant read (not a single picture of a cat) it surprised me. I had honestly expected up to fifteen views. It has impressed upon me the need for presentations like this to be available. And now it is. It's a fairly poor presentation when not accompanied by dialogue, but I'm hoping to clean it up in my abundant spare time and turn it into something a little more stand-alone. Until then, comments are always welcome.

Monday, January 5, 2009

Beauty and the Beast

A link came across my desk this morning, with a note citing "another sooo sweet openlayers [sic] application." I expect I'm behind the curve on this, as I don't sit on the open layers lists, but I wanted to bring this to the attention of anyone who, like me, is tired of the overly cluttered and obfuscated applications that tend to bury beautiful functionality under a steaming pile of "it can also...". I really can't say much about the app. Everything I know is in that link, but I'm impressed by the cleanliness of the interface, the clarity of the map and the simplicity of the application as a whole. My only question is, why do I need to add a note to see the legend?

For some contrast, this is an example is another version of what seems to be the same application (no version details were obvious). The latter provides the same interface, but includes far more variety of markers, higher volume and a smaller minscale. Throw in the raster background and you end up with a fairly ugly map that personally find useless until the fifth highest scale level and unpleasant until the second. There seems to be no map at the first. While I certainly appreciate the value a raster can add at high scales, I much prefer the clean and clear effect of the NYC map.