README.md 736 Bytes
Newer Older
Eliot Blennerhassett's avatar
Eliot Blennerhassett committed
1 2
This is to support import of LINZ address database into OSM

Eliot Blennerhassett's avatar
Eliot Blennerhassett committed
3
Discussion at https://chat.nzoss.nz/channel/opengis and https://wiki.openstreetmap.org/wiki/LINZ/Address_Import
Eliot Blennerhassett's avatar
Eliot Blennerhassett committed
4

Eliot Blennerhassett's avatar
Eliot Blennerhassett committed
5 6
Inputs

Eliot Blennerhassett's avatar
Eliot Blennerhassett committed
7 8
LINZ simplified street address database:
  Full nz-street-address.gpkg obtained from https://data.linz.govt.nz/layer/3353-nz-street-address/
Eliot Blennerhassett's avatar
Eliot Blennerhassett committed
9

Eliot Blennerhassett's avatar
Eliot Blennerhassett committed
10 11
OSM items with addr:housenumber key:
  Run xapi-osm-nz-addr.sh to obtain nz_address-osm_raw.sqlite
Eliot Blennerhassett's avatar
Eliot Blennerhassett committed
12 13 14 15 16 17 18 19 20

Run spatialite osmlinzaddr.sqlite < init_osmlinzaddr_spatialite.sql
to initialize working database

Run spatialite osmlinzaddr.sqlite < import-xref.sql
to import the LINZ and OSM datasets, and create a cross reference
of duplicate addresses.

Run osmlinzaddr.py to generate OSM changesets
Eliot Blennerhassett's avatar
Eliot Blennerhassett committed
21
--help shows options.
Eliot Blennerhassett's avatar
Eliot Blennerhassett committed
22