Changeset 31027 in osm for applications/editors/josm/plugins/seachart/src/s57/S57val.java
- Timestamp:
- 2015-02-19T21:52:40+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/src/s57/S57val.java
r31014 r31027 1242 1242 } 1243 1243 1244 static class KeyVal {1245 Att key;1246 Object val;1247 KeyVal(Att k, Object v) {1248 key = k;1249 val = v;1250 }1251 }1252 1253 private static final HashMap<String, KeyVal> OSMtags = new HashMap<String, KeyVal>();1254 static {1255 OSMtags.put("wetland=tidalflat", new KeyVal(Att.DRVAL2, (double)0));1256 }1257 1258 public static AttVal OSMatt(String key, String val) {1259 KeyVal att = OSMtags.get(key + "=" + val);1260 if (att != null) {1261 return new AttVal(att.key, Conv.F, att.val);1262 }1263 return new AttVal(Att.UNKATT, Conv.A, null);1264 }1265 1266 1244 }
Note:
See TracChangeset
for help on using the changeset viewer.
