diff --git a/api/src/main/scala/Geoprocessing.scala b/api/src/main/scala/Geoprocessing.scala index 7cb30e1..4770dd2 100644 --- a/api/src/main/scala/Geoprocessing.scala +++ b/api/src/main/scala/Geoprocessing.scala @@ -95,7 +95,7 @@ trait Geoprocessing extends Utils { lines: Seq[MultiLine] ): Map[String, Int] = { val metadata = rasterLayers.head.metadata - var pixelGroups: TrieMap[(List[Int], TilePixel), Int] = TrieMap.empty + val pixelGroups: TrieMap[(List[Int], TilePixel), Int] = TrieMap.empty joinCollectionLayers(rasterLayers).par .foreach({ case (key, tiles) => @@ -223,7 +223,7 @@ trait Geoprocessing extends Utils { // assume all the layouts are the same val metadata = rasterLayers.head.metadata - var pixelGroups: TrieMap[List[Int], LongAdder] = TrieMap.empty + val pixelGroups: TrieMap[List[Int], LongAdder] = TrieMap.empty joinCollectionLayers(rasterLayers).par .foreach({ case (key, tiles) => diff --git a/api/src/main/scala/Utils.scala b/api/src/main/scala/Utils.scala index 7846ba9..0a34f26 100644 --- a/api/src/main/scala/Utils.scala +++ b/api/src/main/scala/Utils.scala @@ -4,12 +4,10 @@ import scala.concurrent.Future import scala.concurrent.ExecutionContext.Implicits.global import spray.json._ -import spray.json.DefaultJsonProtocol._ import geotrellis.proj4.{CRS, ConusAlbers, LatLng, WebMercator} import geotrellis.raster._ -import geotrellis.raster.rasterize._ import geotrellis.vector._ import geotrellis.vector.io._ import geotrellis.spark._