Skip to content
Permalink
Browse files

other linestrings with extra parenthtesis and false tests

  • Loading branch information
lbartoletti committed Aug 24, 2020
1 parent c21e563 commit 13e99b17441942253199e28a24fb9c4904b62d64
Showing with 10 additions and 10 deletions.
  1. +10 −10 tests/src/python/test_qgsgeometry.py
@@ -5786,16 +5786,16 @@ def coerce_to_wkt(wkt, type):
coerce_to_wkt('MultiPolygon(((1 1, 2 2, 3 3, 1 1)), ((1 1, 2 2, 3 3, 1 1)))', QgsWkbTypes.MultiPolygon),
['MultiPolygon (((1 1, 2 2, 3 3, 1 1)),((1 1, 2 2, 3 3, 1 1)))'])

self.assertEqual(coerce_to_wkt('LineString((1 1, 2 2, 3 3, 1 1))', QgsWkbTypes.LineString),
['LineString (0 1, 2 2, 3 3, 1 0)'])
self.assertEqual(coerce_to_wkt('LineString z ((1 1 1, 2 2 2, 3 3 3, 1 1 1))', QgsWkbTypes.LineString),
['LineString (0 1, 2 2, 3 3, 1 1)'])
self.assertEqual(coerce_to_wkt('LineString z ((1 1 1, 2 2 2, 3 3 3, 1 1 1))', QgsWkbTypes.LineStringZ),
['LineStringZ (0 1 1, 2 2 2, 3 3 3, 1 1 0)'])
self.assertEqual(coerce_to_wkt('LineString m ((1 1 1, 2 2 2, 3 3 3, 1 1 1))', QgsWkbTypes.LineString),
['LineString (0 1, 2 2, 3 3, 1 1)'])
self.assertEqual(coerce_to_wkt('LineString m ((1 1 1, 2 2 2, 3 3 3, 1 1 1))', QgsWkbTypes.LineStringM),
['LineStringM (0 1 1, 2 2 2, 3 3 3, 1 1 0)'])
self.assertEqual(coerce_to_wkt('LineString(1 1, 2 2, 3 3, 1 1)', QgsWkbTypes.LineString),
['LineString (1 1, 2 2, 3 3, 1 1)'])
self.assertEqual(coerce_to_wkt('LineString z (1 1 1, 2 2 2, 3 3 3, 1 1 1)', QgsWkbTypes.LineString),
['LineString (1 1, 2 2, 3 3, 1 1)'])
self.assertEqual(coerce_to_wkt('LineString z (1 1 1, 2 2 2, 3 3 3, 1 1 1)', QgsWkbTypes.LineStringZ),
['LineStringZ (1 1 1, 2 2 2, 3 3 3, 1 1 1)'])
self.assertEqual(coerce_to_wkt('LineString m (1 1 1, 2 2 2, 3 3 3, 1 1 1)', QgsWkbTypes.LineString),
['LineString (1 1, 2 2, 3 3, 1 1)'])
self.assertEqual(coerce_to_wkt('LineString m (1 1 1, 2 2 2, 3 3 3, 1 1 1)', QgsWkbTypes.LineStringM),
['LineStringM (1 1 1, 2 2 2, 3 3 3, 1 1 1)'])

# Adding Z back
self.assertEqual(coerce_to_wkt('LineString (1 1, 2 2, 3 3, 1 1)', QgsWkbTypes.LineStringZ),

0 comments on commit 13e99b1

Please sign in to comment.
You can’t perform that action at this time.