Skip to content

Commit

Permalink
JTS 1.18, GeoTools 25, GeoWave 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
echeipesh committed Nov 26, 2021
1 parent 96c5cfc commit 5bfc01e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import sbt._

object Version {
val geotools = "23.3"
val geotools = "25.0"
val spire = "0.17.0"
val accumulo = "1.9.3"
val cassandra = "3.7.2"
Expand Down Expand Up @@ -72,7 +72,7 @@ object Dependencies {
val scalatest = "org.scalatest" %% "scalatest" % "3.2.5"
val scalacheck = "org.scalacheck" %% "scalacheck" % "1.15.2"
val scalaXml = "org.scala-lang.modules" %% "scala-xml" % "1.3.0"
val jts = "org.locationtech.jts" % "jts-core" % "1.17.0"
val jts = "org.locationtech.jts" % "jts-core" % "1.18.1"
val proj4j = "org.locationtech.proj4j" % "proj4j" % "1.1.3"
val openCSV = "com.opencsv" % "opencsv" % "5.3"
val spire = "org.typelevel" %% "spire" % Version.spire
Expand Down
4 changes: 4 additions & 0 deletions vector/src/main/scala/geotrellis/vector/Results.scala
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ object MultiPointMultiLineStringUnionResult {
geom match {
case g: Geometry if g.isEmpty => NoResult
case l: LineString => LineStringResult(l)
case pt: Point => PointResult(pt)
case mp: MultiPoint => MultiPointResult(mp)
case ml: MultiLineString => MultiLineStringResult(ml)
case gc: GeometryCollection => GeometryCollectionResult(gc)
Expand Down Expand Up @@ -331,6 +332,7 @@ object MultiPointMultiPolygonUnionResult {
geom match {
case g: Geometry if g.isEmpty => NoResult
case p: Polygon => PolygonResult(p)
case pt: Point => PointResult(pt)
case mpt: MultiPoint => MultiPointResult(mpt)
case mp: MultiPolygon => MultiPolygonResult(mp)
case gc: GeometryCollection => GeometryCollectionResult(gc)
Expand Down Expand Up @@ -780,6 +782,8 @@ case class PointResult(geom: Point) extends GeometryResult
with MultiLineStringMultiLineStringDifferenceResult
with MultiPointMultiPointDifferenceResult
with MultiPolygonMultiPolygonDifferenceResult
with MultiPointMultiPolygonUnionResult
with MultiPointMultiLineStringUnionResult
with PointOrNoResult {
def toGeometry(): Option[Geometry] = Some(geom)
}
Expand Down
6 changes: 3 additions & 3 deletions vector/src/test/scala/geotrellis/vector/MultiPointSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class MultiPointSpec extends AnyFunSpec with Matchers {
it ("should union with an empty MultiPoint and return a MultiPointResult") {
val mp1 = MultiPoint(Point(1,1))
val mp2 = MultiPoint.EMPTY
mp1 | mp2 should be (MultiPointResult(Seq(Point(1,1)).toMultiPoint))
mp1 | mp2 shouldBe PointResult(Point(1,1))
}

it ("should union with a MultiPoint and return a PointResult") {
Expand Down Expand Up @@ -158,7 +158,7 @@ class MultiPointSpec extends AnyFunSpec with Matchers {
it ("should union with an empty MultiLineString and return a MultiPointResult") {
val mp = MultiPoint(Seq(Point(1,1)))
val ml = MultiLineString(Seq())
mp | ml should be (MultiPointResult(Seq(Point(1,1)).toMultiPoint))
mp | ml shouldBe PointResult(Point(1,1))
}

it ("should union with a MultiLineString and return a MultiPoint") {
Expand Down Expand Up @@ -188,7 +188,7 @@ class MultiPointSpec extends AnyFunSpec with Matchers {
it ("should union with an empty MultiPolygon and return a MultiPointResult") {
val mpt = MultiPoint(Seq(Point(1,1)))
val mp = MultiPolygon(Seq())
mpt | mp should be (MultiPointResult(Seq(Point(1,1)).toMultiPoint))
mpt | mp shouldBe PointResult(Point(1,1))
}

it ("should union with a MultiPolygon and return a PolygonResult") {
Expand Down
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ThisBuild / version := "3.6.1-SNAPSHOT"
ThisBuild / version := "3.7.0-SNAPSHOT"

0 comments on commit 5bfc01e

Please sign in to comment.