How to use the svgis.bounding.covers function in svgis

To help you get started, we’ve selected a few svgis examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fitnr / svgis / tests / test_bounding.py View on Github external
def test_bbox_covers(self):
        b1 = (0, 0, 10, 10)
        b2 = (0, 0, 20, 10)
        b3 = (0, 0, 5, 11)

        self.assertFalse(bounding.covers(b1, b2))
        self.assertTrue(bounding.covers(b2, b1))
        self.assertFalse(bounding.covers(b1, b3))
        self.assertFalse(bounding.covers(b3, b1))
        self.assertTrue(bounding.covers(b3, b3))
github fitnr / svgis / tests / test_bounding.py View on Github external
def test_bbox_covers(self):
        b1 = (0, 0, 10, 10)
        b2 = (0, 0, 20, 10)
        b3 = (0, 0, 5, 11)

        self.assertFalse(bounding.covers(b1, b2))
        self.assertTrue(bounding.covers(b2, b1))
        self.assertFalse(bounding.covers(b1, b3))
        self.assertFalse(bounding.covers(b3, b1))
        self.assertTrue(bounding.covers(b3, b3))
github fitnr / svgis / tests / test_bounding.py View on Github external
def test_bbox_covers(self):
        b1 = (0, 0, 10, 10)
        b2 = (0, 0, 20, 10)
        b3 = (0, 0, 5, 11)

        self.assertFalse(bounding.covers(b1, b2))
        self.assertTrue(bounding.covers(b2, b1))
        self.assertFalse(bounding.covers(b1, b3))
        self.assertFalse(bounding.covers(b3, b1))
        self.assertTrue(bounding.covers(b3, b3))
github fitnr / svgis / tests / test_bounding.py View on Github external
def test_bbox_covers(self):
        b1 = (0, 0, 10, 10)
        b2 = (0, 0, 20, 10)
        b3 = (0, 0, 5, 11)

        self.assertFalse(bounding.covers(b1, b2))
        self.assertTrue(bounding.covers(b2, b1))
        self.assertFalse(bounding.covers(b1, b3))
        self.assertFalse(bounding.covers(b3, b1))
        self.assertTrue(bounding.covers(b3, b3))
github fitnr / svgis / tests / test_bounding.py View on Github external
def test_bbox_covers(self):
        b1 = (0, 0, 10, 10)
        b2 = (0, 0, 20, 10)
        b3 = (0, 0, 5, 11)

        self.assertFalse(bounding.covers(b1, b2))
        self.assertTrue(bounding.covers(b2, b1))
        self.assertFalse(bounding.covers(b1, b3))
        self.assertFalse(bounding.covers(b3, b1))
        self.assertTrue(bounding.covers(b3, b3))