projects
/
pyrungps.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor rewrites
[pyrungps.git]
/
render_tiles.py
diff --git
a/render_tiles.py
b/render_tiles.py
index a23b136fe8aba6a10a234f74155b9ddbad348f13..f181cbe71936ef0934d5d5993734878439d78453 100644
(file)
--- a/
render_tiles.py
+++ b/
render_tiles.py
@@
-9,10
+9,14
@@
def queue_render(db,filename):
conn = sqlite3.connect(db)
cur = conn.cursor()
conn = sqlite3.connect(db)
cur = conn.cursor()
-
+
cur.execute("select minlat,minlon,maxlat,maxlon from tracks where filename=?" , (filename.decode('UTF-8'),))
cur.execute("select minlat,minlon,maxlat,maxlon from tracks where filename=?" , (filename.decode('UTF-8'),))
-
- minlat,minlon,maxlat,maxlon=cur.fetchone()
+ minlat,minlon,maxlat,maxlon=cur.fetchone()
+ queue_tiles(db,minlat,minlon,maxlat,maxlon)
+
+def queue_tiles(db,minlat,minlon,maxlat,maxlon):
+
+ conn = sqlite3.connect(db)
# определяем примерный стартовый зум
# определяем примерный стартовый зум