Beispiel #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)
Beispiel #2
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)
Beispiel #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
Beispiel #4
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