projects
/
pyrungps.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4d541b7
)
Command line parameters for forced tile generation added
author
Roman Bazalevsky
<rvb@rvb.name>
Thu, 31 Jul 2014 12:27:35 +0000
(16:27 +0400)
committer
Roman Bazalevsky
<rvb@rvb.name>
Thu, 31 Jul 2014 12:27:35 +0000
(16:27 +0400)
render_tiles.py
patch
|
blob
|
history
diff --git
a/render_tiles.py
b/render_tiles.py
index 5ce33f193b7baf75e226f58f2ad932940d890554..bef03c16d5f5eda3efa226d2feb34a17f0badb68 100644
(file)
--- a/
render_tiles.py
+++ b/
render_tiles.py
@@
-92,12
+92,20
@@
def main():
help="Data directory", metavar="DIR")
parser.add_option("-m", "--map", dest="map",
help="Map name", metavar="MAP")
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
(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__":
if __name__ == "__main__":