Skip to content

Commit 4ba1119

Browse files
uclarosuprel
authored andcommitted
Adjust profile tests
1 parent 3eeae3e commit 4ba1119

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

tests/src/python/test_qgsvectorlayerprofilegenerator.py

+19-19
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ def testPolygonGenerationTerrain(self):
948948
self.round_dict(results.distanceToHeightMap(), 1),
949949
{
950950
1041.8: 55.3,
951-
1042.4: 55.2,
951+
1042.4: 55.3,
952952
1049.5: 55.2,
953953
1070.2: 55.2,
954954
1073.1: 55.2,
@@ -1012,7 +1012,7 @@ def testPolygonGenerationRelative(self):
10121012
self.round_dict(results.distanceToHeightMap(), 1),
10131013
{
10141014
1041.8: 60.3,
1015-
1042.4: 60.2,
1015+
1042.4: 60.3,
10161016
1049.5: 60.2,
10171017
1070.2: 60.2,
10181018
1073.1: 60.2,
@@ -1023,7 +1023,7 @@ def testPolygonGenerationRelative(self):
10231023
1186.8: 59.3,
10241024
1189.8: 59.2,
10251025
1192.7: 59.2,
1026-
1199.2: 59.2,
1026+
1199.2: 59.3,
10271027
1450.0: 65.5,
10281028
1455.6: 65.5,
10291029
1458.1: 65.5,
@@ -1035,10 +1035,10 @@ def testPolygonGenerationRelative(self):
10351035
self.assertCountEqual(
10361036
[g.asWkt(1) for g in results.asGeometries()],
10371037
[
1038-
"MultiLineString Z ((-346718.7 6632419.8 60.3, -346712 6632417.4 60.3),(-346719.3 6632420 60.3, -346718.7 6632419.8 60.2),(-346689.7 6632409.5 60.3, -346688.2 6632409 60.3),(-346692.5 6632410.5 60.3, -346689.7 6632409.5 60.3))",
1038+
"MultiLineString Z ((-346384.8 6632219 65.5, -346383.5 6632216.9 65.5),(-346387.6 6632223.9 65.5, -346384.8 6632219 65.5))",
1039+
"MultiLineString Z ((-346582.6 6632371.7 59.3, -346579.7 6632370.7 59.3),(-346579.7 6632370.7 59.3, -346577 6632369.7 59.3, -346570.8 6632367.9 59.3))",
10391040
"MultiLineString Z ((-346684.3 6632407.6 62, -346679.6 6632406 62),(-346679.6 6632406 62, -346672.8 6632403.6 62))",
1040-
"MultiLineString Z ((-346582.6 6632371.7 59.3, -346579.7 6632370.7 59.3),(-346579.7 6632370.7 59.3, -346577 6632369.7 59.2, -346570.8 6632367.9 59.3))",
1041-
"MultiLineString Z ((-346387.6 6632223.9 65.5, -346384.8 6632219 65.5),(-346384.8 6632219 65.5, -346383.5 6632216.9 65.5))",
1041+
"MultiLineString Z ((-346719.3 6632420 60.3, -346718.7 6632419.8 60.3),(-346689.7 6632409.5 60.3, -346688.2 6632409 60.3),(-346692.5 6632410.5 60.3, -346689.7 6632409.5 60.3),(-346718.7 6632419.8 60.3, -346712 6632417.4 60.3))",
10421042
],
10431043
)
10441044

@@ -1088,7 +1088,7 @@ def testPolygonGenerationRelativeExtrusion(self):
10881088
self.round_dict(results.distanceToHeightMap(), 1),
10891089
{
10901090
1041.8: 60.3,
1091-
1042.4: 60.2,
1091+
1042.4: 60.3,
10921092
1049.5: 60.2,
10931093
1070.2: 60.2,
10941094
1073.1: 60.2,
@@ -1099,7 +1099,7 @@ def testPolygonGenerationRelativeExtrusion(self):
10991099
1186.8: 59.3,
11001100
1189.8: 59.2,
11011101
1192.7: 59.2,
1102-
1199.2: 59.2,
1102+
1199.2: 59.3,
11031103
1450.0: 65.5,
11041104
1455.6: 65.5,
11051105
1458.1: 65.5,
@@ -1111,10 +1111,10 @@ def testPolygonGenerationRelativeExtrusion(self):
11111111
self.assertCountEqual(
11121112
[g.asWkt(1) for g in results.asGeometries()],
11131113
[
1114-
"MultiPolygon Z (((-346718.7 6632419.8 60.3, -346712 6632417.4 60.3, -346712 6632417.4 67.3, -346718.7 6632419.8 67.3, -346718.7 6632419.8 60.3)),((-346719.3 6632420 60.3, -346718.7 6632419.8 60.2, -346718.7 6632419.8 67.3, -346719.3 6632420 67.3, -346719.3 6632420 60.3)),((-346689.7 6632409.5 60.3, -346688.2 6632409 60.3, -346688.2 6632409 67.3, -346689.7 6632409.5 67.3, -346689.7 6632409.5 60.3)),((-346692.5 6632410.5 60.3, -346689.7 6632409.5 60.3, -346689.7 6632409.5 67.3, -346692.5 6632410.5 67.3, -346692.5 6632410.5 60.3)))",
11151114
"MultiPolygon Z (((-346684.3 6632407.6 62, -346679.6 6632406 62, -346679.6 6632406 69, -346684.3 6632407.6 69, -346684.3 6632407.6 62)),((-346679.6 6632406 62, -346672.8 6632403.6 62, -346672.8 6632403.6 69, -346679.6 6632406 69, -346679.6 6632406 62)))",
1116-
"MultiPolygon Z (((-346582.6 6632371.7 59.3, -346579.7 6632370.7 59.3, -346579.7 6632370.7 66.3, -346582.6 6632371.7 66.3, -346582.6 6632371.7 59.3)),((-346579.7 6632370.7 59.3, -346577 6632369.7 59.2, -346570.8 6632367.9 59.3, -346570.8 6632367.9 66.3, -346577 6632369.7 66.3, -346579.7 6632370.7 66.3, -346579.7 6632370.7 59.3)))",
1117-
"MultiPolygon Z (((-346387.6 6632223.9 65.5, -346384.8 6632219 65.5, -346384.8 6632219 72.5, -346387.6 6632223.9 72.5, -346387.6 6632223.9 65.5)),((-346384.8 6632219 65.5, -346383.5 6632216.9 65.5, -346383.5 6632216.9 72.5, -346384.8 6632219 72.5, -346384.8 6632219 65.5)))",
1115+
"MultiPolygon Z (((-346719.3 6632420 60.3, -346718.7 6632419.8 60.3, -346718.7 6632419.8 67.3, -346719.3 6632420 67.3, -346719.3 6632420 60.3)),((-346689.7 6632409.5 60.3, -346688.2 6632409 60.3, -346688.2 6632409 67.3, -346689.7 6632409.5 67.3, -346689.7 6632409.5 60.3)),((-346692.5 6632410.5 60.3, -346689.7 6632409.5 60.3, -346689.7 6632409.5 67.3, -346692.5 6632410.5 67.3, -346692.5 6632410.5 60.3)),((-346718.7 6632419.8 60.3, -346712 6632417.4 60.3, -346712 6632417.4 67.3, -346718.7 6632419.8 67.3, -346718.7 6632419.8 60.3)))",
1116+
"MultiPolygon Z (((-346384.8 6632219 65.5, -346383.5 6632216.9 65.5, -346383.5 6632216.9 72.5, -346384.8 6632219 72.5, -346384.8 6632219 65.5)),((-346387.6 6632223.9 65.5, -346384.8 6632219 65.5, -346384.8 6632219 72.5, -346387.6 6632223.9 72.5, -346387.6 6632223.9 65.5)))",
1117+
"MultiPolygon Z (((-346582.6 6632371.7 59.3, -346579.7 6632370.7 59.3, -346579.7 6632370.7 66.3, -346582.6 6632371.7 66.3, -346582.6 6632371.7 59.3)),((-346579.7 6632370.7 59.3, -346577 6632369.7 59.3, -346570.8 6632367.9 59.3, -346570.8 6632367.9 66.3, -346577 6632369.7 66.3, -346579.7 6632370.7 66.3, -346579.7 6632370.7 59.3)))",
11181118
],
11191119
)
11201120

@@ -1296,7 +1296,7 @@ def testDataDefinedExtrusionOffset(self):
12961296
self.assertCountEqual(
12971297
[g.asWkt(1) for g in results.asGeometries()],
12981298
[
1299-
"MultiPolygon Z (((321906.5 129918.5 36, 321907.7 129918.8 36, 321907.7 129918.8 53, 321906.5 129918.5 53, 321906.5 129918.5 36)),((321902.8 129917.9 36, 321906.5 129918.5 36, 321906.5 129918.5 53, 321902.8 129917.9 53, 321902.8 129917.9 36)),((321917.9 129920.6 36, 321921 129921.1 36, 321921 129921.1 53, 321917.9 129920.6 53, 321917.9 129920.6 36)),((321912.4 129919.6 36, 321917.9 129920.6 36, 321917.9 129920.6 53, 321912.4 129919.6 53, 321912.4 129919.6 36)))",
1299+
"MultiPolygon Z (((321902.8 129917.9 36, 321906.5 129918.5 36, 321906.5 129918.5 53, 321902.8 129917.9 53, 321902.8 129917.9 36)),((321917.9 129920.6 36, 321921 129921.1 36, 321921 129921.1 53, 321917.9 129920.6 53, 321917.9 129920.6 36)),((321912.4 129919.6 36, 321917.9 129920.6 36, 321917.9 129920.6 53, 321912.4 129919.6 53, 321912.4 129919.6 36)),((321906.5 129918.5 36, 321907.7 129918.8 36, 321907.7 129918.8 53, 321906.5 129918.5 53, 321906.5 129918.5 36)))",
13001300
"MultiPolygon Z (((321922.9 129921.5 37, 321927.8 129922.4 37, 321927.8 129922.4 54, 321922.9 129921.5 54, 321922.9 129921.5 37)),((321927.8 129922.4 37, 321929.5 129922.7 37, 321929.5 129922.7 54, 321927.8 129922.4 54, 321927.8 129922.4 37)))",
13011301
],
13021302
)
@@ -1319,8 +1319,8 @@ def testDataDefinedExtrusionOffset(self):
13191319
self.assertCountEqual(
13201320
[g.asWkt(1) for g in results.asGeometries()],
13211321
[
1322+
"MultiPolygon Z (((321902.8 129917.9 8, 321906.5 129918.5 8, 321906.5 129918.5 9, 321902.8 129917.9 9, 321902.8 129917.9 8)),((321917.9 129920.6 8, 321921 129921.1 8, 321921 129921.1 9, 321917.9 129920.6 9, 321917.9 129920.6 8)),((321912.4 129919.6 8, 321917.9 129920.6 8, 321917.9 129920.6 9, 321912.4 129919.6 9, 321912.4 129919.6 8)),((321906.5 129918.5 8, 321907.7 129918.8 8, 321907.7 129918.8 9, 321906.5 129918.5 9, 321906.5 129918.5 8)))",
13221323
"MultiPolygon Z (((321922.9 129921.5 4, 321927.8 129922.4 4, 321927.8 129922.4 6, 321922.9 129921.5 6, 321922.9 129921.5 4)),((321927.8 129922.4 4, 321929.5 129922.7 4, 321929.5 129922.7 6, 321927.8 129922.4 6, 321927.8 129922.4 4)))",
1323-
"MultiPolygon Z (((321906.5 129918.5 8, 321907.7 129918.8 8, 321907.7 129918.8 9, 321906.5 129918.5 9, 321906.5 129918.5 8)),((321902.8 129917.9 8, 321906.5 129918.5 8, 321906.5 129918.5 9, 321902.8 129917.9 9, 321902.8 129917.9 8)),((321917.9 129920.6 8, 321921 129921.1 8, 321921 129921.1 9, 321917.9 129920.6 9, 321917.9 129920.6 8)),((321912.4 129919.6 8, 321917.9 129920.6 8, 321917.9 129920.6 9, 321912.4 129919.6 9, 321912.4 129919.6 8)))",
13241324
],
13251325
)
13261326

@@ -1849,9 +1849,9 @@ def testIdentifyPolygons(self):
18491849
res[0].results(),
18501850
[
18511851
{
1852-
"delta": 1.635491751097172,
1852+
"delta": 1.6354917510971725,
18531853
"distance": 40.70584650527578,
1854-
"elevation": 2.0000000000000093,
1854+
"elevation": 2.0000000000000084,
18551855
"id": 2,
18561856
}
18571857
],
@@ -1866,9 +1866,9 @@ def testIdentifyPolygons(self):
18661866
res[0].results(),
18671867
[
18681868
{
1869-
"delta": 0.9999999999968199,
1869+
"delta": 0.9999999999968203,
18701870
"distance": 35.0,
1871-
"elevation": 2.00000000000318,
1871+
"elevation": 2.0000000000031797,
18721872
"id": 2,
18731873
}
18741874
],
@@ -1966,9 +1966,9 @@ def testIdentifyExtrudedPolygons(self):
19661966
res[0].results(),
19671967
[
19681968
{
1969-
"delta": 1.635491751097172,
1969+
"delta": 1.6354917510971725,
19701970
"distance": 40.70584650527578,
1971-
"elevation": 2.0000000000000093,
1971+
"elevation": 2.0000000000000084,
19721972
"id": 2,
19731973
}
19741974
],

0 commit comments

Comments
 (0)