Packages

class GeoTrellisRasterSource extends RasterSource

Note: GeoTrellis AttributeStore does not store the band count for the layers by default, thus they need to be provided from application configuration.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GeoTrellisRasterSource
  2. RasterSource
  3. RasterMetadata
  4. CellGrid
  5. GridIntegral
  6. Grid
  7. Serializable
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GeoTrellisRasterSource(dataPath: GeoTrellisPath)
  2. new GeoTrellisRasterSource(attributeStore: AttributeStore, dataPath: GeoTrellisPath)
  3. new GeoTrellisRasterSource(attributeStore: AttributeStore, dataPath: GeoTrellisPath, sourceLayers: Stream[Layer], targetCellType: Option[TargetCellType], time: Option[ZonedDateTime], timeMetadataKey: String = "times")

    attributeStore

    GeoTrellis attribute store

    dataPath

    GeoTrellis catalog DataPath

    sourceLayers

    List of source layers

    targetCellType

    The target cellType

    time

    time slice, in case we're trying to read temporal layer slices

Value Members

  1. val attributeStore: AttributeStore
  2. def attributes: Map[String, String]

    Return the "base" metadata, usually it is a zero band metadata, a metadata that is valid for the entire source and for the zero band

    Return the "base" metadata, usually it is a zero band metadata, a metadata that is valid for the entire source and for the zero band

    Definition Classes
    GeoTrellisRasterSourceRasterMetadata
  3. def attributesForBand(band: Int): Map[String, String]

    GeoTrellis metadata doesn't allow to query a per band metadata by default.

    GeoTrellis metadata doesn't allow to query a per band metadata by default.

    Definition Classes
    GeoTrellisRasterSourceRasterMetadata
  4. val bandCount: Int
    Definition Classes
    GeoTrellisRasterSourceRasterMetadata
  5. def cellSize: CellSize

    Cell size at which rasters will be read when using this RasterSource

    Cell size at which rasters will be read when using this RasterSource

    Note: some re-sampling of underlying raster data may be required to produce this cell size.

    Definition Classes
    RasterMetadata
  6. def cellType: CellType
  7. def cols: Long

    Raster pixel column count

    Raster pixel column count

    Definition Classes
    RasterMetadata
  8. def convert(targetCellType: TargetCellType): RasterSource
    Definition Classes
    GeoTrellisRasterSourceRasterSource
  9. def convert(targetCellType: CellType): RasterSource

    Converts the values within the RasterSource from one CellType to another.

    Converts the values within the RasterSource from one CellType to another.

    Note:

    GDALRasterSource differs in how it converts data from the other RasterSources. Please see the convert docs for GDALRasterSource for more information.

    Definition Classes
    RasterSource
  10. def crs: CRS
    Definition Classes
    GeoTrellisRasterSourceRasterMetadata
  11. val dataPath: GeoTrellisPath
  12. def dimensions: Dimensions[Long]
    Definition Classes
    GridIntegralGrid
  13. def extent: Extent
    Definition Classes
    RasterMetadata
  14. lazy val gridExtent: GridExtent[Long]
    Definition Classes
    GeoTrellisRasterSourceRasterMetadata
  15. def interpretAs(targetCellType: CellType): RasterSource
    Definition Classes
    RasterSource
  16. lazy val isTemporal: Boolean
  17. def layerId: LayerId
  18. lazy val layerMetadata: TileLayerMetadata[_]
  19. def metadata: GeoTrellisMetadata

    All available RasterSource metadata

    All available RasterSource metadata

    Definition Classes
    GeoTrellisRasterSourceRasterSource
  20. def name: GeoTrellisPath

    Source name, that can be a path or any name that is associated with Raster

    Source name, that can be a path or any name that is associated with Raster

    Definition Classes
    GeoTrellisRasterSourceRasterMetadata
  21. def read(bounds: GridBounds[Long], bands: Seq[Int]): Option[Raster[MultibandTile]]

    Reads a window for pixel bounds.

    Reads a window for pixel bounds. Return extent may be smaller than requested extent around raster edges. May return None if the requested extent does not overlap the raster extent.

    Definition Classes
    GeoTrellisRasterSourceRasterSource
  22. def read(extent: Extent, bands: Seq[Int]): Option[Raster[MultibandTile]]

    Reads a window for the extent.

    Reads a window for the extent. Return extent may be smaller than requested extent around raster edges. May return None if the requested extent does not overlap the raster extent.

    Definition Classes
    GeoTrellisRasterSourceRasterSource
  23. def read(bands: Seq[Int]): Option[Raster[MultibandTile]]

    Definition Classes
    RasterSource
  24. def read(): Option[Raster[MultibandTile]]

    Definition Classes
    RasterSource
  25. def read(bounds: GridBounds[Long]): Option[Raster[MultibandTile]]

    Definition Classes
    RasterSource
  26. def read(extent: Extent): Option[Raster[MultibandTile]]

    Definition Classes
    RasterSource
  27. def readBounds(bounds: Traversable[GridBounds[Long]], bands: Seq[Int]): Iterator[Raster[MultibandTile]]

    Definition Classes
    GeoTrellisRasterSourceRasterSource
  28. def readBounds(bounds: Traversable[GridBounds[Long]]): Iterator[Raster[MultibandTile]]

    Definition Classes
    RasterSource
  29. def readExtents(extents: Traversable[Extent], bands: Seq[Int]): Iterator[Raster[MultibandTile]]

    Definition Classes
    GeoTrellisRasterSourceRasterSource
  30. def readExtents(extents: Traversable[Extent]): Iterator[Raster[MultibandTile]]

    Definition Classes
    RasterSource
  31. lazy val reader: CollectionLayerReader[LayerId]
  32. def reproject(targetCRS: CRS, resampleTarget: ResampleTarget = DefaultTarget, method: ResampleMethod = ResampleMethod.DEFAULT, strategy: OverviewStrategy = OverviewStrategy.DEFAULT): RasterSource

    Reproject to different CRS with explicit sampling reprojectOptions.

    Reproject to different CRS with explicit sampling reprojectOptions.

    Definition Classes
    RasterSource
    See also

    geotrellis.raster.reproject.Reproject

  33. def reprojectToGrid(targetCRS: CRS, grid: GridExtent[Long], method: ResampleMethod = ResampleMethod.DEFAULT, strategy: OverviewStrategy = OverviewStrategy.DEFAULT): RasterSource

    Sampling grid and resolution is defined by given GridExtent.

    Sampling grid and resolution is defined by given GridExtent. Resulting extent is the extent of the minimum enclosing pixel region of the data footprint in the target grid.

    Definition Classes
    RasterSource
  34. def reprojectToRegion(targetCRS: CRS, region: RasterExtent, method: ResampleMethod = ResampleMethod.DEFAULT, strategy: OverviewStrategy = OverviewStrategy.DEFAULT): RasterSource

    Sampling grid and resolution is defined by given RasterExtent region.

    Sampling grid and resolution is defined by given RasterExtent region. The extent of the result is also taken from given RasterExtent, this region may be larger or smaller than the footprint of the data

    Definition Classes
    RasterSource
  35. def reprojection(targetCRS: CRS, resampleTarget: ResampleTarget = DefaultTarget, method: ResampleMethod = ResampleMethod.DEFAULT, strategy: OverviewStrategy = OverviewStrategy.DEFAULT): RasterSource
    Definition Classes
    GeoTrellisRasterSourceRasterSource
  36. def resample(resampleTarget: ResampleTarget, method: ResampleMethod, strategy: OverviewStrategy): RasterSource
    Definition Classes
    GeoTrellisRasterSourceRasterSource
  37. def resample(targetCols: Long, targetRows: Long, method: ResampleMethod = ResampleMethod.DEFAULT, strategy: OverviewStrategy = OverviewStrategy.DEFAULT): RasterSource

    Sampling grid is defined of the footprint of the data with resolution implied by column and row count.

    Sampling grid is defined of the footprint of the data with resolution implied by column and row count.

    Definition Classes
    RasterSource
  38. def resampleToGrid(grid: GridExtent[Long], method: ResampleMethod = ResampleMethod.DEFAULT, strategy: OverviewStrategy = OverviewStrategy.DEFAULT): RasterSource

    Sampling grid and resolution is defined by given GridExtent.

    Sampling grid and resolution is defined by given GridExtent. Resulting extent is the extent of the minimum enclosing pixel region of the data footprint in the target grid.

    Definition Classes
    RasterSource
  39. def resampleToRegion(region: GridExtent[Long], method: ResampleMethod = ResampleMethod.DEFAULT, strategy: OverviewStrategy = OverviewStrategy.DEFAULT): RasterSource

    Sampling grid and resolution is defined by given RasterExtent region.

    Sampling grid and resolution is defined by given RasterExtent region. The extent of the result is also taken from given RasterExtent, this region may be larger or smaller than the footprint of the data

    Definition Classes
    RasterSource
  40. lazy val resolutions: List[CellSize]

    All available overview resolutions for this raster source

    All available overview resolutions for this raster source

    • For base RasterSource instance this will be resolutions of available overviews including the base resolution.
    • For reprojected RasterSource these resolutions represent an estimate where each cell in target CRS has approximately the same geographic coverage as a cell in the source CRS.

    For compatibility with OverviewStrategy, this list should be sorted from the most resolute cell size to the least resolute cell size, as determined by _.resolution.

    When reading raster data the underlying implementation will have to sample from one of these resolutions. It is possible that a read request for a small bounding box will results in significant IO request when the target cell size is much larger than closest available resolution.

    Definition Classes
    GeoTrellisRasterSourceRasterMetadata
  41. def rows: Long

    Raster pixel row count

    Raster pixel row count

    Definition Classes
    RasterMetadata
  42. def size: Long
    Definition Classes
    GridIntegralGrid
  43. val sourceLayers: Stream[Layer]
  44. val targetCellType: Option[TargetCellType]
    Definition Classes
    GeoTrellisRasterSourceRasterSource
  45. val time: Option[ZonedDateTime]
  46. val timeMetadataKey: String
  47. lazy val times: List[ZonedDateTime]
  48. def toString(): String
    Definition Classes
    GeoTrellisRasterSource → AnyRef → Any