Skip to content

Commit

Permalink
Remove nodata type coercion (#5173)
Browse files Browse the repository at this point in the history
Update changelog
  • Loading branch information
Lknechtli authored Sep 17, 2019
1 parent dda8d5a commit 149332f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
### Removed

### Fixed
- Remove unnecessary coercion of scenes to a nodata value of 0 in single band mode [\#5173](https://github.com/raster-foundry/raster-foundry/pull/5173)

### Security

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ object ColorRampMosaic extends LazyLogging {
throw new BadAnalysisASTException(message)
}

val renderedTile =
cmap.render(singleBandTile.interpretAs(IntUserDefinedNoDataCellType(0)))
val renderedTile = cmap.render(singleBandTile)
val r = renderedTile.map(_.red).interpretAs(UByteCellType)
val g = renderedTile.map(_.green).interpretAs(UByteCellType)
val b = renderedTile.map(_.blue).interpretAs(UByteCellType)
Expand Down

0 comments on commit 149332f

Please sign in to comment.