combine
when implementing a DelegatingTile
incorrectly handles NoData
#3153
Labels
combine
when implementing a DelegatingTile
incorrectly handles NoData
#3153
I think this is a reemergence of #2907, but when
DelegatingTile
is used. Basically, the fallback/default implementation ofArrayTile.combine
, when given something that's not a recognized type, ends up providing an implementation that makes assumptions about NoData handling that should be deferred to the combine operator.Also suspicious that these two implementations are so different:
geotrellis/raster/src/main/scala/geotrellis/raster/ArrayTile.scala
Lines 232 to 238 in c99dc66
geotrellis/raster/src/main/scala/geotrellis/raster/ArrayTile.scala
Lines 283 to 284 in c99dc66
Looks like I'm the culprit of this code being broken, so planning on doing a PR. One solution is to add yet another switch based on type, but feels like a dead end. On the other hand, I'm loath to change something as fundamental as the
combine
methods without knowing there's extensive test coverage over the data space. @echeipesh @pomadchin @lossyrob: Any advice/warnings there is appreciated.The text was updated successfully, but these errors were encountered: