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

Function test_relate_pattern

shapely/tests/test_predicates.py:324–330  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

322
323
324def test_relate_pattern():
325 g = shapely.linestrings([(0, 0), (1, 0), (1, 1)])
326 polygon = shapely.box(0, 0, 2, 2)
327 assert shapely.relate(g, polygon) == "11F00F212"
328 assert shapely.relate_pattern(g, polygon, "11F00F212")
329 assert shapely.relate_pattern(g, polygon, "*********")
330 assert not shapely.relate_pattern(g, polygon, "F********")
331
332
333def test_relate_pattern_empty():

Callers

nothing calls this directly

Calls 2

relateMethod · 0.80
relate_patternMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…