Skip to content

Commit bca1d7d

Browse files
Add covers and covered_by methods (#151)
1 parent 37ed643 commit bca1d7d

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

dask_geopandas/core.py

+2
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,8 @@ def func(data, x, y, z):
660660
"overlaps",
661661
"touches",
662662
"within",
663+
"covers",
664+
"covered_by",
663665
]:
664666
meth = getattr(geopandas.base.GeoPandasBase, name)
665667
_Frame._bind_elemwise_comparison_method(

doc/source/docs/reference/geoseries.rst

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ Binary Predicates
5858
GeoSeries.overlaps
5959
GeoSeries.touches
6060
GeoSeries.within
61+
GeoSeries.covers
62+
GeoSeries.covered_by
6163

6264

6365
Set-theoretic Methods

tests/test_core.py

+2
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ def test_project(geoseries_lines):
236236
"overlaps",
237237
"touches",
238238
"within",
239+
"covers",
240+
"covered_by",
239241
"distance",
240242
"relate",
241243
],

0 commit comments

Comments
 (0)