Geobase/NHN - OSM Map Feature
- 1 Summary
- 2 Download
- 3 GeoBase - NHN WMS Layer
- 4 Script
- 5 Imported Area
- 6 Possible Upload Process
- 7 Features
- 8 Attribute Lists
- 9 Attributes common to all entities
This is the page for the chart showing the Geobase National Hydro Network (NHN) and comparing it with the OSM Map features.
The Geobase NRN Product (Data description) can be found here. http://www.geobase.ca/geobase/en/data/nhn/description.html
This page is a work in progress towards coming up with a mapping of the hydro network.
You can download the data from here http://osm.progysm.com/rncan/geobase/nhn_rhn/ please check with the email@example.com discussion list, to see who is working on which area.
GeoBase - NHN WMS Layer
The GeoBase product has a great WMS layer available, it lists all of the water features. The detail is not as extensive as the Toporama WMS (above), however this one shows the map features which are not available from Toporama. Such as;
- Water Direction Flow
- centerline of the water direction in lakes
- water junctions are highlighted
See GeoBaseNHN2osm for the import script.
See GeoBaseNHN Map Features for the OSM Tag matching.
This shows the type of data that is being imported for the area. It renders with arrows exactly which way the water flows along with the names where avilable. The area is from here]
|02LC000||St-Jérôme, Laurentides-Est, Québec||no||completed||completed||no||Yan Morin||completed|
|02LD000||Lac La Minerve, Lac Simon, Québec||no||completed||completed||no||Yan Morin||-|
|02LE000||La Lièvre, Mont-Laurier, Québec||completed||completed||completed||no||Yan Morin||-|
|02LF000||Municipalité de Kiamika, Québec||no||completed||completed||no||Yan Morin||-|
|02LG000||Réservoir Baskatong, Québec||no||completed||completed||no||Yan Morin||-|
|02LH000||La Gatineau, Maniwaki, Québec||no||completed||completed||no||Yan Morin||-|
|02JE000||Témiscamingue (Ouest), Québec and Ontario East||no||in progress||in progress||no||Yan Morin||no|
|02KG000||Témiscamingue (Maniwaki-Ouest), Québec||no||completed||completed||no||Yan Morin||completed|
|02KJ000||Témiscamingue, Québec||no||completed||completed||no||Yan Morin||completed|
|02PE000||La rivière Ste-Anne, Beaupré, Québec||no||completed||completed||no||Yan Morin||-|
|08GABX1||Howe Sound||in progress||in progress||in progress||completed||mbiker||completed|
|08HE0X1||Tahsis Area||no||no||completed||completed||Adam Dunn (Imports)||completed|
|08MHBX1||Lower Mainland||in progress||in progress||in progress||in progress||mbiker|
|08MHBX2||Chilliwack||no||no||no, use canvec||completed||Adam Dunn||completed|
|08PA001||Manning Park/Skagit River||no||no||no||completed||wbski||completed|
DatasetName: see GeoBase Data Selection
Possible Upload Process
We will use 08MHBX1 as an example. Download the NHN files for a basin from http://osm.progysm.com/rncan/geobase/nhn_rhn/08/nlflow/
for i in *gz; do gunzip $i; done
Merge, e.g. with osmsort.pl from http://osm2mp.googlecode.com/svn/trunk/osm2mp . Merge in JOSM etc is also possible:
perl osmsort.pl NHN_08MHBX1_1_0_HN_NLFLOW_1.*xml >08mhbx1.osm
Get rid of duplicated nodes: open in JOSM, run Validator, select Errors, click "Fix", Save .osm.
JOSM seems to have a bug: after validator, modified ways carry action='modify' attributes, even though the ways are brand new. This makes the .osm to be rejected by the API if uploaded with bulk_upload.py. So clean it:
sed -i -e "s/action='modify' //" 08mhbx1.osm
Now bulk upload it to OSM:
python bulk_upload.py -i 08mhbx1.osm -u user -p password -c 'Geobase NHN import, 08MHBX1 nnflow'
If it stops mid-way, just repeat it.
(to be updated with info on how to deal with conflicts with pre-existing OSM data).
Hydro network models features as Hydrographic entities that are specialized by different types. A lake, river, dock and a dam are all examples of Hydrographic entities.
Some of these features are available in canvec, so the Google Docs chart can be used to cross-reference http://spreadsheets.google.com/ccc?key=0Am70fsptsPF2clAwc29KaXlGaGFwS1piUkxZWjc0ekE&hl=en
The base Hydrographic entity provides the following attributes of interest
|nid||A UUID identifier that uniquely identifies this entity.||nat_ref=>uuid||See GeoBase: Common Tags|
|datasetName||The Geobase dataset that the entity comes from||geobase_dataset=>value||GeoBase: Common Tags|
Many of the other entities provide the following 'common' attributes (See the HNH for a detailed list of which entities provide which attributes
|name1||Official geographical name from the geographical name database.||name=>value|
|name2||Official geographical name from the geographical name database. (Alternate name?)||?||How is this used in practice? Does this tend to give the french name? A local name?|
|nameDate||The date at which the geographical name(s) was (were) associated to its (their) geographical name identifier.||YYYYMMDD|
|nameId||The geographical name identifier of the Name 1 attribute value from the geographical name database.||name_id=>value|
An area of water that is represented by a polygon, a WaterBody is an entity
The type of waterbody is described by the Water Definition attribute
A WaterBody maps to a closed area/polygon
Water that is represented by a single line on the map. A WaterLine is an entity
The type of waterline is described by the Water Definition attribute
GML Tag: gml2:NHN_HD_SLWATER_1
A WaterLine will map to a non-closed way/line
A shore line makes up the border of a body of water.
Shorelines can be Banks or Littorals and are identified by the gml elements <NHN_HN_BANK_1> or <HNH_HN_NOTTORAL_1>
The shoreline provides the attributes
|waterbodyNid||The node of the waterbody this is a shore of||Used to form a relation?|
|waterDefinition||See Water Definition attribute|
Shorelines also are involved in junctions
A feature representing an obstacle that disturbs or impedes the natural flow of surface water. ( )
Obstacles can be described by lines (<NHN_HE_OBSTACLELN_6>) or points (<NHN_HE_OBSTACLEPT_6>)
The <gml2:obstacleType> element describes the obstacle type according to the list Obstacle Type
Man Made Entities
Man made entities describe man made objects used to access or control water
They are described by the <NHN_HD_MANMADE_0> <HNH_HD_MANMADE_1> and <NHN_HD_MANMADE_2> GML elements.
The type of the feature is described by the <manMadeType> element according to the list Man Made Type
The status of the object is described by the GML element <manmadeStatus> according to the attribute list Man Made Status
A named feature describes "A feature delineating the extent, in whole or in part, of a toponymic phenomenon for which the geometry does not fully correspond to that of another feature." 
Named features are identified by the GML elements <NHN_TO_NAMEDFEA_0> (point) <HNH_TO_NAMEDFEA_1> (line) and <NHN_TO_NAMEDFEA_2> (area)
Named features are part of the toponomy package and might not be included in the data for some regions.
|geographicalNameDB||The geographical name database that this name comes from|
|name||The name of the feature as found in the geographical name database-->||name=>value|
|nameDate||The date at which the geographical name(s) was (were) associated to its (their) geographical||name_date=>value|
|nameId||The geographical name identifier from the geographical name database.||geobase_name_id=>value|
|relatedNid||The NID of the feature referenced by the Named Feature (foreign key).|
|entityType|| The nature of the named phenomenon. One of
* 1 Marine Waterbody * 2 Fault Line * 3 Landscape * 4 MassIce * 5 Mountains * 6 Peninsula * 7 Undersea Feature * 8 Inland Water
Named features are used to provide names to features other than those described by the feature types defined in the hydro network.
Comes from the gml attribute gml2:waterDefinition and gml2:waterDefinitionText
|7 (Tidal River)||waterway=>river|
|8 (Liquid Waste)||
The <obstacleType> attribute identifies the type of obstacle based on the following map
|5 (Disappearing Stream)|
|6 (Exposed Shipwreck)||barrier=>shipwreck|
Man Made Type
|2 (Dam)||waterway=dam|| maybe? --acrosscanadatrails 06:49, 12 December 2008 (UTC)
|4 (Breakwater)||A structure used for breaking the force of waves to protect a beach, harbour, or other waterfront facilities.|
|7 (Ramp)||leisure=slipway||unless there is another tag for it? --acrosscanadatrails 06:46, 12 December 2008 (UTC)|
|8 (Fish Ladder)|
Man Made Status
The Man Made Status attribute describes the operational condition of the manmade structure at a specified time.
Attributes common to all entities
GeoBaseNHN Feature Type Chart
Back to GeoBase Import page