LINZ/Howto

From OpenStreetMap Wiki
Jump to: navigation, search

Contents

A short summary of how to help with the OpenStreetMap LINZ data import

General

Getting started with JOSM and Merkaartor

There are many tutorials for the JOSM and Merkaartor editors elsewhere in this wiki, I won't try to replicate one poorly here.

The basic point is that you'll have to download one of the programs and install it locally first, and you will also need to create yourself a OSM login account to be allowed to upload data to the main OSM servers. If you don't have one of these yet, do it now:

Go to http://www.osm.org and in the top right of the screen click on "sign up"

So far we have been using the LINZ Data Upload login account to do the bulk uploads. Ask about this on the NZOpenGIS mailing list.

If you are just starting out and a bit hesitant to mess something up, you can try uploading to the "test" server instead of the "real" one. You won't be able to view it online, but it is good for practice. In JOSM go to Edit→Preferences Connections tab set untick the default OSM server and for the OSM Server URL type:

http://api06.dev.openstreetmap.org/api

(?correct?)

Once you are confident that you are doing the right thing switch it back to use the "real" server & live database.

Getting started with the LINZ data

Using "Rob's method", described here:

The general idea is that you need to login to Rob's LINZ-2-OSM web app (ask Rob to set you up a login first)

once logged in you'll see a button on the front page:

Convert:  [Run OSM Conversion]

then

Bounds: [    ]   (minx,miny,maxx,maxy)
Dataset: NZ Mainland V16
Layer: Coastline

The bounding box bounds are given in x for degrees longitude and y for degrees latitude. Southern and Western hemispheres get a negative sign. Thus bbox=min_x,min_y,max_x,max_y is west,south,east,north

Some example bounds for various places around NZ are given in this wiki at LINZ#Areas.

Uploading

Uploading high-resolution coastline

The idea is to replace the current PGS coastline with the much higher LINZ coastline data.

natural=coastline source=PGS

This will select coastline features that are tagged as having come from PGS. Once the search is complete the found features will be highlighted in red. Type "3" in JOSM or F3 in Merk to zoom to them.

Replace old PGS coastline with LINZ version: Southern Pitt Island
[*] Upload data in chunks of objects. Chunk size: 750
n.b.: this has nothing to do with the 50,000 feature changes per upload limit and will not help get around that.

Uploading large polygon layers

Cleaning

Removing duplicate nodes

Background reading:

(Things like bridges crossing streams or roads parallel to forests should not be merged (as the forest does not actually make it into the centre line GPS coordinate of the road, and (with the exception of fords) the road and the stream are not actually connected), but things like sand-ground cover transitioning into mud ground-cover or rivers connecting to lakes should be merged.)
After it downloads your map data should appear in the JOSM editor window.
(the '|' means "or", so add to the selection if the tag has natural=water OR natural=wetland)
(use with care as it is easy to merge two nodes which are not actually duplicates, just rightly close together)
Personal tools
Namespaces
Variants
Actions
site
Toolbox