Ejemplo n.º 1
0
from maperipy import App
App.log('script-dir: ' + App.script_dir)
App.run_command('change-dir dir="' + App.script_dir +'"')
App.run_command("run-script file=IsraelHiking.mscript")
# Map Created
App.run_command('change-dir dir="Site"')
App.run_command("generate-tiles minzoom=7 maxzoom=15 use-fprint=true")
App.log("=== Create a Zip file with new tiles ===")
App.run_command('zip zip-file="' + App.script_dir +'\output\TileUpdate.zip"')
App.log("=== Start uploading of tiles zoom 15 and below ===")
App.log('App.start_program("' + App.script_dir + '\UploadTiles.bat")')
App.start_program(App.script_dir + "\UploadTiles.bat")
App.log("=== Start creation of Oruxmap map ===")
App.log('App.start_program(App.script_dir + "\..\..\Mobile Atlas Creator\CreateIsraelHiking.bat", [])')
App.start_program(App.script_dir + "\..\..\Mobile Atlas Creator\CreateIsraelHiking.bat", [])
App.log("=== Create tiles for zoom 16 ===")
App.run_command("generate-tiles minzoom=16 maxzoom=16 use-fprint=true")
App.log("=== Create a Zip file with new tiles ===")
App.run_command('zip zip-file="' + App.script_dir +'\output\TileUpdate16.zip"')
App.log("=== Start uploading of tiles zoom 16 ===")
App.log('App.start_program("' + App.script_dir + '\UploadTiles.bat", "TileUpdate16.zip"])')
App.start_program(App.script_dir + "\UploadTiles.bat", ["TileUpdate16.zip"])
App.run_command('change-dir dir="' + App.script_dir +'"')
from maperipy import App
App.log('script-dir: ' + App.script_dir)
App.run_command('change-dir dir="' + App.script_dir + '"')
App.run_command("run-script file=IsraelHiking.mscript")
# Map Created
App.run_command("generate-tiles minzoom=7 maxzoom=15 use-fprint=true")
App.log("=== Create a Zip file with new tiles ===")
App.run_command("zip zip-file=output\TileUpdate.zip")
App.log("=== Start uploading of tiles zoom 15 and below ===")
App.log('App.start_program("' + App.script_dir + '\UploadTiles.bat")')
App.start_program(App.script_dir + "\UploadTiles.bat")
App.log("=== Start creation of Oruxmap map ===")
App.log(
    'App.start_program(App.script_dir + "\..\..\Mobile Atlas Creator\CreateIsraelHiking.bat", [])'
)
App.start_program(
    App.script_dir + "\..\..\Mobile Atlas Creator\CreateIsraelHiking.bat", [])
App.log("=== Create tiles for zoom 16 ===")
App.run_command("generate-tiles minzoom=16 maxzoom=16 use-fprint=true")
App.log("=== Create a Zip file with new tiles ===")
App.run_command("zip zip-file=output\TileUpdate16.zip")
App.log("=== Start uploading of tiles zoom 16 ===")
App.log('App.start_program("' + App.script_dir +
        '\UploadTiles.bat", "TileUpdate16.zip"])')
App.start_program(App.script_dir + "\UploadTiles.bat", ["TileUpdate16.zip"])
Ejemplo n.º 3
0
from maperipy import App
import os.path

App.log('script-dir: ' + App.script_dir)
App.run_command('change-dir dir="' + App.script_dir +'"')

ProgramFiles = os.path.dirname(os.path.dirname(App.script_dir))

App.log("=== Create Trails Overlay tiles ===")
App.run_command("run-script file=IsraelHikingOverlay.mscript")
if os.path.exists(App.script_dir + "\UploadTiles.bat"):
    App.log("=== Upload Trails Overlay tiles ===")
    App.log('App.start_program("' + App.script_dir + '\UploadTiles.bat", "OverlayTiles.zip"])')
    App.start_program(App.script_dir + "\UploadTiles.bat", ["OverlayTiles.zip"])
if os.path.exists(ProgramFiles + "\Mobile Atlas Creator\All IsraelHikingOverlay Maps.bat"):
    App.log("=== Launch creation of All IsraelHikingOverlay Maps ===")
    App.log('App.start_program(ProgramFiles + "\Mobile Atlas Creator\All IsraelHikingOverlay Maps.bat", [])')
    App.start_program(ProgramFiles + "\Mobile Atlas Creator\All IsraelHikingOverlay Maps.bat", [])

App.collect_garbage()

# vim: shiftwidth=4 expandtab
Ejemplo n.º 4
0
from maperipy import App
import os.path

App.log('script-dir: ' + App.script_dir)
App.run_command('change-dir dir="' + App.script_dir + '"')

ProgramFiles = os.path.dirname(os.path.dirname(App.script_dir))

App.log("=== Create Trails Overlay tiles ===")
App.run_command("run-script file=IsraelHikingOverlay.mscript")
if os.path.exists(App.script_dir + "\UploadTiles.bat"):
    App.log("=== Upload Trails Overlay tiles ===")
    App.log('App.start_program("' + App.script_dir +
            '\UploadTiles.bat", "OverlayTiles.zip"])')
    App.start_program(App.script_dir + "\UploadTiles.bat",
                      ["OverlayTiles.zip"])
if os.path.exists(ProgramFiles +
                  "\Mobile Atlas Creator\All IsraelHikingOverlay Maps.bat"):
    App.log("=== Launch creation of All IsraelHikingOverlay Maps ===")
    App.log(
        'App.start_program(ProgramFiles + "\Mobile Atlas Creator\All IsraelHikingOverlay Maps.bat", [])'
    )
    App.start_program(
        ProgramFiles +
        "\Mobile Atlas Creator\All IsraelHikingOverlay Maps.bat", [])

App.collect_garbage()

# vim: shiftwidth=4 expandtab
Ejemplo n.º 5
0
    App.run_command("pause 15000")

App.run_command("run-script file=IsraelHiking.mscript")
# Map Created

if not os.path.exists(App.script_dir + '\output\TileUpdate.zip'):
    App.run_command(
        "generate-tiles minzoom=7 maxzoom=15 tilesdir=Site\Tiles use-fprint=true"
    )
    App.collect_garbage()

    App.log("=== Launch creation of Oruxmap IsraelHiking map ===")
    App.log(
        'App.start_program(ProgramFiles + "\Mobile Atlas Creator\Create Israel Hiking.bat", [])'
    )
    App.start_program(
        ProgramFiles + "\Mobile Atlas Creator\Create Israel Hiking.bat", [])

    if os.path.exists(App.script_dir + "\UploadTiles.bat"):
        App.log("=== Create a Zip file with new tiles ===")
        App.run_command('zip base-dir=Site zip-file="' + App.script_dir +
                        '\output\TileUpdate.zip"')
        App.log("=== Upload tiles for zoom 15 and below ===")
        App.log('App.start_program("' + App.script_dir + '\UploadTiles.bat")')
        App.start_program(App.script_dir + "\UploadTiles.bat")

    App.log("=== Create Trails Overlay tiles ===")
    App.run_command("run-script file=IsraelHikingOverlay.mscript")
    if os.path.exists(App.script_dir + "\UploadTiles.bat"):
        App.log("=== Upload Trails Overlay tiles ===")
        App.log('App.start_program("' + App.script_dir +
                '\UploadTiles.bat", "OverlayTiles.zip"])')
    App.run_command('zip base-dir="' + App.script_dir + '\Site" files="' + App.script_dir + '\Site\js\LastModified.js" zip-file="' + App.script_dir +'\output\LastModified.zip"')
else :
    App.log('=== Continueing execution of the previous build ===')  
    App.run_command("pause 15000")

App.run_command("run-script file=IsraelHiking.mscript")
# Map Created

if not os.path.exists(App.script_dir +'\output\TileUpdate.zip') :
    App.run_command("generate-tiles minzoom=7 maxzoom=15 tilesdir=Site\Tiles use-fprint=true")
    App.collect_garbage()
    App.log("=== Create a Zip file with new tiles ===")
    App.run_command('zip base-dir=Site zip-file="' + App.script_dir +'\output\TileUpdate.zip"')
    App.log("=== Upload tiles for zoom 15 and below ===")
    App.log('App.start_program("' + App.script_dir + '\UploadTiles.bat")')
    App.start_program(App.script_dir + "\UploadTiles.bat")

    App.log("=== Start creation of Oruxmap map ===")
    App.log('App.start_program(ProgramFiles + "\Mobile Atlas Creator\Create Israel Hiking.bat", [])')
    App.start_program(ProgramFiles + "\Mobile Atlas Creator\Create Israel Hiking.bat", [])

if not os.path.exists(App.script_dir +'\output\TileUpdate16.zip') :
    App.log("=== Create tiles for zoom 16 ===")
    App.collect_garbage()
    App.run_command("generate-tiles minzoom=16 maxzoom=16 tilesdir=Site\Tiles use-fprint=true")
    App.log("=== Create a Zip file with new tiles ===")
    App.run_command('zip base-dir=Site zip-file="' + App.script_dir +'\output\TileUpdate16.zip"')
    App.log("=== Upload tiles for zoom 16 ===")
    App.log('App.start_program("' + App.script_dir + '\UploadTiles.bat", "TileUpdate16.zip"])')
    App.start_program(App.script_dir + "\UploadTiles.bat", ["TileUpdate16.zip"])