Changeset 11414 in josm for trunk/scripts/SyncEditorImageryIndex.groovy
- Timestamp:
- 2016-12-22T20:28:57+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/SyncEditorImageryIndex.groovy
r11413 r11414 354 354 def j = josmUrls.get(url) 355 355 def js = getShapes(j) 356 if(!s.size() && js.size() && !options.nomissingeii) { 357 myprintln "+ No EII shape: ${getDescription(j)}" 356 if(!s.size() && js.size()) { 357 if(!options.nomissingeii) { 358 myprintln "+ No EII shape: ${getDescription(j)}" 359 } 358 360 } else if(!js.size() && s.size()) { 359 361 myprintln "- No JOSM shape: ${getDescription(j)}" 362 } else if(s.size() != js.size()) { 363 myprintln "* Different number of shapes (${s.size()} != ${js.size()}): ${getDescription(j)}" 360 364 } else { 361 if(s.size() != js.size()) { 362 myprintln "* Different number of shapes (${s.size()} != ${js.size()}): ${getDescription(j)}" 363 } else { 364 for(def nums = 0; nums < s.size(); ++nums) { 365 def ep = s[nums].getPoints() 366 def jp = js[nums].getPoints() 367 if(ep.size() != jp.size()) { 368 myprintln "* Different number of points for shape ${nums+1} (${ep.size()} ! = ${jp.size()})): ${getDescription(j)}" 369 } else { 370 for(def nump = 0; nump < ep.size(); ++nump) { 371 def ept = ep[nump] 372 def jpt = jp[nump] 373 if(Math.abs(ept.getLat()-jpt.getLat()) > 0.000001 || Math.abs(ept.getLon()-jpt.getLon()) > 0.000001) { 374 myprintln "* Different coordinate for point ${nump+1} of shape ${nums+1}: ${getDescription(j)}" 375 nump = ep.size() 376 num = s.size() 377 } 365 for(def nums = 0; nums < s.size(); ++nums) { 366 def ep = s[nums].getPoints() 367 def jp = js[nums].getPoints() 368 if(ep.size() != jp.size()) { 369 myprintln "* Different number of points for shape ${nums+1} (${ep.size()} ! = ${jp.size()})): ${getDescription(j)}" 370 } else { 371 for(def nump = 0; nump < ep.size(); ++nump) { 372 def ept = ep[nump] 373 def jpt = jp[nump] 374 if(Math.abs(ept.getLat()-jpt.getLat()) > 0.000001 || Math.abs(ept.getLon()-jpt.getLon()) > 0.000001) { 375 myprintln "* Different coordinate for point ${nump+1} of shape ${nums+1}: ${getDescription(j)}" 376 nump = ep.size() 377 num = s.size() 378 378 } 379 379 }
Note:
See TracChangeset
for help on using the changeset viewer.