
geotrellis.spark.reproject.Reproject.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geotrellis-spark_2.10 Show documentation
Show all versions of geotrellis-spark_2.10 Show documentation
GeoTrellis is an open source geographic data processing engine for high performance applications.
The newest version!
package geotrellis.spark.reproject
import geotrellis.raster.reproject.Reproject.{Options => RasterReprojectOptions}
import geotrellis.raster.resample._
object Reproject {
case class Options(
rasterReprojectOptions: RasterReprojectOptions = RasterReprojectOptions.DEFAULT,
/** Attempts to match the total layer extent.
* Warning: This should only be used on layers with smaller extents, and only
* if you really need it to match what a reprojection would be on the parent
* layer as one raster. Seams can happen on layers that use this that cover
* too wide of an area.
*/
matchLayerExtent: Boolean = false
)
object Options {
def DEFAULT = Options()
implicit def rasterReprojectOptionsToOptions(rro: RasterReprojectOptions): Options =
Options(rasterReprojectOptions = rro)
implicit def resampleMethodToOptions(method: ResampleMethod): Options =
Options(rasterReprojectOptions = RasterReprojectOptions(method = method))
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy