You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sedona.apache.org by "jiayuasu (via GitHub)" <gi...@apache.org> on 2026/10/20 07:17:57 UTC

[PR] [GH-3495] Fix the GeoPandas API buffer docs, read_file warning and from_wkt/from_wkb arguments [sedona]

jiayuasu opened a new pull request, #3496:
URL: https://github.com/apache/sedona/pull/3496

   ## 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 #3495
   
   ## What changes were proposed in this PR?
   
   - `buffer`: the `single_sided` docstring now says what the code does, as in GeoPandas: the sign of `distance` picks the side. A new test compares a negative-distance single-sided buffer with GeoPandas.
   - `read_file` no longer reports `table_name` as an unsupported argument, and still warns about the others. `read_parquet` no longer passes its keyword arguments on to `read_file`, so it warns about them once.
   - `GeoSeries.from_wkt` and `GeoSeries.from_wkb` raise `TypeError` for keyword arguments other than `name`, like `GeoSeries.from_xy`, and their docstrings say so. This is a behavior change: a call that passed another keyword argument, which was ignored, now raises.
   
   ## How was this patch tested?
   
   - New tests:
     - `test_buffer` in `test_match_geopandas_series.py` gets the negative-distance case;
     - `test_read_file_warns_only_about_unsupported_arguments` in `test_io.py`;
     - `test_wkt_wkb_keyword_arguments` in `test_geoseries.py`.
   - Checked locally that both constructors raise `TypeError` naming the unsupported arguments, and still raise `NotImplementedError` for `on_invalid` other than `'raise'`. The tests that need a Spark session with Sedona run in CI.
   - `pre-commit run` on the changed files passes.
   
   ## Did this PR include necessary documentation updates?
   
   - Yes, the docstrings of `buffer`, `read_file`, `from_wkt` and `from_wkb`.
   


-- 
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: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [GH-3495] Fix the GeoPandas API buffer docs, read_file warning and from_wkt/from_wkb arguments [sedona]

Posted by "jiayuasu (via GitHub)" <gi...@apache.org>.
jiayuasu merged PR #3496:
URL: https://github.com/apache/sedona/pull/3496


-- 
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: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org