jiayuasu opened a new pull request, #3183: URL: https://github.com/apache/sedona/pull/3183
## Did you read the Contributor Guide? - Yes, I have read the [Contributor Rules](https://sedona.apache.org/latest/community/rule/) and [Contributor Development Guide](https://sedona.apache.org/latest/community/develop/) ## Is this PR related to a ticket? - Yes, and the PR name follows the format `[GH-XXX] my subject`. Closes #3180 ## What changes were proposed in this PR? This PR implements the GeoPandas-compatible `cx` coordinate indexer and `clip` APIs for distributed `GeoSeries` and `GeoDataFrame` objects. The implementation uses native Spark and Sedona expressions for spatial filtering, clipping, rectangle fast paths, and distributed mask aggregation. It preserves indexes, active geometry columns, CRS/SRID metadata, input ordering, `keep_geom_type` behavior, and all-null geometry CRS metadata without collecting geometry rows to the driver. English and Chinese GeoPandas API documentation are updated for the new APIs. ## How was this patch tested? - `python/tests/geopandas/test_spatial_subsetting.py` (13 tests) - Existing `test_set_crs` regression test - Repository pre-commit hooks The tests cover `GeoSeries` and `GeoDataFrame` inputs, coordinate slices, geometry and rectangle masks, distributed masks, null/empty/all-null geometries, CRS/SRID preservation, MultiIndex inputs, ordering, and validation behavior. ## Did this PR include necessary documentation updates? - Yes, I am adding new APIs. I am using the current SNAPSHOT version number `v1.9.1`. - Yes, I have updated the documentation. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
