MCPcopy
hub / github.com/django/django / test_within

Method test_within

tests/gis_tests/gdal_tests/test_geom.py:612–621  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

610 )
611
612 def test_within(self):
613 self.assertIs(
614 OGRGeometry("POINT(0.5 0.5)").within(
615 OGRGeometry("POLYGON ((0 0, 0 1, 1 1, 1 0, 0 0))")
616 ),
617 True,
618 )
619 self.assertIs(
620 OGRGeometry("POINT(0 0)").within(OGRGeometry("POINT(0 1)")), False
621 )
622
623 def test_from_gml(self):
624 self.assertEqual(

Callers

nothing calls this directly

Calls 2

OGRGeometryClass · 0.90
withinMethod · 0.45

Tested by

no test coverage detected