solr-spatial-field backend fails on longitude > 180 degree harvests
- Dominant language
- XSLT
- Stars
- 136
- Forks
- 207
- PR merge metrics
- No merged PRs in 30d
Description
I'm using `solr-spatial-field` as the CKAN spatial backend, along with ckanext-harvest to kick off harvests.
When some datasets with > 180 degrees of latitude are attempting to harvest, the harvester crashes due to an unhandled exception from Solr:
```
2023-03-01 20:58:57,773 ERROR [ckan.lib.search] Solr returned an error: Solr responded with an error (HTTP 400): [Reason: ERROR: [doc=b0b4a646f731d1fb151af2ad5441d62b] Error adding field 'spatial_geom'='POLYGON ((160 0, 257 0, 257 54, 16$
54, 160 0))' msg=Unable to parse shape given formats "lat,lon", "x y" or as WKT because org.locationtech.spatial4j.exception.InvalidShapeException: Bad X value 257.0 is not in boundary Rect(minX=-180.0,maxX=180.0,minY=-90.0,maxY=90.0) i$
put: POLYGON ((160 0, 257 0, 257 54, 160 54, 160 0))]
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.