Skip to content

GH-4233: Add GeoSPARQL 1.1 centroid function - #4234

Open
edmondchuc wants to merge 1 commit into
apache:mainfrom
edmondchuc:feat/geosparql/centroid-function
Open

edmondchuc wants to merge 1 commit into
apache:mainfrom
edmondchuc:feat/geosparql/centroid-function

Conversation

@edmondchuc

Copy link
Copy Markdown
Contributor

GitHub issue resolved #4233

Adds the GeoSPARQL 1.1 geof:centroid function, also available through GeometryWrapper.centroid().

The function returns the planar, two-dimensional centroid of the input geometry as a Point. It uses JTS centroid semantics.

For GML inputs using a three-dimensional CRS, a non-empty XY centroid cannot be represented without inventing a Z ordinate, so the function raises an expression error.


  • 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.

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.

Add GeoSPARQL 1.1 geof:centroid function

1 participant