def staticbbox(): o = json.load(request.body) vo_layers = o['layers'] layers = map(lambda l: Layer(l['name']), vo_layers) group = Group(layers) bbox = group.static_bbox() return vo.bbox(bbox)
def staticbbox(): layer_name = request.GET.get('layerName') l = Layer(layer_name) bbox = l.static_bbox() return vo.bbox(bbox)
def bbox(): layer_name = request.GET.get('layerName') srid = request.GET.get('srid') l = Layer(layer_name,32719) bbox = l.bbox(96) return vo.bbox(bbox)