Changeset 33387 in osm for applications/editors/josm/plugins/pt_assistant
- Timestamp:
- 2017-06-09T09:34:18+02:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/data/PTRouteSegment.java
r33055 r33387 149 149 if (listsEqual) { 150 150 for (int i = 0; i < thisWays.size(); i++) { 151 if (thisWays.get(i).get Id() != otherWays.get(i).getId()) {151 if (thisWays.get(i).getUniqueId() != otherWays.get(i).getUniqueId()) { 152 152 listsEqual = false; 153 153 break; … … 187 187 public boolean equalsRouteSegment(PTRouteSegment other) { 188 188 189 // if(!firstStop.equalsStop(firstStop) || !lastStop.equalsStop(other.lastStop)) 190 // return false; 191 189 192 List<Way> thisWays = new ArrayList<>(); 190 193 for (PTWay ptway : this.ptways) { … … 201 204 202 205 for (int i = 0; i < thisWays.size(); i++) { 203 if (thisWays.get(i).get Id() != otherWays.get(i).getId()) {206 if (thisWays.get(i).getUniqueId() != otherWays.get(i).getUniqueId()) { 204 207 return false; 205 208 } -
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/validation/SegmentChecker.java
r33355 r33387 330 330 primitives.add(relation); 331 331 List<OsmPrimitive> highlighted = new ArrayList<>(); 332 highlighted.addAll(wronglySortedPtway.getWays()); 332 highlighted.add(startStop.getStopPosition()); 333 highlighted.add(endStop.getStopPosition()); 333 334 Builder builder = TestError.builder(this.test, Severity.WARNING, 334 335 PTAssistantValidatorTest.ERROR_CODE_STOP_BY_STOP); … … 664 665 List<PTRouteSegment> correctSegmentsForThisError = new ArrayList<>(); 665 666 for (PTRouteSegment segment : correctSegments) { 666 if (wrongSegment.getFirstWay().get Id() == segment.getFirstWay().getId()667 && wrongSegment.getLastWay().get Id() == segment.getLastWay().getId()) {667 if (wrongSegment.getFirstWay().getUniqueId() == segment.getFirstWay().getUniqueId() 668 && wrongSegment.getLastWay().getUniqueId() == segment.getLastWay().getUniqueId()) { 668 669 correctSegmentsForThisError.add(segment); 669 670 } … … 794 795 List<PTRouteSegment> correctSegmentsForThisError = new ArrayList<>(); 795 796 for (PTRouteSegment segment : correctSegments) { 796 if (wrongSegment.getFirstWay().get Id() == segment.getFirstWay().getId()797 && wrongSegment.getLastWay().get Id() == segment.getLastWay().getId()) {797 if (wrongSegment.getFirstWay().getUniqueId() == segment.getFirstWay().getUniqueId() 798 && wrongSegment.getLastWay().getUniqueId() == segment.getLastWay().getUniqueId()) { 798 799 correctSegmentsForThisError.add(segment); 799 800 }
Note:
See TracChangeset
for help on using the changeset viewer.