diff --git a/ckanext/odsh/helpers.py b/ckanext/odsh/helpers.py index ea1365c214391d7c854a7bf5e1550a08335ca7cc..253289f07fb28833421c0fc3fdad1a2523bf0055 100644 --- a/ckanext/odsh/helpers.py +++ b/ckanext/odsh/helpers.py @@ -731,7 +731,11 @@ def get_spatial_for_selection(): spatial_mapping = list(cr) unique_mapping = [] - unique_mapping.append({'value': toolkit._('Select spatial reference..'), 'key': ''}) + require_spatial_uri = toolkit.asbool( + toolkit.config.get('ckanext.odsh.require_spatial_uri', False) + ) + if not require_spatial_uri: + unique_mapping.append({'value': toolkit._('Select spatial reference..'), 'key': ''}) seen_values = set() for key, value, _ in spatial_mapping: if value in seen_values: