Ignore:
Timestamp:
2008-02-07T04:54:29+01:00 (17 years ago)
Author:
jrreid
Message:

Update lakewalker to have a preference for the WMS layer to use

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/lakewalker/Lakewalker/lakewalker.py

    r4096 r6789  
    8585def download_landsat(c1, c2, width, height, fname):
    8686    layer = "global_mosaic_base"
    87     style = "IR1"
     87    style = options.wmslayer
    8888
    8989    (min_lat, min_lon) = c1
     
    122122            bottom_left_xy = (int(math.floor(x / options.tilesize)) * options.tilesize, int(math.floor(y / options.tilesize)) * options.tilesize)
    123123            top_right_xy = (bottom_left_xy[0] + options.tilesize, bottom_left_xy[1] + options.tilesize)
    124             fname = "landsat_%d_%d_xy_%d_%d.png" % (options.resolution, options.tilesize, bottom_left_xy[0], bottom_left_xy[1])
     124            fname = options.wmslayer+"/landsat_%d_%d_xy_%d_%d.png" % (options.resolution, options.tilesize, bottom_left_xy[0], bottom_left_xy[1])
    125125            im = self.images.get(fname, None)
    126126            if im is None:
     
    446446    parser.add_option("--bottom", type="float", metavar="LATITUDE", default=-90, help="Bottom (south) latitude for bounding box")
    447447    parser.add_option("--josm", action="store_true", dest="josm_mode", default=False, help="Operate in JOSM plugin mode")
     448    parser.add_option("--wms", type="string", dest="wmslayer", default="IR1", help="WMS layer to use")
    448449
    449450    global options # Ugly, I know...
Note: See TracChangeset for help on using the changeset viewer.