Changeset 32692 in osm for applications/editors/josm
- Timestamp:
- 2016-07-21T15:01:49+02:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/datastructure/OSMRelation.java
r32596 r32692 42 42 public String toString() { 43 43 String s = ("Relation-ID: " + this.getId() + " Relation-Type: " + this.getRelationType("type") +"\n"); 44 for ( int i = 0; i < members.size(); i++) {45 s += ("Member: " + members.get(i).getRole() + ", ref:" + members.get(i).getId() + ", type:" + members.get(i).getType().getClass().getName());44 for (Member member : members) { 45 s += member.toString(); 46 46 } 47 47 return s; … … 86 86 return role; 87 87 } 88 89 @Override 90 public String toString() { 91 return "Member: " + getRole() + ", ref:" + getId() + ", type:" + getType().getName(); 92 } 88 93 } 89 94 } -
applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/reader/OSMXMLReader.java
r32596 r32692 156 156 157 157 case XMLStreamConstants.END_ELEMENT: 158 if (parser.getLocalName() == "node") {158 if (parser.getLocalName().equals("node")) { 159 159 node.setHashmap(hashmap); 160 160 osmgraph.addNode(node); 161 161 } 162 162 163 if (parser.getLocalName() == "way") {163 if (parser.getLocalName().equals("way")) { 164 164 way.setHashmap(hashmap); 165 165 osmgraph.addWay(way);
Note:
See TracChangeset
for help on using the changeset viewer.