Skip to content

Commit

Permalink
Work around for issue #8
Browse files Browse the repository at this point in the history
  • Loading branch information
vdeparday committed Sep 17, 2013
1 parent 46c88a0 commit ac20792
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion safe_geonode/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,9 @@ def calculate(request, save_output=save_file_to_geonode):
output['user'] = calculation.user.username
output['pretty_function_source'] = calculation.pretty_function_source()
geometry = []
# FIXME: this is ignoring inner_rings, it should create a geojson with both
for item in impact_file.geometry:
geometry.append(item.tolist())
geometry.append(item.outer_ring.tolist())

raw = { 'name': impact_file.name,
'geometry': geometry,
Expand Down

0 comments on commit ac20792

Please sign in to comment.