Changeset 19068 in josm


Ignore:
Timestamp:
2024-05-02T06:50:23+02:00 (5 weeks ago)
Author:
GerdP
Message:

fix #23652 Wrong warning for elevator

  • don't check different layers when the node is tagged with highway=elevator
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/nodist/data/9304-examples.osm

    r19034 r19068  
    8585  <node id='-81986' action='modify' lat='52.8556900621' lon='8.32931900066' />
    8686  <node id='-81995' action='modify' lat='52.85568346895' lon='8.33033082658' />
     87  <node id='-82015' action='modify' lat='52.85064916115' lon='8.33364826283'>
     88    <tag k='highway' v='elevator' />
     89  </node>
     90  <node id='-82016' action='modify' lat='52.85064487318' lon='8.33361266283' />
     91  <node id='-82017' action='modify' lat='52.85065295052' lon='8.33352316283' />
     92  <node id='-82018' action='modify' lat='52.85063898969' lon='8.33337126283' />
     93  <node id='-82019' action='modify' lat='52.85064856283' lon='8.33361296283' />
     94  <node id='-82020' action='modify' lat='52.85065733821' lon='8.33356556283' />
     95  <node id='-82021' action='modify' lat='52.85067708281' lon='8.33352616283' />
     96  <node id='-82022' action='modify' lat='52.85070659999' lon='8.33350036283' />
     97  <node id='-82023' action='modify' lat='52.85075376764' lon='8.33348326283' />
     98  <node id='-82024' action='modify' lat='52.85120480212' lon='8.33344126283' />
     99  <node id='-82025' action='modify' lat='52.8507402057' lon='8.33442726283' />
     100  <node id='-82026' action='modify' lat='52.85074987855' lon='8.33455636283' />
     101  <node id='-82027' action='modify' lat='52.85070709859' lon='8.33492606283' />
     102  <node id='-82028' action='modify' lat='52.85058803267' lon='8.33589816283' />
    87103  <way id='-579' action='modify'>
    88104    <nd ref='-25357' />
     
    347363    <tag k='layer' v='1' />
    348364  </way>
     365  <way id='-37095' action='modify'>
     366    <nd ref='-82015' />
     367    <nd ref='-82016' />
     368    <nd ref='-82017' />
     369    <nd ref='-82018' />
     370    <tag k='highway' v='footway' />
     371    <tag k='smoothness' v='excellent' />
     372    <tag k='surface' v='paving_stones' />
     373  </way>
     374  <way id='-37096' action='modify'>
     375    <nd ref='-82015' />
     376    <nd ref='-82019' />
     377    <nd ref='-82020' />
     378    <nd ref='-82021' />
     379    <nd ref='-82022' />
     380    <nd ref='-82023' />
     381    <nd ref='-82024' />
     382    <tag k='bicycle' v='yes' />
     383    <tag k='bridge' v='yes' />
     384    <tag k='foot' v='yes' />
     385    <tag k='highway' v='footway' />
     386    <tag k='layer' v='1' />
     387    <tag k='lit' v='yes' />
     388    <tag k='segregated' v='no' />
     389    <tag k='surface' v='concrete' />
     390  </way>
     391  <way id='-37097' action='modify'>
     392    <nd ref='-82015' />
     393    <nd ref='-82025' />
     394    <nd ref='-82026' />
     395    <nd ref='-82027' />
     396    <nd ref='-82028' />
     397    <tag k='bicycle' v='yes' />
     398    <tag k='bridge' v='yes' />
     399    <tag k='foot' v='yes' />
     400    <tag k='highway' v='footway' />
     401    <tag k='layer' v='1' />
     402    <tag k='lit' v='yes' />
     403    <tag k='segregated' v='no' />
     404    <tag k='surface' v='concrete' />
     405  </way>
    349406</osm>
  • trunk/src/org/openstreetmap/josm/data/validation/tests/Highways.java

    r19034 r19068  
    310310     */
    311311    private void testDifferentLayers(Node connection) {
     312        if (connection.hasTag("highway", "elevator"))
     313            return;
    312314        List<Way> ways = connection.getParentWays();
    313315        ways.removeIf(w -> !w.hasTag("highway") || w.hasTag("highway", "steps") || isSpecialArea(w));
Note: See TracChangeset for help on using the changeset viewer.