locationtech-labs / geopyspark

GeoTrellis for PySpark
Other
179 stars 59 forks source link

withNoData Method #631

Closed jbouffard closed 6 years ago

jbouffard commented 6 years ago

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.