MCPcopy
hub / github.com/django/django / within

Method within

django/contrib/gis/gdal/geometries.py:522–524  ·  view source on GitHub ↗

Return True if this geometry is within the other.

(self, other)

Source from the content-addressed store, hash-verified

520 return self._topology(capi.ogr_crosses, other)
521
522 def within(self, other):
523 "Return True if this geometry is within the other."
524 return self._topology(capi.ogr_within, other)
525
526 def contains(self, other):
527 "Return True if this geometry contains the other."

Callers 2

test_preparedMethod · 0.45
test_withinMethod · 0.45

Calls 1

_topologyMethod · 0.95

Tested by 2

test_preparedMethod · 0.36
test_withinMethod · 0.36