Skip to content

Commit

Permalink
convert celltype of mask to make independent of platform specific cel…
Browse files Browse the repository at this point in the history
  • Loading branch information
jdries committed Apr 3, 2023
1 parent 5983485 commit 67bf00d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.openeo.geotrelliscommon

import geotrellis.raster.mapalgebra.focal.Kernel
import geotrellis.raster.{BitCellType, DoubleConstantNoDataCellType, MultibandTile, NODATA, Raster, Tile}
import geotrellis.raster.{BitCellType, DoubleConstantNoDataCellType, MultibandTile, NODATA, Raster, ShortConstantNoDataCellType, Tile}
import org.openeo.geotrelliscommon.SCLConvolutionFilterStrategy._

import java.util
Expand Down Expand Up @@ -82,7 +82,7 @@ class SCLConvolutionFilterStrategy(val sclBandIndex: Int = 0,val maskingParams:u
val cloudRaster = maskTileLoader.loadMask(bufferInPixels = bufferSize, sclBandIndex)

if (cloudRaster.isDefined) {
val maskTile = cloudRaster.get.tile.band(0)
val maskTile = cloudRaster.get.tile.band(0).convert(ShortConstantNoDataCellType)

var allMasked = true
var nothingMasked = true
Expand Down

0 comments on commit 67bf00d

Please sign in to comment.