Changeset 16406 in josm for trunk/nodist


Ignore:
Timestamp:
2020-05-13T15:14:41+02:00 (15 months ago)
Author:
GerdP
Message:

fix #19136: Validator no longer raises issues for old-style multipolygons

  • implement a a mix of blacklisting / whitelisting for tags which possibly describe the meaning of the multipolygon area
  • ignore outer way tags when looking for multipolygon area style
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nodist/data/multipolygon.osm

    r15244 r16406  
    37543754    <member type='way' ref='-41419' role='outer' />
    37553755    <member type='way' ref='-41421' role='outer' />
     3756    <tag k='josm_error_codes' v='1606,1610,1617' />
    37563757    <tag k='name' v='old style' />
    37573758    <tag k='type' v='multipolygon' />
     
    37843785    <member type='way' ref='-41585' role='inner' />
    37853786    <member type='way' ref='-41809' role='outer' />
     3787    <tag k='josm_error_codes' v='1610' />
    37863788    <tag k='name' v='Example 1 (02)' />
    37873789    <tag k='type' v='multipolygon' />
     
    38003802    <member type='way' ref='-41667' role='outer' />
    38013803    <member type='way' ref='-41727' role='inner' />
     3804    <tag k='josm_error_codes' v='1610' />
    38023805    <tag k='name' v='Example 3 (02)' />
    38033806    <tag k='type' v='multipolygon' />
     
    38483851    <member type='way' ref='-41575' role='inner' />
    38493852    <member type='way' ref='-41545' role='outer' />
     3853    <tag k='josm_error_codes' v='1610' />
    38503854    <tag k='name' v='Example 2 (04)' />
    38513855    <tag k='type' v='multipolygon' />
     
    38573861    <member type='way' ref='-41761' role='inner' />
    38583862    <member type='way' ref='-41655' role='outer' />
     3863    <tag k='josm_error_codes' v='1610' />
    38593864    <tag k='name' v='Example 5 (02)' />
    38603865    <tag k='type' v='multipolygon' />
     
    38643869    <member type='way' ref='-41473' role='inner' />
    38653870    <member type='way' ref='-41671' role='outer' />
     3871    <tag k='josm_error_codes' v='1610' />
    38663872    <tag k='name' v='Example 2 (02)' />
    38673873    <tag k='type' v='multipolygon' />
     
    39023908    <member type='way' ref='-41567' role='inner' />
    39033909    <member type='way' ref='-41495' role='inner' />
     3910    <tag k='josm_error_codes' v='1610' />
    39043911    <tag k='name' v='Example 6 (02)' />
    39053912    <tag k='type' v='multipolygon' />
     
    39133920    <member type='way' ref='-41659' role='outer' />
    39143921    <member type='way' ref='-41651' role='outer' />
    3915     <tag k='josm_error_codes' v='1606,1617' />
     3922    <tag k='josm_error_codes' v='1606,1610,1617' />
    39163923    <tag k='name' v='07/04 - Mixed Geometry' />
    39173924    <tag k='type' v='multipolygon' />
     
    39793986    <member type='way' ref='-41845' role='outer' />
    39803987    <member type='way' ref='-41769' role='inner' />
     3988    <tag k='josm_error_codes' v='1610' />
    39813989    <tag k='name' v='Example 7 (04) Inner' />
    39823990    <tag k='type' v='multipolygon' />
     
    39934001    <member type='way' ref='-41741' role='inner' />
    39944002    <member type='way' ref='-41447' role='outer' />
     4003    <tag k='josm_error_codes' v='1610' />
    39954004    <tag k='name' v='Example 1 (04)' />
    39964005    <tag k='type' v='multipolygon' />
     
    40024011    <member type='way' ref='-41753' role='outer' />
    40034012    <member type='way' ref='-41521' role='outer' />
     4013    <tag k='josm_error_codes' v='1610' />
    40044014    <tag k='name' v='Example 5 (04)' />
    40054015    <tag k='type' v='multipolygon' />
     
    40214031    <member type='way' ref='-41737' role='' />
    40224032    <member type='relation' ref='-42089' role='' />
    4023     <tag k='josm_error_codes' v='1601,1602' />
     4033    <tag k='josm_error_codes' v='1601,1602,1610' />
    40244034    <tag k='name' v='06/05 - wrong roles' />
    40254035    <tag k='type' v='multipolygon' />
     
    40504060    <member type='way' ref='-41787' role='outer' />
    40514061    <member type='way' ref='-41839' role='outer' />
     4062    <tag k='josm_error_codes' v='1610' />
    40524063    <tag k='name' v='Example 6 (04) Inner' />
    40534064    <tag k='type' v='multipolygon' />
     
    40644075    <member type='way' ref='-41653' role='inner' />
    40654076    <member type='way' ref='-41833' role='outer' />
     4077    <tag k='josm_error_codes' v='1610' />
    40664078    <tag k='name' v='Example 8 (04) Inner' />
    40674079    <tag k='type' v='multipolygon' />
     
    40884100    <member type='way' ref='-41543' role='outer' />
    40894101    <member type='way' ref='-41477' role='outer' />
     4102    <tag k='josm_error_codes' v='1610' />
    40904103    <tag k='name' v='Example 6 (04)' />
    40914104    <tag k='type' v='multipolygon' />
     
    40954108    <member type='way' ref='-41687' role='outer' />
    40964109    <member type='way' ref='-41769' role='outer' />
     4110    <tag k='josm_error_codes' v='1610' />
    40974111    <tag k='name' v='Example 7 (04)' />
    40984112    <tag k='type' v='multipolygon' />
     
    41014115    <member type='way' ref='-41819' role='outer' />
    41024116    <member type='way' ref='-41439' role='outer' />
     4117    <tag k='josm_error_codes' v='1610' />
    41034118    <tag k='name' v='Example 4 (02)' />
    41044119    <tag k='type' v='multipolygon' />
     
    41334148    <member type='way' ref='-41801' role='inner' />
    41344149    <member type='way' ref='-41437' role='outer' />
     4150    <tag k='josm_error_codes' v='1610' />
    41354151    <tag k='name' v='Example 7 (02)' />
    41364152    <tag k='type' v='multipolygon' />
     
    41434159    <member type='way' ref='-41777' role='outer' />
    41444160    <tag k='comment' v='For this test the display style depends on the order of ways and is unpredictable' />
    4145     <tag k='josm_error_codes' v='1607' />
     4161    <tag k='josm_error_codes' v='1610' />
    41464162    <tag k='name' v='06/04 - Mismatching way styles' />
    41474163    <tag k='type' v='multipolygon' />
     
    41604176    <member type='way' ref='-41711' role='outer' />
    41614177    <member type='way' ref='-41765' role='outer' />
     4178    <tag k='josm_error_codes' v='1610' />
    41624179    <tag k='name' v='Example 5 (04) inner' />
    41634180    <tag k='type' v='multipolygon' />
     
    41824199    <member type='way' ref='-41493' role='outer' />
    41834200    <member type='way' ref='-41457' role='outer' />
     4201    <tag k='josm_error_codes' v='1610' />
    41844202    <tag k='name' v='Example 4 (04)' />
    41854203    <tag k='type' v='multipolygon' />
     
    42054223    <member type='way' ref='-41505' role='outer' />
    42064224    <member type='way' ref='-41459' role='outer' />
     4225    <tag k='josm_error_codes' v='1610' />
    42074226    <tag k='name' v='Example 8 (02)' />
    42084227    <tag k='type' v='multipolygon' />
     
    42294248    <member type='way' ref='-41515' role='outer' />
    42304249    <member type='way' ref='-41657' role='outer' />
     4250    <tag k='josm_error_codes' v='1610' />
    42314251    <tag k='name' v='Example 3 (04)' />
    42324252    <tag k='type' v='multipolygon' />
     
    42444264    <member type='way' ref='-41597' role='outer' />
    42454265    <member type='way' ref='-41653' role='outer' />
     4266    <tag k='josm_error_codes' v='1610' />
    42464267    <tag k='name' v='Example 8 (04)' />
    42474268    <tag k='type' v='multipolygon' />
Note: See TracChangeset for help on using the changeset viewer.