NHD Rules

From OpenStreetMap Wiki
Jump to: navigation, search

Here are some rules that can be used to import data from the National Hydrography Dataset using Shp-to-osm.jar.

# Version 1.1
# Last Updated May 02, 2011

outer,ComID,,nhd:com_id,-
#outer,FDate,,nhd:fdate,-
#outer,GNIS_ID,,gnis:id,-
#outer,Elevation,,ele,-
outer,ComID,,source,NHD
outer,FTYPE,,nhd:ftype,-
outer,FCode,,nhd:fcode,-
outer,GNIS_Name,,name,-
#outer,ComID,,natural,water
outer,ReachCode,,nhd:reach_code,-

line,ComID,,nhd:com_id,-
#line,FDate,,nhd:fdate,-
#line,GNIS_ID,,gnis:id,-
#line,Elevation,,ele,-
line,ComID,,source,NHD
line,FTYPE,,nhd:ftype,-
line,FCode,,nhd:fcode,-
line,GNIS_Name,,name,-
line,ReachCode,,nhd:reach_code,-

point,ComID,,nhd:com_id,-
#point,FDate,,nhd:fdate,-
#point,GNIS_ID,,gnis:id,-
#point,Elevation,,ele,-
point,ComID,,source,NHD
point,FTYPE,,nhd:ftype,-
point,FCode,,nhd:fcode,-
point,GNIS_Name,,name,-
point,ReachCode,,nhd:reach_code,-

#Flowline (NHDFlowline.shp, LineString)
# possibly for following line -  line,FTYPE,CanalDitch,waterway,canal
line,FCode,33400,waterway,stream
line,FCode,33600,waterway,ditch
line,FCode,33601,waterway,ditch
line,FCode,33602,waterway,ditch
line,FCode,46003,waterway,stream
line,FCode,46003,intermittent,yes
line,FCode,46006,waterway,stream
line,FCode,46007,waterway,stream
line,FCode,34300,waterway,dam
line,FCode,34305,waterway,dam
line,FCode,34306,waterway,dam
line,FCode,42800,man_made,pipeline
line,FCode,42801,man_made,pipeline
line,FCode,42801,pipe_type,water
line,FCode,42801,location,overground
line,FCode,42802,man_made,pipeline
line,FCode,42802,pipe_type,water
line,FCode,42802,location,aboveground
line,FCode,42802,bridge,aqueduct
line,FCode,42803,man_made,pipeline
line,FCode,42803,pipe_type,water
line,FCode,42803,location,underground
line,FCode,42804,man_made,pipeline
line,FCode,42804,pipe_type,water
line,FCode,42804,location,underwater
line,FCode,42805,man_made,pipeline
line,FCode,42805,pipe_type,water
line,FCode,42805,location,overground
line,FCode,42806,man_made,pipeline
line,FCode,42806,pipe_type,water
line,FCode,42806,location,aboveground
line,FCode,42806,bridge,aqueduct
line,FCode,42807,man_made,pipeline
line,FCode,42807,pipe_type,water
line,FCode,42807,location,underground
line,FCode,42808,man_made,pipeline
line,FCode,42808,pipe_type,water
line,FCode,42808,location,underwater
line,FCode,42809,man_made,pipeline
line,FCode,42809,pipe_type,water
line,FCode,42809,location,overground
line,FCode,42810,man_made,pipeline
line,FCode,42810,pipe_type,water
line,FCode,42810,location,aboveground
line,FCode,42810,bridge,aqueduct
line,FCode,42811,man_made,pipeline
line,FCode,42811,pipe_type,water
line,FCode,42811,location,underground
line,FCode,42812,man_made,pipeline
line,FCode,42812,pipe_type,water
line,FCode,42812,location,underwater
line,FCode,42813,man_made,pipeline
line,FCode,42813,pipe_type,water
line,FCode,55800,waterway,stream
outer,FCode,34300,waterway,dam
outer,FCode,34305,waterway,dam
outer,FCode,34306,waterway,dam

#NHDArea.shp, MultiPolygon
outer,FCode,46006,waterway,riverbank
outer,FCode,43100,whitewater,rapids


#Water Bodies (NHDWaterbody.shp, MultiPolygon) 
outer,FCode,39001,natural,water
outer,FCode,39001,occurrence,intermittent
outer,FCode,39004,natural,water
outer,FCode,39009,natural,water
outer,FTYPE,Reservoir,man_made,wastewater_plant
outer,FTYPE,SwampMarsh,natural,wetland
outer,FCode,46600,natural,wetland

#NHDPoint.shp
point,FTYPE,ANCHORAGE,waterway,dock
point,FTYPE,AREA TO BE SUBMERGED,description,submerged
point,FTYPE,BAY/INLET,natural,bay
# The following probably aren't appropriate as points
#point,FTYPE,BRIDGE,bridge,yes
#point,FTYPE,CONNECTOR,description,connector
#point,FTYPE,CANAL/DITCH,waterway,canal
#point,FTYPE,CREVASSE FIELD,description,crevasse field
#point,FTYPE,DAM/WEIR,waterway,dam
point,FTYPE,FISH LADDER,amenity,fish_ladder
#point,FTYPE,PLAYA,waterway,playa
#point,FTYPE,FLUME,waterway,canal
#point,FTYPE,FORESHORE,water,tidal
#point,FTYPE,FUMAROLE,waterway,fumarole
point,FCode,36700,waterway,gaging_station
point,FCode,36900,waterway,lock_gate
point,FCode,36901,waterway,lock_gate
point,FCode,36901,waterway,type,drydock
point,FCode,36902,waterway,lock_gate
point,FCode,36902,waterway,type,floodgate
point,FCode,36903,waterway,lock_gate
point,FCode,36903,waterway,type,lock
point,FCode,36904,waterway,lock_gate
point,FCode,36904,waterway,type,tidegate
point,FCode,36905,waterway,lock_gate
point,FTYPE,GEYSER,natural,spring
point,FCode,37300,hazard_type,unspecified
point,FCode,37301,hazard_type,unspecified
point,FCode,37302,hazard_type,crib area
point,FCode,37303,hazard_type,foul ground
point,FCode,37304,hazard_type,mine danger area
point,FCode,37305,hazard_type,piling area
point,FCode,37306,hazard_type,platform area
point,FCode,37307,hazard_type,reef area
point,FCode,37308,hazard_type,rock area
point,FCode,37309,hazard_type,shoal
point,FCode,37310,hazard_type,snag/stump area
point,FCode,37311,hazard_type,well area
point,FCode,37312,hazard_type,wreckage
#point,FCode,37800,natural,glacier
#point,FCode,37801,natural,glacier
#point,FCode,37801,type,alpine_glacier
#point,FCode,37802,natural,glacier
#point,FCode,37802,type,ice_shelf
#point,FCode,37803,natural,glacier
#point,FCode,37803,type,continental_glacier
#point,FCode,37804,natural,glacier
#point,FCode,37804,type,pack_ice
#point,FCode,37805,natural,glacier
#point,FCode,37805,type,snowfield
#point,FCode,37806,natural,glacier
#point,FCode,39000,natural,water
#point,FCode,39001,natural,water 
#point,FCode,39001,water,intermittent
#point,FCode,39001,type,salt
#point,FCode,39002,natural,water 
#point,FCode,39002,water,intermittent
#point,FCode,39003,natural,water
#point,FCode,39003,type,salt
#point,FCode,39004,natural,water
point,FTYPE,LOCK CHAMBER,lock,yes
#point,FCode,40300,landuse,basin
#point,FCode,40301,landuse,basin
#point,FCode,40301,type,debris_basin
#point,FCode,40302,landuse,basin
#point,FCode,40302,type,dewatering_area
#point,FCode,40303,landuse,basin	
#point,FCode,40303,type,duck_pond
#point,FCode,40304,landuse,basin
#point,FCode,40305,landuse,basin
#point,FCode,40305,type,percolation_basin
#point,FCode,40306,landuse,basin
#point,FCode,40306,type,retarding_basin
#point,FCode,40307,landuse,basin
#point,FCode,40307,type,not_controlled
point,FTYPE,MUD POT,natural,mud
#point,FTYPE,NONEARTHERN SHORE,type,nonearthern_shore
#point,FTYPE,PIPELINE,man_made,pipeline
point,FTYPE,RAPIDS,whitewater,rapids
point,FTYPE,REEF,natural,reef
#point,FTYPE,RESERVOIR,landuse,reservoir
point,FCode,44100,natural,rock
point,FCode,44101,natural,rock
point,FCode,44101,type,above_water
point,FCode,44102,natural,rock
point,FCode,44102,type,under_water
point,FTYPE,SINK/RISE,type,sink_or_rise
point,FTYPE,SPILLWAY,waterway,spillway
point,FCode,45800,natural,spring
point,FCode,45801,natural,spring
point,FCode,45802,natural,spring
point,FCode,45802,type,alkaline
point,FCode,45803,natural,spring
point,FCode,45803,type,hot
point,FCode,45804,natural,spring
point,FCode,45804,type,sulphur
#point,FTYPE,STREAM/RIVER,waterway,stream
#point,FTYPE,SWAMP/MARSH,natural,wetland
#point,FTYPE,TUNNEL,tunnel,yes
#point,FTYPE,WASH,natural,wash
#point,FTYPE,WATERFALL,waterway,waterfall
point,FTYPE,WELL,man_made,well
point,FTYPE,WRECK,historic,wreck
#point,FTYPE,ESTUARY,landuse,estuary