Changeset 13721 in josm
- Timestamp:
- 2018-05-08T21:54:48+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/validation/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/CrossingWays.java
r13678 r13721 42 42 */ 43 43 private enum WayType { 44 BUILDING, HIGHWAY, RESIDENTIAL_AREA, WATERWAY, WAY; 44 BUILDING, HIGHWAY, RAILWAY, RESIDENTIAL_AREA, WATERWAY, WAY; 45 45 46 46 static WayType of(Way w) { … … 49 49 else if (w.hasKey(CrossingWays.HIGHWAY)) 50 50 return HIGHWAY; 51 else if (isRailway(w)) 52 return RAILWAY; 51 53 else if (isResidentialArea(w)) 52 54 return RESIDENTIAL_AREA; … … 101 103 return true; 102 104 } 103 if ((w1.hasKey(HIGHWAY) && isResidentialArea(w2)) 104 || (w2.hasKey(HIGHWAY) && isResidentialArea(w1))) 105 if ((w1.hasKey(HIGHWAY, RAILWAY, WATERWAY) && isResidentialArea(w2)) 106 || (w2.hasKey(HIGHWAY, RAILWAY, WATERWAY) && isResidentialArea(w1))) 105 107 return true; 106 108 if (isSubwayOrTramOrRazed(w2)) { … … 128 130 case HIGHWAY: 129 131 return tr("Crossing highways"); 132 case RAILWAY: 133 return tr("Crossing railways"); 130 134 case RESIDENTIAL_AREA: 131 135 return tr("Crossing residential areas"); … … 142 146 case HIGHWAY: 143 147 return tr("Crossing building/highway"); 148 case RAILWAY: 149 return tr("Crossing building/railway"); 144 150 case RESIDENTIAL_AREA: 145 151 return tr("Crossing building/residential area"); … … 152 158 case HIGHWAY: 153 159 switch (types[1]) { 154 case R ESIDENTIAL_AREA:155 return tr("Crossing highway/r esidential area");160 case RAILWAY: 161 return tr("Crossing highway/railway"); 156 162 case WATERWAY: 157 163 return tr("Crossing highway/waterway"); … … 160 166 return tr("Crossing highway/way"); 161 167 } 168 case RAILWAY: 169 switch (types[1]) { 170 case WATERWAY: 171 return tr("Crossing railway/waterway"); 172 case WAY: 173 default: 174 return tr("Crossing railway/way"); 175 } 162 176 case RESIDENTIAL_AREA: 163 177 switch (types[1]) { 164 case WATERWAY:165 return tr("Crossing residential area/waterway");166 178 case WAY: 167 179 default: -
trunk/src/org/openstreetmap/josm/data/validation/tests/RightAngleBuildingTest.java
r13712 r13721 70 70 super.startTest(monitor); 71 71 maxAngleDelta = Config.getPref().getDouble("validator.RightAngleBuilding.maximumDelta", 10.0); 72 minAngleDelta = Config.getPref().getDouble("validator.RightAngleBuilding.minimumDelta", 0.25);72 minAngleDelta = Config.getPref().getDouble("validator.RightAngleBuilding.minimumDelta", 1.0); 73 73 } 74 74
Note:
See TracChangeset
for help on using the changeset viewer.