Changeset 29175 in osm for applications/editors/josm/plugins/smed2/src/s57
- Timestamp:
- 2013-01-06T16:33:30+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/s57/S57val.java
r29172 r29175 1086 1086 } 1087 1087 1088 public static Object nullVal(Att att) { 1089 switch (keys.get(att).conv) { 1090 case A: 1091 case S: 1092 return ""; 1093 case E: 1094 for (Enum<?> key : keys.get(att).map.keySet()) 1095 return key; 1096 case L: 1097 ArrayList<Enum<?>> list = new ArrayList<Enum<?>>(); 1098 for (Enum<?> key : keys.get(att).map.keySet()) { 1099 list.add(key); 1100 return list; 1101 } 1102 case I: 1103 return null; 1104 case F: 1105 return null; 1106 } 1107 return null; 1108 } 1109 1088 1110 public static String decodeValue(String val, Integer attl) { // Convert S57 attribute value string to OSeaM attribute value string 1089 1111 Att att = S57att.lookupAttribute(attl);
Note:
See TracChangeset
for help on using the changeset viewer.