locationtech-labs / geopyspark

GeoTrellis for PySpark
Other
179 stars 59 forks source link

Partition Strategies and Preservation #616

Closed jbouffard closed 6 years ago

jbouffard commented 6 years ago

This PR replaces the current Partition constant class with HashPartitionStrategy and SpatialPartition. The reason for this change is because it allows for cleaner API while also allowing the user to have more control over how a layer is partitioned during operations.

In addition to introducing the partition strategies, this PR also adds the partition_strategy parameter to various methods to allow for greater control the partitioning of the layer.

This PR supersedes #615

Note: This PR will not pass until https://github.com/locationtech/geotrellis/pull/2553 is merged.