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

Method contains

shapely/prepared.py:31–33  ·  view source on GitHub ↗

Return True if the geometry contains the other, else False.

(self, other)

Source from the content-addressed store, hash-verified

29 self.prepared = True
30
31 def contains(self, other):
32 """Return True if the geometry contains the other, else False."""
33 return self.context.contains(other)
34
35 def contains_properly(self, other):
36 """Return True if the geometry properly contains the other, else False."""

Callers 5

test_prepared_geometryFunction · 0.95
test_prepared_predicatesFunction · 0.95
containsFunction · 0.45
time_containsMethod · 0.45

Calls

no outgoing calls

Tested by 2

test_prepared_geometryFunction · 0.76
test_prepared_predicatesFunction · 0.76