MCPcopy Create free account
hub / github.com/shapely/shapely / poly_tree

Function poly_tree

shapely/tests/test_strtree.py:45–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43
44@pytest.fixture(scope="session")
45def poly_tree():
46 # create buffers so that midpoint between two buffers intersects
47 # each buffer. NOTE: add EPS to help mitigate rounding errors at midpoint.
48 geoms = shapely.buffer(
49 shapely.points(np.arange(10), np.arange(10)), HALF_UNIT_DIAG + EPS, quad_segs=32
50 )
51 yield STRtree(geoms)
52
53
54@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

STRtreeClass · 0.90
bufferMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…