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.

ENH: add covers() method to GeoSeries/GeoDataFrame

See original GitHub issue

Of all the spatial predicate methods (intersects, contains, within, crosses, etc), we are missing covers.

This can be added to GeoSeries/GeoDataFrame in geopandas/base.py (it’s already added to the GeometryArray).

In principle, we could also add a “covered_by” method. But this is a bit more tricky since it is missing in shapely (but it is already available in pygeos).

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jorisvandenbosschecommented, Jun 12, 2020

Indeed, this can be closed, thanks again!

1reaction
jorisvandenbosschecommented, Jun 8, 2020

@bhavika I only see now your comment above about GEOSCoveredBy not being properly exposed / the segfault. I also see that locally, but I think you best post that in the Shapely PR, as the people there might have more insight on this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

geopandas.GeoSeries.covers
This method works in a row-wise manner. It does not check if an element of one GeoSeries covers any element of the other...
Read more >
geopandas.GeoSeries
Return Addition of series and other, element-wise (binary operator add ). add_prefix (prefix) ... Synonym for DataFrame.fillna() with method='bfill' .
Read more >
Set-Operations with Overlay - GeoPandas
The overlay() method will determine the set of all individual geometries from overlaying the two input GeoDataFrames. This result covers the area covered...
Read more >
geopandas.GeoDataFrame
Get Addition of dataframe and other, element-wise (binary operator add ). add_prefix (prefix) ... Synonym for DataFrame.fillna() with method='bfill' .
Read more >
Data Structures — GeoPandas 0.12.2+0.gefcb367.dirty ...
A short summary of a few attributes and methods for GeoSeries is presented ... is the active geometry column, use the GeoDataFrame.set_geometry() 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