Changeset 32266 in osm
- Timestamp:
- 2016-06-15T17:43:50+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/validation
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/validation/DirectionTest.java
r32252 r32266 47 47 } 48 48 49 if (!r.hasTag("route", "bus") && !r.hasTag("route", "trolleybus") && !r.hasTag("route", "share_taxi")) { 50 return; 51 } 52 49 53 List<RelationMember> waysToCheck = new ArrayList<>(); 50 54 … … 58 62 return; 59 63 } 64 65 60 66 61 67 WayConnectionTypeCalculator connectionTypeCalculator = new WayConnectionTypeCalculator(); -
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/validation/PTAssitantValidatorTest.java
r32259 r32266 11 11 import org.openstreetmap.josm.command.Command; 12 12 import org.openstreetmap.josm.command.SequenceCommand; 13 import org.openstreetmap.josm.data.osm.AbstractPrimitive;14 13 import org.openstreetmap.josm.data.osm.OsmPrimitive; 15 14 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; -
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/validation/RoadTypeTest.java
r32252 r32266 56 56 isCorrectRoadType = false; 57 57 } 58 } else if (r.hasTag("route", "tram") && !way.hasTag("railway", "tram")) {59 if (! r.hasTag("railway", "tram")) {58 } else if (r.hasTag("route", "tram")) { 59 if (!way.hasTag("railway", "tram")) { 60 60 isCorrectRoadType = false; 61 61 } -
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/validation/WayChecker.java
r32252 r32266 49 49 50 50 private void performRoadTypeTest() { 51 52 if (!relation.hasTag("route", "bus") && !relation.hasTag("route", "trolleybus") && !relation.hasTag("route", "share_taxi")) { 53 return; 54 } 51 55 52 56 for (RelationMember rm : relation.getMembers()) { … … 67 71 } 68 72 } else if (relation.hasTag("route", "tram")) { 69 if (! relation.hasTag("railway", "tram") && !way.hasTag("railway", "tram")) {73 if (!way.hasTag("railway", "tram")) { 70 74 isCorrectRoadType = false; 71 75 }
Note:
See TracChangeset
for help on using the changeset viewer.