Repository navigation
Description
This is an umbrella issue that will encompass many other issues for implementing additional geopandas functionality.
Coverage and remaining work
The coverage snapshot in #3400 (Sedona 2.0.0 development, compared with the GeoPandas 1.1.4 catalog) is 160 of 175 APIs available or partially available (91.4%). See the GeoPandas API coverage reference for the complete inventory, counting rules, and per-API limitations.
Checked items below mean an implementation is available, possibly with limitations; they do not imply complete parameter or behavioral parity. The remaining unimplemented API entries and the intentionally unsupported interfaces are listed below. This epic remains open for that work and for extending partial implementations.
Setup:
- Read the Sedona Geopandas developer guide
- Setup build environment by following these compile docs
Implementation Steps
- Pick a
GeoSeriesfunction to implement from the (subset) list below or from the full list in the original documentation. - Look for a similar function that has been implemented in Sedona Geopandas already - Chances are, you'll just need to use one of the helper functions
_query_geometry_columnor_row_wise_operations - Implement function in
geoseries.pyandbase.py. Usually, this is as simple as calling the corresponding Sedona function (e.gST_IsRingfor.is_ring(). Thebase.pypart is important so geodataframe can also execute it. - Add documentation under the
base.pyimplementation by copy and pasting from geopandas docstrings. - Add tests to
test_geoseries.pyandtest_match_geopandas_series.pyfollowing similar conventions.
- In
test_geoseries.py, include the example in the docstring as part of the test. - For
test_match_geopandas_series.py, follow the convention of similar functions. Most of the time, you just run the function on each of theself.geomsand compare output with geopandas using the helper functions.
- Create a new issue on GitHub. Either create a subissue of this [EPIC] issue or explicitly mention this issue. Then, submit a PR linked to the issue you just created (not this issue). Reference this epic as
Part of #2230; do not useCloses #2230for partial work. Go ahead and CC @petern48 on your PR too, so I can review - Repeat!
Note about AI use: I have zero problem with contributors using AI to help them write their code faster. HOWEVER, I strongly urge you to at least run your code and tests locally on your laptop, you're not going to have a good time trying to iterate on failed CI runs. If you need help fixing your code to pass the tests, it's fine to ask for help. But if you constantly are blindly pushing changes an LLM told you and waiting for CI to tell you if your code is correct, you will be putting an annoying pain on reviewers, since we need to manually approve your CI to run after each change. I also recommend you learn to do your first one on your own, by following an example PR or implementation. It should be fairly easy to figure out.
Example PR: #2232
Implementation checklist (not exhaustive), with existing functions to model implementations on:
Unary predicates (boolean operations): model off of is_empty
- is_ring
- is_ccw (nontrivial; tracked in Geopandas: Implement
is_ccw#2385) - is_closed
Binary predicates
- relate (ST_Relate)
- relate_pattern (non-trivial)
Set theoretic methods: model off of difference
- symmetric_difference (use ST_SymDifference)
- union (use ST_Union)
- clip_by_rect ([GH-2230] Implement GeoSeries.clip_by_rect #2784)
Aggregations (model off of union_all)
- intersection_all (ST_Intersection_Aggr)
- voronoi_polygons (ST_VoronoiPolygons)
- polygonize (ST_Polygonize)
- delaunay_triangles (ST_DelaunayTriangles)
- build_area (ST_BuildArea)
- explode
- dissolve
Other
- convex_hull (ST_ConvexHull)
- concave_hull (ST_ConcaveHull)
- force_2d (ST_Force_2D)
- force_3d (ST_Force3D)
- frechet_distance (ST_FrechetDistance)
- hausdorff_distance (ST_HausdorffDistance)
- minimum_bounding_circle (ST_MinimumBoundingCircle)
- minimum_bounding_radius (ST_MinimumBoundingRadius)
Joins (model off of sjoin)
- sjoin_nearest (initial point-only inner joins; merged in [GH-3182] GeoPandas: Add point-only inner sjoin_nearest #3184; see Partial implementations and remaining scope below)
This doesn't include everything. It's also possible I misgrouped a few functions, but here's a good starting list. Ping me when you we need to add more to the list.
Additional API checklist
Binary predicates (additional): model off of contains
- geom_equals
- geom_equals_exact
- disjoint
- contains_properly
General methods and attributes
- count_coordinates
- count_geometries
- count_interior_rings
- get_coordinates
- get_precision (deferred; see Deferred infrastructure projects below)
- set_precision (deferred; see Deferred infrastructure projects below)
- interiors
- exterior
- representative_point
- offset_curve ([GH-2230] Add GeoSeries.shortest_line and GeoSeries.offset_curve #2828)
Constructive methods and attributes
- shortest_line ([GH-2230] Add GeoSeries.shortest_line and GeoSeries.offset_curve #2828)
- sample_points
- reverse
- remove_repeated_points
- normalize
- minimum_rotated_rectangle
- minimum_clearance
- extract_unique_points
- transform ([GH-3388] GeoPandas: implement distributed coordinate transform #3389; distributed coordinate callbacks run per Spark batch)
Linestring operations
- shared_paths (Add ST_SharedPaths function #2800)
- project
- line_merge
- interpolate
Affine transformations
- affine_transform ([GH-3134] Implement distributed GeoPandas affine_transform #3135)
- rotate ([GH-3017] Implement rotate #3018)
- scale ([GH-3143] Implement distributed GeoPandas scale #3145)
- skew ([GH-3147] Implement distributed GeoPandas skew #3148)
- translate (tracked in Geopandas: Implement GeoSeries.translate #3051)
Overlay operations
- GeoDataFrame.overlay
- GeoDataFrame.clip
- GeoSeries.clip
Plotting
- GeoDataFrame.plot ([GH-2192] Geopandas: Implement
plot()for GeoDataFrame and GeoSeries +read_parquet#2193) - GeoDataFrame.explore
- GeoSeries.plot ([GH-2192] Geopandas: Implement
plot()for GeoDataFrame and GeoSeries +read_parquet#2193) - GeoSeries.explore
Indexing
- GeoDataFrame.cx
- GeoSeries.cx
Tools (top-level functions)
- geopandas.points_from_xy
- geopandas.tools.collect
- geopandas.tools.geocode
- geopandas.tools.reverse_geocode
- geopandas.clip
- geopandas.overlay
Serialization / IO / conversion
- GeoDataFrame.to_postgis
- GeoDataFrame.to_feather (GeoPandas: implement GeoDataFrame.to_feather #3364)
- GeoDataFrame.from_postgis
- GeoDataFrame.from_features ([GH-3281] GeoPandas: implement from_features #3282)
- geopandas.read_postgis
- geopandas.read_feather
Partial implementations and remaining scope
sjoin_nearestis implemented by [GH-3182] GeoPandas: Add point-only inner sjoin_nearest #3184 for point-only inner joins, withdistance_coland an optionalmax_distanceresult filter. It uses the existing Sedona KNN tie configuration, which does not guarantee every equidistant or coincident row. Non-point geometries, left/right joins, exclusive matching, custom suffixes, and complete GeoPandas tie semantics remain outside this initial scope.- Other implemented APIs also have parameter, result, or execution limitations. Consult the coverage reference before choosing follow-up work.
Deferred infrastructure projects
These APIs remain unimplemented until the required distributed engine infrastructure is designed and reviewed. They should not be approximated with driver collection, Python UDFs, or session-wide configuration changes.
get_precisionandset_precision: require persistent per-geometry precision metadata in Sedona serialization/UDTs, native arbitrary-grid and mode support, and precision propagation across operations.
Intentionally unsupported for distributed execution
These APIs return or iterate Python feature objects on the driver and are not planned while Sedona requires scalable distributed execution. Revisit them only if a distributed-compatible contract becomes available. See #3132 for the decision.
GeoDataFrame.iterfeaturesGeoDataFrame.to_geo_dictGeoDataFrame.__geo_interface__GeoSeries.__geo_interface__
For anyone interested, here's the epic for initial Geopandas Support, which links to all of the rest of the PRs: #2001
Activity
is_ring#2231is_ring#2231petern48 commentedon Oct 11, 2025
I just did a quick pass through the list and updated it with the corresponding Sedona Functions. In general, if there is a corresponding function, I expect that function to be easy / straightforward to implement. That is not necessarily guaranteed, though, so if you run into some unexpected behavior or test failures, feel free to ask for guidance. Usually, we can handle it using a
CASE WHENstatement.petern48 commentedon Oct 15, 2025
FYI, we recently switched from using
pipenvtouv(#2393). The website doesn't yet reflect the changes, so I updated the "compile docs" link in the issue description above to point to the up-to-date directions that useuvGeopandas: Implement binary predicate `relate` for DE-9IM matrix repr…
[apacheGH-2454] Resolve review feedback and finalize relate implement…
Implement GeoSeries: reverse, normalize, representative_point, line_m…
Implement GeoSeries: reverse, normalize, representative_point
Implement GeoSeries: reverse, normalize, representative_point
8 remaining items
[apacheGH-2230] Implement GeoSeries.minimum_clearance
[GH-2230] Implement GeoSeries.minimum_clearance (#2772)
[apacheGH-2230] Implement GeoSeries.clip_by_rect
[apacheGH-2230] Address review comments for GeoSeries.clip_by_rect
[apacheGH-2230] Address follow-up review comments for clip_by_rect
[apacheGH-2230] Remove unnecessary LinearRing skip in clip_by_rect ma…
[GH-2230] Implement GeoSeries.clip_by_rect (#2784)
[apacheGH-2230] Add GeoSeries.shortest_line and GeoSeries.offset_curve
[GH-2230] Add GeoSeries.shortest_line and GeoSeries.offset_curve (#2828)
m-richards commentedon Apr 9, 2026
I think this probably wasn't intended to be completely closed by #2828?
[apacheGH-3051] Implement GeoSeries.translate
[apacheGH-3051] Implement GeoSeries.translate