Improving log error message.

Improving log error message for invalid geoJSON data.
This commit is contained in:
Miguel Gouveia 2016-06-17 15:46:22 +01:00 committed by GitHub
parent 50249e13a7
commit 16fa672a18
1 changed files with 1 additions and 1 deletions

View File

@ -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']