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

    Return a per band metadata

    Return a per band metadata

    Definition Classes
    GDALRasterSourceRasterMetadata
  7. lazy val bandCount: Int
    Definition Classes
    GDALRasterSourceRasterMetadata
  8. 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
  9. lazy val cellType: CellType
    Definition Classes
    GDALRasterSourceRasterMetadataCellGrid
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  11. def cols: Long

    Raster pixel column count

    Raster pixel column count

    Definition Classes
    RasterMetadata
  12. 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
  13. 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
  14. lazy val convertRaster: (Raster[MultibandTile]) ⇒ Raster[MultibandTile]
    Attributes
    protected
    Definition Classes
    RasterSource
  15. lazy val crs: CRS
    Definition Classes
    GDALRasterSourceRasterMetadata
  16. val dataPath: GDALPath
  17. lazy val dataType: Int
  18. lazy val dataset: GDALDataset
    Annotations
    @transient()
  19. lazy val datasetType: DatasetType
  20. def dimensions: Dimensions[Long]
    Definition Classes
    GridIntegralGrid
  21. lazy val dstCellType: Option[CellType]
    Attributes
    protected
    Definition Classes
    RasterSource
  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def equals(other: Any): Boolean
    Definition Classes
    GDALRasterSource → AnyRef → Any
  24. def extent: Extent
    Definition Classes
    RasterMetadata
  25. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  26. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  27. lazy val gridExtent: GridExtent[Long]
    Definition Classes
    GDALRasterSourceRasterMetadata
  28. def hashCode(): Int
    Definition Classes
    GDALRasterSource → AnyRef → Any
  29. def interpretAs(targetCellType: CellType): RasterSource
    Definition Classes
    RasterSource
  30. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  31. 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
  32. def metadataForAllDomains: GDALMetadata

    Fetches a metadata from all domains.

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

    Fetches a metadata from the specified GDALMetadataDomain list.

  34. 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
  35. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. lazy val noDataValue: Option[Double]
  37. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  38. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  39. val options: GDALWarpOptions
  40. val path: String
  41. 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
  42. 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
  43. def read(bands: Seq[Int]): Option[Raster[MultibandTile]]

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

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

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

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

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

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

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

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

  52. 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
  53. 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
  54. def reprojection(targetCRS: CRS, resampleTarget: ResampleTarget = DefaultTarget, method: resample.ResampleMethod = ResampleMethod.DEFAULT, strategy: OverviewStrategy = OverviewStrategy.DEFAULT): RasterSource
    Definition Classes
    GDALRasterSourceRasterSource
  55. def resample(resampleTarget: ResampleTarget, method: resample.ResampleMethod, strategy: OverviewStrategy): RasterSource
    Definition Classes
    GDALRasterSourceRasterSource
  56. 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
  57. 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
  58. 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
  59. 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
  60. def rows: Long

    Raster pixel row count

    Raster pixel row count

    Definition Classes
    RasterMetadata
  61. def size: Long
    Definition Classes
    GridIntegralGrid
  62. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  63. def toString(): String
    Definition Classes
    GDALRasterSource → AnyRef → Any
  64. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  65. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  66. 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