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:
8953c1b
)
Minor rewrites
author
Roman Bazalevsky
<rvb@rvb.name>
Thu, 31 Jul 2014 11:55:04 +0000
(15:55 +0400)
committer
Roman Bazalevsky
<rvb@rvb.name>
Thu, 31 Jul 2014 11:55:04 +0000
(15:55 +0400)
render_tiles.py
patch
|
blob
|
history
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)
# определяем примерный стартовый зум
# определяем примерный стартовый зум