Mapping Hacks

by Schuyler Erle, Rich Gibson and Jo Walsh

« The power of the press Show tracklogs and waypoints, with Ruby Source »

JOSM in the evening

October 10th, 2006 by Jo

During my recent month on the circuit I had the chance to run a couple of open mapping tools talk/workshops; I need to write up a narrative or schematic soon. One tool I showed a lot of and have become increasingly impressed with its solidity and functional simplicity, is JOSM, the Java-based offline OpenStreetmap editor written by Imi Scholz.

For me one of the best things about being back in Europe is the proximity to active mapmaking again. In new places I start actively going out of my way to collect traces of different streets for OSM. Back in London, I find the model to be very much more complete, and I’ve been going back over a lot of the features that I sketched in roughly a year and a half ago (and that I’m sure others have borne with my initial messiness and made corrections too) and trying to do a spot of data gardening.

To get started with JOSM one has to feed it tracks. I have a tiny test track of hundred metres or so around Limehouse Town Hall I use to load it up with. Then to haul the data down from OSM, and see how much has changed in the coverage. After this stage it’s also possible to save the raw trackpoint data back locally in GPX format.

josm download screen

Hooray! Lots of new and refined data showing where I’d drawn streets in error; where smaller features really start to look reliably filled in; where a goodish data density of trackpoints provides a good indicator of “primariness” or otherwise of streets on the basis of how frequently they are traversed. The very heavily marked streets provide a good reference point, too. I find myself moving nodes a lot and adding new nodes into segments that used to provide a broader picture of primary roads.

Having the e-courier data is interesting; one of these modern, dynamic and intelligent cab goods transfer companies that does optimised scheduling based on GPS. It accumulates a vast quantity of quite literal “drive-by data” which it was throwing away before coming to a data sharing agreement with OpenStreetmap. In places the e-courier data is a bit overwhelming. Canary Wharf is a massive business hub, a relatively recent development complex providing a counterweight to the City of London. An awful lot of couriers have reason to take things there. So the model of Canary Wharf looks like this - a more or less undifferentiated blob some hundred metres across.

I don’t really know where to begin, here; I suppose some things still need to be surveyed on foot, by hand. But on the whole the data density is tremendous - and the completion level of the map really seems to be coming together. The completion of the street-level vectors, that is; annotation-wise there’s a lot more to be done, and I want to think about ways of making that easier.

JOSM provides basic editing capacity for key-value pairs which correspond to properties of features. The latest version (which is predictably stable and always recommended, rather than the “latest release” lacking new features) provides a list of common pre-set keys - specifically those supported by Osmarender, the XLST-based SVG visualisation tool for OpenStreetmap maps.

However, JOSM doesn’t provide or suggest recommended values for those keys. The supported values are quite fully set out in OSM’s Map Features document. This is stable enough to be given a namespace and talked about authoritatively, maybe backing it up with an RDF schema one day. When I talked with Sven Anders in Hamburg he said the German approach was to use the English language key-value pairs and provide a mapping to the colloquial German terms on an equivalent wiki page.

One could describe JOSM as a “power-user tool” for OpenStreetmap. I wish a tool at one level of sophistication could unfold or fold into another. This is a special case though as the tasks at hand really are at different levels of detail. It gets to the point where the drawing is really done, at least of street segments, and the task is to collect them into “ways” representing contiguous street sections which share properties, and to add and augment those properties. The second pass calls for a metadata editor for features, not a feature editor.

As such I think it’s really too much to ask the “casual user” to deal with the overhead of a Java client that does much more than this. OpenLayers is a good candidate for a UI driver, the question then is hooking into the OSM API. I recall Chris Schmidt got about that far during the spate of OSM-reuse prototype demos we made and never finished last year in Boston. Near-instant gratification makes a lot of difference.

Posted in geodata, collaborative mapping, london, metadata, openstreetmap |

You can follow any responses to this entry through the RSS 2.0 feed. Trackback from your own site.


One Response to “JOSM in the evening”

  1. RichardH Says:
    November 1st, 2006 at 1:11 pm

    I’ve just spent a pleasant weekend walking in the Surrey Hills with OSM folks( http://wiki.openstreetmap.org/index.php/WikiProject_Surrey_Hills_England ), and now I’ve got to upload my traces to OSM. But first I need to clean up the wobbles and fix the satellite dropouts.

    As you say, “JOSM provides basic editing capacity for key-value pairs”, but at least in my hands (I’m a casual user, not a power user) JOSM doesnt seem to be very good for deleting and joining up bits of track.

    I think what is needed here is a sort of IDE for gpx files. The editor would have two panes; a map view in one pane and a data view in the other. You’d do your editting in the data view (which would have rows and cols like excel) and the results of the edits would show up in real time in the map view.

    Do you know if such an editor exists?

    People who drive, or cycle, straight from A to B may not need this sort of editting, but I think this would be particularly appreciated by walkers, because our tracks tend to need a bit more cleaning up; sometimes over several hundred km (see my problems at http://users.skynet.be/watermael/gps/50358.html for example)

    So far, the best I’ve found is GPS TrackMaker (http://www.gpstm.com/ ). This provides a pretty good map view, but (at least in the free version) no data view. I’ve just had to resort to perl to work over the satellite dropouts.

    Your comments would be appreciated

Leave a Reply

You must be logged in to post a comment.


Entries (RSS) and Comments (RSS).