@@ -466,7 +466,7 @@ def test_011_read_wkt():
466
466
wanted ['log' ] = [
467
467
u'Errors in file testwkt.csv' ,
468
468
u'1 records discarded due to invalid geometry definitions' ,
469
- u'7 records discarded due to incompatible geometry types' ,
469
+ u'10 records discarded due to incompatible geometry types' ,
470
470
u'The following lines were not loaded into QGIS due to errors:' ,
471
471
u'Invalid WKT at line 8' ,
472
472
]
@@ -513,7 +513,7 @@ def test_012_read_wkt_point():
513
513
wanted ['log' ] = [
514
514
u'Errors in file testwkt.csv' ,
515
515
u'1 records discarded due to invalid geometry definitions' ,
516
- u'7 records discarded due to incompatible geometry types' ,
516
+ u'10 records discarded due to incompatible geometry types' ,
517
517
u'The following lines were not loaded into QGIS due to errors:' ,
518
518
u'Invalid WKT at line 8' ,
519
519
]
@@ -556,11 +556,23 @@ def test_013_read_wkt_line():
556
556
'#fid' : 14 ,
557
557
'#geometry' : 'LineString (10 20, 11 21)' ,
558
558
},
559
+ 15 : {
560
+ 'id' : u'14' ,
561
+ 'description' : u'CircularString' ,
562
+ '#fid' : 15 ,
563
+ '#geometry' : 'CircularString (268 415, 227 505, 227 406)' ,
564
+ },
565
+ 17 : {
566
+ 'id' : u'16' ,
567
+ 'description' : u'CompoundCurve' ,
568
+ '#fid' : 17 ,
569
+ '#geometry' : 'CompoundCurve ((5 3, 5 13), CircularString(5 13, 7 15, 9 13), (9 13, 9 3), CircularString(9 3, 7 1, 5 3))' ,
570
+ },
559
571
}
560
572
wanted ['log' ] = [
561
573
u'Errors in file testwkt.csv' ,
562
574
u'1 records discarded due to invalid geometry definitions' ,
563
- u'7 records discarded due to incompatible geometry types' ,
575
+ u'8 records discarded due to incompatible geometry types' ,
564
576
u'The following lines were not loaded into QGIS due to errors:' ,
565
577
u'Invalid WKT at line 8' ,
566
578
]
@@ -585,11 +597,17 @@ def test_014_read_wkt_polygon():
585
597
'#fid' : 7 ,
586
598
'#geometry' : 'MultiPolygon (((10 10,10 20,20 20,20 10,10 10),(14 14,14 16,16 16,14 14)),((30 30,30 35,35 35,30 30)))' ,
587
599
},
600
+ 16 : {
601
+ 'id' : u'15' ,
602
+ 'description' : u'CurvePolygon' ,
603
+ '#fid' : 16 ,
604
+ '#geometry' : 'CurvePolygon (CircularString (1 3, 3 5, 4 7, 7 3, 1 3))' ,
605
+ },
588
606
}
589
607
wanted ['log' ] = [
590
608
u'Errors in file testwkt.csv' ,
591
609
u'1 records discarded due to invalid geometry definitions' ,
592
- u'10 records discarded due to incompatible geometry types' ,
610
+ u'12 records discarded due to incompatible geometry types' ,
593
611
u'The following lines were not loaded into QGIS due to errors:' ,
594
612
u'Invalid WKT at line 8' ,
595
613
]
0 commit comments