Kontinuation commented on issue #1776: URL: https://github.com/apache/sedona/issues/1776#issuecomment-2660813728
Actually nesting RS_FromGeoTiff inside another RS function call changes its behavior. Passing raster objects in between sedona function calls does not require serializing the entire raster value. It is handled by [`SerdeAware.evalWithoutSerialization`](https://github.com/apache/sedona/blob/master/spark/common/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/SerdeAware.scala). For instance, the following code could produce a DataFrame of small tiles from a large raster that cannot be serialized as a whole: ```python (sedona.read .format("binaryFile") .load(filePath) .selectExpr("RS_TileExplode(RS_FromGeoTiff(content), 100, 100) as (x, y, tile)", "path") .selectExpr("tile", "RS_Metadata(tile) as metadata") .show(10)) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
