Changeset 11965 in josm for trunk/scripts


Ignore:
Timestamp:
2017-04-21T12:43:49+02:00 (8 years ago)
Author:
stoecker
Message:

ELI sync - unify filenames (also support loading in imagery index plugin)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/SyncEditorLayerIndex.groovy

    r11964 r11965  
    3535    def josmMirrors = new HashMap<String, ImageryInfo>()
    3636
    37     static String eliInputFile = 'imagery.geojson'
    38     static String josmInputFile = 'maps.xml'
    39     static String ignoreInputFile = 'maps_ignores.txt'
     37    static String eliInputFile = 'imagery_eli.geojson'
     38    static String josmInputFile = 'imagery_josm.imagery.xml'
     39    static String ignoreInputFile = 'imagery_josm.ignores.txt'
    4040    static FileWriter outputFile = null
    4141    static BufferedWriter outputStream = null
     
    9090        cli.p(longOpt:'elixml', args:1, argName:"elixml", "ELI entries for use in JOSM as XML file (incomplete)")
    9191        cli.q(longOpt:'josmxml', args:1, argName:"josmxml", "JOSM entries reoutput as XML file (incomplete)")
    92         cli.m(longOpt:'nomissingeli', argName:"nomissingeli", "don't show missing editor layer index entries")
     92        cli.m(longOpt:'noeli', argName:"noeli", "don't show output for ELI problems")
    9393        cli.h(longOpt:'help', "show this help")
    9494        options = cli.parse(args)
     
    152152            String color = s.startsWith("***") ? "black" : ((s.startsWith("+ ") || s.startsWith("+++ ELI")) ? "blue" : "red")
    153153            s = "<pre style=\"margin:3px;color:"+color+"\">"+s.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;")+"</pre>"
     154        }
     155        if ((s.startsWith("+ ") || s.startsWith("+++ ELI")) && options.noeli) {
     156            return
    154157        }
    155158        myprintlnfinal(s)
     
    283286        }
    284287
    285         if (options.nomissingeli)
    286             return
    287288        def l2 = inOneButNotTheOther(josmUrls, eliUrls)
    288289        myprintln "*** URLs found in JOSM but not in ELI (${l2.size()}): ***"
Note: See TracChangeset for help on using the changeset viewer.