예제 #1
0
def make_parcel_data(parcel, include_attributes=False):
    d = geojson_data(parcel.shape)
    d["properties"] = {"type": parcel.poly_type, "loc_id": parcel.loc_id}

    if include_attributes:
        d["properties"].update(
            {a.name: a.value
             for a in parcel.attributes.all()})

    return d
예제 #2
0
파일: views.py 프로젝트: 1npo/cornerwise
def make_parcel_data(parcel, include_attributes=False):
    d = geojson_data(parcel.shape)
    d["properties"] = {
        "type": parcel.poly_type,
        "loc_id": parcel.loc_id
    }

    if include_attributes:
        d["properties"].update(
            {a.name: a.value for a in parcel.attributes.all()})

    return d
예제 #3
0
def make_parcel_data(parcel):
    d = geojson_data(parcel.shape)
    d["properties"] = {
        "type": parcel.poly_type,
    }
    return d
예제 #4
0
파일: views.py 프로젝트: patilav/citydash
def make_parcel_data(parcel):
    d = geojson_data(parcel.shape)
    d["properties"] = {
        "type": parcel.poly_type,
    }
    return d