help="Data directory", metavar="DIR")
parser.add_option("-m", "--map", dest="map",
help="Map name", metavar="MAP")
+ parser.add_option("-z", "--zoom", dest="zoom",
+ help="Maximal zoom (forced), used with coordinates pairs (minlat minlon maxlat maxlon) in arguments", metavar="MAP")
(options, args) = parser.parse_args()
db=options.directory+'/gpx.db'
map=options.map
+ zoom=options.zoom
- process_queue(db,map)
+ if zoom:
+ minlat,minlon,maxlat,maxlon=args
+ queue_tiles(db,float(minlat),float(minlon),float(maxlat),float(maxlon),int(zoom))
+
+ if map:
+ process_queue(db,map)
if __name__ == "__main__":