Пример #1
0
def shape(request):
    qs = Flaws.objects.all()
    shp_response = ShpResponder(qs)
    shp_response.readme = 'This is a string of a readme\nplease read this.'
    shp_response.file_name = 'Roadflaw Data'
    #shp_response.geo_field = 'geometry'
    return shp_response()
Пример #2
0
def ShapeDump(request):
    qs = Allotment.objects.all()
    shp_response = ShpResponder(qs)
    shp_response.readme = ''
    shp_response.file_name = 'Allotments'
    #shp_response.geo_field = 'geometry'
    return shp_response()