GeoSeries and GeoDataFrame masks are dissolved on
the cluster before clipping. A four-value list-like mask is interpreted
as (minx, miny, maxx, maxy). Both distributed layers should use the
same Coordinate Reference System (CRS); a mismatch emits a warning.
Signature
Parameters
Polygonal mask, or four rectangle bounds. Distributed masks are
dissolved into one geometry using
ST_Union_Aggr.If True, retain only the input geometry family when clipping
creates lower-dimensional geometries.
Returns
Clipped data of the same type as the caller. Index values,
non-geometry columns, active geometry, CRS, and SRID are preserved.
GeoSeries.clip_by_rectgeopandas.clip
Sedona does not expose a separate fast
ClipByBox operation.
Four-value rectangle masks therefore use native ST_MakeEnvelope
and ST_Intersection. Boundary-only intersections can consequently
differ from GeoPandas’ fast, possibly dirty rectangle path.
