Skip to content

Commit

Permalink
Integrated StreamingSegmentBytes in SinglebandGeoTiffs
Browse files Browse the repository at this point in the history
Signed-off-by: jbouffard <jbouffard@azavea.com>
  • Loading branch information
jbouffard committed Dec 5, 2016
1 parent e1b08c1 commit ccc9a67
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ object SinglebandGeoTiff {
/** Read a single-band GeoTIFF file from the file at the given path.
* If decompress = true, the GeoTIFF will be fully decompressed and held in memory.
*/
def apply(path: String, decompress: Boolean, streaming: Boolean): SinglebandGeoTiff =
GeoTiffReader.readSingleband(path, decompress, streaming)
def apply(path: String, decompress: Boolean, streaming: Boolean, extent: Option[Extent]): SinglebandGeoTiff =
GeoTiffReader.readSingleband(path, decompress, streaming, extent)

def apply(byteReader: ByteReader): SinglebandGeoTiff =
GeoTiffReader.readSingleband(byteReader)
Expand All @@ -110,17 +110,17 @@ object SinglebandGeoTiff {
* The tile data will remain tiled/striped and compressed in the TIFF format.
*/
def compressed(path: String): SinglebandGeoTiff =
GeoTiffReader.readSingleband(path, false, false)
GeoTiffReader.readSingleband(path, false, false, None)

/** Read a single-band GeoTIFF file from a byte array.
* The tile data will remain tiled/striped and compressed in the TIFF format.
*/
def compressed(bytes: Array[Byte]): SinglebandGeoTiff =
GeoTiffReader.readSingleband(bytes, false, false)
GeoTiffReader.readSingleband(bytes, false, false, None)

def streaming(path: String): SinglebandGeoTiff =
GeoTiffReader.readSingleband(path, false, true)
GeoTiffReader.readSingleband(path, false, true, None)

def streaming(byteReader: ByteReader): SinglebandGeoTiff =
GeoTiffReader.readSingleband(byteReader, false, true)
GeoTiffReader.readSingleband(byteReader, false, true, None)
}

0 comments on commit ccc9a67

Please sign in to comment.