Changeset 25845 in osm for applications/editors/josm/plugins/turnrestrictions/src/org
- Timestamp:
- 2011-04-14T16:32:17+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/TurnRestrictionBuilder.java
r24125 r25845 139 139 * 140 140 */ 141 static public double inter esectionAngle(Way from, Way to) throws IllegalArgumentException {141 static public double intersectionAngle(Way from, Way to) throws IllegalArgumentException { 142 142 Node via = getUniqueCommonNode(from, to); 143 143 if (via == null) … … 196 196 if (isClosedAt(to, via)) return null; 197 197 198 double phi = inter esectionAngle(from, to);198 double phi = intersectionAngle(from, to); 199 199 if (phi >=0 && phi <= Math.PI) { 200 200 return RelativeWayJoinOrientation.RIGHT; … … 250 250 if (! isStartNode(from, cn1) && ! isEndNode(from, cn1)) { 251 251 /* 252 * the now split to-way still *inter esects* the from-way. We252 * the now split to-way still *intersects* the from-way. We 253 253 * can't adjust the split decisions. 254 254 */ -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/qa/IntersectionMissingAsViaError.java
r23192 r25845 22 22 private Way from; 23 23 private Way to; 24 private Node inter esect;24 private Node intersect; 25 25 26 26 public IntersectionMissingAsViaError(IssuesModel parent, Way from, Way to, Node intersect) { … … 28 28 this.from = from; 29 29 this.to = to; 30 this.inter esect = intersect;30 this.intersect = intersect; 31 31 actions.add(new SetVia()); 32 32 actions.add(new FixInEditorAction()); … … 36 36 public String getText() { 37 37 String msg = tr("The <strong>from</strong>-way <span class=\"object-name\">{0}</span> and the <strong>to</strong>-way <span class=\"object-name\">{1}</span> " 38 + "inter esect at node <span class=\"object-name\">{2}</span> but <span class=\"object-name\">{2}</span> isn''t a <strong>via</strong>-object.<br> "38 + "intersect at node <span class=\"object-name\">{2}</span> but <span class=\"object-name\">{2}</span> isn''t a <strong>via</strong>-object.<br> " 39 39 + "It is recommended to set <span class=\"object-name\">{2}</span> as unique <strong>via</strong>-object.", 40 40 this.from.getDisplayName(DefaultNameFormatter.getInstance()), 41 41 this.to.getDisplayName(DefaultNameFormatter.getInstance()), 42 this.inter esect.getDisplayName(DefaultNameFormatter.getInstance())42 this.intersect.getDisplayName(DefaultNameFormatter.getInstance()) 43 43 ); 44 44 return msg; … … 51 51 } 52 52 public void actionPerformed(ActionEvent e) { 53 getIssuesModel().getEditorModel().setVias(Collections.<OsmPrimitive>singletonList(inter esect));53 getIssuesModel().getEditorModel().setVias(Collections.<OsmPrimitive>singletonList(intersect)); 54 54 } 55 55 } -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/qa/TurnRestrictionLegSplitRequiredError.java
r23593 r25845 36 36 37 37 /** 38 * <p>Creates the issue for a pair of ways {@code from} and {@code to} which inter esect38 * <p>Creates the issue for a pair of ways {@code from} and {@code to} which intersect 39 39 * at node {@code intersect}.</p> 40 40 *
Note:
See TracChangeset
for help on using the changeset viewer.