Skip to content

Commit

Permalink
Fixed issue with the SinglebandGeoTiff's crop methods
Browse files Browse the repository at this point in the history
Signed-off-by: jbouffard <jbouffard@azavea.com>
  • Loading branch information
jbouffard committed Jan 20, 2017
1 parent 2419b48 commit 42f30d4
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -44,7 +44,7 @@ case class SinglebandGeoTiff(
val raster: Raster[Tile] =
this.raster.crop(subExtent)

SinglebandGeoTiff(raster, subExtent, this.crs)
SinglebandGeoTiff(raster, subExtent, this.crs, this.tags, this.options)
}

def crop(colMax: Int, rowMax: Int): SinglebandGeoTiff =
Expand All @@ -54,7 +54,7 @@ case class SinglebandGeoTiff(
val raster: Raster[Tile] =
this.raster.crop(colMin, rowMin, colMax, rowMax)

SinglebandGeoTiff(raster, raster._2, this.crs)
SinglebandGeoTiff(raster, raster._2, this.crs, this.tags, this.options)
}
}

Expand All @@ -65,7 +65,7 @@ object SinglebandGeoTiff {
extent: Extent,
crs: CRS
): SinglebandGeoTiff =
new SinglebandGeoTiff(tile, extent, crs, Tags.empty, GeoTiffOptions.DEFAULT)
SinglebandGeoTiff(tile, extent, crs, Tags.empty, GeoTiffOptions.DEFAULT)

/** Read a single-band GeoTIFF file from a byte array.
* The GeoTIFF will be fully decompressed and held in memory.
Expand Down

0 comments on commit 42f30d4

Please sign in to comment.