Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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
Exemplo n.º 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