All Downloads are FREE. Search and download functionalities are using the official Maven repository.

geotrellis.raster.io.ascii.AsciiReader.scala Maven / Gradle / Ivy

Go to download

GeoTrellis is an open source geographic data processing engine for high performance applications.

The newest version!
package geotrellis.raster.io.ascii

import geotrellis.raster._
import geotrellis.raster.io._

class AsciiReader(path: String, noDataValue: Int) extends FileReader(path) {
  def readStateFromPath(cellType: CellType, 
                        rasterExtent: RasterExtent,
                        targetExtent: RasterExtent): ReadState = {
    new AsciiReadState(path, rasterExtent, targetExtent, noDataValue)
  }

  def readStateFromCache(b: Array[Byte], 
                         cellType: CellType,
                         rasterExtent: RasterExtent,
                         targetExtent: RasterExtent) = 
    sys.error("caching ascii grid is not supported")
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy