def test_point_shift_inplace(self): point = Point((-3.0, 5.0, 2.5), data={"color": (43, 67, 10)}, properties="apple") point.shift((4.0, -3.0, 0.5), inplace=True) self.assertEqual(self.point, point) return
def test_point(self): pt = Point((1, 2)) self.assertEqual(pt.__geo_interface__, { "type": "Point", "coordinates": (1, 2) }) pt.shift((2, 2)) self.assertEqual(pt.__geo_interface__, { "type": "Point", "coordinates": (3, 4) })
def test_point_shift(self): point = Point((-3.0, 5.0, 2.5), properties={ "type": "apple", "color": (43, 67, 10) }) point_shifted = point.shift((4.0, -3.0, 0.5)) self.assertEqual(self.point, point_shifted) return
def test_point(self): pt = Point((1, 2)) self.assertEqual(pt.geomdict, {"type": "Point", "coordinates": (1, 2)}) pt = pt.shift((2, 2)) self.assertEqual(pt.geomdict, {"type": "Point", "coordinates": (3, 4)})
def test_point_shift(self): point = Point((1.0, 2.0, 3.0), properties={"type": "apple", "color": (43,67,10)}) point2 = Point((-3.0, 5.0, 3.0), properties={"type": "apple", "color":(43,67,10)}) point_shifted = point2.shift((4.0, -3.0)) self.assertEqual(point, point_shifted) return
def test_point_shift_inplace(self): point = Point((-3.0, 5.0, 2.5), properties={"type": "apple", "color":(43,67,10)}) point.shift((4.0, -3.0, 0.5), inplace=True) self.assertEqual(self.point, point) return
def test_point(self): pt = Point((1,2)) self.assertEqual(pt.geomdict, {"type":"Point", "coordinates":(1,2)}) pt = pt.shift((2,2)) self.assertEqual(pt.geomdict, {"type":"Point", "coordinates":(3,4)})
def test_point_shift(self): point = Point((-3.0, 5.0, 2.5), data={"color":(43,67,10)}, properties="apple") point.shift((4.0, -3.0, 0.5)) self.assertEqual(self.point, point) return
def test_point(self): pt = Point((1,2)) self.assertEqual(pt.__geo_interface__, {"type":"Point", "coordinates":(1,2)}) pt.shift((2,2)) self.assertEqual(pt.__geo_interface__, {"type":"Point", "coordinates":(3,4)})