
geotrellis.spark.etl.s3.GeoTiffS3Input.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geotrellis-spark-etl_2.11 Show documentation
Show all versions of geotrellis-spark-etl_2.11 Show documentation
GeoTrellis is an open source geographic data processing engine for high performance applications.
The newest version!
package geotrellis.spark.etl.s3
import geotrellis.raster.Tile
import geotrellis.spark.TileLayerMetadata
import geotrellis.spark.ingest._
import geotrellis.spark.io.s3.GeoTiffS3InputFormat
import geotrellis.vector.ProjectedExtent
import org.apache.spark.SparkContext
import org.apache.spark.rdd.RDD
class GeoTiffS3Input extends S3Input[ProjectedExtent, Tile] {
val format = "geotiff"
def apply(props: Parameters)(implicit sc: SparkContext): RDD[(ProjectedExtent, Tile)] =
sc.newAPIHadoopRDD(configuration(props), classOf[GeoTiffS3InputFormat], classOf[ProjectedExtent], classOf[Tile])
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy