From: Roman Bazalevsky Date: Thu, 31 Jul 2014 11:55:04 +0000 (+0400) Subject: Minor rewrites X-Git-Url: https://git.rvb.name/pyrungps.git/commitdiff_plain/5c18c71d0182aeb1424dba1dcc54fb23929ef85c?hp=8953c1b73ec2d259881088f172757bfb3eb2b743 Minor rewrites --- diff --git a/render_tiles.py b/render_tiles.py index a23b136..f181cbe 100644 --- a/render_tiles.py +++ b/render_tiles.py @@ -9,10 +9,14 @@ def queue_render(db,filename): conn = sqlite3.connect(db) cur = conn.cursor() - + 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) # определяем примерный стартовый зум