Skip to content

Commit

Permalink
Resolved #2493 by having the CellType be retained when going from Con…
Browse files Browse the repository at this point in the history
…stantTile to ArrayTile

Signed-off-by: jbouffard <jbouffard@azavea.com>
  • Loading branch information
jbouffard authored and echeipesh committed Dec 7, 2017
1 parent c86fa93 commit 83a49a0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions raster/src/main/scala/geotrellis/raster/ConstantTile.scala
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ case class ByteConstantTile(v: Byte, cols: Int, rows: Int,
*
* @return The MutableArrayTile
*/
def mutable(): MutableArrayTile = ByteArrayTile.fill(v, cols, rows)
def mutable(): MutableArrayTile = ByteArrayTile.fill(v, cols, rows, cellType)

/**
* Return the underlying data behind this tile as an array.
Expand Down Expand Up @@ -390,7 +390,7 @@ case class UByteConstantTile(v: Byte, cols: Int, rows: Int,
*
* @return The MutableArrayTile
*/
def mutable(): MutableArrayTile = ByteArrayTile.fill(v, cols, rows)
def mutable(): MutableArrayTile = UByteArrayTile.fill(v, cols, rows, cellType)

/**
* Return the underlying data behind this tile as an array.
Expand Down Expand Up @@ -460,7 +460,7 @@ case class ShortConstantTile(v: Short, cols: Int, rows: Int,
*
* @return The MutableArrayTile
*/
def mutable(): MutableArrayTile = ShortArrayTile.fill(v, cols, rows)
def mutable(): MutableArrayTile = ShortArrayTile.fill(v, cols, rows, cellType)

/**
* Return the underlying data behind this tile as an array.
Expand Down Expand Up @@ -523,7 +523,7 @@ case class UShortConstantTile(v: Short, cols: Int, rows: Int,
*
* @return The MutableArrayTile
*/
def mutable(): MutableArrayTile = UShortArrayTile.fill(v, cols, rows)
def mutable(): MutableArrayTile = UShortArrayTile.fill(v, cols, rows, cellType)

/**
* Return the underlying data behind this tile as an array.
Expand Down Expand Up @@ -597,7 +597,7 @@ case class IntConstantTile(v: Int, cols: Int, rows: Int,
*
* @return The MutableArrayTile
*/
def mutable(): MutableArrayTile = IntArrayTile.fill(v, cols, rows)
def mutable(): MutableArrayTile = IntArrayTile.fill(v, cols, rows, cellType)

/**
* Return the underlying data behind this tile as an array.
Expand Down Expand Up @@ -660,7 +660,7 @@ case class FloatConstantTile(v: Float, cols: Int, rows: Int,
*
* @return The MutableArrayTile
*/
def mutable(): MutableArrayTile = FloatArrayTile.fill(v, cols, rows)
def mutable(): MutableArrayTile = FloatArrayTile.fill(v, cols, rows, cellType)

/**
* Return the underlying data behind this tile as an array.
Expand Down

0 comments on commit 83a49a0

Please sign in to comment.