Changeset 33499 in osm for applications/editors/josm/plugins
- Timestamp:
- 2017-08-15T22:41:09+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/data/PTStop.java
r33498 r33499 52 52 super(other); 53 53 54 String role = ""; 55 if (other.getRole().contains("_exit_only")) { 56 exitOnly = true; 57 role = "_exit_only"; 58 } else if (other.getRole().contains("_entry_only")) { 59 entryOnly = true; 60 role = "_entry_only"; 61 } 62 54 63 if (isPTStopPosition(other)) { 55 64 stopPosition = other.getNode(); 56 65 name = stopPosition.get("name"); 57 s etStopPositionRM(new RelationMember("stop", other.getMember()));66 stopPositionRM = new RelationMember("stop" + role, other.getMember()); 58 67 } else if (isPTPlatform(other)) { 59 68 platform = other.getMember(); 60 69 name = platform.get("name"); 61 setPlatformRM(new RelationMember("platform", other.getMember()));70 platformRM = new RelationMember("platform" + role, other.getMember()); 62 71 } else { 63 72 throw new IllegalArgumentException( … … 78 87 public boolean addStopElement(RelationMember member) { 79 88 89 String role = ""; 90 if (member.getRole().contains("_exit_only")) { 91 exitOnly = true; 92 role = "_exit_only"; 93 } else if (member.getRole().contains("_entry_only")) { 94 entryOnly = true; 95 role = "_entry_only"; 96 } 97 80 98 if (stopPosition == null && isPTStopPosition(member)) { 81 99 this.stopPosition = member.getNode(); 82 stopPositionRM = new RelationMember("stop" , member.getMember());100 stopPositionRM = new RelationMember("stop" + role, member.getMember()); 83 101 return true; 84 102 } else if (platform == null && isPTPlatform(member)) { 85 103 platform = member.getMember(); 86 platformRM = new RelationMember("platform" , member.getMember());104 platformRM = new RelationMember("platform" + role, member.getMember()); 87 105 return true; 88 106 }
Note:
See TracChangeset
for help on using the changeset viewer.