File: gdal_algorithm_vector_tests.yaml

package info (click to toggle)
qgis 3.10.14%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 889,896 kB
  • sloc: cpp: 986,392; python: 156,157; xml: 12,700; perl: 3,286; sh: 2,637; ansic: 2,085; sql: 1,514; javascript: 1,363; yacc: 1,000; lex: 562; lisp: 411; makefile: 234
file content (248 lines) | stat: -rw-r--r-- 5,822 bytes parent folder | download
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
tests:

  - algorithm: gdal:buffervectors
    name: Buffer lines
    params:
      DISSOLVE: false
      DISTANCE: 0.5
      EXPLODE_COLLECTIONS: false
      GEOMETRY: geometry
      INPUT:
        name: lines.gml
        type: vector
      OPTIONS: ''
    results:
      OUTPUT:
        name: expected/gdal/buffer_lines.gml
        type: vector

  - algorithm: gdal:buffervectors
    name: BUffer lines with dissolve
    params:
      DISSOLVE: true
      DISTANCE: 1.0
      EXPLODE_COLLECTIONS: false
      GEOMETRY: geometry
      INPUT:
        name: lines.gml
        type: vector
      OPTIONS: ''
    results:
      OUTPUT:
        name: expected/gdal/buffer_lines_dissolve.gml
        type: vector

  - algorithm: gdal:buffervectors
    name: Buffer polygons
    params:
      DISSOLVE: false
      DISTANCE: 0.5
      EXPLODE_COLLECTIONS: false
      GEOMETRY: geometry
      INPUT:
        name: polys.gml
        type: vector
      OPTIONS: ''
    results:
      OUTPUT:
        name: expected/gdal/buffer_polys.gml
        type: vector

  - algorithm: gdal:buffervectors
    name: Buffer polygons with dissolve
    params:
      DISSOLVE: true
      DISTANCE: 0.5
      EXPLODE_COLLECTIONS: false
      GEOMETRY: geometry
      INPUT:
        name: polys.gml
        type: vector
      OPTIONS: ''
    results:
      OUTPUT:
        name: expected/gdal/buffer_polys_dissolve.gml
        type: vector

  - algorithm: gdal:clipvectorbyextent
    name: Clip points by extent
    params:
      EXTENT: 0.6180722891566264,5.408433734939758,0.4337349397590362,2.306024096385542
        [EPSG:4326]
      INPUT:
        name: points.gml
        type: vector
      OPTIONS: ''
    results:
      OUTPUT:
        name: expected/gdal/clip_points.gml
        type: vector

  - algorithm: gdal:clipvectorbyextent
    name: Clip lines by extent
    params:
      EXTENT: 4.362348178137652,8.698380566801621,-1.193522267206478,3.0914979757085024
        [EPSG:4326]
      INPUT:
        name: lines.gml
        type: vector
      OPTIONS: ''
    results:
      OUTPUT:
        name: expected/gdal/clip_lines.gml
        type: vector

  - algorithm: gdal:clipvectorbyextent
    name: Clip polygons by extent
    params:
      EXTENT: 0.7143072289156609,4.718222891566264,1.4430722891566266,5.390060240963856
        [EPSG:4326]
      INPUT:
        name: polys.gml
        type: vector
      OPTIONS: ''
    results:
      OUTPUT:
        name: expected/gdal/clip_polygons.gml
        type: vector

# Fail on Travis with
# ERROR 1: TopologyException: Input geom 1 is invalid: Self-intersection at or near point 2 -1 at 2 -1
#  - algorithm: gdal:clipvectorbypolygon
#    name: Clip points by polygons
#    params:
#      INPUT:
#        name: points.gml
#        type: vector
#      MASK:
#        name: polys.gml
#        type: vector
#      OPTIONS: ''
#    results:
#      OUTPUT:
#        name: expected/gdal/clip_points_by_polygon.gml
#        type: vector
#
#  - algorithm: gdal:clipvectorbypolygon
#    name: Clip lines by polygons
#    params:
#      INPUT:
#        name: lines.gml
#        type: vector
#      MASK:
#        name: polys.gml
#        type: vector
#      OPTIONS: ''
#    results:
#      OUTPUT:
#        name: expected/gdal/clip_lines_by_polygon.gml
#        type: vector

  - algorithm: gdal:clipvectorbypolygon
    name: Clip lines by multipolygons
    params:
      INPUT:
        name: lines.gml
        type: vector
      MASK:
        name: multipolys.gml
        type: vector
      OPTIONS: ''
    results:
      OUTPUT:
        name: expected/gdal/clip_lines_by_multipolygon.gml
        type: vector

  - algorithm: gdal:executesql
    name: Execute SQL
    params:
      DIALECT: 0
      INPUT:
        name: polys.gml
        type: vector
      OPTIONS: ''
      SQL: SELECT * FROM polys2 WHERE intval=2
    results:
      OUTPUT:
        name: expected/gdal/execute_sql.gml
        type: vector

  - algorithm: gdal:offsetcurve
    name: Offset curve (right-sided)
    params:
      DISTANCE: -0.5
      GEOMETRY: geometry
      INPUT:
        name: lines.gml
        type: vector
      OPTIONS: ''
    results:
      OUTPUT:
        name: expected/gdal/offset_lines.gml
        type: vector

  - algorithm: gdal:ogrinfo
    name: ogrinfo
    params:
      INPUT:
        name: lines.gml
        type: vector
      SUMMARY_ONLY: 'True'
    results:
      OUTPUT:
        name: expected/gdal/vector_info.html
        type: regex
        rules:
          - 'Extent: \(-1.000000, -3.000000\) - \(11.000000, 5.000000\)'
          - 'Geometry: Line String'
          - 'Feature Count: [6|7]' # On some platforms returns 6 instead of 7...

  - algorithm: gdal:onesidebuffer
    name: One-sided buffer (left-handed)
    params:
      BUFFER_SIDE: 1
      DISSOLVE: false
      DISTANCE: 0.5
      EXPLODE_COLLECTIONS: false
      GEOMETRY: geometry
      INPUT:
        name: lines.gml
        type: vector
      OPTIONS: ''
    results:
      OUTPUT:
        name: expected/gdal/one_side_buffer.gml
        type: vector

  - algorithm: gdal:pointsalonglines
    name: Points along lines
    params:
      DISTANCE: 0.25
      GEOMETRY: geometry
      INPUT:
        name: lines.gml
        type: vector
      OPTIONS: ''
    results:
      OUTPUT:
        name: expected/gdal/points_along_lines.gml
        type: vector

  - algorithm: gdal:dissolve
    name: Dissolve points (multipoint output)
    params:
      COMPUTE_AREA: false
      COMPUTE_STATISTICS: false
      COUNT_FEATURES: false
      EXPLODE_COLLECTIONS: false
      FIELD: TestField
      GEOMETRY: geometry
      INPUT:
        name: custom/dissolve_points.shp
        type: vector
      KEEP_ATTRIBUTES: false
      OPTIONS: ''
    results:
      OUTPUT:
        name: expected/gdal/dissolved_points.gml
        type: vector