Packages

c

geotrellis.store

GeoTrellisResampleRasterSource

class GeoTrellisResampleRasterSource extends RasterSource

RasterSource that resamples on read from underlying GeoTrellis layer.

Note: The constructor is unfriendly. This class is not intended to constructed directly by the users. Refer to GeoTrellisRasterSource for example of correct setup. It is expected that the caller has significant pre-computed information about the layers.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GeoTrellisResampleRasterSource
  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 GeoTrellisResampleRasterSource(attributeStore: AttributeStore, dataPath: GeoTrellisPath, layerId: LayerId, sourceLayers: Stream[Layer], gridExtent: GridExtent[Long], resampleMethod: ResampleMethod = ResampleMethod.DEFAULT, time: Option[ZonedDateTime] = None, targetCellType: Option[TargetCellType] = None)

    attributeStore

    the source of metadata for the layers, used for reading

    dataPath

    dataPath of the GeoTrellis catalog that can format a given path to be read in by a AttributeStore

    layerId

    The specific layer we're sampling from

    sourceLayers

    list of layers we can can sample from for futher resample

    gridExtent

    the desired pixel grid for the layer

    resampleMethod

    Resampling method used when fitting data to target grid

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 def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val attributeStore: AttributeStore
  6. 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
    GeoTrellisResampleRasterSourceRasterMetadata
  7. 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
    GeoTrellisResampleRasterSourceRasterMetadata
  8. def bandCount: Int
  9. 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
  10. def cellType: CellType
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  12. def cols: Long

    Raster pixel column count

    Raster pixel column count

    Definition Classes
    RasterMetadata
  13. def convert(targetCellType: TargetCellType): GeoTrellisResampleRasterSource
  14. 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
  15. lazy val convertRaster: (Raster[MultibandTile]) ⇒ Raster[MultibandTile]
    Attributes
    protected
    Definition Classes
    RasterSource
  16. def crs: CRS
  17. val dataPath: GeoTrellisPath
  18. def dimensions: Dimensions[Long]
    Definition Classes
    GridIntegralGrid
  19. lazy val dstCellType: Option[CellType]
    Attributes
    protected
    Definition Classes
    RasterSource
  20. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  22. def extent: Extent
    Definition Classes
    RasterMetadata
  23. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. val gridExtent: GridExtent[Long]
  26. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  27. def interpretAs(targetCellType: CellType): RasterSource
    Definition Classes
    RasterSource
  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. val layerId: LayerId
  30. def metadata: GeoTrellisMetadata

    All available RasterSource metadata

    All available RasterSource metadata

    Definition Classes
    GeoTrellisResampleRasterSourceRasterSource
  31. 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
    GeoTrellisResampleRasterSourceRasterMetadata
  32. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  33. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. 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
    GeoTrellisResampleRasterSourceRasterSource
  36. 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
    GeoTrellisResampleRasterSourceRasterSource
  37. def read(bands: Seq[Int]): Option[Raster[MultibandTile]]

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

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

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

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

  42. def readBounds(bounds: Traversable[GridBounds[Long]]): Iterator[Raster[MultibandTile]]

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

  44. def readExtents(extents: Traversable[Extent]): Iterator[Raster[MultibandTile]]

    Definition Classes
    RasterSource
  45. lazy val reader: CollectionLayerReader[LayerId]
  46. 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

  47. 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
  48. 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
  49. def reprojection(targetCRS: CRS, resampleTarget: ResampleTarget = DefaultTarget, method: ResampleMethod = ResampleMethod.DEFAULT, strategy: OverviewStrategy = OverviewStrategy.DEFAULT): GeoTrellisReprojectRasterSource
  50. def resample(resampleTarget: ResampleTarget, method: ResampleMethod, strategy: OverviewStrategy): GeoTrellisResampleRasterSource

    Resample underlying RasterSource to new grid extent Note: ResampleTarget will be applied to GridExtent of the source layer, not the GridExtent of this RasterSource

    Resample underlying RasterSource to new grid extent Note: ResampleTarget will be applied to GridExtent of the source layer, not the GridExtent of this RasterSource

    Definition Classes
    GeoTrellisResampleRasterSourceRasterSource
  51. 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
  52. val resampleMethod: ResampleMethod
  53. 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
  54. 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
  55. 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
    GeoTrellisResampleRasterSourceRasterMetadata
  56. def rows: Long

    Raster pixel row count

    Raster pixel row count

    Definition Classes
    RasterMetadata
  57. def size: Long
    Definition Classes
    GridIntegralGrid
  58. lazy val sourceGridExtent: GridExtent[Long]

    GridExtent of source pixels that needs to be resampled

  59. lazy val sourceLayer: Layer

    Source layer metadata that needs to be resampled

  60. val sourceLayers: Stream[Layer]
  61. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  62. val targetCellType: Option[TargetCellType]
  63. val time: Option[ZonedDateTime]
  64. def toString(): String
    Definition Classes
    GeoTrellisResampleRasterSource → AnyRef → Any
  65. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  66. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  67. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from RasterSource

Inherited from RasterMetadata

Inherited from CellGrid[Long]

Inherited from GridIntegral[Long]

Inherited from Grid[Long]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

convert

Read

Functions to read windows of data from a raster source.

reproject a

Resample

Functions to resample raster data in native projection.

Reproject

Functions to resample raster data in target projection.

Ungrouped