Changeset 32909 in osm for applications/editors/josm/plugins/seachart/src/s57/S57box.java
- Timestamp:
- 2016-09-03T16:52:05+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/src/s57/S57box.java
r32907 r32909 4 4 import java.util.ArrayList; 5 5 6 import s57.S57map.AttMap; 6 7 import s57.S57map.Edge; 7 8 import s57.S57map.Feature; 9 import s57.S57map.ObjTab; 8 10 import s57.S57map.Pflag; 11 import s57.S57map.Prim; 9 12 import s57.S57map.Rflag; 10 13 import s57.S57map.Snode; … … 67 70 } 68 71 for (Feature feature : map.features.get(Obj.COALNE)) { 69 Feature land = map.new Feature();72 Feature land = new Feature(); 70 73 land.id = ++map.xref; 71 74 land.type = Obj.LNDARE; 72 75 land.reln = Rflag.MASTER; 73 land.objs.put(Obj.LNDARE, map.new ObjTab());74 land.objs.get(Obj.LNDARE).put(0, map.new AttMap());76 land.objs.put(Obj.LNDARE, new ObjTab()); 77 land.objs.get(Obj.LNDARE).put(0, new AttMap()); 75 78 if (feature.geom.prim == Pflag.AREA) { 76 79 land.geom = feature.geom; … … 139 142 } 140 143 for (Land land : lands) { 141 Edge nedge = map.new Edge();144 Edge nedge = new Edge(); 142 145 nedge.first = land.last; 143 146 nedge.last = land.first; … … 166 169 } 167 170 map.edges.put(++map.xref, nedge); 168 land.land.geom.elems.add( map.new Prim(map.xref));171 land.land.geom.elems.add(new Prim(map.xref)); 169 172 land.land.geom.comps.get(0).size++; 170 173 land.land.geom.prim = Pflag.AREA; … … 173 176 } 174 177 return; 175 176 178 } 177 178 179 }
Note:
See TracChangeset
for help on using the changeset viewer.