def testMultiLineStringFromJTS(self): mls = self.gf.createMultiLineString([ self.gf.createLineString([Coordinate(1, 2), Coordinate(3, 4)]), self.gf.createLineString([Coordinate(5, 6), Coordinate(7, 8)]) ]) ml = geom.MultiLineString(mls) self.assertEqual('MULTILINESTRING ((1 2, 3 4), (5 6, 7 8))', str(ml))
def testMultiLineString(self): ml = geom.MultiLineString([[1, 2], [3, 4]], [[5, 6], [7, 8]]) self.assertEqual('MULTILINESTRING ((1 2, 3 4), (5 6, 7 8))', str(ml))