jiayuasu opened a new pull request, #3197: URL: https://github.com/apache/sedona/pull/3197
## 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 #3196 ## What changes were proposed in this PR? - Add distributed `GeoSeries.sample_points` support for uniform sampling. Polygon and line sampling use native Sedona and Spark expressions without collecting geometry rows to the driver or using Python UDFs. - Add top-level `points_from_xy` and `GeoSeries.from_xy` APIs backed by native `ST_Point` and `ST_PointZ` expressions, including scalar broadcasting, distributed index alignment, CRS metadata, and native SRID propagation. - Add `GeoDataFrame.to_wkt` and `GeoDataFrame.to_wkb`, serializing every geometry-typed column in one lazy projection while preserving non-geometry columns and the existing index. - Add direct and GeoPandas-parity coverage for scalar and distributed inputs, empty and null geometries, multipart lines, deterministic random seeds, MultiIndex inputs, duplicate labels, CRS, and SRID behavior. - Document the new APIs in the English and Chinese GeoPandas tutorials. The WKT documentation also records that native Sedona serialization preserves stored coordinate precision rather than applying Shapely's default six-decimal rounding. ## How was this patch tested? - Ran the focused GeoPandas construction, sampling, and serialization test suite: 14 passed. - Ran all pre-commit hooks against the changed files. - Verified Python 3.8 and Python 3.9 syntax compatibility. - Built the Spark shaded module with Spark 3.4, Scala 2.12, and GeoTools enabled. ## 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]
