def testMultiPointFromJTS(self): mp = geom.MultiPoint( self.gf.createMultiPoint([ self.gf.createPoint(Coordinate(1, 2)), self.gf.createPoint(Coordinate(3, 4)) ])) self.assertEqual('MULTIPOINT ((1 2), (3 4))', str(mp))
def testMultiPoint(self): mp = geom.MultiPoint([1, 2], [3, 4]) self.assertEqual('MULTIPOINT ((1 2), (3 4))', str(mp))