Class/Object

geotrellis.raster.gdal

GDALRasterSource

Related Docs: object GDALRasterSource | package gdal

Permalink

class GDALRasterSource extends RasterSource

Self Type
GDALRasterSource
Linear Supertypes
RasterSource, RasterMetadata, CellGrid[Long], Grid[Long], Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GDALRasterSource
  2. RasterSource
  3. RasterMetadata
  4. CellGrid
  5. Grid
  6. Serializable
  7. Serializable
  8. AnyRef
  9. 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)

    Permalink

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. def attributes: Map[String, String]

    Permalink

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

    Permalink

    Return a per band metadata

    Return a per band metadata

    Definition Classes
    GDALRasterSource → RasterMetadata
  7. lazy val bandCount: Int

    Permalink
    Definition Classes
    GDALRasterSource → RasterMetadata
  8. def cellSize: CellSize

    Permalink
    Definition Classes
    RasterMetadata
  9. lazy val cellType: CellType

    Permalink
    Definition Classes
    GDALRasterSource → RasterMetadata → CellGrid
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def cols: Long

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

    Permalink

    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
    GDALRasterSource → RasterSource
  13. def convert(targetCellType: CellType): RasterSource

    Permalink
    Definition Classes
    RasterSource
  14. lazy val convertRaster: (Raster[MultibandTile]) ⇒ Raster[MultibandTile]

    Permalink
    Attributes
    protected
    Definition Classes
    RasterSource
  15. lazy val crs: CRS

    Permalink
    Definition Classes
    GDALRasterSource → RasterMetadata
  16. val dataPath: GDALPath

    Permalink
  17. lazy val dataType: Int

    Permalink
  18. lazy val dataset: GDALDataset

    Permalink
  19. lazy val datasetType: DatasetType

    Permalink
  20. def dimensions: Dimensions[Long]

    Permalink
    Definition Classes
    Grid
  21. lazy val dstCellType: Option[CellType]

    Permalink
    Attributes
    protected
    Definition Classes
    RasterSource
  22. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. def equals(other: Any): Boolean

    Permalink
    Definition Classes
    GDALRasterSource → AnyRef → Any
  24. def extent: Extent

    Permalink
    Definition Classes
    RasterMetadata
  25. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  26. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  27. lazy val gridExtent: GridExtent[Long]

    Permalink
    Definition Classes
    GDALRasterSource → RasterMetadata
  28. def hashCode(): Int

    Permalink
    Definition Classes
    GDALRasterSource → AnyRef → Any
  29. def interpretAs(targetCellType: CellType): RasterSource

    Permalink
    Definition Classes
    RasterSource
  30. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  31. lazy val metadata: GDALMetadata

    Permalink

    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
    GDALRasterSource → RasterSource
  32. def metadataForAllDomains: GDALMetadata

    Permalink

    Fetches a metadata from all domains.

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

    Permalink

    Fetches a metadata from the specified GDALMetadataDomain list.

  34. def name: GDALPath

    Permalink

    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
    GDALRasterSource → RasterMetadata
  35. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  36. lazy val noDataValue: Option[Double]

    Permalink
  37. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  39. val options: GDALWarpOptions

    Permalink
  40. val path: String

    Permalink
  41. def read(bounds: GridBounds[Long], bands: Seq[Int]): Option[Raster[MultibandTile]]

    Permalink
    Definition Classes
    GDALRasterSource → RasterSource
  42. def read(extent: Extent, bands: Seq[Int]): Option[Raster[MultibandTile]]

    Permalink
    Definition Classes
    GDALRasterSource → RasterSource
  43. def read(bands: Seq[Int]): Option[Raster[MultibandTile]]

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

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

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

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

    Permalink
    Definition Classes
    GDALRasterSource → RasterSource
  48. def readBounds(bounds: Traversable[GridBounds[Long]]): Iterator[Raster[MultibandTile]]

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

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

    Permalink
    Definition Classes
    RasterSource
  51. def reproject(targetCRS: CRS, resampleTarget: ResampleTarget, method: ResampleMethod, strategy: OverviewStrategy): RasterSource

    Permalink
    Definition Classes
    RasterSource
  52. def reprojectToGrid(targetCRS: CRS, grid: GridExtent[Long], method: ResampleMethod, strategy: OverviewStrategy): RasterSource

    Permalink
    Definition Classes
    RasterSource
  53. def reprojectToRegion(targetCRS: CRS, region: RasterExtent, method: ResampleMethod, strategy: OverviewStrategy): RasterSource

    Permalink
    Definition Classes
    RasterSource
  54. def reprojection(targetCRS: CRS, resampleTarget: ResampleTarget = DefaultTarget, method: resample.ResampleMethod = ResampleMethod.DEFAULT, strategy: OverviewStrategy = OverviewStrategy.DEFAULT): RasterSource

    Permalink
    Definition Classes
    GDALRasterSource → RasterSource
  55. def resample(resampleTarget: ResampleTarget, method: resample.ResampleMethod, strategy: OverviewStrategy): RasterSource

    Permalink
    Definition Classes
    GDALRasterSource → RasterSource
  56. def resample(targetCols: Long, targetRows: Long, method: ResampleMethod, strategy: OverviewStrategy): RasterSource

    Permalink
    Definition Classes
    RasterSource
  57. def resampleToGrid(grid: GridExtent[Long], method: ResampleMethod, strategy: OverviewStrategy): RasterSource

    Permalink
    Definition Classes
    RasterSource
  58. def resampleToRegion(region: GridExtent[Long], method: ResampleMethod, strategy: OverviewStrategy): RasterSource

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

    Permalink

    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
    GDALRasterSource → RasterMetadata
  60. def rows: Long

    Permalink
    Definition Classes
    RasterMetadata
  61. def size: Long

    Permalink
    Definition Classes
    Grid
  62. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from RasterSource

Inherited from RasterMetadata

Inherited from CellGrid[Long]

Inherited from Grid[Long]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

convert

Ungrouped