- Timestamp:
- 2012-06-21T02:21:43+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/validation
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/Test.java
r5287 r5293 245 245 } 246 246 } 247 248 /** 249 * Determines if the specified primitive denotes a building. 250 * @param p The primitive to be tested 251 * @return True if building key is set and different from no,entrance 252 */ 253 protected static final boolean isBuilding(OsmPrimitive p) { 254 String v = p.get("building"); 255 return v != null && !v.equals("no") && !v.equals("entrance"); 256 } 247 257 } -
trunk/src/org/openstreetmap/josm/data/validation/tests/BuildingInBuilding.java
r5269 r5293 121 121 return false; 122 122 } 123 124 private static boolean isBuilding(OsmPrimitive p) {125 return "yes".equals(p.get("building"));126 }127 123 } -
trunk/src/org/openstreetmap/josm/data/validation/tests/CrossingWays.java
r4869 r5293 73 73 boolean isSubway1 = "subway".equals(railway1); 74 74 boolean isTram1 = "tram".equals(railway1); 75 boolean isBuilding = (w.get("building") != null);75 boolean isBuilding = isBuilding(w); 76 76 String waterway1 = w.get("waterway"); 77 77
Note:
See TracChangeset
for help on using the changeset viewer.