geotrellis.raster.io.geotiff.ByteRawGeoTiffSegment.scala Maven / Gradle / Ivy
package geotrellis.raster.io.geotiff
import geotrellis.raster._
import geotrellis.raster.io.geotiff.util._
import geotrellis.raster.io.geotiff.compression._
import java.util.BitSet
import spire.syntax.cfor._
class ByteRawGeoTiffSegment(bytes: Array[Byte]) extends ByteGeoTiffSegment(bytes) {
def getInt(i: Int): Int = get(i).toInt
def getDouble(i: Int): Double = get(i).toDouble
override def mapDouble(f: Double => Double): Array[Byte] =
map(z => f(z.toDouble).toInt)
protected def intToByteOut(v: Int): Byte = v.toByte
protected def doubleToByteOut(v: Double): Byte = v.toByte
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy