Changeset 11415 in josm


Ignore:
Timestamp:
2016-12-22T20:41:52+01:00 (3 years ago)
Author:
stoecker
Message:

see #12706 - fix 5 point shape handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/SyncEditorImageryIndex.groovy

    r11414 r11415  
    359359                }
    360360            } else if(!js.size() && s.size()) {
    361                 myprintln "- No JOSM shape: ${getDescription(j)}"
     361                // don't report boundary like 5 point shapes as difference
     362                if (s.size() != 1 || s[0].getPoints().size() != 5) {
     363                    myprintln "- No JOSM shape: ${getDescription(j)}"
     364                }
    362365            } else if(s.size() != js.size()) {
    363366                myprintln "* Different number of shapes (${s.size()} != ${js.size()}): ${getDescription(j)}"
     
    417420                    l.add(s)
    418421                }
    419                 if (l.size() == 1 && l[0].getPoints().size() == 5) {
    420                     return [] // ignore a bounds equivalent shape
    421                 }
    422422                return l
    423423            }
Note: See TracChangeset for help on using the changeset viewer.