class GDALRasterSource extends RasterSource

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GDALRasterSource
  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 GDALRasterSource(dataPath: GDALPath, options: GDALWarpOptions = GDALWarpOptions.EMPTY, targetCellType: Option[TargetCellType] = None)

Value Members

  1. 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
    GDALRasterSourceRasterMetadata
  2. def attributesForBand(band: Int): Map[String, String]

    Return a per band metadata

    Return a per band metadata

    Definition Classes
    GDALRasterSourceRasterMetadata
  3. lazy val bandCount: Int
    Definition Classes
    GDALRasterSourceRasterMetadata
  4. 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
  5. lazy val cellType: CellType
    Definition Classes
    GDALRasterSourceRasterMetadataCellGrid
  6. def cols: Long

    Raster pixel column count

    Raster pixel column count

    Definition Classes
    RasterMetadata
  7. def convert(targetCellType: TargetCellType): RasterSource

    Converts the contents of the GDALRasterSource to the TargetCellType.

    Converts the contents of the GDALRasterSource to the TargetCellType.

    Note:

    GDAL handles Byte data differently than GeoTrellis. Unlike GeoTrellis, GDAL treats all Byte data as Unsigned Bytes. Thus, the output from converting to a Signed Byte CellType can result in unexpected results. When given values to convert to Byte, GDAL takes the following steps:

    1. Checks to see if the values falls in [0, 255]. 2. If the value falls outside of that range, it'll clamp it so that it falls within it. For example: -1 would become 0 and 275 would turn into 255. 3. If the value falls within that range and is a floating point, then GDAL will round it up. For example: 122.492 would become 122 and 64.1 would become 64.

    Thus, it is recommended that one avoids converting to Byte without first ensuring that no data will be lost.

    Note:

    It is not currently possible to convert to the BitCellType using GDAL.

    Definition Classes
    GDALRasterSourceRasterSource
  8. 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
  9. lazy val crs: CRS
    Definition Classes
    GDALRasterSourceRasterMetadata
  10. val dataPath: GDALPath
  11. lazy val dataType: Int
  12. lazy val dataset: GDALDataset
    Annotations
    @transient()
  13. lazy val datasetType: DatasetType
  14. def dimensions: Dimensions[Long]
    Definition Classes
    GridIntegralGrid
  15. def equals(other: Any): Boolean
    Definition Classes
    GDALRasterSource → AnyRef → Any
  16. def extent: Extent
    Definition Classes
    RasterMetadata
  17. lazy val gridExtent: GridExtent[Long]
    Definition Classes
    GDALRasterSourceRasterMetadata
  18. def hashCode(): Int
    Definition Classes
    GDALRasterSource → AnyRef → Any
  19. def interpretAs(targetCellType: CellType): RasterSource
    Definition Classes
    RasterSource
  20. lazy val metadata: GDALMetadata

    Fetches a default metadata from the default domain.

    Fetches a default metadata from the default domain. If there is a need in some custom domain, use the metadataForDomain function.

    Definition Classes
    GDALRasterSourceRasterSource
  21. def metadataForAllDomains: GDALMetadata

    Fetches a metadata from all domains.

  22. def metadataForDomain(domainList: List[GDALMetadataDomain]): GDALMetadata

    Fetches a metadata from the specified GDALMetadataDomain list.

  23. def name: GDALPath

    All the information received from the JNI side should be cached on the JVM side, to minimize JNI calls.

    All the information received from the JNI side should be cached on the JVM side, to minimize JNI calls. Too aggressive JNI functions usage can lead to a significant performance regression as the result of the often memory copy.

    For the each JNI call the proxy function will send arguments into the C bindings, on the C side the result would be computed and sent to the JVM side (memory copy happened two times).

    Since it would happen for each call, much safer and faster would be to remember once computed value in a JVM memory and interact only with it: it will allow to minimize JNI calls, speed up function calls and will allow to memoize some potentially sensitive data.

    Definition Classes
    GDALRasterSourceRasterMetadata
  24. lazy val noDataValue: Option[Double]
  25. val options: GDALWarpOptions
  26. val path: String
  27. 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
    GDALRasterSourceRasterSource
  28. 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
    GDALRasterSourceRasterSource
  29. def read(bands: Seq[Int]): Option[Raster[MultibandTile]]

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

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

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

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

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

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

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

    Definition Classes
    RasterSource
  37. 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

  38. 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
  39. 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
  40. def reprojection(targetCRS: CRS, resampleTarget: ResampleTarget = DefaultTarget, method: resample.ResampleMethod = ResampleMethod.DEFAULT, strategy: OverviewStrategy = OverviewStrategy.DEFAULT): RasterSource
    Definition Classes
    GDALRasterSourceRasterSource
  41. def resample(resampleTarget: ResampleTarget, method: resample.ResampleMethod, strategy: OverviewStrategy): RasterSource
    Definition Classes
    GDALRasterSourceRasterSource
  42. 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
  43. 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
  44. 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
  45. lazy val resolutions: List[CellSize]

    Resolutions of available overviews in GDAL Dataset

    Resolutions of available overviews in GDAL Dataset

    These resolutions could represent actual overview as seen in source file or overviews of VRT that was created as result of resample operations.

    Definition Classes
    GDALRasterSourceRasterMetadata
  46. def rows: Long

    Raster pixel row count

    Raster pixel row count

    Definition Classes
    RasterMetadata
  47. def size: Long
    Definition Classes
    GridIntegralGrid
  48. def toString(): String
    Definition Classes
    GDALRasterSource → AnyRef → Any