diff --git a/vector/src/main/scala/geotrellis/vector/prepared/PreparedGeometry.scala b/vector/src/main/scala/geotrellis/vector/prepared/PreparedGeometry.scala index 6c62e394d3..64e8ee1d7e 100644 --- a/vector/src/main/scala/geotrellis/vector/prepared/PreparedGeometry.scala +++ b/vector/src/main/scala/geotrellis/vector/prepared/PreparedGeometry.scala @@ -24,7 +24,7 @@ import com.vividsolutions.jts.geom.prep.PreparedGeometryFactory * performance enhancements to operations over those geometries. See Chris Bennight's * [[https://github.com/chrisbennight/intersection-test writeup and benchmarks]] for more. */ -case class PreparedGeometry[G <: Geometry](val geom: Geometry) { +case class PreparedGeometry[G <: Geometry](val geom: Geometry) extends Serializable { private val prepared = PreparedGeometry.factory.create(geom.jtsGeom) def contains(that: Geometry): Boolean = prepared.contains(that.jtsGeom) @@ -59,6 +59,6 @@ case class PreparedGeometry[G <: Geometry](val geom: Geometry) { /** Companion object to [[PreparedGeometry]] */ object PreparedGeometry { - private val factory = new PreparedGeometryFactory + private val factory = new PreparedGeometryFactory }