Skip to content

GH-2219 : Check for existence of Z axis and measure to avoid exception when neither is available#2231

Merged
afs merged 3 commits intoapache:mainfrom
LorenzBuehmann:clean
Feb 12, 2024
Merged

GH-2219 : Check for existence of Z axis and measure to avoid exception when neither is available#2231
afs merged 3 commits intoapache:mainfrom
LorenzBuehmann:clean

Conversation

@LorenzBuehmann
Copy link
Contributor

@LorenzBuehmann LorenzBuehmann commented Jan 30, 2024

GitHub issue resolved #2219

Pull request Description:
Does fix an issue when Z axis isn't available.


  • 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, or if in JIRA, JENA-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
Copy link
Member

afs commented Jan 30, 2024

Could you add a test for this please?

One place might be WKTDatatypeTest (and GMLDatatypeTest) but that may not be a good fit.

If nothing else, a new test class in org.apache.jena.geosparql.implementation.jts.

- tests creation of coordinates for different combinations of spatial and measure dimension
@LorenzBuehmann
Copy link
Contributor Author

I added a test class for the CustomCoordinateSequence class on the JTS level. The test does check the creation of a Coordinate for the different combinations of the spatial and measure dimension.

assertTrue(Double.isNaN(coord.getZ()));
assertEquals(2.0, coord.getM(), 0.001);
}
} No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
}

@afs
Copy link
Member

afs commented Feb 8, 2024

Other than the license (and a minor issue format issue), this PR looks and builds properly.

Copy link
Member

@afs afs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@afs afs merged commit 602c73e into apache:main Feb 12, 2024
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.

GeoSPARQL - geof:sfIntersects function issue when left-hand side geometry is rectangle shape

2 participants