def test_get_corners(self): d = Domain(4326, "-te 25 70 35 72 -ts 500 500") lon, lat = d.get_corners() self.assertTrue(all(lon - [25., 25., 35., 35.] < 0.01)) self.assertTrue(all(lat - [72., 70., 72., 70.] < 0.01))
def test_get_corners(self): d = Domain(4326, "-te 25 70 35 72 -ts 500 500") lon, lat = d.get_corners() self.assertTrue(all(lon - [25.0, 25.0, 35.0, 35.0] < 0.01)) self.assertTrue(all(lat - [72.0, 70.0, 72.0, 70.0] < 0.01))