Changeset 29199 in osm for applications/editors/josm/plugins/smed2/src/seamap/SeaMap.java
- Timestamp:
- 2013-01-15T15:08:25+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/seamap/SeaMap.java
r29198 r29199 67 67 } 68 68 69 public class MpolyTab extends HashMap<Long, Long> { 70 public MpolyTab() { 71 super(); 72 } 73 } 74 69 75 public class FtrMap extends EnumMap<Obj, ArrayList<Feature>> { 70 76 public FtrMap() { … … 108 114 public WayTab ways; 109 115 public WayTab mpolys; 116 public MpolyTab outers; 110 117 public FtrMap features; 111 118 public FtrTab index; … … 113 120 private Feature feature; 114 121 private ArrayList<Long> list; 122 private long mpid; 115 123 116 124 public SeaMap() { … … 145 153 list = new ArrayList<Long>(); 146 154 mpolys.put(id, list); 155 mpid = id; 147 156 } 148 157 … … 152 161 153 162 public void addToMpoly(long way, boolean outer) { 154 if (outer) 163 if (outer) { 155 164 list.add(0, way); 156 else 165 outers.put(way, mpid); 166 } else { 157 167 list.add(way); 168 } 158 169 } 159 170
Note:
See TracChangeset
for help on using the changeset viewer.