Open benjwadams opened 1 year ago
The documentation mentions that you'll have to split bboxes across the anti-meridian in order to index in Solr:
I ended up creating a fix for this, but is there any reason this can't be fixed here, or skipped, instead of crashing the harvest process?
There is a chance it wasn't as high a priority as other issues. I am not working on CKAN development full time, but I would imagine that your solution could be useful to others, and you could make a pull request to let others benefit from your solution.
I'll try to contribute back, will have to make a unit test for the geometry splitting functionality.
I'd be interested in a solution for this too @benjwadams, have you added the geometry splitting in an extension or repo where I could maybe test the code out? Or maybe you could raise a work in progress PR against this repo and add the test later on?
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: