This PR adds the with_no_data method to the RasterLayer and TiledRasterLayer classes. This was needed as the only way to change the NoData value of a layer before was to use the convert_data_type method. With this new method, it'll now be easier and more straightforward to change just the NoData value of a layer.
In addition to the added method, the convertDataType Scala methods were also cleaned up and the RasterLayer's version of that method has become more performant.
This PR adds the
with_no_data
method to theRasterLayer
andTiledRasterLayer
classes. This was needed as the only way to change theNoData
value of a layer before was to use theconvert_data_type
method. With this new method, it'll now be easier and more straightforward to change just theNoData
value of a layer.In addition to the added method, the
convertDataType
Scala methods were also cleaned up and theRasterLayer
's version of that method has become more performant.