class GDALRasterSource extends RasterSource
- Self Type
- GDALRasterSource
- Alphabetic
- By Inheritance
- GDALRasterSource
- RasterSource
- RasterMetadata
- CellGrid
- GridIntegral
- Grid
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new GDALRasterSource(dataPath: GDALPath, options: GDALWarpOptions = GDALWarpOptions.EMPTY, targetCellType: Option[TargetCellType] = None)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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
- GDALRasterSource → RasterMetadata
-
def
attributesForBand(band: Int): Map[String, String]
Return a per band metadata
Return a per band metadata
- Definition Classes
- GDALRasterSource → RasterMetadata
-
lazy val
bandCount: Int
- Definition Classes
- GDALRasterSource → RasterMetadata
-
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
-
lazy val
cellType: CellType
- Definition Classes
- GDALRasterSource → RasterMetadata → CellGrid
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
cols: Long
Raster pixel column count
Raster pixel column count
- Definition Classes
- RasterMetadata
-
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:
- 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
-
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
-
lazy val
convertRaster: (Raster[MultibandTile]) ⇒ Raster[MultibandTile]
- Attributes
- protected
- Definition Classes
- RasterSource
-
lazy val
crs: CRS
- Definition Classes
- GDALRasterSource → RasterMetadata
- val dataPath: GDALPath
- lazy val dataType: Int
-
lazy val
dataset: GDALDataset
- Annotations
- @transient()
- lazy val datasetType: DatasetType
-
def
dimensions: Dimensions[Long]
- Definition Classes
- GridIntegral → Grid
-
lazy val
dstCellType: Option[CellType]
- Attributes
- protected
- Definition Classes
- RasterSource
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
- Definition Classes
- GDALRasterSource → AnyRef → Any
-
def
extent: Extent
- Definition Classes
- RasterMetadata
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
lazy val
gridExtent: GridExtent[Long]
- Definition Classes
- GDALRasterSource → RasterMetadata
-
def
hashCode(): Int
- Definition Classes
- GDALRasterSource → AnyRef → Any
-
def
interpretAs(targetCellType: CellType): RasterSource
- Definition Classes
- RasterSource
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
- GDALRasterSource → RasterSource
-
def
metadataForAllDomains: GDALMetadata
Fetches a metadata from all domains.
-
def
metadataForDomain(domainList: List[GDALMetadataDomain]): GDALMetadata
Fetches a metadata from the specified GDALMetadataDomain list.
-
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
- GDALRasterSource → RasterMetadata
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- lazy val noDataValue: Option[Double]
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val options: GDALWarpOptions
- val path: String
-
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
- GDALRasterSource → RasterSource
-
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
- GDALRasterSource → RasterSource
-
def
read(bands: Seq[Int]): Option[Raster[MultibandTile]]
- Definition Classes
- RasterSource
-
def
read(): Option[Raster[MultibandTile]]
- Definition Classes
- RasterSource
-
def
read(bounds: GridBounds[Long]): Option[Raster[MultibandTile]]
- Definition Classes
- RasterSource
-
def
read(extent: Extent): Option[Raster[MultibandTile]]
- Definition Classes
- RasterSource
-
def
readBounds(bounds: Traversable[GridBounds[Long]], bands: Seq[Int]): Iterator[Raster[MultibandTile]]
- Definition Classes
- GDALRasterSource → RasterSource
-
def
readBounds(bounds: Traversable[GridBounds[Long]]): Iterator[Raster[MultibandTile]]
- Definition Classes
- RasterSource
-
def
readExtents(extents: Traversable[Extent]): Iterator[Raster[MultibandTile]]
- Definition Classes
- GDALRasterSource → RasterSource
-
def
readExtents(extents: Traversable[Extent], bands: Seq[Int]): Iterator[Raster[MultibandTile]]
- Definition Classes
- RasterSource
-
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
-
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
-
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
-
def
reprojection(targetCRS: CRS, resampleTarget: ResampleTarget = DefaultTarget, method: resample.ResampleMethod = ResampleMethod.DEFAULT, strategy: OverviewStrategy = OverviewStrategy.DEFAULT): RasterSource
- Definition Classes
- GDALRasterSource → RasterSource
-
def
resample(resampleTarget: ResampleTarget, method: resample.ResampleMethod, strategy: OverviewStrategy): RasterSource
- Definition Classes
- GDALRasterSource → RasterSource
-
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
-
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
-
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
-
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
- GDALRasterSource → RasterMetadata
-
def
rows: Long
Raster pixel row count
Raster pixel row count
- Definition Classes
- RasterMetadata
-
def
size: Long
- Definition Classes
- GridIntegral → Grid
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- GDALRasterSource → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
Inherited from RasterSource
Inherited from RasterMetadata
Inherited from GridIntegral[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.