locationtech / rasterframes

Geospatial Raster support for Spark DataFrames
http://rasterframes.io
Apache License 2.0
240 stars 46 forks source link

BufferTile buffer preservation #565

Open pomadchin opened 2 years ago

pomadchin commented 2 years ago

With the focal operations support https://github.com/locationtech/rasterframes/pull/563 and introduction of the BufferTile into GeoTrellis https://github.com/locationtech/geotrellis/pull/3419 we got an extra Tile type (in addition to the RasterRef, Tile and ProjectedRasterTile). This extra type requires a proper handling not only in all focal functions, but also in local (after performing a local operation information about the Tile Buffer should be preserved).

It is possible to solve it via a smiliar pattern matching and "unpacking" of the BufferTile from the depth of RF structures, or via moving all internal RF operations to the BufferTile by default.

This task is the follow up issue of the (eventually) merged https://github.com/locationtech/rasterframes/pull/563