geotrellis.raster.io.geotiff.Int32GeoTiffSegmentCollection.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geotrellis-raster_2.11 Show documentation
Show all versions of geotrellis-raster_2.11 Show documentation
GeoTrellis is an open source geographic data processing engine for high performance applications.
The newest version!
package geotrellis.raster.io.geotiff
import geotrellis.raster._
import geotrellis.raster.io.geotiff.compression._
import spire.syntax.cfor._
trait Int32GeoTiffSegmentCollection extends GeoTiffSegmentCollection {
type T = Int32GeoTiffSegment
val bandType = Int32BandType
val noDataValue: Option[Int]
lazy val createSegment: Int => Int32GeoTiffSegment = noDataValue match {
case None =>
{ i: Int => new Int32RawGeoTiffSegment(getDecompressedBytes(i)) }
case Some(nd) if (nd == Int.MinValue) =>
{ i: Int => new Int32ConstantNoDataGeoTiffSegment(getDecompressedBytes(i)) }
case Some(nd) =>
{ i: Int => new Int32UserDefinedNoDataGeoTiffSegment(getDecompressedBytes(i), nd) }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy