Improving log error message.
Improving log error message for invalid geoJSON data.
This commit is contained in:
parent
50249e13a7
commit
16fa672a18
|
@ -189,7 +189,7 @@ class SpatialQuery(p.SingletonPlugin):
|
|||
if not (geometry['type'] == 'Polygon'
|
||||
and len(geometry['coordinates']) == 1
|
||||
and len(geometry['coordinates'][0]) == 5):
|
||||
log.error('Solr backend only supports bboxes, ignoring geometry {0}'.format(pkg_dict['extras_spatial']))
|
||||
log.error('Solr backend only supports bboxes (Polygons with 5 points), ignoring geometry {0}'.format(pkg_dict['extras_spatial']))
|
||||
return pkg_dict
|
||||
|
||||
coords = geometry['coordinates']
|
||||
|
|
Loading…
Reference in New Issue