Changeset 4869 in josm for trunk/src/org/openstreetmap/josm/data/validation/tests/OverlappingAreas.java
- Timestamp:
- 2012-01-24T21:52:43+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/OverlappingAreas.java
r4806 r4869 5 5 import java.util.Collection; 6 6 import java.util.Collections; 7 7 8 import org.openstreetmap.josm.data.osm.QuadBuckets; 8 9 import org.openstreetmap.josm.data.osm.Way; … … 17 18 public class OverlappingAreas extends Test { 18 19 19 protected static int OVERLAPPING_AREAS = 2201;20 protected static final int OVERLAPPING_AREAS = 2201; 20 21 protected QuadBuckets<Way> index = new QuadBuckets<Way>(); 21 22 … … 40 41 @Override 41 42 public boolean evaluate(Way wi) { 42 if (w.equals(wi)) {43 if (w.equals(wi)) 43 44 return false; 44 } else {45 else 45 46 return Geometry.polygonIntersection(w.getNodes(), wi.getNodes()) 46 47 == Geometry.PolygonIntersection.CROSSING; 47 }48 48 } 49 49 });
Note:
See TracChangeset
for help on using the changeset viewer.