Skip to content

Commit 79e5f22

Browse files
authored
Upgrade to JTS 1.17.0. (#188)
Signed-off-by: Jim Hughes <[email protected]>
1 parent 63b3183 commit 79e5f22

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
DATE: _unreleased_
44

5+
* \#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).
6+
(Jim Hughes)
7+
58
* \#177: Improve conversion of a Circle to Shape. JtsShapeFactory allows converting from a Shape
69
object to a JTS Geometry object. Geodetic circles now translate to a polygon that has points
710
equidistant from the center. Before the change, there was potentially a large inaccuracy.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
<dependency>
122122
<groupId>org.locationtech.jts</groupId>
123123
<artifactId>jts-core</artifactId>
124-
<version>1.15.0</version>
124+
<version>1.17.0</version>
125125
<optional>true</optional>
126126
</dependency>
127127

src/test/java/org/locationtech/spatial4j/context/jts/JtsSpatialContextTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public void testDatelineRule() {
3030
JtsSpatialContextFactory factory = new JtsSpatialContextFactory();
3131
factory.datelineRule = DatelineRule.width180;
3232
JtsSpatialContext ctx = factory.newSpatialContext();
33-
final Polygon polygonCloned = polygon.copy();
33+
final Polygon polygonCloned = (Polygon) polygon.copy();
3434
JtsGeometry shp = ctx.makeShape(polygonCloned);
3535
assertEquals("shouldn't be modified after calling makeShape", polygon, polygonCloned);
3636
assertTrue(shp.getGeom() instanceof GeometryCollection);

0 commit comments

Comments
 (0)