- for zoom in range(minzoom,maxzoom+1):
-
- n = 2 ** zoom
-
- minxt = int(minx * n)
- minyt = int(miny * n)
- maxxt = int(maxx * n)
- maxyt = int(maxy * n)
-
- ins = conn.cursor()
- print zoom,minxt,maxxt,minyt,maxyt
- ins.execute('insert into render_queue(zoom,minx,maxx,miny,maxy) values(?,?,?,?,?)',(zoom,minxt,maxxt,minyt,maxyt))
-
- if forced_max_zoom is None:
- if (maxxt-minxt>32) or (maxyt-minyt>24):
- print "Breaking..."
- conn.commit()
- break
+ ins = conn.cursor()
+ print minlat,maxlat,minlon,maxlon,minzoom,maxzoom
+ ins.execute('insert into render_queue(minlat,maxlat,minlon,maxlon,minzoom,maxzoom) values(?,?,?,?,?,?)',(minlat,maxlat,minlon,maxlon,minzoom,maxzoom))