Skip to content

Commit

Permalink
Merge 25426d7 into 13ba27d
Browse files Browse the repository at this point in the history
  • Loading branch information
meomancer committed Apr 22, 2020
2 parents 13ba27d + 25426d7 commit ceaff31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -80,15 +80,15 @@ def country_data_into_shapefile(country=None):
query=queryset.filter(osm_type=LocalityOSMView.NODE),
fields=fields,
dir_shapefile=dir_shapefile,
shp_filename='{}-node'.format(shp_filename),
shp_filename=u'{}-node'.format(shp_filename),
TYPE=shapefile.POINT)

# generate the way shapefile
insert_to_shapefile(
query=queryset.filter(osm_type=LocalityOSMView.WAY),
fields=fields,
dir_shapefile=dir_shapefile,
shp_filename='{}-way'.format(shp_filename),
shp_filename=u'{}-way'.format(shp_filename),
TYPE=shapefile.POLYGON)

# zip this output
Expand Down
4 changes: 2 additions & 2 deletions django_project/api/urls.py
Expand Up @@ -34,9 +34,9 @@
)
facilities_api = patterns(
'',
url(r'^shapefile/(?P<country>\w+)/detail',
url(r'^shapefile/(?P<country>.+)/detail',
GetShapefileDetail.as_view()),
url(r'^shapefile/(?P<country>\w+)/download',
url(r'^shapefile/(?P<country>.+)/download',
GetShapefileDownload.as_view()),

url(r'^cluster', GetCluster.as_view()),
Expand Down

0 comments on commit ceaff31

Please sign in to comment.