@@ -2040,6 +2040,347 @@ tests:
2040
2040
name : expected/convex_hull_fields.gml
2041
2041
type : vector
2042
2042
2043
+ - algorithm : gdalogr:aspect
2044
+ name : aspect with standard parameters
2045
+ params :
2046
+ BAND : 1
2047
+ COMPUTE_EDGES : false
2048
+ INPUT :
2049
+ name : dem.tif
2050
+ type : raster
2051
+ TRIG_ANGLE : false
2052
+ ZERO_FLAT : false
2053
+ ZEVENBERGEN : false
2054
+ results :
2055
+ OUTPUT :
2056
+ hash : 8436df662a44a00762aa29768e5d6ecfaf2d42e9a4da02d8afc6e3f6
2057
+ type : rasterhash
2058
+
2059
+ - algorithm : gdalogr:aspect
2060
+ name : aspect without NULL (-9999) values (0 instead)
2061
+ params :
2062
+ BAND : 1
2063
+ COMPUTE_EDGES : false
2064
+ INPUT :
2065
+ name : dem.tif
2066
+ type : raster
2067
+ TRIG_ANGLE : false
2068
+ ZERO_FLAT : true
2069
+ ZEVENBERGEN : false
2070
+ results :
2071
+ OUTPUT :
2072
+ hash : 43cccb440c7febb0095103eee3509b740e9f1bf2b3ad3b8a4c25622e
2073
+ type : rasterhash
2074
+
2075
+ - algorithm : gdalogr:aspect
2076
+ name : aspect with trigonometric angle
2077
+ params :
2078
+ BAND : 1
2079
+ COMPUTE_EDGES : false
2080
+ INPUT :
2081
+ name : dem.tif
2082
+ type : raster
2083
+ TRIG_ANGLE : true
2084
+ ZERO_FLAT : false
2085
+ ZEVENBERGEN : false
2086
+ results :
2087
+ OUTPUT :
2088
+ hash : a95e8a09a613b551d3f33dfb4975c430f599dc55f761063ae9529124
2089
+ type : rasterhash
2090
+
2091
+ - algorithm : gdalogr:aspect
2092
+ name : aspect zevenbergen
2093
+ params :
2094
+ BAND : 1
2095
+ COMPUTE_EDGES : false
2096
+ INPUT :
2097
+ name : dem.tif
2098
+ type : raster
2099
+ TRIG_ANGLE : false
2100
+ ZERO_FLAT : false
2101
+ ZEVENBERGEN : true
2102
+ results :
2103
+ OUTPUT :
2104
+ hash : 2cd5868b21efbd286f4977795143c89df77ac8976f8bc2a2c4e310d8
2105
+ type : rasterhash
2106
+
2107
+
2108
+ - algorithm : gdalogr:aspect
2109
+ name : aspect with edges
2110
+ params :
2111
+ BAND : 1
2112
+ COMPUTE_EDGES : true
2113
+ INPUT :
2114
+ name : dem.tif
2115
+ type : raster
2116
+ TRIG_ANGLE : false
2117
+ ZERO_FLAT : false
2118
+ ZEVENBERGEN : false
2119
+ results :
2120
+ OUTPUT :
2121
+ hash : d3a354c6e5f207779bb58f9bd23fd89a9f90a77d81aafc661d0ae077
2122
+ type : rasterhash
2123
+
2124
+ - algorithm : gdalogr:cliprasterbyextent
2125
+ name : standard clip raster by extent
2126
+ params :
2127
+ BIGTIFF : ' 0'
2128
+ COMPRESS : ' 4'
2129
+ INPUT :
2130
+ name : dem.tif
2131
+ type : raster
2132
+ JPEGCOMPRESSION : 75
2133
+ PREDICTOR : 1
2134
+ PROJWIN : 18.67551824296977,18.697800756150787,45.78984181545589,45.804309302274866
2135
+ RTYPE : ' 5'
2136
+ TFW : false
2137
+ TILED : false
2138
+ ZLEVEL : 6
2139
+ results :
2140
+ OUTPUT :
2141
+ hash : 9913a7c0e1ced2c2ce1cd8f0e8103475bc2b0dd4d1d0adafe4920f93
2142
+ type : rasterhash
2143
+
2144
+ - algorithm : gdalogr:cliprasterbyextent
2145
+ name : clip by extent and change no data values
2146
+ params :
2147
+ BIGTIFF : ' 0'
2148
+ COMPRESS : ' 4'
2149
+ INPUT :
2150
+ name : dem.tif
2151
+ type : raster
2152
+ JPEGCOMPRESSION : 75
2153
+ NO_DATA : ' -9999'
2154
+ PREDICTOR : 1
2155
+ PROJWIN : 18.67460436727692,18.698371162148714,45.78995019401027,45.804344168369234
2156
+ RTYPE : ' 5'
2157
+ TFW : false
2158
+ TILED : false
2159
+ ZLEVEL : 6
2160
+ results :
2161
+ OUTPUT :
2162
+ hash : df5de501bcec0c10f738d77f3b48d5545b48f0a22e0e028a8b1ccbe7
2163
+ type : rasterhash
2164
+
2165
+
2166
+ - algorithm : gdalogr:cliprasterbymasklayer
2167
+ name : clip by extent standard (with crop to cutline)
2168
+ params :
2169
+ ALPHA_BAND : false
2170
+ BIGTIFF : ' 0'
2171
+ COMPRESS : ' 4'
2172
+ CROP_TO_CUTLINE : true
2173
+ INPUT :
2174
+ name : dem.tif
2175
+ type : raster
2176
+ JPEGCOMPRESSION : 75
2177
+ KEEP_RESOLUTION : false
2178
+ MASK :
2179
+ name : custom/polygon_mask.gml
2180
+ type : vector
2181
+ PREDICTOR : 1
2182
+ RTYPE : ' 5'
2183
+ TFW : false
2184
+ TILED : false
2185
+ ZLEVEL : 6
2186
+ results :
2187
+ OUTPUT :
2188
+ hash : 4f4720e4efe59a7f238f622659917bbeb5262369d15d5e2917dbcf8b
2189
+ type : rasterhash
2190
+
2191
+ - algorithm : gdalogr:cliprasterbymasklayer
2192
+ name : clip by extent and change no data value
2193
+ params :
2194
+ ALPHA_BAND : false
2195
+ BIGTIFF : ' 0'
2196
+ COMPRESS : ' 4'
2197
+ CROP_TO_CUTLINE : true
2198
+ INPUT :
2199
+ name : dem.tif
2200
+ type : raster
2201
+ JPEGCOMPRESSION : 75
2202
+ KEEP_RESOLUTION : false
2203
+ MASK :
2204
+ name : custom/polygon_mask.gml
2205
+ type : vector
2206
+ NO_DATA : ' -9999'
2207
+ PREDICTOR : 1
2208
+ RTYPE : ' 5'
2209
+ TFW : false
2210
+ TILED : false
2211
+ ZLEVEL : 6
2212
+ results :
2213
+ OUTPUT :
2214
+ hash : 1e0252e63c65dcf4ed1f2b17d2490d3e0331aeb59d8f59b59554f442
2215
+ type : rasterhash
2216
+
2217
+ - algorithm : gdalogr:cliprasterbymasklayer
2218
+ name : clip by extent and add alpha band
2219
+ params :
2220
+ ALPHA_BAND : true
2221
+ BIGTIFF : ' 0'
2222
+ COMPRESS : ' 4'
2223
+ CROP_TO_CUTLINE : true
2224
+ INPUT :
2225
+ name : dem.tif
2226
+ type : raster
2227
+ JPEGCOMPRESSION : 75
2228
+ KEEP_RESOLUTION : false
2229
+ MASK :
2230
+ name : custom/polygon_mask.gml
2231
+ type : vector
2232
+ PREDICTOR : 1
2233
+ RTYPE : ' 5'
2234
+ TFW : false
2235
+ TILED : false
2236
+ ZLEVEL : 6
2237
+ results :
2238
+ OUTPUT :
2239
+ hash : 8f69431c6ff7db5174c1ca8e879ae39582fd4ce86f9b53edae0f38ce
2240
+ type : rasterhash
2241
+
2242
+ - algorithm : gdalogr:cliprasterbymasklayer
2243
+ name : clip by extent without cropping to cutline
2244
+ params :
2245
+ ALPHA_BAND : false
2246
+ BIGTIFF : ' 0'
2247
+ COMPRESS : ' 4'
2248
+ CROP_TO_CUTLINE : false
2249
+ INPUT :
2250
+ name : dem.tif
2251
+ type : raster
2252
+ JPEGCOMPRESSION : 75
2253
+ KEEP_RESOLUTION : false
2254
+ MASK :
2255
+ name : custom/polygon_mask.gml
2256
+ type : vector
2257
+ PREDICTOR : 1
2258
+ RTYPE : ' 5'
2259
+ TFW : false
2260
+ TILED : false
2261
+ ZLEVEL : 6
2262
+ results :
2263
+ OUTPUT :
2264
+ hash : 638165612b8cf59c631533438633c6c5b0fd5d3698d6ce75b359eef3
2265
+ type : rasterhash
2266
+
2267
+ - algorithm : gdalogr:hillshade
2268
+ name : hillshade standard
2269
+ params :
2270
+ ALTITUDE : 45.0
2271
+ AZIMUTH : 315.0
2272
+ BAND : 1
2273
+ COMPUTE_EDGES : false
2274
+ INPUT :
2275
+ name : dem.tif
2276
+ type : raster
2277
+ SCALE : 1.0
2278
+ ZEVENBERGEN : false
2279
+ Z_FACTOR : 1.0
2280
+ results :
2281
+ OUTPUT :
2282
+ hash : e5cf91b875b918682e456463165eddc4af4ae8855b143068e198ce2a
2283
+ type : rasterhash
2284
+
2285
+ - algorithm : gdalogr:hillshade
2286
+ name : hillshade with edges calculation
2287
+ params :
2288
+ ALTITUDE : 45.0
2289
+ AZIMUTH : 315.0
2290
+ BAND : 1
2291
+ COMPUTE_EDGES : true
2292
+ INPUT :
2293
+ name : dem.tif
2294
+ type : raster
2295
+ SCALE : 1.0
2296
+ ZEVENBERGEN : false
2297
+ Z_FACTOR : 1.0
2298
+ results :
2299
+ OUTPUT :
2300
+ hash : 570671408b020c9cc817e876f0e8081e0b11920c7d297abfe1cb3368
2301
+ type : rasterhash
2302
+
2303
+ - algorithm : gdalogr:hillshade
2304
+ name : hillshade with zevenbergen formula
2305
+ params :
2306
+ ALTITUDE : 45.0
2307
+ AZIMUTH : 315.0
2308
+ BAND : 1
2309
+ COMPUTE_EDGES : false
2310
+ INPUT :
2311
+ name : dem.tif
2312
+ type : raster
2313
+ SCALE : 1.0
2314
+ ZEVENBERGEN : true
2315
+ Z_FACTOR : 1.0
2316
+ results :
2317
+ OUTPUT :
2318
+ hash : ce2174ab155023367d38785fb867456c6a1ae3535ea0ec5ad7a694d5
2319
+ type : rasterhash
2320
+
2321
+ - algorithm : gdalogr:slope
2322
+ name : slope with standard parameters
2323
+ params :
2324
+ AS_PERCENT : false
2325
+ BAND : 1
2326
+ COMPUTE_EDGES : false
2327
+ INPUT :
2328
+ name : dem.tif
2329
+ type : raster
2330
+ SCALE : 1.0
2331
+ ZEVENBERGEN : false
2332
+ results :
2333
+ OUTPUT :
2334
+ hash : 319c470de3315f440371d5df8a6e478a8ecaf1cf904a013dbf1b3a6a
2335
+ type : rasterhash
2336
+
2337
+ - algorithm : gdalogr:slope
2338
+ name : slope with edges
2339
+ params :
2340
+ AS_PERCENT : false
2341
+ BAND : 1
2342
+ COMPUTE_EDGES : true
2343
+ INPUT :
2344
+ name : dem.tif
2345
+ type : raster
2346
+ SCALE : 1.0
2347
+ ZEVENBERGEN : false
2348
+ results :
2349
+ OUTPUT :
2350
+ hash : f7f8df8b6517fd8660304f7f2fbd6ade2ae68035f4dd9a224c80b465
2351
+ type : rasterhash
2352
+
2353
+ - algorithm : gdalogr:slope
2354
+ name : slope with zevenbergen formula
2355
+ params :
2356
+ AS_PERCENT : false
2357
+ BAND : 1
2358
+ COMPUTE_EDGES : false
2359
+ INPUT :
2360
+ name : dem.tif
2361
+ type : raster
2362
+ SCALE : 1.0
2363
+ ZEVENBERGEN : true
2364
+ results :
2365
+ OUTPUT :
2366
+ hash : 90e42b1bc7be9cf7b4a729c6db44dde0bba39dd33012ade6bc8080e7
2367
+ type : rasterhash
2368
+
2369
+ - algorithm : gdalogr:slope
2370
+ name : slope with percent instead of degree
2371
+ params :
2372
+ AS_PERCENT : true
2373
+ BAND : 1
2374
+ COMPUTE_EDGES : false
2375
+ INPUT :
2376
+ name : dem.tif
2377
+ type : raster
2378
+ SCALE : 1.0
2379
+ ZEVENBERGEN : false
2380
+ results :
2381
+ OUTPUT :
2382
+ hash : c9dc888254a571e7fbf66691fb72b35f030f87decf59ce67e32ad89d
2383
+ type : rasterhash
2043
2384
2044
2385
# These tests dissabled because algs require access to iface which
2045
2386
# is not available in the test suite.
0 commit comments