Changeset 31014 in osm for applications/editors/josm/plugins/seachart/src/s57/S57obj.java
- Timestamp:
- 2015-02-17T14:05:54+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/src/s57/S57obj.java
r30992 r31014 10 10 package s57; 11 11 12 import java.util.EnumMap; 13 import java.util.HashMap; 14 import java.util.Map; 12 import java.util.*; 15 13 16 14 public class S57obj { … … 179 177 return Obj.UNKOBJ; 180 178 } 179 180 private static final HashMap<String, Obj> OSMtags = new HashMap<String, Obj>(); 181 static { 182 OSMtags.put("natural=coastline", Obj.COALNE); OSMtags.put("natural=water", Obj.LAKARE); 183 OSMtags.put("waterway=riverbank", Obj.RIVBNK); OSMtags.put("waterway=river", Obj.RIVERS); OSMtags.put("waterway=canal", Obj.CANALS); 184 OSMtags.put("wetland=tidalflat", Obj.DEPARE); 185 } 186 187 public static Obj OSMobj(String key, String val) { 188 Obj obj = OSMtags.get(key + "=" + val); 189 if (obj != null) { 190 return obj; 191 } 192 return Obj.UNKOBJ; 193 } 181 194 182 195 }
Note:
See TracChangeset
for help on using the changeset viewer.
