Changeset 31737 in osm for applications/editors/josm/plugins/seachart
- Timestamp:
- 2015-11-09T15:16:40+01:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/seachart/src/s57
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/src/s57/S57enc.java
r31735 r31737 255 255 ArrayList<ArrayList<Fparams>> objects = new ArrayList<ArrayList<Fparams>>(); 256 256 ArrayList<Long> slaves = new ArrayList<Long>(); 257 long slaveid = feature.id & 0x01ffffffffffffffl;257 long slaveid = feature.id + 0x0100000000000000l; 258 258 for (Entry<Obj, ObjTab> objs : feature.objs.entrySet()) { 259 259 Obj objobj = objs.getKey(); … … 267 267 Object[] attf = new Object[0]; 268 268 Object[] natf = new Object[0]; 269 for (Entry<Att, AttVal<?>> att : object.getValue().entrySet()) { 269 AttMap atts = map.new AttMap(); 270 atts.putAll(object.getValue()); 271 if (master) { 272 atts.putAll(feature.atts); 273 } 274 for (Entry<Att, AttVal<?>> att : atts.entrySet()) { 270 275 if (!((obj == Obj.SOUNDG) && (att.getKey() == Att.VALSOU))) { 271 276 long attl = S57att.encodeAttribute(att.getKey()); -
applications/editors/josm/plugins/seachart/src/s57/S57map.java
r31735 r31737 40 40 ISOL, // Node not part of Edge 41 41 CONN, // Edge first and last nodes 42 TRNK, // Edge truncated polygon nodes 42 43 DPTH // Sounding nodes 43 44 } -
applications/editors/josm/plugins/seachart/src/s57/S57osm.java
r31735 r31737 18 18 import s57.S57val.*; 19 19 20 public class S57osm { // OSM to S57 Object/Attribute conversions 20 public class S57osm { // OSM to S57 Object/Attribute and Object/Primitive conversions 21 22 enum Prims { P, L, A, PA, PL, LA, PLA } 23 private static final EnumMap<Obj, Prims> S57prims = new EnumMap<Obj, Prims>(Obj.class); 24 static { 25 S57prims.put(Obj.UNKOBJ, Prims.PLA); 26 } 21 27 22 28 static class KeyVal<V> {
Note:
See TracChangeset
for help on using the changeset viewer.