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

JTS 1.18, GeoTools 25.0 #3437

Merged
merged 5 commits into from
Dec 2, 2021
Merged

JTS 1.18, GeoTools 25.0 #3437

merged 5 commits into from
Dec 2, 2021

Conversation

echeipesh
Copy link
Contributor

@echeipesh echeipesh commented Nov 24, 2021

Overview

Version bumps to fantastic OverlayNG

Errors in:

  • vector package
  • spark package

CQs:

Checklist

  • ./CHANGELOG.md updated, if necessary. Link to the issue if closed, otherwise the PR.
  • Module Hierarchy updated, if necessary
  • docs guides update, if necessary
  • New user API has useful Scaladoc strings
  • Unit tests added for bug-fix or new feature

Closes #3436

@@ -780,6 +782,8 @@ case class PointResult(geom: Point) extends GeometryResult
with MultiLineStringMultiLineStringDifferenceResult
with MultiPointMultiPointDifferenceResult
with MultiPolygonMultiPolygonDifferenceResult
with MultiPointMultiPolygonUnionResult
with MultiPointMultiLineStringUnionResult
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Paging @jpolchlo -- seems like JTS got a bit better at simplifying the results of union. I was pretty mechanical about this, could use your 👀 as the vector master.

Copy link
Contributor

Choose a reason for hiding this comment

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

Happy to look. Got any specific concerns? These Result types are pretty labyrinthine.

@echeipesh echeipesh changed the title JTS 1.18, GeoTools 25, GeoWave 2.0 JTS 1.18, GeoTools 25 Nov 26, 2021
@echeipesh echeipesh marked this pull request as ready for review November 27, 2021 14:09
@echeipesh echeipesh changed the title JTS 1.18, GeoTools 25 JTS 1.18 Dec 1, 2021
@pomadchin pomadchin changed the title JTS 1.18 JTS 1.18, GeoTools 25.0 Dec 1, 2021
@@ -79,7 +79,7 @@ object RDDPolygonalSummary {
val extent: Extent = layout.mapTransform.keyToExtent(spatialKey)
val raster: Raster[T] = Raster(tile, extent)
val result: PolygonalSummaryResult[R] =
raster.polygonalSummary(feature.geom, visitor.getClass.newInstance, options)
raster.polygonalSummary(feature.geom, visitor.getClass.getDeclaredConstructor().newInstance(), options)
Copy link
Member

Choose a reason for hiding this comment

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

@echeipesh what is the difference?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://docs.oracle.com/javase/9/docs/api/java/lang/Class.html#newInstance--

Deprecated. This method propagates any exception thrown by the nullary constructor, including a checked exception. Use of this method effectively bypasses the compile-time exception checking that would otherwise be performed by the compiler. The Constructor.newInstance method avoids this problem by wrapping any exception thrown by the constructor in a (checked) InvocationTargetException.

@pomadchin
Copy link
Member

🚀

@echeipesh echeipesh merged commit 0625997 into locationtech:master Dec 2, 2021
@pomadchin pomadchin deleted the jts-1.18 branch January 12, 2022 20:12
@pomadchin
Copy link
Member

UPD: we don't need PB CQs.

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.

3 participants