locationtech-labs / geopyspark

GeoTrellis for PySpark
Other
179 stars 59 forks source link

to_geotiff_rdd Will Now Produce GeoTiffs that Can Be Used as COGs #691

Closed jbouffard closed 5 years ago

jbouffard commented 5 years ago

This PR improves the to_geotiff_rdd method so that the GeoTiffs produced can be used as COGs. In order to achieve this, two changes were made. The first was to change the default storage_method from STRIPED to TILED. The other change was the addition of two new parameters to to_geotiff_rdd: resample_method and decimations. These two parameters are used to create the internal overviews of the outputted GeoTiffs.

Note: This PR may break any preexisting code that uses the to_geotiff_rdd method, as it changes the order of the arguments to that method.