Pranav Toggi created SEDONA-756:
-----------------------------------

             Summary: Python UDFs cannot return raster objects without lossy 
workaround
                 Key: SEDONA-756
                 URL: https://issues.apache.org/jira/browse/SEDONA-756
             Project: Apache Sedona
          Issue Type: New Feature
            Reporter: Pranav Toggi


Returning raster data from Python UDFs requires .tolist() + RS_MakeRaster, 
which forces Float64 promotion, creates 262K Python float objects per 512×512 
tile, and loses all raster metadata (CRS, nodata, affine transform). Added 
RasterType.serialize() and InDbSedonaRaster.with_bands() so UDFs can return 
rasters directly — 18-23× faster, ~6× less memory, native dtype preservation, 
and full metadata survival.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to