diff --git a/python/plugins/processing/tests/testdata/expected/voronoi.gfs b/python/plugins/processing/tests/testdata/expected/voronoi.gfs new file mode 100644 index 00000000000..bea7483d6bf --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/voronoi.gfs @@ -0,0 +1,26 @@ + + + voronoi + voronoi + + 3 + EPSG:4326 + + 9 + 0.00000 + 8.00000 + -5.00000 + 3.00000 + + + id + id + Integer + + + id2 + id2 + Integer + + + diff --git a/python/plugins/processing/tests/testdata/expected/voronoi.gml b/python/plugins/processing/tests/testdata/expected/voronoi.gml new file mode 100644 index 00000000000..80bd4230611 --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/voronoi.gml @@ -0,0 +1,77 @@ + + + + + 0-5 + 83 + + + + + + 2.5,0.5 0,3 2.0,3.0 3.16666666666667,1.83333333333333 2.5,0.5 + 3 + 0 + + + + + 0,-5 0,-3 3.5,-3.0 4.64285714285714,-5.0 0,-5 + 6 + 0 + + + + + 3.5,-3.0 2.5,-1.0 2.5,0.5 3.16666666666667,1.83333333333333 3.83333333333333,2.16666666666667 5.7,0.3 3.5,-3.0 + 5 + 1 + + + + + 5.7,0.3 3.83333333333333,2.16666666666667 4.25,3.0 8,3 8,2 7.5,1.5 5.7,0.3 + 4 + 2 + + + + + 3.16666666666667,1.83333333333333 2.0,3.0 4.25,3.0 3.83333333333333,2.16666666666667 3.16666666666667,1.83333333333333 + 2 + 1 + + + + + 4.64285714285714,-5.0 3.5,-3.0 5.7,0.3 7.5,1.5 7.5,-5.0 4.64285714285714,-5.0 + 8 + 0 + + + + + 2.5,-1.0 0.0,0.25 0,3 2.5,0.5 2.5,-1.0 + 1 + 2 + + + + + 0,-3 0.0,0.25 2.5,-1.0 3.5,-3.0 0,-3 + 9 + 0 + + + + + 7.5,-5.0 7.5,1.5 8,2 8,-5 7.5,-5.0 + 7 + 0 + + + diff --git a/python/plugins/processing/tests/testdata/expected/voronoi_buffer.gfs b/python/plugins/processing/tests/testdata/expected/voronoi_buffer.gfs new file mode 100644 index 00000000000..9db26dd3c89 --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/voronoi_buffer.gfs @@ -0,0 +1,26 @@ + + + voronoi_buffer + voronoi_buffer + + 3 + EPSG:4326 + + 9 + -0.80000 + 8.80000 + -5.80000 + 3.80000 + + + id + id + Integer + + + id2 + id2 + Integer + + + diff --git a/python/plugins/processing/tests/testdata/expected/voronoi_buffer.gml b/python/plugins/processing/tests/testdata/expected/voronoi_buffer.gml new file mode 100644 index 00000000000..b6aa140c4a0 --- /dev/null +++ b/python/plugins/processing/tests/testdata/expected/voronoi_buffer.gml @@ -0,0 +1,77 @@ + + + + + -0.8-5.8 + 8.8000000000000013.800000000000001 + + + + + + 2.5,0.5 -0.8,3.0 -0.8,3.8 0.703157894736841,3.8 3.16666666666667,1.83333333333333 2.5,0.5 + 3 + 0 + + + + + -0.8,-5.8 -0.8,-3.0 3.5,-3.0 4.64285714285714,-5.8 -0.8,-5.8 + 6 + 0 + + + + + 3.5,-3.0 2.5,-1.0 2.5,0.5 3.16666666666667,1.83333333333333 3.83333333333333,2.16666666666667 5.7,0.3 3.5,-3.0 + 5 + 1 + + + + + 5.7,0.3 3.83333333333333,2.16666666666667 4.65,3.8 8.8,3.8 8.8,2.8 7.5,1.5 5.7,0.3 + 4 + 2 + + + + + 3.16666666666667,1.83333333333333 0.703157894736841,3.8 4.65,3.8 3.83333333333333,2.16666666666667 3.16666666666667,1.83333333333333 + 2 + 1 + + + + + 4.64285714285714,-5.8 3.5,-3.0 5.7,0.3 7.5,1.5 7.5,-5.8 4.64285714285714,-5.8 + 8 + 0 + + + + + 2.5,-1.0 -0.8,0.25 -0.8,3.0 2.5,0.5 2.5,-1.0 + 1 + 2 + + + + + -0.8,-3.0 -0.8,0.25 2.5,-1.0 3.5,-3.0 -0.8,-3.0 + 9 + 0 + + + + + 7.5,-5.8 7.5,1.5 8.8,2.8 8.8,-5.8 7.5,-5.8 + 7 + 0 + + + diff --git a/python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml b/python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml index c832dae150b..a97c5443a49 100644 --- a/python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml +++ b/python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml @@ -1776,7 +1776,7 @@ tests: OUTPUT: name: expected/grid_lines_overlay.gml type: vector - + - algorithm: qgis:creategridpolygon name: Create grid (rectangle with overlay) params: @@ -1794,7 +1794,7 @@ tests: compare: geometry: precision: 7 - + - algorithm: qgis:creategridpolygon name: Create grid (diamond with overlay) params: @@ -1812,7 +1812,7 @@ tests: compare: geometry: precision: 7 - + - algorithm: qgis:creategridpolygon name: Create grid (hexagon with overlay) params: @@ -1830,7 +1830,7 @@ tests: compare: geometry: precision: 7 - + - algorithm: qgis:deleteholes name: Delete holes (no min) params: @@ -2312,3 +2312,27 @@ tests: OUTPUT: name: expected/polygonize.gml type: vector + + - algorithm: qgis:voronoipolygons + name: Standard voronoi + params: + BUFFER: 0.0 + INPUT: + name: points.gml + type: vector + results: + OUTPUT: + name: expected/voronoi.gml + type: vector + + - algorithm: qgis:voronoipolygons + name: Vornoi with buffer region + params: + BUFFER: 10.0 + INPUT: + name: points.gml + type: vector + results: + OUTPUT: + name: expected/voronoi_buffer.gml + type: vector