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.

Unary predicates for overlapped points

See original GitHub issue

It seems like the all unary predicates are related to Polygon. I think it might be a good idea to add one that tests if there is any (partly) overlapped point, like a unary predicate version of geom_almost_equals or something. I know .duplicated() won’t work, so in the meantime is there a workaround?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jorisvandenbosschecommented, Jun 5, 2019

Possible options are calculating the distance between the points and setting a distance limit yourself, or you could use geom_equals_exact which takes a tolerance argument.

0reactions
StevenLi-DScommented, Jun 5, 2019

@jorisvandenbossche This makes sense. Then is there any way to tell if two points are very very close? Create a buffer around each point and use geom_almost_equals?

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Shapely User Manual — Shapely 2.0.0 documentation
Each is associated with three sets of (possibly infinite) points in the plane ... Standard unary predicates are implemented as read-only property attributes ......
Read more >
Queries
Queries returns Value s which meets some predicates. ... are nearest to some point,; overlapping a box and has user-defined property.
Read more >
Use geometry binary predicate list to subset simple feature ...
I am trying to create a new simple feature from two overlapping features. I want to subset all polygons that are fully or...
Read more >
GeoSeries — GeoPandas 0.12.2+0.gefcb367.dirty ...
Returns a GeoSeries of (cheaply computed) points that are guaranteed to be ... Returns True for all aligned geometries that overlap other, else...
Read more >
Geometries (shapely) — Spatial Data Programming with Python
Specifically, a valid "MultiPolygon" geometry cannot overlap in an infinite number of points. shapely from GeoJSON-like dict #. Our third method ...
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