예제 #1
0
 def get_cheap_bounding_pyramid(self):
     bounds = {}
     for z, xstart, xstop, ystart, ystop in query(
             self.connection, self.BOUNDING_PYRAMID_SQL):
         bounds[z] = (Bounds(xstart, xstop), Bounds(ystart, ystop))
     return BoundingPyramid(bounds)
예제 #2
0
파일: tilelite.py 프로젝트: sw897/tilebox
 def get_cheap_bounding_pyramid(self):
     bounds = {}
     for z, xstart, xstop, ystart, ystop in query(self.connection, self.BOUNDING_PYRAMID_SQL):
         bounds[z] = (Bounds(xstart, xstop), Bounds(ystart, ystop))
     return BoundingPyramid(bounds)
예제 #3
0
 def set_metadata_zooms(self):
     for minzoom, maxzoom in query(self.connection,
                                   self.SET_METADATA_ZOOMS_SQL):
         self.metadata['minzoom'] = minzoom
         self.metadata['maxzoom'] = maxzoom
예제 #4
0
파일: mbtiles.py 프로젝트: sw897/tilebox
 def set_metadata_zooms(self):
     for minzoom, maxzoom in query(self.connection, self.SET_METADATA_ZOOMS_SQL):
         self.metadata['minzoom'] = minzoom
         self.metadata['maxzoom'] = maxzoom