jiayuasu opened a new issue, #2925:
URL: https://github.com/apache/sedona/issues/2925

   Follow-up to the Phase 1 Box2D epic (#2877).
   
   ## Scope
   
   Add `ST_Expand` overloads that operate on `Box2D`. PostGIS supports both 
signatures:
   
   - `ST_Expand(box: Box2D, units: double) -> Box2D` — uniform expansion on 
both axes
   - `ST_Expand(box: Box2D, dx: double, dy: double) -> Box2D` — per-axis 
expansion
   
   Negative deltas are allowed and may produce a degenerate or empty bbox. NULL 
on null input.
   
   The existing `ST_Expand(geometry, ...)` continues to operate on geometries; 
this issue adds Box2D-input variants alongside.
   
   ## Implementation
   
   - New `expand(Box2D, double)` and `expand(Box2D, double, double)` helpers in 
`common/.../Functions.java`.
   - Extend the existing `ST_Expand` case class in 
`spark/common/.../expressions/Functions.scala` to accept Box2D arguments via 
additional `inferrableFunction*` overloads.
   - Mirror in Scala DataFrame API (`st_functions.ST_Expand` already exists; 
verify Column input passes through), Python wrappers, Flink wrappers.
   - Tests covering positive/negative deltas, NULL input, geometry vs Box2D 
dispatch.
   
   ## Out of scope
   
   - 3D expansion (waits for `Box3D`).


-- 
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]

Reply via email to