Skip to content

Commit e9f257f

Browse files
committed
Tests of reading part finished
1 parent e148867 commit e9f257f

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

autotest/ogr/ogr_miramon_vector.py

+56
Original file line numberDiff line numberDiff line change
@@ -437,3 +437,59 @@ def test_ogr_miramon_test_ogrsf():
437437
)
438438

439439
assert ret.find("INFO") != -1 and ret.find("ERROR") == -1
440+
441+
ret = gdaltest.runexternal(
442+
test_cli_utilities.get_test_ogrsf_path()
443+
+ " data/miramon/Points/SimplePoints/SimplePointsFile.pnt"
444+
)
445+
446+
assert ret.find("INFO") != -1 and ret.find("ERROR") == -1
447+
448+
ret = gdaltest.runexternal(
449+
test_cli_utilities.get_test_ogrsf_path()
450+
+ " data/miramon/Points/EmptyPoints/Empty_PNT.pnt"
451+
)
452+
453+
assert ret.find("INFO") != -1 and ret.find("ERROR") == -1
454+
455+
ret = gdaltest.runexternal(
456+
test_cli_utilities.get_test_ogrsf_path()
457+
+ " data/miramon/Arcs/SimpleArcs/SimpleArcFile.arc"
458+
)
459+
460+
assert ret.find("INFO") != -1 and ret.find("ERROR") == -1
461+
462+
ret = gdaltest.runexternal(
463+
test_cli_utilities.get_test_ogrsf_path()
464+
+ " data/miramon/Arcs/EmptyArcs/Empty_ARC.arc"
465+
)
466+
467+
assert ret.find("INFO") != -1 and ret.find("ERROR") == -1
468+
469+
ret = gdaltest.runexternal(
470+
test_cli_utilities.get_test_ogrsf_path()
471+
+ " data/miramon/Arcs/3dArcs/linies_3d_WGS84.arc"
472+
)
473+
474+
assert ret.find("INFO") != -1 and ret.find("ERROR") == -1
475+
476+
ret = gdaltest.runexternal(
477+
test_cli_utilities.get_test_ogrsf_path()
478+
+ " data/miramon/Polygons/SimplePolygons/SimplePolFile.pol"
479+
)
480+
481+
assert ret.find("INFO") != -1 and ret.find("ERROR") == -1
482+
483+
ret = gdaltest.runexternal(
484+
test_cli_utilities.get_test_ogrsf_path()
485+
+ " data/miramon/Polygons/EmptyPolygons/Empty_POL.pol"
486+
)
487+
488+
assert ret.find("INFO") != -1 and ret.find("ERROR") == -1
489+
490+
ret = gdaltest.runexternal(
491+
test_cli_utilities.get_test_ogrsf_path()
492+
+ " data/miramon/Polygons/3dPolygons/tin_3d.pol"
493+
)
494+
495+
assert ret.find("INFO") != -1 and ret.find("ERROR") == -1

0 commit comments

Comments
 (0)