You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GeoPandas: Preserve CRS metadata for empty geometry results #3189
Distributed GeoSeries and GeoDataFrame objects should preserve explicitly
assigned CRS metadata when their geometry rows are empty, all null, or carry
SRID 0.
Explicit set_crs values should take precedence over inherited lineage
metadata. Copies, GeoPandas conversion, and construction from an existing
geometry column should retain that metadata, while switching to a different
active geometry column must not leak the previous column's CRS.
Actual behavior
Sedona normally derives CRS from the SRID stored in geometry rows. Empty and
all-null results have no non-null geometry from which to recover that SRID, so
CRS can be lost after construction, copy, conversion, or a distributed
operation that removes every row.
The same fallback mechanism is currently being introduced independently by #3183, #3184, and #3185. Keeping it in those feature PRs duplicates shared
state-management code and creates avoidable merge conflicts.
The shared implementation should also cover zero-row derived results,
duplicate-index construction, explicit CRS removal or replacement, deep GeoSeries copies, and active-geometry switches.
Activity
[apacheGH-3189] Store CRS in distributed column metadata
[GH-3189] GeoPandas: Preserve CRS metadata without geometry SRIDs (#3190