question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add GEOSMakeValid to Shapely

See original GitHub issue

It would be nice to have this functionality available directly in Shapely. It requires GEOS 3.8.

Should it live in ops, validation, or somewhere else?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
sgilliescommented, Apr 2, 2020

@tomplex let’s do this for 1.8. The validation module is the right place.

0reactions
sgilliescommented, Apr 2, 2020

Yes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Shapely User Manual — Shapely 2.0.0 documentation
Shapely is a Python package for set-theoretic analysis and manipulation of ... GEOS, a port of the Java Topology Suite (JTS), is the...
Read more >
Fix invalid polygon in Shapely - python - Stack Overflow
I found a solution that works for the specific case given: >>> pp2 = pp.buffer(0) >>> pp2.is_valid True >>> pp2.exterior.coords[:] [(0.0, ...
Read more >
Using Shapely methods (explain_validity and make_valid) on ...
Returns a valid representation of the geometry, if it is invalid. If it is valid, the input geometry will be returned. In many...
Read more >
ST_MakeValid - PostGIS
Description. The function attempts to create a valid representation of a given invalid geometry without losing any of the input vertices.
Read more >
shapely/validation.py at main - GitHub
Make the input geometry valid according to the GEOS MakeValid algorithm. If the input geometry is already valid, then it will be returned....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found