-
-
Notifications
You must be signed in to change notification settings - Fork 3k
/
qgis_algorithm_tests3.yaml
executable file
·2239 lines (2110 loc) · 51.7 KB
/
qgis_algorithm_tests3.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# See ../README.md for a description of the file format
tests:
- algorithm: native:meancoordinates
name: standard mean coordinates
params:
INPUT:
name: custom/points.shp
type: vector
results:
OUTPUT:
name: expected/mean_coordinates.gml
type: vector
compare:
fields:
__all__:
precision: 5
- algorithm: native:meancoordinates
name: Mean coordinates, multiple grouped
params:
INPUT:
name: points.gml
type: vector
UID: id2
results:
OUTPUT:
name: expected/mean_coordinates_unique_grouped.gml
type: vector
pk: id2
compare:
fields:
fid: skip
- algorithm: native:meancoordinates
name: Mean coordinates, unique field
params:
INPUT:
name: points.gml
type: vector
UID: id
results:
OUTPUT:
name: expected/mean_coordinates_unique_grouped_2.gml
type: vector
pk: id
compare:
fields:
fid: skip
- algorithm: native:meancoordinates
name: Mean coordinates, weighted
params:
INPUT:
name: points.gml
type: vector
WEIGHT: id
results:
OUTPUT:
name: expected/unique_coordinates_weight.gml
type: vector
compare:
fields:
fid: skip
- algorithm: native:collect
name: single part to multipart
params:
FIELD: id
INPUT:
name: custom/single_part_poly.gml
type: vector
results:
OUTPUT:
name: expected/single_to_multi.gml
type: vector
- algorithm: qgis:statisticsbycategories
name: stats by category
params:
VALUES_FIELD_NAME: id
CATEGORIES_FIELD_NAME: id2
INPUT:
name: points.gml
type: vector
results:
OUTPUT:
name: expected/stats_by_category.gml
type: vector
pk: id2
compare:
fields:
fid: skip
- algorithm: native:zonalstatistics
name: Zonal statistics
params:
COLUMN_PREFIX: _
INPUT_RASTER:
name: dem.tif
type: raster
INPUT_VECTOR:
name: custom/zonal_stats.shp
type: vector
in_place: true
RASTER_BAND: 1
STATS:
- 0
- 1
- 2
results:
INPUT_VECTOR:
name: expected/zonal_stats.shp
type: vector
in_place_result: true
compare:
geometry:
precision: 5
- algorithm: native:zonalstatisticsfb
name: Zonal stats (feature based, with transform)
params:
COLUMN_PREFIX: _
INPUT:
name: custom/dem_zones.geojson
type: vector
INPUT_RASTER:
name: custom/dem_crs.tif
type: raster
RASTER_BAND: 1
STATISTICS:
- 0
- 1
- 2
results:
OUTPUT:
name: expected/zonal_stats_crs.geojson
type: vector
compare:
fields:
_count:
precision: 3
_sum:
precision: 3
_mean:
precision: 3
- algorithm: qgis:zonalhistogram
name: Zonal histogram
params:
COLUMN_PREFIX: HISTO_
INPUT_RASTER:
name: raster.tif
type: raster
INPUT_VECTOR:
name: zones.gml
type: vector
RASTER_BAND: 1
results:
OUTPUT:
name: expected/zones_histogram.gml
type: vector
- algorithm: native:fixgeometries
name: Fix geometries
params:
INPUT:
name: invalidgeometries.gml
type: vector
results:
OUTPUT:
name: expected/valid.gml
type: vector
- algorithm: qgis:checkvalidity
name: Check validity polygon ring self intersection
params:
INPUT_LAYER:
name: custom/poly_ring_self_intersection.gml|layername=poly_ring_self_intersection
type: vector
METHOD: 2
results:
ERROR_OUTPUT:
name: expected/poly_ring_self_intersection_error.gml
type: vector
INVALID_OUTPUT:
name: expected/poly_ring_self_intersection_invalid.gml
type: vector
VALID_OUTPUT:
name: expected/poly_ring_self_intersection_valid.gml
type: vector
- algorithm: qgis:checkvalidity
name: Check validity polygon ring self intersection, ignoring self intersections
params:
IGNORE_RING_SELF_INTERSECTION: true
INPUT_LAYER:
name: custom/poly_ring_self_intersection.gml|layername=poly_ring_self_intersection
type: vector
METHOD: 2
results:
ERROR_OUTPUT:
name: expected/poly_ring_self_intersection_error_ignore_self.gml
type: vector
INVALID_OUTPUT:
name: expected/poly_ring_self_intersection_invalid_ignore_self.gml
type: vector
VALID_OUTPUT:
name: expected/poly_ring_self_intersection_valid_ignore_self.gml
type: vector
- algorithm: native:polygonize
name: Polygonize
params:
KEEP_FIELDS: false
INPUT:
name: custom/polygonize_lines.gml
type: vector
results:
OUTPUT:
name: expected/polygonize.gml
type: vector
compare:
geometry:
topo_equal_check: True
- 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
- algorithm: qgis:voronoipolygons
name: Vornoi with vertical and horizontal Voronoi edges
params:
BUFFER: 0.0
INPUT:
name: pointsvoronoi1.gml
type: vector
results:
OUTPUT:
name: expected/pointsvoronoi1diagram.gml
type: vector
- algorithm: qgis:voronoipolygons
name: Vornoi with configuration that may cause numerical issues
params:
BUFFER: 0.0
INPUT:
name: airports.gml
type: vector
results:
OUTPUT:
name: expected/airportsvoronoidiagram.gml
type: vector
compare:
geometry:
precision: 2
- algorithm: native:explodelines
name: Explode lines
params:
INPUT:
name: lines.gml
type: vector
results:
OUTPUT:
name: expected/explode_lines.gml
type: vector
compare:
fields:
fid: skip
- algorithm: native:explodelines
name: Explode multilines
params:
INPUT:
name: multilines.gml
type: vector
results:
OUTPUT:
name: expected/explode_multilines.gml
type: vector
compare:
fields:
fid: skip
- algorithm: native:explodelines
name: Explode compound curves
params:
INPUT:
name: custom/circular_strings.gpkg|layername=circular_strings_with_line
type: vector
results:
OUTPUT:
name: expected/explode_compound_curve.shp
type: vector
# This is VERY slow on proj 6+ builds due to the excessive amount of message log noise it causes to be emitted.
# We need a way to disable the default handlers on individual QgsCoordinateTransform objects in order to avoid
# this and speed the algorithm back up
# - algorithm: qgis:findprojection
# name: Find projection
# params:
# INPUT:
# name: custom/find_projection.gml
# type: vector
# TARGET_AREA: 151.1198,151.1368,-33.9118,-33.9003
# TARGET_AREA_CRS: EPSG:4326
# results:
# OUTPUT:
# name: expected/projection_candidates.gml
# type: vector
- algorithm: native:polygonfromlayerextent
name: Standard polygon from layer extent
params:
BY_FEATURE: false
INPUT:
name: polys.gml
type: vector
results:
OUTPUT:
name: expected/polygon_from_extent.gml
type: vector
- algorithm: qgis:topologicalcoloring
name: Topological coloring
params:
BALANCE: 0
INPUT:
name: custom/adjacent_polys.gml
type: vector
MIN_COLORS: 4
results:
OUTPUT:
type: vector
name:
- expected/topocolor_polys.gml
- expected/topocolor_polys2.gml
- algorithm: qgis:topologicalcoloring
name: Topological coloring w/ min distance
params:
BALANCE: 0
INPUT:
name: custom/adjacent_polys.gml
type: vector
MIN_COLORS: 4
MIN_DISTANCE: 4.0
results:
OUTPUT:
name: expected/topocolor_polys_min_dist.gml
type: vector
- algorithm: qgis:regularpoints
name: Regular point with standard extent
params:
EXTENT: -0.9182432432432436,10.208108108108108,-3.1266891891891904,5.480067567567567
INSET: 0.0
IS_SPACING: false
RANDOMIZE: false
SPACING: 100
CRS: EPSG:4326
results:
OUTPUT:
name: expected/regular_points.gml
type: vector
compare:
geometry:
precision: 5
- algorithm: qgis:rectanglesovalsdiamondsvariable
name: Rectangular buffer shape
params:
HEIGHT: id
INPUT:
name: custom/points_weighted.gml
type: vector
SEGMENTS: 36
SHAPE: '0'
WIDTH: id
results:
OUTPUT:
name: expected/buffer_rect.gml
type: vector
- algorithm: qgis:rectanglesovalsdiamondsvariable
name: Diamond buffer shape
params:
HEIGHT: id
INPUT:
name: custom/points_weighted.gml
type: vector
SEGMENTS: 36
SHAPE: '1'
WIDTH: id
results:
OUTPUT:
name: expected/buffer_diamond.gml
type: vector
- algorithm: qgis:rectanglesovalsdiamondsvariable
name: Oval buffer shape
params:
HEIGHT: id
INPUT:
name: custom/points_weighted.gml
type: vector
SEGMENTS: 36
SHAPE: '2'
WIDTH: id
results:
OUTPUT:
name: expected/buffer_ovals.gml
type: vector
- algorithm: native:creategrid
name: Lines grid 0.1 degree spacing
params:
CRS: EPSG:4326
EXTENT: -0.10453905405405395,8.808021567567568,-2.5010055337837844,4.058021763513514
HOVERLAY: 0.0
HSPACING: 0.1
TYPE: '1'
VOVERLAY: 0.0
VSPACING: 0.1
results:
OUTPUT:
name: expected/create_grid_lines.gml
type: vector
compare:
fields:
left:
precision: 7
right:
precision: 7
top:
precision: 7
bottom:
precision: 7
- algorithm: qgis:convertgeometrytype
name: polygon to centroid
params:
INPUT:
name: polys.gml
type: vector
TYPE: '0'
results:
OUTPUT:
name: expected/convert_poly_centroid.gml
type: vector
- algorithm: qgis:convertgeometrytype
name: polygon to multilinestring
params:
INPUT:
name: polys.gml
type: vector
TYPE: '3'
results:
OUTPUT:
name: expected/convert_poly_multiline.gml
type: vector
- algorithm: qgis:convertgeometrytype
name: polygon to nodes
params:
INPUT:
name: polys.gml
type: vector
TYPE: '1'
results:
OUTPUT:
name: expected/convert_poly_nodes.gml
type: vector
- algorithm: native:extractbylocation
name: polygon intersecting points
params:
INPUT:
name: polys.gml
type: vector
INTERSECT:
name: custom/points.shp
type: vector
PREDICATE: 0
results:
OUTPUT:
name: expected/extract_by_location_intersection.gml
type: vector
compare:
fields:
fid: skip
- algorithm: native:extractbylocation
name: points within polygons
params:
INPUT:
name: custom/points.shp
type: vector
INTERSECT:
name: polys.gml
type: vector
PREDICATE: 6
results:
OUTPUT:
name: expected/extract_by_location_within.gml
type: vector
compare:
fields:
fid: skip
- algorithm: native:extractbylocation
name: Polygons containing points
params:
INPUT:
name: polys.gml
type: vector
INTERSECT:
name: custom/points.shp
type: vector
PREDICATE:
- 1
results:
OUTPUT:
name: expected/extract_by_location_contains.gml
type: vector
- algorithm: native:extractbylocation
name: Extract by location (disjoint)
params:
INPUT:
name: custom/points.shp
type: vector
INTERSECT:
name: polys.gml
type: vector
PREDICATE:
- 2
results:
OUTPUT:
name: expected/extract_by_location_disjoint.gml
type: vector
- algorithm: native:extractbylocation
name: Extract by location (touches)
params:
INPUT:
name: custom/points.shp
type: vector
INTERSECT:
name: polys.gml
type: vector
PREDICATE:
- 4
results:
OUTPUT:
name: expected/extract_by_location_touches.gml
type: vector
- algorithm: native:addfieldtoattributestable
name: add float field
params:
FIELD_LENGTH: 10
FIELD_NAME: field
FIELD_PRECISION: 2
FIELD_TYPE: '1'
INPUT:
name: custom/points.shp
type: vector
results:
OUTPUT:
name: expected/add_field.gml
type: vector
- algorithm: native:orderbyexpression
name: Order by expression
params:
ASCENDING: true
EXPRESSION: intval
INPUT:
name: polys.gml
type: vector
NULLS_FIRST: false
results:
OUTPUT:
name: expected/order_by_expression.gml
type: vector
compare:
fields:
__all__:
precision: 4
- algorithm: native:randompointsinextent
name: Random point in extent, don't check result
params:
TARGET_CRS: EPSG:4326
EXTENT: 3.9821361058601132,4.01984877126654,0.9948015122873343,1.0305293005671075
MIN_DISTANCE: 0.0
POINTS_NUMBER: 5
MAX_ATTEMPTS: 200
results:
OUTPUT:
compare: false
type: vector
name: randompointsinextent.gml
- algorithm: native:randompointsinpolygons
name: Random points in polygons, 10 pts, min distance 0.0, 10 tries, seed 1, attributes
params:
INCLUDE_POLYGON_ATTRIBUTES: true
INPUT:
name: polys.gml
type: vector
MAX_TRIES_PER_POINT: 10
MIN_DISTANCE: 0.0
MIN_DISTANCE_GLOBAL: 0.0
POINTS_NUMBER: 10
SEED: 1
results:
OUTPUT:
name: expected/randompointsinpolygons.gml
type: vector
- algorithm: native:randompointsinpolygons
name: Random points in polygons, 10 pts, global min distance 2.0, 10 tries, seed 1, attributes
params:
INCLUDE_POLYGON_ATTRIBUTES: true
INPUT:
name: polys.gml
type: vector
MAX_TRIES_PER_POINT: 10
MIN_DISTANCE: 0.0
MIN_DISTANCE_GLOBAL: 2.0
POINTS_NUMBER: 10
SEED: 1
results:
OUTPUT:
name: expected/randompointsinpolygons_gmin2.gml
type: vector
- algorithm: native:randompointsinpolygons
name: Random points in polygons, 10 pts, min distance 2.0, 10 tries, seed 1, no attributes
params:
INCLUDE_POLYGON_ATTRIBUTES: false
INPUT:
name: polys.gml
type: vector
MAX_TRIES_PER_POINT: 10
MIN_DISTANCE: 2.0
MIN_DISTANCE_GLOBAL: 0.0
POINTS_NUMBER: 10
SEED: 1
results:
OUTPUT:
name: expected/randompointsinpolygons_min2.gml
type: vector
- algorithm: native:randompointsinpolygons
name: Random points in polygons, 10 pts, global min distance 2.0, min distance 2.0, 10 tries, seed 1, attributes
params:
INCLUDE_POLYGON_ATTRIBUTES: true
INPUT:
name: polys.gml
type: vector
MAX_TRIES_PER_POINT: 10
MIN_DISTANCE: 2.0
MIN_DISTANCE_GLOBAL: 2.0
POINTS_NUMBER: 10
SEED: 1
results:
OUTPUT:
name: expected/randompointsinpolygons_min2_gmin2.gml
type: vector
- algorithm: native:randompointsonlines
name: Random points on lines, seed 1, multilines - one empty geom
params:
INCLUDE_LINE_ATTRIBUTES: true
INPUT:
name: multilines.gml
type: vector
MAX_TRIES_PER_POINT: 10
MIN_DISTANCE: 0.0
MIN_DISTANCE_GLOBAL: 0.0
POINTS_NUMBER: 10
SEED: 1
results:
OUTPUT:
name: expected/randompointsonlines.gml
type: vector
- algorithm: native:randompointsonlines
name: Random points on lines, global min distance 2, seed 1, attributes, multilines - one empty geom
params:
INCLUDE_LINE_ATTRIBUTES: true
INPUT:
name: multilines.gml
type: vector
MAX_TRIES_PER_POINT: 10
MIN_DISTANCE: 0.0
MIN_DISTANCE_GLOBAL: 2.0
POINTS_NUMBER: 10
SEED: 1
results:
OUTPUT:
name: expected/randompointsonlines_gmin2.gml
type: vector
- algorithm: native:randompointsonlines
name: Random points on lines, min distance 2, seed 1, no attributes, multilines - one empty geom
params:
INCLUDE_LINE_ATTRIBUTES: false
INPUT:
name: multilines.gml
type: vector
MAX_TRIES_PER_POINT: 10
MIN_DISTANCE: 2.0
MIN_DISTANCE_GLOBAL: 0.0
POINTS_NUMBER: 10
SEED: 1
results:
OUTPUT:
name: expected/randompointsonlines_min2.gml
type: vector
- algorithm: native:randompointsonlines
name: Random points on lines, min distance 2, global min distance 2, seed 1, attributes, multilines - one empty geom
params:
INCLUDE_LINE_ATTRIBUTES: true
INPUT:
name: multilines.gml
type: vector
MAX_TRIES_PER_POINT: 10
MIN_DISTANCE: 2.0
MIN_DISTANCE_GLOBAL: 2.0
POINTS_NUMBER: 10
SEED: 1
results:
OUTPUT:
name: expected/randompointsonlines_min2_gmin2.gml
type: vector
- algorithm: native:randomextract
name: Random extract by number
params:
INPUT:
name: custom/points_weighted.gml
type: vector
METHOD: 0
NUMBER: 4
results:
OUTPUT:
type: vector
name: points_weighted.gml
compare: false
- algorithm: native:randomextract
name: Random extract by percentage
params:
INPUT:
name: custom/points_weighted.gml
type: vector
METHOD: 1
NUMBER: 50
results:
OUTPUT:
type: vector
name: points_weighted.gml
compare: false
- algorithm: qgis:randomextractwithinsubsets
name: Random extract within subset (subset smaller than number)
params:
FIELD: id2
INPUT:
name: points.gml
type: vector
METHOD: 0
NUMBER: 3
results:
OUTPUT:
type: vector
name: points.gml
compare: false
- algorithm: qgis:heatmapkerneldensityestimation
name: Heatmap (Kernel density estimation)
params:
DECAY: 0.0
INPUT:
name: points.gml
type: vector
KERNEL: '0'
OUTPUT_VALUE: '0'
PIXEL_SIZE: 0.1
RADIUS: 0.5
results:
OUTPUT:
hash: f09384c64f56286ec4146a7b9a679cea7c6711ec4c7d77eec054e364
type: rasterhash
- algorithm: native:rasterlayerstatistics
name: Raster layer statistics
params:
INPUT:
name: dem.tif
type: raster
BAND: 1
results:
OUTPUT_HTML_FILE:
name: raster_statistics.html
type: regex
rules:
- 'Minimum value: 85'
- 'Maximum value: 243'
- 'Range: 158'
- 'Sum: 19213301.9824295'
- 'Mean value: 147.1719799496707'
- 'Standard deviation: 43.9618116337985'
- 'Sum of the squares: 252304334.5206124'
- algorithm: qgis:rasterlayeruniquevaluesreport
name: Raster layer unique values report
params:
INPUT:
name: raster.tif
type: raster
BAND: 1
results:
OUTPUT_HTML_FILE:
name: raster_unique_values_count.html
type: regex
rules:
- 'Total pixel count: 224'
- 'NODATA pixel count: 104'
- '826</td><td>4</td><td>411.2757251916548'
- '837</td><td>6</td><td>616.9135877874822'
- '843</td><td>6</td><td>616.9135877874822'
- '845</td><td>4</td><td>411.2757251916548'
- '851</td><td>9</td><td>925.3703816812233'
- '853</td><td>6</td><td>616.9135877874822'
- '859</td><td>10</td><td>1028.189312979137'
- '861</td><td>4</td><td>411.2757251916548'
- '864</td><td>6</td><td>616.9135877874822'
- '866</td><td>9</td><td>925.3703816812233'
- '868</td><td>6</td><td>616.9135877874822'
- '872</td><td>4</td><td>411.2757251916548'
- '873</td><td>9</td><td>925.3703816812233'
- '878</td><td>6</td><td>616.9135877874822'
- '880</td><td>6</td><td>616.9135877874822'
- '881</td><td>6</td><td>616.9135877874822'
- '890</td><td>13</td><td>1336.646106872878'
- '899</td><td>6</td><td>616.9135877874822'
- algorithm: native:rasterlayeruniquevaluesreport
name: Raster layer unique values report (table)
params:
BAND: 1
INPUT:
name: raster.tif
type: raster
results:
OUTPUT_TABLE:
name: expected/raster_layer_unique_values.gml
type: vector
compare:
fields:
__all__:
precision: 2
- algorithm: qgis:pointsdisplacement
name: Point displacement
params:
DISTANCE: 1.0
HORIZONTAL: false
INPUT:
name: custom/displace_points.gml
type: vector
PROXIMITY: 2.0
results:
OUTPUT:
name: expected/displaced_points.gml
type: vector
- algorithm: native:generatepointspixelcentroidsinsidepolygons
name: Pixel centroids inside polygon
params:
INPUT_RASTER:
name: dem.tif
type: raster
INPUT_VECTOR:
name: custom/pixel_polygons.gml
type: vector
results:
OUTPUT:
name: expected/pixel_centroids_polygon.gml
type: vector
- algorithm: qgis:generatepointspixelcentroidsalongline
name: Pixel centroids along line
params:
INPUT_RASTER:
name: dem.tif
type: raster
INPUT_VECTOR:
name: custom/pixel_lines.gml
type: vector
results:
OUTPUT:
name: expected/pixel_centroids_lines.gml
type: vector
- algorithm: qgis:fieldcalculator
name: Test field calculator points
params:
FIELD_LENGTH: 10
FIELD_NAME: test
FIELD_PRECISION: 3
FIELD_TYPE: 1
FORMULA: ' "id2" *2'
INPUT:
name: points.gml
type: vector
NEW_FIELD: true
results:
OUTPUT:
name: expected/field_calculator_points.gml
type: vector
- algorithm: qgis:advancedpythonfieldcalculator
name: Test advanced python calculator
params:
FIELD_LENGTH: 10
FIELD_NAME: new_field
FIELD_PRECISION: 3
FIELD_TYPE: 0
FORMULA: value = __attr[2]*2
GLOBAL: ''
INPUT:
name: points.gml
type: vector
results:
OUTPUT:
name: expected/pycalculator_points.gml
type: vector
- algorithm: qgis:executesql
name: Test execute SQL
params:
INPUT_DATASOURCES:
params:
- name: points.gml
type: vector
type: multi
INPUT_GEOMETRY_FIELD: ''
INPUT_GEOMETRY_TYPE: 0
INPUT_QUERY: select * from input1 where id2=2
INPUT_UID_FIELD: ''
results:
OUTPUT:
name: expected/execute_sql.gml
type: vector
- algorithm: native:polygonfromlayerextent
name: Polygon from raster extent
params:
INPUT:
name: dem.tif
type: raster
results:
OUTPUT:
name: expected/raster_extent.gml
type: vector
- algorithm: native:minimumenclosingcircle
name: Minimal enclosing circle each features
params:
BY_FEATURE: true