Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
As discussed in: https://lists.apache.org/thread/kbwqnj7kn9omtpsoyzbn0zsslvd8cm5t
With the introduction of raster types in SEDONA-251, it is now possible to enhance the existing Geotiff writer to directly support writing Geotiffs from rasters.
Currently, the Geotiff writer requires six columns to create Geotiff files: origin, geometry, width, height, nBands, and data. However, for rasters, only two columns would be necessary: origin and raster.
To achieve this, we propose modifying the Geotiff writer to first attempt to use the existing six-column format. If the input DataFrame does not meet the necessary criteria, the writer should instead look for the origin column and a column with the raster UDT.
For the origin column we could use the existing configuration parameter (fieldOrigin). The raster column could be detected by type. If there are several columns of type raster, the writer would throw an exception. For DataFrames with several raster columns users would need to select one at a time. Example:
df_many_rasters = ... df_many_rasters.select("origin","raster1").write... df_many_rasters.select("origin","raster2").write...
Attachments
Issue Links
- duplicates
-
SEDONA-269 Add data source for writing binary files
- Resolved