Permalink
Browse files

Add an extra clone to satisfy test, this commit can be rollbacked aft…

…er deciding how vector project should behave in general.
  • Loading branch information...
pomadchin committed May 11, 2018
1 parent b33c487 commit 2527fa09fb1a0932175c86df4a5a33fdec0fa3b4
Showing with 1 addition and 1 deletion.
  1. +1 −1 vector/src/main/scala/geotrellis/vector/Geometry.scala
@@ -74,7 +74,7 @@ trait Geometry extends Serializable {
/** Returns this Geometry's vertices. */
lazy val vertices: Array[Point] = {
val vertices = for (i <- 0 until jtsGeom.getNumGeometries) yield {
Geometry(jtsGeom.getGeometryN(i)).vertices
Geometry(jtsGeom.getGeometryN(i).clone().asInstanceOf[jts.Geometry]).vertices
}
vertices.reduce(_ ++ _)

0 comments on commit 2527fa0

Please sign in to comment.