Class/Object

geotrellis.spark.io.file.cog

FileCOGLayerReader

Related Docs: object FileCOGLayerReader | package cog

Permalink

class FileCOGLayerReader extends COGLayerReader[LayerId] with LazyLogging

Handles reading raster RDDs and their metadata from S3.

Linear Supertypes
LazyLogging, COGLayerReader[LayerId], Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FileCOGLayerReader
  2. LazyLogging
  3. COGLayerReader
  4. Serializable
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FileCOGLayerReader(attributeStore: AttributeStore, catalogPath: String, defaultThreads: Int = ...)(implicit sc: SparkContext)

    Permalink

    attributeStore

    AttributeStore that contains metadata for corresponding LayerId

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val attributeStore: AttributeStore

    Permalink

    AttributeStore that contains metadata for corresponding LayerId

    AttributeStore that contains metadata for corresponding LayerId

    Definition Classes
    FileCOGLayerReaderCOGLayerReader
  6. def baseReadAllBands[K, V <: CellGrid](id: LayerId, tileQuery: LayerQuery[K, TileLayerMetadata[K]], numPartitions: Int, defaultThreads: Int)(implicit arg0: SpatialComponent[K], arg1: Boundable[K], arg2: JsonFormat[K], arg3: ClassTag[K], arg4: GeoTiffReader[V], arg5: ClassTag[V], sc: SparkContext, getByteReader: (URI) ⇒ ByteReader, idToLayerId: (LayerId) ⇒ LayerId): RDD[(K, V)] with Metadata[TileLayerMetadata[K]]

    Permalink
    Definition Classes
    COGLayerReader
  7. def baseReadSubsetBands[K](id: LayerId, targetBands: Seq[Int], tileQuery: LayerQuery[K, TileLayerMetadata[K]], numPartitions: Int, defaultThreads: Int)(implicit arg0: SpatialComponent[K], arg1: Boundable[K], arg2: JsonFormat[K], arg3: ClassTag[K], sc: SparkContext, getByteReader: (URI) ⇒ ByteReader, idToLayerId: (LayerId) ⇒ LayerId): RDD[(K, Array[Option[Tile]])] with Metadata[TileLayerMetadata[K]]

    Permalink
    Definition Classes
    COGLayerReader
  8. val catalogPath: String

    Permalink
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. val defaultNumPartitions: Int

    Permalink
    Definition Classes
    FileCOGLayerReaderCOGLayerReader
  11. val defaultThreads: Int

    Permalink
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def fullPath(path: String): URI

    Permalink
    Definition Classes
    FileCOGLayerReaderCOGLayerReader
  16. implicit def getByteReader(uri: URI): ByteReader

    Permalink
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def getHeader(id: LayerId): FileLayerHeader

    Permalink
    Definition Classes
    FileCOGLayerReaderCOGLayerReader
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. def pathExists(path: String): Boolean

    Permalink
    Definition Classes
    FileCOGLayerReaderCOGLayerReader
  26. def produceGetKeyPath(id: LayerId): (ZoomRange, Int) ⇒ (BigInt) ⇒ String

    Permalink
    Definition Classes
    FileCOGLayerReaderCOGLayerReader
  27. def query[K, V <: CellGrid](layerId: LayerId, numPartitions: Int)(implicit arg0: SpatialComponent[K], arg1: Boundable[K], arg2: JsonFormat[K], arg3: ClassTag[K], arg4: GeoTiffReader[V], arg5: ClassTag[V]): BoundLayerQuery[K, TileLayerMetadata[K], RDD[(K, V)] with Metadata[TileLayerMetadata[K]]]

    Permalink
    Definition Classes
    COGLayerReader
  28. def query[K, V <: CellGrid](layerId: LayerId)(implicit arg0: SpatialComponent[K], arg1: Boundable[K], arg2: JsonFormat[K], arg3: ClassTag[K], arg4: GeoTiffReader[V], arg5: ClassTag[V]): BoundLayerQuery[K, TileLayerMetadata[K], RDD[(K, V)] with Metadata[TileLayerMetadata[K]]]

    Permalink
    Definition Classes
    COGLayerReader
  29. def querySubsetBands[K](layerId: LayerId, targetBands: Seq[Int], numPartitions: Int)(implicit arg0: SpatialComponent[K], arg1: Boundable[K], arg2: JsonFormat[K], arg3: ClassTag[K]): BoundLayerQuery[K, TileLayerMetadata[K], RDD[(K, Array[Option[Tile]])] with Metadata[TileLayerMetadata[K]]]

    Permalink
    Definition Classes
    COGLayerReader
  30. def querySubsetBands[K](layerId: LayerId, targetBands: Seq[Int])(implicit arg0: SpatialComponent[K], arg1: Boundable[K], arg2: JsonFormat[K], arg3: ClassTag[K]): BoundLayerQuery[K, TileLayerMetadata[K], RDD[(K, Array[Option[Tile]])] with Metadata[TileLayerMetadata[K]]]

    Permalink
    Definition Classes
    COGLayerReader
  31. def read[K, V <: CellGrid](id: LayerId, tileQuery: LayerQuery[K, TileLayerMetadata[K]], numPartitions: Int)(implicit arg0: SpatialComponent[K], arg1: Boundable[K], arg2: JsonFormat[K], arg3: ClassTag[K], arg4: GeoTiffReader[V], arg5: ClassTag[V]): RDD[(K, V)] with Metadata[TileLayerMetadata[K]]

    Permalink

    read

    read

    This function will read an RDD layer based on a query.

    K

    Type of RDD Key (ex: SpatialKey)

    V

    Type of RDD Value (ex: Tile or MultibandTile )

    id

    The ID of the layer to be read

    numPartitions

    The desired number of partitions in the resulting RDD.

    Definition Classes
    FileCOGLayerReaderCOGLayerReader
  32. def read[K, V <: CellGrid](id: LayerId)(implicit arg0: SpatialComponent[K], arg1: Boundable[K], arg2: JsonFormat[K], arg3: ClassTag[K], arg4: GeoTiffReader[V], arg5: ClassTag[V]): RDD[(K, V)] with Metadata[TileLayerMetadata[K]]

    Permalink
    Definition Classes
    COGLayerReader
  33. def read[K, V <: CellGrid](id: LayerId, numPartitions: Int)(implicit arg0: SpatialComponent[K], arg1: Boundable[K], arg2: JsonFormat[K], arg3: ClassTag[K], arg4: GeoTiffReader[V], arg5: ClassTag[V]): RDD[(K, V)] with Metadata[TileLayerMetadata[K]]

    Permalink
    Definition Classes
    COGLayerReader
  34. def read[K, V <: CellGrid](id: LayerId, rasterQuery: LayerQuery[K, TileLayerMetadata[K]])(implicit arg0: SpatialComponent[K], arg1: Boundable[K], arg2: JsonFormat[K], arg3: ClassTag[K], arg4: GeoTiffReader[V], arg5: ClassTag[V]): RDD[(K, V)] with Metadata[TileLayerMetadata[K]]

    Permalink
    Definition Classes
    COGLayerReader
  35. def readSubsetBands[K](id: LayerId, targetBands: Seq[Int], rasterQuery: LayerQuery[K, TileLayerMetadata[K]], numPartitions: Int)(implicit arg0: SpatialComponent[K], arg1: Boundable[K], arg2: JsonFormat[K], arg3: ClassTag[K]): RDD[(K, Array[Option[Tile]])] with Metadata[TileLayerMetadata[K]]

    Permalink

    This method will read in an RDD layer whose value will only contain the desired bands in their given order.

    This method will read in an RDD layer whose value will only contain the desired bands in their given order. This value is represented as an: Array[Option[Tile]]. Where Some(tile) represents a single band and None represents a band that could not be accessed.

    K

    Type of RDD Key (ex: SpatialKey)

    id

    The ID of the layer to be read

    targetBands

    The desired set of bands the output layer should have.

    rasterQuery

    The query that will specify the filter for this read.

    numPartitions

    The desired number of partitions in the resulting RDD.

    Definition Classes
    FileCOGLayerReaderCOGLayerReader
  36. def readSubsetBands[K](id: LayerId, targetBands: Seq[Int])(implicit arg0: SpatialComponent[K], arg1: Boundable[K], arg2: JsonFormat[K], arg3: ClassTag[K]): RDD[(K, Array[Option[Tile]])] with Metadata[TileLayerMetadata[K]]

    Permalink
    Definition Classes
    COGLayerReader
  37. def readSubsetBands[K](id: LayerId, targetBands: Seq[Int], numPartitions: Int)(implicit arg0: SpatialComponent[K], arg1: Boundable[K], arg2: JsonFormat[K], arg3: ClassTag[K]): RDD[(K, Array[Option[Tile]])] with Metadata[TileLayerMetadata[K]]

    Permalink
    Definition Classes
    COGLayerReader
  38. def readSubsetBands[K](id: LayerId, targetBands: Seq[Int], rasterQuery: LayerQuery[K, TileLayerMetadata[K]])(implicit arg0: SpatialComponent[K], arg1: Boundable[K], arg2: JsonFormat[K], arg3: ClassTag[K]): RDD[(K, Array[Option[Tile]])] with Metadata[TileLayerMetadata[K]]

    Permalink
    Definition Classes
    COGLayerReader
  39. def reader[K, V <: CellGrid](implicit arg0: SpatialComponent[K], arg1: Boundable[K], arg2: JsonFormat[K], arg3: ClassTag[K], arg4: GeoTiffReader[V], arg5: ClassTag[V]): Reader[LayerId, RDD[(K, V)] with Metadata[TileLayerMetadata[K]]]

    Permalink
    Definition Classes
    COGLayerReader
  40. implicit val sc: SparkContext

    Permalink
  41. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  42. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  43. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from LazyLogging

Inherited from COGLayerReader[LayerId]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped