Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

feat: add st_buffer, st_centroid, and st_convexhull and their corresponding GeoSeries methods#1963

Merged
tswast merged 25 commits intomainfrom
tswast-geo
Aug 6, 2025
Merged

feat: add st_buffer, st_centroid, and st_convexhull and their corresponding GeoSeries methods#1963
tswast merged 25 commits intomainfrom
tswast-geo

Conversation

@tswast
Copy link
Copy Markdown
Contributor

@tswast tswast commented Aug 5, 2025

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

@product-auto-label product-auto-label bot added size: l Pull request size is large. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels Aug 5, 2025
Comment thread specs/2025-08-04-geoseries-scalars.md Outdated
Comment thread specs/2025-08-04-geoseries-scalars.md Outdated
Comment thread specs/2025-08-04-geoseries-scalars.md Outdated
Comment thread bigframes/geopandas/geoseries.py Outdated
Comment on lines +95 to +96
def buffer(self: GeoSeries, distance: float) -> bigframes.series.Series: # type: ignore
return self._apply_unary_op(ops.GeoStBufferOp(distance=distance))
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should raise NotImplementedError because in BigQuery, distance is in meters.

Comment thread bigframes/bigquery/_operations/geo.py Outdated
Comment thread bigframes/bigquery/_operations/geo.py Outdated
@tswast tswast marked this pull request as ready for review August 5, 2025 18:35
@tswast tswast requested review from a team August 5, 2025 18:35
@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. and removed size: l Pull request size is large. labels Aug 6, 2025
@tswast
Copy link
Copy Markdown
Contributor Author

tswast commented Aug 6, 2025

@GarrettWu I got the mypy checks passing and verified the system tests pass locally. I think this is ready for review.

@tswast
Copy link
Copy Markdown
Contributor Author

tswast commented Aug 6, 2025

e2e failure is test_streaming_df_to_pubsub, which is unrelated.

@tswast tswast merged commit c4c7fa5 into main Aug 6, 2025
24 of 25 checks passed
@tswast tswast deleted the tswast-geo branch August 6, 2025 18:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. size: xl Pull request size is extra large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants