Ignore:
Timestamp:
2011-04-14T16:32:17+02:00 (14 years ago)
Author:
stoecker
Message:

fix josm bug 6206

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  
    139139     *
    140140     */
    141     static public double interesectionAngle(Way from, Way to) throws IllegalArgumentException {
     141    static public double intersectionAngle(Way from, Way to) throws IllegalArgumentException {
    142142            Node via = getUniqueCommonNode(from, to);
    143143            if (via == null)
     
    196196        if (isClosedAt(to, via)) return null;
    197197       
    198         double phi = interesectionAngle(from, to);     
     198        double phi = intersectionAngle(from, to);       
    199199        if (phi >=0 && phi <= Math.PI) {
    200200                return RelativeWayJoinOrientation.RIGHT;
     
    250250        if (! isStartNode(from, cn1) && ! isEndNode(from, cn1)) {
    251251                /*
    252                  * the now split to-way still *interesects* the from-way. We
     252                 * the now split to-way still *intersects* the from-way. We
    253253                 * can't adjust the split decisions.
    254254                 */
  • applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/qa/IntersectionMissingAsViaError.java

    r23192 r25845  
    2222    private Way from;
    2323    private Way to;
    24     private Node interesect;
     24    private Node intersect;
    2525   
    2626    public IntersectionMissingAsViaError(IssuesModel parent, Way from, Way to, Node intersect) {
     
    2828        this.from = from;
    2929        this.to = to;
    30         this.interesect = intersect;
     30        this.intersect = intersect;
    3131        actions.add(new SetVia());
    3232        actions.add(new FixInEditorAction());
     
    3636    public String getText() {       
    3737        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                + "interesect 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> "
    3939               + "It is recommended to set <span class=\"object-name\">{2}</span> as unique <strong>via</strong>-object.",
    4040               this.from.getDisplayName(DefaultNameFormatter.getInstance()),
    4141               this.to.getDisplayName(DefaultNameFormatter.getInstance()),
    42                this.interesect.getDisplayName(DefaultNameFormatter.getInstance())
     42               this.intersect.getDisplayName(DefaultNameFormatter.getInstance())
    4343        );
    4444        return msg;
     
    5151        }
    5252        public void actionPerformed(ActionEvent e) {
    53             getIssuesModel().getEditorModel().setVias(Collections.<OsmPrimitive>singletonList(interesect));         
     53            getIssuesModel().getEditorModel().setVias(Collections.<OsmPrimitive>singletonList(intersect));
    5454        }       
    5555    }
  • applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/qa/TurnRestrictionLegSplitRequiredError.java

    r23593 r25845  
    3636   
    3737    /**
    38      * <p>Creates the issue for a pair of ways {@code from} and {@code to} which interesect
     38     * <p>Creates the issue for a pair of ways {@code from} and {@code to} which intersect
    3939     * at node {@code intersect}.</p>
    4040     *
Note: See TracChangeset for help on using the changeset viewer.