Skip to content

Commit

Permalink
Rename commonCRS into commonCrs
Browse files Browse the repository at this point in the history
  • Loading branch information
pomadchin committed Jun 15, 2020
1 parent 21fbcb9 commit 4848522
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ case class StacOgcRepository(stacSourceConf: StacSourceConf, client: StacClient[
val source: Option[RasterSource] = rasterSources match {
case head :: Nil => head.some
case head :: _ =>
val commonCRS = if(rasterSources.map(_.crs).distinct.size == 1) head.crs else stacSourceConf.commonCRS
val reprojectedSources = rasterSources.map(_.reproject(commonCRS))
MosaicRasterSource.instance(NonEmptyList.fromListUnsafe(reprojectedSources), commonCRS).some
val commonCrs = if(rasterSources.map(_.crs).distinct.size == 1) head.crs else stacSourceConf.commonCrs
val reprojectedSources = rasterSources.map(_.reproject(commonCrs))
MosaicRasterSource.instance(NonEmptyList.fromListUnsafe(reprojectedSources), commonCrs).some
case _ => None
}

Expand Down

0 comments on commit 4848522

Please sign in to comment.