def testCompoundRing(self): cc = geom.CompoundRing( geom.CircularString([10.0, 10.0], [0.0, 20.0], [-10.0, 10.0]), geom.LineString([-10.0, 10.0], [-10.0, 0.0], [10.0, 0.0], [10.0, 10.0])) self.assertEqual( 'COMPOUNDCURVE (CIRCULARSTRING (10.0 10.0, 0.0 20.0, -10.0 10.0), (-10.0 10.0, -10.0 0.0, 10.0 0.0, 10.0 10.0))', str(cc))
def testCircularString(self): cs = geom.CircularString([6.12, 10.0], [7.07, 7.07], [10.0, 0.0]) self.assertEqual('CIRCULARSTRING (6.12 10.0, 7.07 7.07, 10.0 0.0)', str(cs))