Skip to content

GH-3320: Support non-euclidean distance for geosparql#4016

Merged
afs merged 2 commits into
apache:mainfrom
ThomasThelen:issue_3320
Jun 27, 2026
Merged

GH-3320: Support non-euclidean distance for geosparql#4016
afs merged 2 commits into
apache:mainfrom
ThomasThelen:issue_3320

Conversation

@ThomasThelen

@ThomasThelen ThomasThelen commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

GitHub issue resolved #3320

Pull request Description:

This PR supports computing distance with linear units. To do this we make use of the great circle... DistanceFF.java currently hardcodes the distance to be Euclidean however, the generic distance method already has routing to select the appropriate distance function (as per the reporting ticket). The comment on the changed line refers to geosparql 1.0 only supporting euclidean distances! With Geosparql 1.1 we can now support others so I believe this change is in line with the spec.

I don't think we need to do any doc updates for this; I don't see any language about different unit support and this is the least restrictive so I think we're good there.


  • Tests are included.
  • Documentation change and updates are provided for the Apache Jena website
  • Commits have been squashed to remove intermediate development commit messages.
  • Key commit messages start with the issue number (GH-xxxx)

By submitting this pull request, I acknowledge that I am making a contribution to the Apache Software Foundation under the terms and conditions of the Contributor's Agreement.


See the Apache Jena "Contributing" guide.

@afs afs changed the title GH-3320 Support non-euclidean distance for geosparql GH-3320: Support non-euclidean distance for geosparql Jun 24, 2026
…ntopological/filter_functions/DistanceFFTest.java

Co-authored-by: Andy Seaborne <andy@apache.org>
@ThomasThelen

Copy link
Copy Markdown
Contributor Author

Thanks for the suggested commit - I definitely butchered the language of "non euclidean" vs the core issue of it being units related ^_^.

@afs

afs commented Jun 25, 2026

Copy link
Copy Markdown
Member

This is a "go" from me.

I'll leave it a few days so that everyone has a chance to take a look at it (please add a review or a comment if it "LGTM" for you).

@afs afs merged commit 6d87bff into apache:main Jun 27, 2026
@afs

afs commented Jun 27, 2026

Copy link
Copy Markdown
Member

And noted to go in the release announcment.

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.

geof:Distance doesn't work for non Euclidian coordinates

3 participants