Skip to content

GeoSeries.to_arrow differs for all-empty GeometryCollection members #3329

Description

@ryux1

Problem

Adding GeometryCollection([Point(), LineString(), Polygon()]) to the shared GeoPandas parity fixture makes TestMatchGeopandasSeries::test_to_arrow fail on the Python 3.9 / Spark 3.5 matrix. GeoPandas emits standard 2D WKB type codes for the collection and empty members, while Sedona emits ISO Z-offset type codes for part of the value even though the source geometries are 2D empties.

Minimal fixture:

GeometryCollection([Point(), LineString(), Polygon()])

CI evidence from #3326:

The fixture was removed from #3326 so that PR can remain scoped to passing edge-case coverage. This issue records the independently demonstrated serialization mismatch rather than masking it with an expected failure.

Expected behavior

GeoSeries.to_arrow() should match GeoPandas for a 2D GeometryCollection whose typed members are all empty, including the WKB dimensionality/type codes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions