JOSM Plugin for WMS, Map Rectifier

December 8, 2006 at 6:39 pm | In Mapping, geo, gis, gps, neogeography, openstreetmap |

Here’s a plugin for the OpenStreetMap editing application, JOSM, that allows you to use WMS and in particular, Metacarta’s Map Rectfier. Get it here: WMSplugin.jar

Now that the Map Rectifier has the Mapnik OpenStreetmap layer, its possible to register, rectify and warp an uploaded image using the OSM data and then, using the WMS plugin to see the resulting image in JOSM.

I took a photocopy of a 1933 Ordnance Survey map of the Headingley area (you can just about see the cricket ground bottom left), and then, not having access to a scanner, took a mobile phone photo of that photocopy, and uploaded it to Map Rectifier.

image005_small.jpg

Using the OSM layer, I was able to rectify the image, and experimented with a number of different warping options (think I settled on Quadratic Fit).

Map rectifier & OSM

Since there is a WMS link to the warped image, I was able to alter the Landsat plugin in JOSM to make it show the rectified image.

Rectifier WMS in JOSM

This could allow you to digitize ways, label streets, fill in areas (like that cricket ground!)

The plugin is based on the Landsat plugin (with menus from osmarender plugin), with tweaks to get the URLs that are generated from the Rectifier working too. It should also work with any WMS too, and it defaults to Landsat. In theory it would be possible to see the Mapnik/Osmarender WMS in JOSM using this plugin too… might be useful?

The Plugin installs a “WMS” menu, with four items: 1) to set a fully formed WMS url, 2) to use a Map Rectifier URL, and 3) to default back to using Landsat. There’s also an option to get some information and help (4). You can also change the WMS url using the advanced preferences wmsplugin.url.

Of course, make sure that licence, terms of any WMS and the copyright of the rectified image covers use for OpenStreetMap.

WMSplugin.jar sources (zip) … (v1.0) however, expect to see changes as bugs are discovered and squashed.

Full WMS example:
http://onearth.jpl.nasa.gov/wms.cgi?request=GetMap& layers=global_mosaic&styles=&srs=EPSG:4326&ormat=image/jpeg

Metacarta Map Rectifier WMS URL input format example:
http://labs.metacarta.com/rectifier/wms.cgi?layer=image&
image=Image005.png-1165513186.tif

8 Comments »

RSS feed for comments on this post. TrackBack URI

  1. [...] a JOSM map rectification plugin over here that looks [...]

    Pingback by OpenGeoData » Blog Archive » Some news — January 5, 2007 #

  2. And what about laying a single GeoTiff image as background on JOSM? I have some very good quality images that would allow me to add easily data to OSM.

    Do you think that it would be difficult to have such a plugin for JOSM?

    Comment by Gari — January 19, 2007 #

  3. Gari, thats a great idea!

    Actually, it should ideally, be able to handle any georeferenced image format.
    It shouldnt be that difficult for a plugin, one would have to make sure the images are in a suitable projection for josm however beforehand, i guess.

    tim

    Comment by tim — January 25, 2007 #

  4. Thanks for your answer! I finally got access to the WMS of the local government and it returns vertical (and corrected) image tiles. They gave me the permission to use it for OSM, so now I can edit drawing on the image!

    Comment by Gari — January 25, 2007 #

  5. [...] map is available as a WMS layer. From here, we can import the layer into JOSM, using Chippy’s WMS plugin. The results look like [...]

    Pingback by Mapping the Isle of Man | OMB — March 1, 2007 #

  6. [...] something that at first look, feels a lot like Metacarta’s Map Rectifier that I’ve blogged about before - so I thought I would give it a go, and compare the [...]

    Pingback by mapmixer & rectifier « thinkwhere — September 13, 2007 #

  7. [...] Map Mixer, something that at first look, feels a lot like Metacarta’s Map Rectifier that I’ve blogged about before - so I thought I would give it a go, and compare the [...]

    Pingback by Blog of Blogs » Blog Archive » mapmixer & rectifier « thinkwhere — September 26, 2007 #

  8. [...] by Metacarta’s Map Rectifier, which I have written about here and here, it was originally primarily planned to be able to support the WMS plugin I developed for the JOSM [...]

    Pingback by First peek into the map warper project « thinkwhere — June 3, 2008 #

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.