Skip to content
Snippets Groups Projects
Commit 6066213b authored by anonymous's avatar anonymous
Browse files

fix helpers for spatial_text

parent 34963ee7
No related branches found
No related tags found
No related merge requests found
...@@ -82,6 +82,8 @@ def compute_bounding_box(coords): ...@@ -82,6 +82,8 @@ def compute_bounding_box(coords):
def odsh_get_spatial_text(pkg_dict): def odsh_get_spatial_text(pkg_dict):
extras=pkg_dict.get('extras') extras=pkg_dict.get('extras')
spatial=None spatial=None
if extras is None:
return None
for f in extras: for f in extras:
if 'key' in f and f['key'] == 'spatial_text': if 'key' in f and f['key'] == 'spatial_text':
spatial=f['value'] spatial=f['value']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment