Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update jts and slf dependencies to latest version #794

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

lonvia
Copy link
Collaborator

@lonvia lonvia commented Apr 23, 2024

Gradle's dependency management makes it a bit simpler to work with the very old ElasticSearch version.

JTS is a bit tricky because it has been moved around quite a bit from 'com.vividsolutions.jts.jts' to ´com.vividsolutions.jts.jts-core' to 'org.locationtech.jts.jts-core'. ES still depends on the version from vividsolutions. This in itself is not an issue, we could simply include both version s of the library. The actual blocker turns out to be 'org.locationtech.spatial4j ´. It is used in the ES library, where it is expected to return vividsolution geometries. And it is used in the postgis-jdbc-jtsparser, where after the update a locationtech geometry is expected. The solution is to get rid of postgis-jdbc-jtsparser and implement our own parsing of PostGIS geometries.

There is a version clash between the versions of spatial4j
used in the postgis adaptor and the ES5.5. To avoid jar hell,
implement our own postgis to HTS converter instead of using
the adaptor.
@lonvia lonvia merged commit 447e0bd into komoot:master Apr 23, 2024
4 checks passed
@lonvia lonvia deleted the update-jts-library branch April 23, 2024 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant