Changeset 6841 in josm for trunk/src/org/openstreetmap/josm/data/osm
- Timestamp:
- 2014-02-12T00:55:05+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/MultipolygonCreate.java
r6093 r6841 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import java.awt.geom.Area; 6 7 import java.util.ArrayList; 7 8 import java.util.Collection; … … 26 27 public final List<Boolean> reversed; 27 28 public final List<Node> nodes; 29 public final Area area; 28 30 29 31 public JoinedPolygon(List<Way> ways, List<Boolean> reversed) { … … 31 33 this.reversed = reversed; 32 34 this.nodes = this.getNodes(); 35 this.area = Geometry.getArea(nodes); 33 36 } 34 37 … … 38 41 */ 39 42 public JoinedPolygon(Way way) { 40 this.ways = Collections.singletonList(way); 41 this.reversed = Collections.singletonList(Boolean.FALSE); 42 this.nodes = this.getNodes(); 43 } 44 43 this(Collections.singletonList(way), Collections.singletonList(Boolean.FALSE)); 44 } 45 45 46 46 /** … … 233 233 } 234 234 235 PolygonIntersection intersection = Geometry.polygonIntersection(outerWay. nodes, innerWay.nodes);235 PolygonIntersection intersection = Geometry.polygonIntersection(outerWay.area, innerWay.area); 236 236 237 237 if (intersection == PolygonIntersection.FIRST_INSIDE_SECOND) {
Note:
See TracChangeset
for help on using the changeset viewer.