locationtech-labs / geopyspark

GeoTrellis for PySpark
Other
179 stars 59 forks source link

Expose BufferedTiles as RDD numpy array #627

Open echeipesh opened 6 years ago

echeipesh commented 6 years ago

Having done map algebra to GeoTrellis layer, convert it to numpy RDD but include neighboring pixels so the python process can perform a python focal operation over tile boundaries.

Required information per record:

This use case covers only the RDD[MultibandTile] -> RDD[BufferedTile[MultibandTile] -> PyRDD[numpy] conversion. We should avoid adding BufferedTile as a type to GeoPySpark tile/layer hierarchy. That type is not extensively supported in GeoTrellis and writing operations over it would likely run into a bunch of problems