예제 #1
0
 def testQgsCompoundcurveRepr(self):
     cs = QgsCircularString(QgsPoint(1, 2), QgsPoint(2, 3), QgsPoint(3, 4))
     cc = QgsCompoundCurve()
     cc.addCurve(cs)
     self.assertEqual(
         cc.__repr__(),
         '<QgsCompoundCurve: CompoundCurve (CircularString (1 2, 2 3, 3 4))>'
     )
예제 #2
0
 def testQgsCompoundcurveRepr(self):
     cs = QgsCircularString(QgsPoint(1, 2), QgsPoint(2, 3), QgsPoint(3, 4))
     cc = QgsCompoundCurve()
     cc.addCurve(cs)
     self.assertEqual(cc.__repr__(), '<QgsCompoundCurve: CompoundCurve (CircularString (1 2, 2 3, 3 4))>')