o

geotrellis.spark.store.hadoop

HadoopGeoTiffRDD

object HadoopGeoTiffRDD

Allows for reading of whole or windowed GeoTiff as RDD[(K, V)]s through Hadoop FileSystem API.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HadoopGeoTiffRDD
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class Options(tiffExtensions: Seq[String] = ..., crs: Option[CRS] = None, timeTag: String = GEOTIFF_TIME_TAG_DEFAULT, timeFormat: String = GEOTIFF_TIME_FORMAT_DEFAULT, maxTileSize: Option[Int] = Some(DefaultMaxTileSize), numPartitions: Option[Int] = None, partitionBytes: Option[Long] = Some(DefaultPartitionBytes), chunkSize: Option[Int] = None) extends RasterReader.Options with Product with Serializable

    This case class contains the various parameters one can set when reading RDDs from Hadoop using Spark.

    This case class contains the various parameters one can set when reading RDDs from Hadoop using Spark.

    tiffExtensions

    Read all file with an extension contained in the given list.

    crs

    Override CRS of the input files. If None, the reader will use the file's original CRS.

    timeTag

    Name of tiff tag containing the timestamp for the tile.

    timeFormat

    Pattern for java.time.format.DateTimeFormatter to parse timeTag.

    maxTileSize

    Maximum allowed size of each tiles in output RDD. May result in a one input GeoTiff being split amongst multiple records if it exceeds this size. If no maximum tile size is specific, then each file is broken into 256x256 tiles. If None, then the whole file will be read in. This option is incompatible with numPartitions and anything set to that parameter will be ignored.

    numPartitions

    How many partitions Spark should create when it repartitions the data.

    partitionBytes

    Desired partition size in bytes, at least one item per partition will be assigned. If no size is specified, then partitions 128 Mb in size will be created by default. This option is incompatible with the numPartitions option. If both are set and maxTileSize isn't, then partitionBytes will be ignored in favor of numPartitions. However, if maxTileSize is set, then partitionBytes will be retained. If None and maxTileSize is defined, then the default partitionBytes' value will still be used. If maxTileSize is also None, then partitionBytes will remain None as well.

    chunkSize

    How many bytes should be read in at a time when reading a file. If None, then 65536 byte chunks will be read in at a time.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final val GEOTIFF_TIME_FORMAT_DEFAULT: String("yyyy:MM:dd HH:mm:ss")
  5. final val GEOTIFF_TIME_TAG_DEFAULT: String("TIFFTAG_DATETIME")
  6. def apply[K, V](path: Path, options: Options)(implicit sc: SparkContext, rr: RasterReader[Options, (K, V)]): RDD[(K, V)]

    Creates a RDD[(K, V)] whose K and V depends on the type of the GeoTiff that is going to be read in.

    Creates a RDD[(K, V)] whose K and V depends on the type of the GeoTiff that is going to be read in.

    path

    Hdfs GeoTiff path.

    options

    An instance of Options that contains any user defined or default settings.

  7. def apply[I, K, V](path: Path, uriToKey: (URI, I) ⇒ K, options: Options, geometry: Option[Geometry] = None)(implicit sc: SparkContext, rr: RasterReader[Options, (I, V)]): RDD[(K, V)]

    Creates a RDD[(K, V)] whose K and V depends on the type of the GeoTiff that is going to be read in.

    Creates a RDD[(K, V)] whose K and V depends on the type of the GeoTiff that is going to be read in.

    This function has two modes of operation: When options.maxTileSize is set windows will be read from GeoTiffs and their size and count will be balanced among partitions using partitionBytes option. Resulting partitions will be grouped in relation to GeoTiff segment layout.

    When maxTileSize is None the GeoTiffs will be read fully and balanced among partitions using either numPartitions or partitionBytes option.

    path

    HDFS GeoTiff path.

    uriToKey

    Function to transform input key basing on the URI information.

    options

    An instance of Options that contains any user defined or default settings.

    geometry

    An optional geometry to filter by. If this is provided, it is assumed that all GeoTiffs are in the same CRS, and that this geometry is in that CRS.

  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def multiband[K](path: Path, options: Options)(implicit sc: SparkContext, rr: RasterReader[Options, (K, MultibandTile)]): RDD[(K, MultibandTile)]

    Creates RDDs with the [(K, V)] values where V is a MultibandTile.

    Creates RDDs with the [(K, V)] values where V is a MultibandTile. It assumes that the provided files are MultibandGeoTiffs.

    path

    Hadoop path to recursively search for GeoTiffs.

    options

    An instance of Options that contains any user defined or default settings.

  17. def multiband[I, K](path: Path, uriToKey: (URI, I) ⇒ K, options: Options)(implicit sc: SparkContext, rr: RasterReader[Options, (I, MultibandTile)]): RDD[(K, MultibandTile)]

    Creates RDDs with the [(K, V)] values where V is a MultibandTile.

    Creates RDDs with the [(K, V)] values where V is a MultibandTile. It assumes that the provided files are MultibandGeoTiffs.

    path

    Hadoop path to recursively search for GeoTiffs.

    uriToKey

    function to transform input key basing on the URI information.

    options

    An instance of Options that contains any user defined or default settings.

  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. def singleband[K](path: Path, options: Options)(implicit sc: SparkContext, rr: RasterReader[Options, (K, Tile)]): RDD[(K, Tile)]

    Creates RDDs with the [(K, V)] values where V is a Tile.

    Creates RDDs with the [(K, V)] values where V is a Tile. It assumes that the provided files are SinglebandGeoTiffs.

    path

    Hadoop path to recursively search for GeoTiffs.

    options

    An instance of Options that contains any user defined or default settings.

  22. def singleband[I, K](path: Path, uriToKey: (URI, I) ⇒ K, options: Options)(implicit sc: SparkContext, rr: RasterReader[Options, (I, Tile)]): RDD[(K, Tile)]

    Creates RDDs with the [(K, V)] values where V is a Tile.

    Creates RDDs with the [(K, V)] values where V is a Tile. It assumes that the provided files are SinglebandGeoTiffs.

    path

    Hadoop path to recursively search for GeoTiffs.

    uriToKey

    function to transform input key basing on the URI information.

    options

    An instance of Options that contains any user defined or default settings.

  23. def spatial(path: Path, uriToKey: (URI, ProjectedExtent) ⇒ ProjectedExtent, options: Options)(implicit sc: SparkContext): RDD[(ProjectedExtent, Tile)]

    Creates RDDs with the [(K, V)] values being ProjectedExtent and Tile, respectively.

    Creates RDDs with the [(K, V)] values being ProjectedExtent and Tile, respectively. It assumes that the provided files are SinglebandGeoTiffs.

    path

    Hadoop path to recursively search for GeoTiffs.

    uriToKey

    function to transform input key basing on the URI information.

    options

    An instance of Options that contains any user defined or default settings.

  24. def spatial(path: Path, options: Options)(implicit sc: SparkContext): RDD[(ProjectedExtent, Tile)]

    Creates RDDs with the [(K, V)] values being ProjectedExtent and Tile, respectively.

    Creates RDDs with the [(K, V)] values being ProjectedExtent and Tile, respectively. It assumes that the provided files are SinglebandGeoTiffs.

    path

    Hadoop path to recursively search for GeoTiffs.

    options

    An instance of Options that contains any user defined or default settings.

  25. def spatial(path: Path)(implicit sc: SparkContext): RDD[(ProjectedExtent, Tile)]

    Creates RDDs with the [(K, V)] values being ProjectedExtent and Tile, respectively.

    Creates RDDs with the [(K, V)] values being ProjectedExtent and Tile, respectively. It assumes that the provided files are SinglebandGeoTiffs.

    path

    Hadoop path to recursively search for GeoTiffs.

  26. def spatialMultiband(path: Path, uriToKey: (URI, ProjectedExtent) ⇒ ProjectedExtent, options: Options)(implicit sc: SparkContext): RDD[(ProjectedExtent, MultibandTile)]

    Creates RDDs with the [(K, V)] values being ProjectedExtent and MultibandTile, respectively.

    Creates RDDs with the [(K, V)] values being ProjectedExtent and MultibandTile, respectively. It assumes that the provided files are MultibandGeoTiffs.

    path

    Hadoop path to recursively search for GeoTiffs.

    uriToKey

    function to transform input key basing on the URI information.

    options

    An instance of Options that contains any user defined or default settings.

  27. def spatialMultiband(path: Path, options: Options)(implicit sc: SparkContext): RDD[(ProjectedExtent, MultibandTile)]

    Creates RDDs with the [(K, V)] values being ProjectedExtent and MultibandTile, respectively.

    Creates RDDs with the [(K, V)] values being ProjectedExtent and MultibandTile, respectively. It assumes that the provided files are MultibandGeoTiffs.

    path

    Hadoop path to recursively search for GeoTiffs.

    options

    An instance of Options that contains any user defined or default settings.

  28. def spatialMultiband(path: Path)(implicit sc: SparkContext): RDD[(ProjectedExtent, MultibandTile)]

    Creates RDDs with the [(K, V)] values being ProjectedExtent and MultibandTile, respectively.

    Creates RDDs with the [(K, V)] values being ProjectedExtent and MultibandTile, respectively. It assumes that the provided files are MultibandGeoTiffs.

    path

    Hadoop path to recursively search for GeoTiffs.

  29. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  30. def temporal(path: Path, uriToKey: (URI, TemporalProjectedExtent) ⇒ TemporalProjectedExtent, options: Options)(implicit sc: SparkContext): RDD[(TemporalProjectedExtent, Tile)]

    Creates RDDs with the [(K, V)] values being TemporalProjectedExtent and Tile, respectively.

    Creates RDDs with the [(K, V)] values being TemporalProjectedExtent and Tile, respectively. It assumes that the provided files are SinglebandGeoTiffs.

    path

    Hadoop path to recursively search for GeoTiffs.

    uriToKey

    function to transform input key basing on the URI information.

    options

    An instance of Options that contains any user defined or default settings.

  31. def temporal(path: Path, options: Options)(implicit sc: SparkContext): RDD[(TemporalProjectedExtent, Tile)]

    Creates RDDs with the [(K, V)] values being TemporalProjectedExtent and Tile, respectively.

    Creates RDDs with the [(K, V)] values being TemporalProjectedExtent and Tile, respectively. It assumes that the provided files are SinglebandGeoTiffs.

    path

    Hadoop path to recursively search for GeoTiffs.

    options

    An instance of Options that contains any user defined or default settings.

  32. def temporal(path: Path)(implicit sc: SparkContext): RDD[(TemporalProjectedExtent, Tile)]

    Creates RDDs with the [(K, V)] values being TemporalProjectedExtent and Tile, respectively.

    Creates RDDs with the [(K, V)] values being TemporalProjectedExtent and Tile, respectively. It assumes that the provided files are SinglebandGeoTiffs.

    path

    Hadoop path to recursively search for GeoTiffs.

  33. def temporalMultiband(path: Path, uriToKey: (URI, TemporalProjectedExtent) ⇒ TemporalProjectedExtent, options: Options)(implicit sc: SparkContext): RDD[(TemporalProjectedExtent, MultibandTile)]

    Creates RDDs with the [(K, V)] values being TemporalProjectedExtent and MultibandTile, respectively.

    Creates RDDs with the [(K, V)] values being TemporalProjectedExtent and MultibandTile, respectively. It assumes that the provided files are MultibandGeoTiffs.

    path

    Hadoop path to recursively search for GeoTiffs.

    uriToKey

    function to transform input key basing on the URI information.

    options

    An instance of Options that contains any user defined or default settings.

  34. def temporalMultiband(path: Path, options: Options)(implicit sc: SparkContext): RDD[(TemporalProjectedExtent, MultibandTile)]

    Creates RDDs with the [(K, V)] values being TemporalProjectedExtent and MultibandTile, respectively.

    Creates RDDs with the [(K, V)] values being TemporalProjectedExtent and MultibandTile, respectively. It assumes that the provided files are MultibandGeoTiffs.

    path

    Hadoop path to recursively search for GeoTiffs.

    options

    An instance of Options that contains any user defined or default settings.

  35. def temporalMultiband(path: Path)(implicit sc: SparkContext): RDD[(TemporalProjectedExtent, MultibandTile)]

    Creates RDDs with the [(K, V)] values being TemporalProjectedExtent and MultibandTile, respectively.

    Creates RDDs with the [(K, V)] values being TemporalProjectedExtent and MultibandTile, respectively. It assumes that the provided files are MultibandGeoTiffs.

    path

    Hadoop path to recursively search for GeoTiffs.

  36. def toString(): String
    Definition Classes
    AnyRef → Any
  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  40. object Options extends Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped