Changeset 30282 in osm for applications/editors/josm/plugins/smed2/src
- Timestamp:
- 2014-02-15T13:01:07+01:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/smed2/src/s57
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/s57/S57map.java
r30280 r30282 316 316 feature.geom.refs.add(comp); 317 317 ListIterator<S57map.Prim> ite = feature.geom.elems.listIterator(); 318 long first = 0; 318 319 while (ite.hasNext()) { 319 320 Prim prim = ite.next(); 320 if (prim.outer) { 321 comp.size++; 322 321 Edge edge = edges.get(prim.id); 322 if (!prim.outer) { 323 if (first == 0) { 324 feature.geom.inners++; 325 comp = new Comp(ref++, 0); 326 feature.geom.refs.add(comp); 327 first = edge.first; 328 } else { 329 if (edge.last == first) { 330 first = 0; 331 } 332 } 323 333 } 334 comp.size++; 324 335 } 325 336 } … … 609 620 } 610 621 611 public long nextRef( ) {622 public long nextRef(boolean all) { 612 623 long ref = eit.nextRef(); 613 if ( ref == lastref) {624 if (!all && (ref == lastref)) { 614 625 ref = eit.nextRef(); 615 626 } 616 627 lastref = ref; 617 628 return ref; 629 } 630 631 public long nextRef() { 632 return nextRef(false); 618 633 } 619 634 -
applications/editors/josm/plugins/smed2/src/s57/S57obj.java
r30269 r30282 131 131 ObjStr.put(Obj.TS_FEB, "tidal_stream"); ObjStr.put(Obj.NOTMRK, "notice"); ObjStr.put(Obj.WTWAXS, "waterway_axis"); ObjStr.put(Obj.WTWPRF, "waterway_profile"); 132 132 ObjStr.put(Obj.BRGARE, "bridge_area"); ObjStr.put(Obj.BUNSTA, "bunker_station"); ObjStr.put(Obj.COMARE, "communication_area"); ObjStr.put(Obj.HRBBSN, "harbour_basin"); 133 ObjStr.put(Obj.LOKARE, "lock_area"); ObjStr.put(Obj.LKBSPT, "lock_basin_part"); ObjStr.put(Obj.PRTARE, "port_area"); ObjStr.put(Obj.BCNWTW, "beacon_ waterway");134 ObjStr.put(Obj.BOYWTW, "buoy_ waterway"); ObjStr.put(Obj.REFDMP, "refuse_dump"); ObjStr.put(Obj.RTPLPT, "route_planning_point"); ObjStr.put(Obj.TERMNL, "terminal");133 ObjStr.put(Obj.LOKARE, "lock_area"); ObjStr.put(Obj.LKBSPT, "lock_basin_part"); ObjStr.put(Obj.PRTARE, "port_area"); ObjStr.put(Obj.BCNWTW, "beacon_lateral"); 134 ObjStr.put(Obj.BOYWTW, "buoy_lateral"); ObjStr.put(Obj.REFDMP, "refuse_dump"); ObjStr.put(Obj.RTPLPT, "route_planning_point"); ObjStr.put(Obj.TERMNL, "terminal"); 135 135 ObjStr.put(Obj.TRNBSN, "turning_basin"); ObjStr.put(Obj.WTWARE, "waterway_area"); ObjStr.put(Obj.WTWGAG, "waterway_gauge"); ObjStr.put(Obj.TISDGE, "time_schedule"); 136 136 ObjStr.put(Obj.VEHTRF, "vehicle_transfer"); ObjStr.put(Obj.EXCNST, "exceptional_structure");
Note:
See TracChangeset
for help on using the changeset viewer.