Commit 16bde774 authored by Kris Vanneste's avatar Kris Vanneste
Browse files

Small fix in get_data method of GisData.

git-svn-id: https://svn.seismo.oma.be/svn/seismo/mapping/layeredbasemap/trunk@5866 40b490c5-b4d9-47cb-8714-9bef99b524d5
parent 6fc3fb20
......@@ -214,7 +214,9 @@ class GisData(BasemapData):
except:
print("Warning: Omitting part #%d of multipolygon" % p)
else:
multi_polygon.append(polygon)
if polygon:
## polygon may sometimes be None
multi_polygon.append(polygon)
for polygon in multi_polygon:
polygon.label = label
polygon.value = {k: rec[k] for k in polygon_value_colnames if k in rec}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment