Skip to content

[GH-2022] Geopandas.GeoSeries: Implement geom_type#2023

Merged
jiayuasu merged 4 commits into
apache:masterfrom
petern48:geom_type_series
Jul 4, 2025
Merged

[GH-2022] Geopandas.GeoSeries: Implement geom_type#2023
jiayuasu merged 4 commits into
apache:masterfrom
petern48:geom_type_series

Conversation

@petern48
Copy link
Copy Markdown
Member

Did you read the Contributor Guide?

Is this PR related to a ticket?

What changes were proposed in this PR?

Implement geom_type

How was this patch tested?

Added tests

Did this PR include necessary documentation updates?

  • Yes, I have updated the documentation.

@petern48 petern48 requested a review from zhangfengcdt June 30, 2025 15:05
@petern48 petern48 marked this pull request as ready for review June 30, 2025 15:06
@petern48 petern48 requested a review from jiayuasu as a code owner June 30, 2025 15:06
@jiayuasu jiayuasu requested a review from Copilot June 30, 2025 20:52
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements the geom_type property for GeoSeries to return a series of geometry type strings in all caps. Key changes include:

  • Adding tests in two test files to check the geom_type functionality across a variety of geometries.
  • Implementing the geom_type property in GeoSeries using _process_geometry_column with appropriate documentation.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
python/tests/geopandas/test_match_geopandas_series.py Added test for geom_type comparing sedona and geopandas outputs
python/tests/geopandas/test_geoseries.py Added comprehensive test case for geom_type with multiple geometry types
python/sedona/geopandas/geoseries.py Implemented the geom_type property with updated docstring and return type

Comment thread python/tests/geopandas/test_match_geopandas_series.py Outdated
@petern48 petern48 requested a review from jiayuasu July 3, 2025 14:40
@jiayuasu jiayuasu merged commit 6e8f733 into apache:master Jul 4, 2025
26 checks passed
@petern48 petern48 deleted the geom_type_series branch July 20, 2025 01:42
Kontinuation pushed a commit to Kontinuation/sedona that referenced this pull request Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Geopandas.GeoSeries: Implement geom_type

4 participants