We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 944ae4d + d5cee0b commit 1205d3aCopy full SHA for 1205d3a
ckanext/spatial/search/__init__.py
@@ -50,6 +50,9 @@ def index_dataset(self, dataset_dict):
50
"""
51
52
geom_from_metadata = dataset_dict.get("spatial")
53
+ if not geom_from_metadata:
54
+ return dataset_dict
55
+
56
geometry = self.parse_geojson(geom_from_metadata)
57
shape = self.shape_from_geometry(geometry)
58
@@ -130,6 +133,9 @@ class SolrSpatialFieldSearchBackend(SpatialSearchBackend):
130
133
def index_dataset(self, dataset_dict):
131
134
wkt = None
132
135
136
137
138
139
140
if not geometry:
141
return dataset_dict
0 commit comments