Skip to content

GeoPandas: implement distributed dissolve and tools.collect #3181

Closed

Description

@jiayuasu

Part of #2230.

Implement distributed GeoDataFrame.dissolve(...) and geopandas.tools.collect(x, multi=False).

Requirements:

  • Execute geometry aggregation in Spark using native Sedona aggregate expressions; do not collect input geometry rows to the driver and do not use Python row UDFs.
  • Implement grouped and all-row dissolve while preserving the active geometry column and CRS.
  • Match GeoPandas grouping and attribute aggregation behavior for supported by, aggfunc, as_index, level, sort, observed, and dropna options.
  • Support the compatible unary-union dissolve method and report unsupported precision or alternate-method options explicitly.
  • Implement collect for scalar geometries and distributed GeoSeries inputs, including multi=True, while only materializing the single geometry that is the API's required result.
  • Match GeoPandas behavior for mixed geometry families, singleton inputs, empty and null geometries, empty inputs, named indexes, and grouped null keys.

Add focused direct and GeoPandas parity tests for grouping modes, aggregation functions, metadata, geometry families, empty/null inputs, scalar and distributed collection, multi, and invalid options. Add public API documentation for both entry points.

Activity

  1. added 6 commits that reference this issue on Jul 27, 2026
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