LINZ geo name matching
This page is a bit of a sandbox where we will hash out how we will match geographic name data for the LINZ data import's geographic_name layer (previously named geo_name in the V16 version of the dataset). The full list is stored in the LINZ-2-OSM web app with JavaScript logic. When complete we will publish the data_dtd.xml file here.
- See the LINZ OSM wiki page for more info about the import.
- See the LINZ data sets page for a list of LINZ datasets. The LINZ online data dictionary which explains each layer in detail can be found here.
- See the LINZ attribute matching wiki page for more traditional geo-feature tag matching.
geographic_name
A-F
Point_description_code | Value | Description | OSM tag | Source data count (Mainland/Chathams) |
---|---|---|---|---|
AIR | AIRPORT | Landing ground for aeroplanes | aeroway=aerodrome
|
53/1 |
BAY | BAY/INLET | A salient of water into the land | natural=bay
|
2280/18 |
BCH | BEACH | Sand or gravel shore of a body of water | natural=beach
|
316/5 |
BDGE | BRIDGE | Structure spanning an obstacle | bridge=yes
|
132/0 |
BLDG | BUILDING | Man made structure for a specific use | building=yes
|
227/1 |
BNK | BANK | Underwater eminence which may dry at low tide | tidal=yes
|
19/0 |
BSN | MOUNTAIN BASIN | Bowl shaped depression in land | natural=mountain_basin
|
60/0 |
CAVE | CAVE | Subterranean chamber | natural=cave_entrance
|
48/0 |
CEM | CEMETERY | Place for burying the dead | amenity=grave_yard
|
14/0 |
CGND | CAMPING GROUND | Area used for temporary shelter | tourism=camp_site
|
nil |
CLIF | CLIFF | Steep rock face | natural=cliff
|
191/1 |
CRTR | CRATER | Depression caused by volcanic activity | natural=crater
|
11/0 |
DAM | DAM | Barrier constructed across a water course | waterway=dam
|
30/0 |
ESTY | ESTUARY | Tidal mouth of a river | estuary=yes
|
17/0 |
FALL | WATERFALL | Sudden steepening in river gradient | waterway=waterfall
|
281/0 |
FARM | FARM | Area been developed for farming | landuse=farm
|
11/0 |
FLAT | FLAT | Relatively level area of land | natural=flatlands
|
383/0 |
FORD | FORD | Shallow unbridged river crossing | highway=ford
|
20/0 |
FRST | FOREST | Dense growth of trees | natural=forest
|
400/0 |
G-M
Point_description_code | Value | Description | OSM tag | Source data count (Mainland/Chathams) |
---|---|---|---|---|
GEO | GEOTHERMAL AREA | Area of geothermal activity | place=geothermal
|
3/0 |
GLCR | GLACIER | Accumulation of slowly moving ice | natural=glacier
|
414/0 |
GLKS | GOLF LINKS | Area set out for golf | leisure=golf_course
|
nil |
GORG | GORGE/VALLEY | Linear depression in land surface | natural=gorge , see Proposed_features/gorge
|
696/1 |
HILL | HILL | A natural elevation of the Earth's surface | natural=peak
|
7028/48 |
HIST | HISTORIC | Area/structure of historic importance | historic=yes
|
375/1 |
HOSP | HOSPITAL | Institution for treatment of the sick | amenity=hospital
|
nil |
HSTD | HSTD | Homestead | building=homestead
|
9654/10 |
HUT | HUT | Simple rural building for shelter | tourism=alpine_hut
|
1225/0 |
ISLD | ISLAND | Body of land surrounded by water | place=island or place=islet
|
1195/30 |
ISTH | ISTHMUS | Neck of land joining two larger areas | natural=isthmus
|
7/0 |
LAKE | LAKE | Body of inland water | natural=water
|
1111/36 |
LOC | LOCALITY | Defined area of low or nil population | place=locality
|
3433/28 |
LTH | LIGHTHOUSE | Lighted structure for navigation | man_made=lighthouse
|
5/3 |
MCUL | ? | guess: Misc. CULtural feature | fixme=cultural
|
87/0 |
METR | METR | Metropolis: Major city | place=city
|
6/0 |
MINE | MINE | Excavation for the extraction of minerals | man_made=surface_mine
|
87/0 |
MNAT | MISCELLANEOUS NATURAL FEATURE | natural=yes
|
57/5 | |
MPLA | MISCELLANEOUS PLACE | Misc named place or area | place=locality
|
280/2 |
MRFM | MARINE ROCK FORMATION | natural=bare_rock + tidal=yes
|
160/18 |
N-R
Point_description_code | Value | Description | OSM tag | Source data count (Mainland/Chathams) |
---|---|---|---|---|
NAVB | NAVIGATIONAL BEACON | A navigational aid. | seamark=beacon
|
nil |
NLR | NLR | Native Land Reserve or Block | nil | |
PA | PA | A Maori locality | historic=pa
|
164/0 |
PARK | PARK | Area set aside for recreational use | leisure=park
|
292/3 |
PASS | PASS | Low point in a range of hills | mountain_pass=yes
|
690/0 |
PEN | PENINSULA | Land area nearly surrounded by water | natural=peninsula
|
62/0 |
PNT | POINT | Area protruding into water or floodplain | natural=headland
|
1954/40 |
POPL | POPULATED PLACE | Populated area less than a town | place=village
|
297/2 |
PPLN | PIPELINE | Conduit for carriage of liquids or gas | man_made=pipeline
|
4/0 |
RC | RACECOURSE | Circuit on which races are run | leisure=track
|
6/0 |
RDGE | RIDGE | Elongated elevation of land | natural=ridge
|
713/0 |
RDRF | ROAD RELATED FEATURE | Named road object | highway=feature
|
50/0 |
RLYF | RAILWAY RELATED FEATURE | Named railway object | railway=feature
|
8/0 |
RNGE | RANGE | Aligned and connected series of hills | place=locality + natural=mountain_range
|
824/0 |
ROCK | ROCK | Isolated rocky outcrop | natural=stone
|
124/1 |
RSTN | RAILWAY STATION | Stopping place for trains | railway=station
|
9/0 |
S-Z
Point_description_code | Value | Description | OSM tag | Source data count (Mainland/Chathams) |
---|---|---|---|---|
SBRB | SUBURB | Component part of a town | place=suburb
|
593/0 |
SCH | SCHOOL | Place of instruction | amenity=school
|
nil |
SEA | SEA | Ocean or large body of saltwater | place=sea see Proposed_features/Ocean
|
nil |
SKI | SKI | Area for skiing activities | sport=skiing
|
21/0 |
SLIP | SLIP | Area of unstable hillside | natural=landslip
|
16/0 |
SPR | SPRING | Natural issue of water | natural=spring
|
37/0 |
STRA | STRAIT | Narrow stretch of water | place=sea + type=strait
|
127/5 |
STRM | STREAM | Natural watercourse | waterway=stream
|
20335/63 |
SWMP | SWAMP | Permanently waterlogged area | natural=wetland + wetland=swamp
|
59/0 |
TOWN | TOWN | Town or city forming nucleus of region | place=town
|
59/0 |
TRCK | TRACK | Foot path | highway=path
|
1/0 |
TREE | TREE | Tree with historical significance | natural=tree + historic=yes
|
6/0 |
TRIG | TRIG | Geodetic Station | man_made=survey_point
|
nil |
TUNL | TUNNEL | Man made subterranean passage | tunnel=yes
|
33/0 |
TWAY | TRAMWAY | Narrow gauge bush railway | railway=narrow_gauge
|
2/0 |
UNIV | UNIVERSITY | Institution of higher learning | amenity=university
|
3/0 |
USAT | URBAN SATELLITE | S/c community adjacent to city | place=hamlet
|
56/0 |
WELL | WELL | Hole bored for the extraction of liquid or gas | man_made=well
|
3/0 |
WHF | WHARF | Structure for the berthing of vessels | man_made=pier
|
11/0 |
WILD | WILDERNESS AREA | Area preserved in natural state | see boundary=protected area , leisure=nature_reserve
|
nil |
WRCK | WRECK | Wrecked,sunken or stranded vessel | historic=wreck
|
22/0 |
WWAY | WATER WAY | Man made water course | waterway=man_made
|
152/0 |
Feature counts are for the LINZ topo V16 data.
Tag application script
#!/bin/sh
# script to search for tags and insert new OSM tags based on a '|' separated table file.
# specifically written for the LINZ geo_name data import but fine for general use
# written by H.Bowman June 2010 and released to the public domain.
#
# table example:
#AIR|aeroway=aerodrome
TABLE_FILE=linz_geo_name_conversion_table_thinned.dat
OSM_FILE=chat_geo_name.osm
while read LINE ; do
unset PNT_DESC KEY_VALUE KEY VALUE
#echo "[$LINE]"
PNT_DESC=`echo "$LINE" | cut -f1 -d'|'`
KEY_VALUE=`echo "$LINE" | cut -f2 -d'|'`
KEY=`echo "$KEY_VALUE" | cut -f1 -d'='`
VALUE=`echo "$KEY_VALUE" | cut -f2 -d'='`
echo "($PNT_DESC) ($KEY_VALUE) -> k=($KEY) v=($VALUE)"
sed -i -e "s+\(<tag k=\"LINZ:point_description_code\" v=\"$PNT_DESC\" />\)+\1\n <tag k=\"$KEY\" v=\"$VALUE\" />+" "$OSM_FILE"
done < "$TABLE_FILE"
Tag table
(derived from above table; items with two OSM tags each get their own line, e.g. SWMP)
AIR|aeroway=aerodrome BAY|natural=bay BCH|natural=beach BDGE|bridge=yes BLDG|building=yes BNK|tidal=yes BSN|natural=mountain_basin CAVE|natural=cave_entrance CEM|amenity=grave_yard CLIF|natural=cliff CRTR|natural=crater DAM|waterway=dam ESTY|estuary=yes FALL|waterway=waterfall FARM|landuse=farm FLAT|natural=flatlands FORD|highway=ford FRST|natural=forest GEO|place=geothermal GLCR|natural=glacier GORG|natural=gorge HILL|natural=peak HIST|historic=yes HSTD|building=homestead HUT|tourism=alpine_hut ISLD|place=island ISTH|natural=isthmus LAKE|natural=water LOC|place=locality LTH|man_made=lighthouse MCUL|fixme=cultural METR|place=city MINE|man_made=surface_mine MNAT|natural=yes MPLA|place=locality MRFM|natural=bare_rock MRFM|tidal=yes PA|historic=pa PARK|leisure=park PASS|mountain_pass=yes PEN|natural=peninsula PNT|natural=headland POPL|place=village PPLN|man_made=pipeline RC|leisure=track RDGE|natural=ridge RDRF|highway=feature RLYF|railway=feature RNGE|place=locality RNGE|natural=mountain_range ROCK|natural=stone RSTN|railway=station SBRB|place=suburb SKI|sport=skiing SLIP|natural=landslip SPR|natural=spring STRA|place=sea STRA|type=strait STRM|waterway=stream SWMP|natural=wetland SWMP|wetland=swamp TOWN|place=town TRCK|highway=path TREE|natural=tree TREE|historic=yes TUNL|tunnel=yes TWAY|railway=narrow_gauge UNIV|amenity=university USAT|place=hamlet WELL|man_made=well WHF|man_made=pier WRCK|historic=wreck WWAY|waterway=man_made
Placement
On the NZOGPS mailing list, Peter S wrote:
> The point coords describe the left, vertical lower case center location of > the label as it was applied to the 260 series maps, and usually to be found > in the most blank spot on the map near the proper location, the offset can > be literally kilometers away.