

def pbf(self, bbox, geo_col=None, scale=4096):
    'Returns tranlated and scaled geometries suitable for Mapbox vector\n        tiles.\n        '
    col = (geo_col or self._transform())
    (w, s, e, n) = bbox.extent
    trans = self._trans_scale(n, (- w), (- s), (scale / (e - w)), (scale / (n - s)))
    return self.extra(select={
        'pbf': ('ST_AsText(%s)' % trans),
    })

dataset/ETHPy150Open bkg/django-spillway/spillway/query.py GeoQuerySet.pbf/VarMisuse@54/92 `col`->`n`