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
|
tests:
- name: Difference (multiple overlays)
algorithm: native:multidifference
params:
INPUT:
name: custom/multi_overlay_A.shp
type: vector
OVERLAYS:
params:
- name: custom/multi_overlay_B.shp
type: vector
- name: custom/multi_overlay_C.shp
type: vector
type: multi
results:
OUTPUT:
name: expected/multi_difference.gml
type: vector
compare:
fields:
gml_id: skip
geometry:
normalize: True
- name: Intersection (multiple overlays)
algorithm: native:multiintersection
params:
INPUT:
name: custom/multi_overlay_A.shp
type: vector
OVERLAYS:
params:
- name: custom/multi_overlay_B.shp
type: vector
- name: custom/multi_overlay_C.shp
type: vector
type: multi
OVERLAY_FIELDS_PREFIX: ''
results:
OUTPUT:
name: expected/multi_intersection.gml
type: vector
compare:
fields:
gml_id: skip
geometry:
normalize: True
- name: Union (multiple overlays)
algorithm: native:multiunion
params:
INPUT:
name: custom/multi_overlay_A.shp
type: vector
OVERLAYS:
params:
- name: custom/multi_overlay_B.shp
type: vector
- name: custom/multi_overlay_C.shp
type: vector
type: multi
OVERLAY_FIELDS_PREFIX: ''
results:
OUTPUT:
name: expected/multi_union.gml
type: vector
compare:
fields:
gml_id: skip
geometry:
normalize: True
- algorithm: native:buffer
name: Buffer, dissolve with separate disjoint
params:
DISSOLVE: true
DISTANCE: 0.6
END_CAP_STYLE: 0
INPUT:
name: multipolys.gml
type: vector
JOIN_STYLE: 0
MITER_LIMIT: 2.0
SEGMENTS: 5
SEPARATE_DISJOINT: true
results:
OUTPUT:
name: expected/buffer_dissolve_keep_disjoint.gml
type: vector
- algorithm: native:buffer
name: Buffer, separate disjoint with disjoint results
params:
DISSOLVE: false
DISTANCE: 0.3
END_CAP_STYLE: 1
INPUT:
name: multilines.gml
type: vector
JOIN_STYLE: 1
MITER_LIMIT: 2.0
SEGMENTS: 5
SEPARATE_DISJOINT: true
results:
OUTPUT:
name: expected/buffer_keep_disjoint_features_disjoint.gml
type: vector
- algorithm: native:buffer
name: Buffer, separate disjoint with non-disjoint results
params:
DISSOLVE: false
DISTANCE: 1.0
END_CAP_STYLE: 1
INPUT:
name: multilines.gml
type: vector
JOIN_STYLE: 1
MITER_LIMIT: 2.0
SEGMENTS: 5
SEPARATE_DISJOINT: true
results:
OUTPUT:
name: expected/buffer_keep_disjoint.gml
type: vector
- algorithm: native:dtmslopebasedfilter
name: DTM slope based filter (1)
params:
BAND: 1
FILTER_MODIFICATION: 0
INPUT:
name: dem.tif
type: raster
RADIUS: 10
STANDARD_DEVIATION: 0.1
TERRAIN_SLOPE: 500.0
results:
OUTPUT_GROUND:
hash: 1d1c403ff54f95a291a3a979220fb60a69ae117df1023671759656a8
type: rasterhash
OUTPUT_NONGROUND:
hash: 450da40150fa94eca7d8b681c21ef62d41e746acbe0886797c6b9b2d
type: rasterhash
- algorithm: native:dtmslopebasedfilter
name: DTM slope based filter (2)
params:
BAND: 1
FILTER_MODIFICATION: 0
INPUT:
name: dem.tif
type: raster
RADIUS: 3
STANDARD_DEVIATION: 0.1
TERRAIN_SLOPE: 300.0
results:
OUTPUT_GROUND:
hash: 28051cc571bcad29de3c43b7495f7f035a6cf9bae31c9b3dff39a51d
type: rasterhash
OUTPUT_NONGROUND:
hash: cce2498eb5694accc3720089b1660f5db9a9146129120c0219fbbe3a
type: rasterhash
- algorithm: native:dtmslopebasedfilter
name: DTM slope based filter (relaxed)
params:
BAND: 1
FILTER_MODIFICATION: 1
INPUT:
name: dem.tif
type: raster
RADIUS: 10
STANDARD_DEVIATION: 0.1
TERRAIN_SLOPE: 500.0
results:
OUTPUT_GROUND:
hash: 3a2c92296870ce44d990ba2d19765327b2f48873d2a37d9f858bbb1b
type: rasterhash
OUTPUT_NONGROUND:
hash: f7593955a08c7f321f3cabed37e5acf586061b7deb9022ee32b22aae
type: rasterhash
- algorithm: native:dtmslopebasedfilter
name: DTM slope based filter (amplified)
params:
BAND: 1
FILTER_MODIFICATION: 2
INPUT:
name: dem.tif
type: raster
RADIUS: 10
STANDARD_DEVIATION: 0.1
TERRAIN_SLOPE: 500.0
results:
OUTPUT_GROUND:
hash: 8844e5fd0c8c26f815612fd1b6768799deee6b16bccb961ef03b05a0
type: rasterhash
OUTPUT_NONGROUND:
hash: cec23a44e0a5da2c9d0be68a13cdb1e851492061e64d81b564e5a269
type: rasterhash
- algorithm: native:coverageunion
name: Coverage union
condition:
geos:
at_least: 31200
params:
INPUT:
name: polys.gml|layername=polys2
type: vector
results:
OUTPUT:
name: expected/coverage_dissolve.gml
type: vector
- algorithm: native:coveragesimplify
name: Simplify coverage
condition:
geos:
at_least: 31200
params:
INPUT:
name: polys.gml|layername=polys2
type: vector
PRESERVE_BOUNDARY: false
TOLERANCE: 3.0
results:
OUTPUT:
name: expected/simplify_coverage.gml
type: vector
- algorithm: native:creategrid
name: Create rectangle grid with negative overlay
params:
CRS: EPSG:3857
EXTENT: 738054.729300000,738373.195700000,5770010.104900000,5770208.287300000
[EPSG:3857]
HOVERLAY: 0.0
HSPACING: 10.0
TYPE: 2
VOVERLAY: -10.0
VSPACING: 10.0
results:
OUTPUT:
name: expected/create_grid_negative_overlay.gml
type: vector
|