Пример #1
0
def nametownship(ids):
    if request.get_header('Accept') and request.get_header(
            'Accept') == 'application/json':
        response.content_type = 'application/json'
    catasto = Catasto()
    townships = []
    idgeom = 0
    for id in ids.split(','):
        townships += catasto.nameGeoTowhship(id.strip(), idgeom)
        idgeom += 1
    return catasto.joinGeoJSON(townships)
Пример #2
0
def nametownship(id):
    catasto = Catasto()
    return catasto.nameGeoTowhship(id)
Пример #3
0
def nametownship(id):
    catasto = Catasto()
    return catasto.nameGeoTowhship(id)