prantogg commented on code in PR #1375: URL: https://github.com/apache/sedona/pull/1375#discussion_r1583847889
########## docs/api/sql/Raster-aggregate-function.md: ########## @@ -1,9 +1,9 @@ ## RS_Union_Aggr -Introduction: Returns a raster containing bands by specified indexes from all rasters in the provided column. Extracts the first bands from each raster and combines them into the output raster based on the input index values. +Introduction: This function combines multiple rasters into a single multiband raster by stacking the bands of each input raster sequentially. The function arranges the bands in the output raster according to the order specified by the index column in the input. It is typically used in scenarios where rasters are grouped by certain criteria (e.g., time and/or location) and an aggregated raster output is desired. Review Comment: Yes, it essentially stacks all bands of each raster in order of `index`. Input dataframe - ``` idx | Raster -------------------------------- 1 | raster1 (R1 | G1 | B1) 2 | raster2 (R2 | G2 | B2) 3 | raster3 (R3 | G3 | B3) ``` ``` RS_Union_aggr(Raster, idx) ``` resultant raster - `raster (R1 | G1 | B1 | R2 | G2 | B2 | R3 | G3 | B3 )` -- 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: issues-unsubscr...@sedona.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org