jiayuasu opened a new pull request, #2669: URL: https://github.com/apache/sedona/pull/2669
## Did you read the Contributor Guide? - Yes, I have read the [Contributor Rules](https://sedona.apache.org/latest/community/rule/) and [Contributor Development Guide](https://sedona.apache.org/latest/community/develop/) ## Is this PR related to a ticket? - Yes, and the PR name follows the format `[GH-XXX] my subject`. Closes #2652 ## What changes were proposed in this PR? This PR adds the `RS_AsCOG` SQL function that converts a raster to a Cloud Optimized GeoTIFF (COG) byte array. The underlying pure Java COG writer was already merged via #2663 (sub-issue #2662). This PR wires it up as a Spark SQL function with positional overloads: ```sql RS_AsCOG(raster) RS_AsCOG(raster, compression) RS_AsCOG(raster, compression, tileSize) RS_AsCOG(raster, compression, tileSize, quaRS_AsCOG(raster, compression, tileSize, quaRS_AsCOG(rastesRS_AsCOG(raster, coaster,RS_AsCOG(raster, compression, tileSize,lingRS_AsCOG(raster) ````````````````````````````````````````````````````````````````````````````````tileSi``````````````````````````````````````````````wer ````````````````````````````````````````````````````````````````````````````````tileSi``````````````````````````````````````````````wer ````````````````````````````````````````````icu```````````````````````````````` ove````````````````````````````````````````````````````````````````````````````n/.````````````````````````````````````sitional `asCOG()` Java overloads - `spark/.../expressions/raster/RasterOutputs.scala` - `RS_AsCOG` Spark SQL expression - `spark/.../UDF/Catalog.scala` - Function registration - `common/.../raster/RasterOutputTest.java` - 8 Java unit tests including round-trip - `spark/.../sql/rasteralgebraTest.scala` - 5 Spark integration te- `spark/.../sql/rasterp ## How was thi## How was thi## How was thi## How was thi## How was thi## How was thi## How was thi## How was thi## How was thi## How was thi## How was thi## How was thi## How was thi## How was thi##and count) - 5 Spark SQL integration tests in `rasteralgebraTest` covering defaults, compression variants, tile size, all arguments, and a round-trip through `RS_FromGeoTiff(RS_AsCOG(raster))` - All tests pass locally ## Did this PR include necessary documentation updates? - No, this PR does not affect any public API so no need to change the documentation. -- 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]
