Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: add GeoSeries.polygonize #2963

Merged
merged 33 commits into from
May 18, 2024
Merged

Conversation

martinfleis
Copy link
Member

@martinfleis martinfleis commented Jul 19, 2023

Exposing polygonize on the GeoPandasBase level. In the end, I have opted to expose both polygonize and polygonize_full within a single method as it was easy enough and especially dangles can be quite useful even when you are not debugging the result.

Unlike shapely, we also include the noding step but not through node but using unary_union which has the same effect but is faster and more robust according to libgeos/geos#877 (comment).

Copy link
Member

@m-richards m-richards left a comment

Choose a reason for hiding this comment

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

Thanks @martinfleis, looking good, just some questions on documentation.

geopandas/base.py Outdated Show resolved Hide resolved
geopandas/base.py Outdated Show resolved Hide resolved
geopandas/base.py Show resolved Hide resolved
geopandas/base.py Outdated Show resolved Hide resolved
geopandas/base.py Outdated Show resolved Hide resolved
geopandas/base.py Outdated Show resolved Hide resolved
@martinfleis martinfleis modified the milestones: 0.14, 1.0 Sep 13, 2023
Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

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

Some small comments!

CHANGELOG.md Outdated Show resolved Hide resolved
geopandas/base.py Outdated Show resolved Hide resolved
geopandas/base.py Outdated Show resolved Hide resolved
geopandas/base.py Outdated Show resolved Hide resolved
geopandas/base.py Outdated Show resolved Hide resolved
geopandas/base.py Outdated Show resolved Hide resolved
geopandas/base.py Outdated Show resolved Hide resolved
geopandas/base.py Outdated Show resolved Hide resolved
geopandas/tests/test_geom_methods.py Show resolved Hide resolved
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
@martinfleis
Copy link
Member Author

@jorisvandenbossche good points, all in.

geopandas/base.py Outdated Show resolved Hide resolved
martinfleis and others added 2 commits March 11, 2024 10:53
Co-authored-by: Matt Richards <45483497+m-richards@users.noreply.github.com>
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
geopandas/base.py Outdated Show resolved Hide resolved
geopandas/base.py Outdated Show resolved Hide resolved
geopandas/base.py Outdated Show resolved Hide resolved
geopandas/base.py Outdated Show resolved Hide resolved
@jorisvandenbossche jorisvandenbossche merged commit 7cbd6a8 into geopandas:main May 18, 2024
19 of 20 checks passed
@martinfleis martinfleis deleted the polygonize branch May 18, 2024 12:37
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.

3 participants