Changeset 2087 in josm for trunk/src/org
- Timestamp:
- 2009-09-09T18:01:53+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/MapPaintVisitor.java
r2025 r2087 31 31 import org.openstreetmap.josm.data.osm.Node; 32 32 import org.openstreetmap.josm.data.osm.OsmPrimitive; 33 import org.openstreetmap.josm.data.osm.OsmUtils; 33 34 import org.openstreetmap.josm.data.osm.Relation; 34 35 import org.openstreetmap.josm.data.osm.RelationMember; … … 666 667 Node firstNode = viaWay.firstNode(); 667 668 Node lastNode = viaWay.lastNode(); 669 Boolean onewayvia = false; 670 671 String onewayviastr = viaWay.get("oneway"); 672 if(onewayviastr != null) 673 { 674 if("-1".equals(onewayviastr)) { 675 onewayvia = true; 676 Node t = firstNode; 677 firstNode = lastNode; 678 lastNode = firstNode; 679 } 680 else 681 onewayvia = OsmUtils.getOsmBoolean(onewayviastr); 682 } 683 668 684 if(fromWay.isFirstLastNode(firstNode)) { 669 685 viaNode = firstNode; 670 } else if (fromWay.isFirstLastNode(lastNode)) {671 viaNode = firstNode;686 } else if (!onewayvia && fromWay.isFirstLastNode(lastNode)) { 687 viaNode = lastNode; 672 688 } else { 673 689 r.putError(tr("The \"from\" way doesn't start or end at the \"via\" way."), true);
Note:
See TracChangeset
for help on using the changeset viewer.