2012-08-31

init

New page

== Using LINZ Data Service as a WMS backdrop in JOSM ==

The [[LINZ]] data service provides [[WMS]] and [[WFS]] data sources. With the WMS data you have display on-the-fly raster backdrops for [[JOSM]] or [[Merkaartor]], and with the WFS data you can download data layers with GIS software like [[QGIS]].

Below is instructions on how to use the WMS data as a backdrop in JOSM. Both the cartographic 1:50,000 and 1:250,000 topo maps are available, as are some orthophotos (aerial photographs) and shaded relief elevation maps.

* ''Note: you don't want to trace this. See the [[LINZ]] wiki page for information on the sanctioned upload of the raw data that made these maps.

1. Go to the [http://data.linz.govt.nz/ LINZ Data Service website] and click ''Register'' in the top-right of the web page and make yourself an account. It's free, and they're quite generous in their usage terms.

2. Once you're registered and logged in, click on the ''Dashboard'' button at the top of the webpage and create yourself an OGC Web Services key. This will be an alpha-numeric string of 32 characters. You'll insert that into a URL. Follow the instructions here:

: http://data.linz.govt.nz/p/web-services/

3. Your WMS and WFS URLs will look like:

http://wms.data.linz.govt.nz/
/r/wms

http://wfs.data.linz.govt.nz/
/wfs

but with your key pasted in where it says
.

4. Start up [[JOSM]] and go to ''Edit → Preferences'' (F12).

5. Select the WMS/TMS settings tab on the bottom left.

6. A bunch of global [[WMS]] and [[TMS]] servers are already listed. Ignore them and focus on the ''Selected entries'' box at the bottom of the window. Click on the "+" button at the right-hand side of it to add a new WMS entry.

7. Change the menu name to like "LINZ Mainland Topo50" and replace the placeholder service URL with the WMS string from above with an "?" after it:

http://wms.data.linz.govt.nz/
/r/wms?

8. Next click on the [Get Layers] button to see the list of available online data layers. When you see "LINZ Data Service" click on the little triangle to the left of that to expand the list. You might want to drag the window a bit bigger at this point. (Alt+right-click-drag in Linux)

9. Look down the list, and highlight "NZ Raster Image (Topo50)". This is a mosaic of the standard 1:50k topo maps. (or pick any other WMS layer if you prefer)

: Clicking on the [Show bounds] button will show the bounding box of the WMS layer you've selected on a world map.

10. Click [ok] and it will be added to the list of ''Selected entries'' in the bottom pane.

11. Click [ok] again to close the Preferences window, and your new WMS layer will be available from the main Imagery menu. The menu item will be greyed out until you are within the range of the data. Zoom to NZ (maybe use the Mapnik TMS layer to start with, then un-tick its eyeball in the top right layer list) and select your new WMS source from the Imagery window. You should see it come up on the screen.

12. If you zoom in you'll notice the quality is quite granular. If you zoom out you'll notice that it is trying to download a huge amount of data. To reset the image quality to something suitable, right-click on the layer name in the top-right layer-list box and select "Change resolution" from the menu. Hopefully in future versions of JOSM this will happen automagically.

13. The topo50 map can be a bit cluttering, so to make it more of a background image click on the "Adjust Opacity" button in the middle of the layer-list box bottom-buttons (looks like a black to white tall skinny rectangle), and turn the level down to about 50%.

14. Use the layer to provide some context for what you're looking at if there isn't much on the Mapnik TMS layer for that area.

Happy mapping!

[[Category: New Zealand]]

Show more