@@ -460,13 +460,13 @@ def test_011_read_wkt():
460
460
'id' : u'10' ,
461
461
'description' : u'Measure in point' ,
462
462
'#fid' : 11 ,
463
- '#geometry' : 'Point (10 20)' ,
463
+ '#geometry' : 'PointM (10 20 30 )' ,
464
464
},
465
465
}
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
]
@@ -507,13 +507,13 @@ def test_012_read_wkt_point():
507
507
'id' : u'10' ,
508
508
'description' : u'Measure in point' ,
509
509
'#fid' : 11 ,
510
- '#geometry' : 'Point (10 20)' ,
510
+ '#geometry' : 'PointM (10 20 30 )' ,
511
511
},
512
512
}
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
]
@@ -542,25 +542,37 @@ def test_013_read_wkt_line():
542
542
'id' : u'11' ,
543
543
'description' : u'Measure in line' ,
544
544
'#fid' : 12 ,
545
- '#geometry' : 'LineString (10 20, 11 21)' ,
545
+ '#geometry' : 'LineStringM (10 20 30 , 11 21 31 )' ,
546
546
},
547
547
13 : {
548
548
'id' : u'12' ,
549
549
'description' : u'Z in line' ,
550
550
'#fid' : 13 ,
551
- '#geometry' : 'LineString (10 20, 11 21)' ,
551
+ '#geometry' : 'LineStringZ (10 20 30 , 11 21 31 )' ,
552
552
},
553
553
14 : {
554
554
'id' : u'13' ,
555
555
'description' : u'Measure and Z in line' ,
556
556
'#fid' : 14 ,
557
- '#geometry' : 'LineString (10 20, 11 21)' ,
557
+ '#geometry' : 'LineStringZM (10 20 30 40, 11 21 31 41)' ,
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))' ,
558
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