Skip to content

Upgrade to JTS 1.17.0. #188

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

Merged
merged 3 commits into from
Jul 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

DATE: _unreleased_

* \#188: Upgraded to JTS 1.17.0. This JTS release has a small [API change](https://github.com/locationtech/jts/blob/master/doc/JTS_Version_History.md#api-changes).
(Jim Hughes)

* \#177: Improve conversion of a Circle to Shape. JtsShapeFactory allows converting from a Shape
object to a JTS Geometry object. Geodetic circles now translate to a polygon that has points
equidistant from the center. Before the change, there was potentially a large inaccuracy.
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
<dependency>
<groupId>org.locationtech.jts</groupId>
<artifactId>jts-core</artifactId>
<version>1.15.0</version>
<version>1.17.0</version>
<optional>true</optional>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void testDatelineRule() {
JtsSpatialContextFactory factory = new JtsSpatialContextFactory();
factory.datelineRule = DatelineRule.width180;
JtsSpatialContext ctx = factory.newSpatialContext();
final Polygon polygonCloned = polygon.copy();
final Polygon polygonCloned = (Polygon) polygon.copy();
JtsGeometry shp = ctx.makeShape(polygonCloned);
assertEquals("shouldn't be modified after calling makeShape", polygon, polygonCloned);
assertTrue(shp.getGeom() instanceof GeometryCollection);
Expand Down