@@ -179,8 +179,8 @@ def testUnion(self):
179
179
def testAsWktCoordinates (self ):
180
180
"""Test that we can get a proper wkt representation fo the rect"""
181
181
rect1 = QgsRectangle ( 0.0 , 0.0 , 5.0 , 5.0 )
182
- myExpectedWkt = ('0.0000000000000000 0.0000000000000000 , '
183
- '5.0000000000000000 5.0000000000000000 ' )
182
+ myExpectedWkt = ('0.0 0.0 , '
183
+ '5.0 5.0 ' )
184
184
myWkt = rect1 .asWktCoordinates ()
185
185
myMessage = ('Expected: %s\n Got: %s\n ' %
186
186
(myExpectedWkt , myWkt ))
@@ -189,11 +189,11 @@ def testAsWktCoordinates(self):
189
189
def testAsWktPolygon (self ):
190
190
"""Test that we can get a proper rect wkt polygon representation for rect"""
191
191
rect1 = QgsRectangle ( 0.0 , 0.0 , 5.0 , 5.0 )
192
- myExpectedWkt = ('POLYGON((0.0000000000000000 0.0000000000000000 , '
193
- '5.0000000000000000 0.0000000000000000 , '
194
- '5.0000000000000000 5.0000000000000000 , '
195
- '0.0000000000000000 5.0000000000000000 , '
196
- '0.0000000000000000 0.0000000000000000 ))' )
192
+ myExpectedWkt = ('POLYGON((0.0 0.0 , '
193
+ '5.0 0.0 , '
194
+ '5.0 5.0 , '
195
+ '0.0 5.0 , '
196
+ '0.0 0.0 ))' )
197
197
myWkt = rect1 .asWktPolygon ()
198
198
myMessage = ('Expected: %s\n Got: %s\n ' %
199
199
(myExpectedWkt , myWkt ))
0 commit comments