Exemple #1
0
def getKapZoom(kapfile):
    key = kapfile.split("/")[-1]
    if zoomOverrides.has_key(key):
        return zoomOverrides[key]
    else:
        header = BsbHeader(kapfile)
        scale = header.getscale()
        latitude = header.getCenter()[1]
        return getZoom(scale, latitude)
Exemple #2
0
 def _read(self, map_file):
     header = BsbHeader(map_file)
     key = header.getbasefile()
     data = [header.getname(), header.getupdated(), header.getscale(), header.getOutline(), header.getDepthUnits(), getZoom(header.getscale(), header.getCenter()[1])]
     self.data[key] = data