Changeset 13527 in josm
- Timestamp:
- 2018-03-14T18:55:03+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/SyncEditorLayerIndex.groovy
r13526 r13527 663 663 myprintln "*** Miscellaneous checks: ***" 664 664 def josmIds = new HashMap<String, ImageryInfo>() 665 def all = Projections.getAllProjectionCodes() 666 def oldproj = new HashMap<String, String>() 667 oldproj.put("EPSG:3785", "EPSG:3857") 668 oldproj.put("EPSG:102100", "EPSG:3857") 669 oldproj.put("EPSG:102113", "EPSG:3857") 670 oldproj.put("EPSG:900913", "EPGS:3857") 665 671 for (def url : josmUrls.keySet()) { 666 672 def j = josmUrls.get(url) … … 670 676 myprintln "* WMS without projections: ${getDescription(j)}" 671 677 } else { 672 def all = Projections.getAllProjectionCodes();673 def unsupported = new LinkedList<String>();678 def unsupported = new LinkedList<String>() 679 def old = new LinkedList<String>() 674 680 for (def p : getProjections(j)) { 675 681 if("CRS:84".equals(p)) { … … 677 683 myprintln "! CRS:84 without WMS 1.3: ${getDescription(j)}" 678 684 } 685 } else if(oldproj.containsKey(p)) { 686 old.add(p) 679 687 } else if(!all.contains(p)) { 680 688 unsupported.add(p) … … 682 690 } 683 691 if (unsupported) { 684 def s = String.join(" ", unsupported) 685 myprintln "! Projections ${s} not supported by JOSM (maybe Obsolete code): ${getDescription(j)}" 692 def s = String.join(", ", unsupported) 693 myprintln "! Projections ${s} not supported by JOSM: ${getDescription(j)}" 694 } 695 for (def o : old) { 696 myprintln "! Projections ${o} is an old unsupported code and has been replaced by ${oldproj.get(o)}: ${getDescription(j)}" 686 697 } 687 698 }
Note:
See TracChangeset
for help on using the changeset viewer.