Changeset 13536 in josm for trunk/scripts
- Timestamp:
- 2018-03-17T17:01:12+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/SyncEditorLayerIndex.groovy
r13533 r13536 272 272 stream.write "<imagery xmlns=\"http://josm.openstreetmap.de/maps-1.0\">\n" 273 273 for (def e : entries) { 274 def best = "eli-best".equals(getQuality(e)) 275 stream.write " <entry"+(best ? " eli-best=\"true\"" : "" )+">\n" 274 stream.write(" <entry" 275 + ("eli-best".equals(getQuality(e)) ? " eli-best=\"true\"" : "" ) 276 + (getOverlay(e) ? " overlay=\"true\"" : "" ) 277 + ">\n") 276 278 stream.write " <name>${cdata(getName(e), true)}</name>\n" 277 279 stream.write " <id>${getId(e)}</id>\n" … … 608 610 } 609 611 } 612 et = getOverlay(e) 613 jt = getOverlay(j) 614 if (!et.equals(jt)) { 615 if (!jt) { 616 myprintln "! Missing JOSM overlay flag: ${getDescription(j)}" 617 } else if (!options.nomissingeli) { 618 myprintln "+ Missing ELI overlay flag: ${getDescription(j)}" 619 } 620 } 610 621 } 611 622 myprintln "*** Mismatching shapes: ***" … … 936 947 && e.get("properties").getBoolean("best")) ? "eli-best" : null 937 948 } 949 static Boolean getOverlay(Object e) { 950 if (e instanceof ImageryInfo) return e.isOverlay() 951 return (e.get("properties").containsKey("overlay") 952 && e.get("properties").getBoolean("overlay")) 953 } 938 954 static String getIcon(Object e) { 939 955 if (e instanceof ImageryInfo) return e.getIcon()
Note:
See TracChangeset
for help on using the changeset viewer.