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 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353
|
# See ../README.md for a description of the file format
tests:
- algorithm: native:projectpointcartesian
name: Project points Cartesian
params:
BEARING: 90.0
DISTANCE: 1.0
INPUT:
name: points.gml
type: vector
results:
OUTPUT:
name: expected/projected_points.gml
type: vector
- algorithm: native:projectpointcartesian
name: Project multipoints Cartesian
params:
BEARING: -90.0
DISTANCE: 0.5
INPUT:
name: multipoints.gml
type: vector
results:
OUTPUT:
name: expected/projected_multipoints.gml
type: vector
pk: d
- algorithm: native:removeduplicatevertices
name: Remove duplicate vertices from lines
params:
INPUT:
name: custom/line_duplicate_nodes.gml
type: vector
TOLERANCE: 1.0e-06
USE_Z_VALUE: false
results:
OUTPUT:
name: expected/removed_duplicated_nodes_line.gml
type: vector
- algorithm: native:removeduplicatevertices
name: Remove duplicate vertices from all parts
params:
INPUT:
name: custom/multi_polygons_with_duplicate_nodes_per_part.gml
type: vector
TOLERANCE: 0.001
USE_Z_VALUE: false
results:
OUTPUT:
name: expected/multi_polygons_without_duplicate_nodes.gml
type: vector
- algorithm: native:removeduplicatevertices
name: Remove duplicate vertices from all interior rings
params:
INPUT:
name: custom/polygons_with_duplicate_nodes_in_several_holes.gml
type: vector
TOLERANCE: 0.001
USE_Z_VALUE: false
results:
OUTPUT:
name: expected/polygons_without_duplicate_nodes_in_holes.gml
type: vector
- algorithm: qgis:keepnbiggestparts
name: Keep N biggest parts
params:
PARTS: 1
POLYGONS:
name: multipolys.gml
type: vector
results:
OUTPUT:
name: expected/biggest_parts.gml
type: vector
- algorithm: native:multiringconstantbuffer
name: Multi-ring buffer with points (GEOS < 3.9)
condition:
geos:
less_than: 30900
params:
DISTANCE: 0.05
INPUT:
name: points.gml
type: vector
RINGS: 3
results:
OUTPUT:
name: expected/multiring_buffer.gml
type: vector
compare:
geometry:
normalize: True
- algorithm: native:multiringconstantbuffer
name: Multi-ring buffer with points (GEOS >= 3.9)
condition:
geos:
at_least: 30900
params:
DISTANCE: 0.05
INPUT:
name: points.gml
type: vector
RINGS: 3
results:
OUTPUT:
name: expected/geos39/multiring_buffer.gml
type: vector
compare:
geometry:
normalize: True
- algorithm: native:multiringconstantbuffer
name: Multi-ring negative buffer with polygons (GEOS < 3.9)
condition:
geos:
less_than: 30900
params:
DISTANCE: -0.05
INPUT:
name: polys.gml
type: vector
RINGS: 3
results:
OUTPUT:
name: expected/multiring_negative_buffer.gml
type: vector
compare:
geometry:
normalize: True
- algorithm: native:multiringconstantbuffer
name: Multi-ring negative buffer with polygons (GEOS >= 3.9)
condition:
geos:
at_least: 30900
params:
DISTANCE: -0.05
INPUT:
name: polys.gml
type: vector
RINGS: 3
results:
OUTPUT:
name: expected/geos39/multiring_negative_buffer.gml
type: vector
compare:
geometry:
normalize: True
- algorithm: native:segmentizebymaxangle
name: Segmentize by angle (GDAL < 3.4)
condition:
gdal:
less_than: 3040000
params:
ANGLE: 20.0
INPUT:
name: custom/circular_strings.gpkg|layername=circular_strings
type: vector
results:
OUTPUT:
name: expected/segmentize_by_angle.gml
type: vector
- algorithm: native:segmentizebymaxangle
name: Segmentize by angle (GDAL >= 3.4)
condition:
gdal:
at_least: 3040000
params:
ANGLE: 20.0
INPUT:
name: custom/circular_strings.gpkg|layername=circular_strings
type: vector
results:
OUTPUT:
name: expected/gdal34/segmentize_by_angle.gml
type: vector
- algorithm: native:segmentizebymaxdistance
name: Segmentize by distance (GDAL < 3.4)
condition:
gdal:
less_than: 3040000
params:
DISTANCE: 0.2
INPUT:
name: custom/circular_strings.gpkg|layername=circular_strings
type: vector
results:
OUTPUT:
name: expected/segmentize_by_distance.gml
type: vector
- algorithm: native:segmentizebymaxdistance
name: Segmentize by distance (GDAL >= 3.4)
condition:
gdal:
at_least: 3040000
params:
DISTANCE: 0.2
INPUT:
name: custom/circular_strings.gpkg|layername=circular_strings
type: vector
results:
OUTPUT:
name: expected/gdal34/segmentize_by_distance.gml
type: vector
- algorithm: native:rotatefeatures
name: Rotate around centroid
params:
ANGLE: 25.0
INPUT:
name: polys.gml
type: vector
results:
OUTPUT:
name: expected/rotate_around_centroid.gml
type: vector
- algorithm: native:rotatefeatures
name: Rotate around point
params:
ANCHOR: 2.3,3 [EPSG:4326]
ANGLE: 25.0
INPUT:
name: polys.gml
type: vector
results:
OUTPUT:
name: expected/rotate_around_point.gml
type: vector
- algorithm: native:importphotos
name: Import photos
params:
FOLDER:
name: custom/photos
type: file
RECURSIVE: false
results:
INVALID:
name: expected/import_photos_invalid.gml
type: vector
compare:
fields:
photo: skip
directory: skip
fid: skip
OUTPUT:
name: expected/import_photos.gml
type: vector
compare:
fields:
photo: skip
directory: skip
timestamp:
cast: str
fid: skip
- algorithm: native:concavehull
name: Concave Hull - Points (0.3) (GEOS > 3.11)
condition:
geos:
at_least: 31100
params:
ALPHA: 0.3
HOLES: true
INPUT:
name: points.gml
type: vector
NO_MULTIGEOMETRY: false
results:
OUTPUT:
name: expected/concave_hull_points_03.gml
type: vector
compare:
geometry:
precision: 5
normalize: True
- algorithm: native:concavehull
name: Concave Hull - Points (0.9) (GEOS > 3.11)
condition:
geos:
at_least: 31100
params:
ALPHA: 0.9
HOLES: true
INPUT:
name: points.gml
type: vector
NO_MULTIGEOMETRY: false
results:
OUTPUT:
name: expected/concave_hull_points_09.gml
type: vector
compare:
geometry:
precision: 5
normalize: True
- algorithm: qgis:knearestconcavehull
name: K-nearest Neighbor Concave Hull - Points (k=7)
params:
KNEIGHBORS: 7
INPUT:
name: points.gml
type: vector
results:
OUTPUT:
name: expected/knearest_concave_hull_points_7.gml
type: vector
compare:
fields:
fid: skip
- algorithm: qgis:knearestconcavehull
name: K-nearest Neighbor Concave Hull - Group by field
params:
FIELD: id2
INPUT:
name: points.gml
type: vector
KNEIGHBORS: 3
results:
OUTPUT:
name: expected/knearest_concave_hull_points_id2.gml
type: vector
compare:
fields:
fid: skip
- algorithm: qgis:knearestconcavehull
name: K-nearest Neighbor Concave Hull - Lines (k=3)
params:
INPUT:
name: lines.gml
type: vector
KNEIGHBORS: 3
results:
OUTPUT:
name: expected/knearest_concave_hull_lines.gml
type: vector
compare:
fields:
fid: skip
- algorithm: qgis:knearestconcavehull
name: K-nearest Neighbor Concave Hull - Polys (k=3)
params:
INPUT:
name: polys.gml
type: vector
KNEIGHBORS: 3
results:
OUTPUT:
name: expected/knearest_concave_hull_polys.gml
type: vector
compare:
fields:
fid: skip
- algorithm: qgis:knearestconcavehull
name: K-nearest Neighbor Concave Hull - MultiPoints (k=3)
params:
INPUT:
name: multipoints.gml
type: vector
KNEIGHBORS: 3
results:
OUTPUT:
name: expected/knearest_concave_hull_multipoints.gml
type: vector
compare:
fields:
fid: skip
- algorithm: qgis:knearestconcavehull
name: K-nearest Neighbor Concave Hull - Duplicate Points
params:
INPUT:
name: custom/points_duplicate.gml
type: vector
KNEIGHBORS: 3
results:
OUTPUT:
name: expected/failure.gml
type: vector
expectedException: true
- algorithm: native:swapxy
name: Swap XY coordinates
params:
INPUT:
name: polys.gml
type: vector
results:
OUTPUT:
name: expected/swap_xy.gml
type: vector
- algorithm: model:filtertest
name: Test (model:filtertest)
params:
layer:
name: points.gml
type: vector
results:
native:filter_1:OUTPUT_small:
name: expected/filter_points_small.gml
type: vector
native:filter_1:OUTPUT_big:
name: expected/filter_points_big.gml
type: vector
- algorithm: model:Inner model
name: Inner model
params:
input:
name: custom/points_3857.gml|layername=points_3857
type: vector
results:
output:
name: expected/inner_model.gml
type: vector
compare:
ignore_crs_check: true
geometry:
precision: 3
normalize: True
- algorithm: model:Outer model
name: Nested models
params:
input:
name: custom/points_3857.gml|layername=points_3857
type: vector
results:
output:
name: expected/nested_models.gml
type: vector
compare:
ignore_crs_check: true
geometry:
precision: 3
normalize: True
- algorithm: native:intersection
name: Test Intersection (basic)
params:
INPUT:
name: custom/overlay1_a.geojson
type: vector
OVERLAY:
name: custom/overlay1_b.geojson
type: vector
results:
OUTPUT:
name: expected/intersection1.gml
type: vector
pk: [id_a, id_b]
compare:
fields:
fid: skip
geometry:
normalize: True
- algorithm: native:intersection
name: Test Intersection (geom types)
params:
INPUT:
name: custom/overlay3_a.geojson
type: vector
OVERLAY:
name: custom/overlay3_b.geojson
type: vector
results:
OUTPUT:
name: expected/intersection3.gml
type: vector
pk: [id_a, id_b]
compare:
fields:
fid: skip
geometry:
normalize: True
- algorithm: native:intersection
name: Test Intersection (custom prefix)
params:
INPUT:
name: custom/overlay1_a.geojson
type: vector
OVERLAY:
name: custom/overlay1_b.geojson
type: vector
OVERLAY_FIELDS_PREFIX: pre_
results:
OUTPUT:
name: expected/intersection_prefix.gml
type: vector
pk: [id_a, pre_id_b]
compare:
fields:
fid: skip
geometry:
normalize: True
- algorithm: native:wedgebuffers
name: Wedge buffers (GEOS < 3.9)
condition:
geos:
less_than: 30900
params:
AZIMUTH: 90.0
INNER_RADIUS: 0.5
INPUT:
name: points.gml
type: vector
OUTER_RADIUS: 1.0
WIDTH: 45.0
results:
OUTPUT:
name: expected/wedge_buffers.gml
type: vector
- algorithm: native:wedgebuffers
name: Wedge buffers (GEOS >= 3.9)
condition:
geos:
at_least: 30900
params:
AZIMUTH: 90.0
INNER_RADIUS: 0.5
INPUT:
name: points.gml
type: vector
OUTER_RADIUS: 1.0
WIDTH: 45.0
results:
OUTPUT:
name: expected/geos39/wedge_buffers.gml
type: vector
- algorithm: native:difference
name: Test Difference A - B (basic)
params:
INPUT:
name: custom/overlay1_a.geojson
type: vector
OVERLAY:
name: custom/overlay1_b.geojson
type: vector
results:
OUTPUT:
name: expected/difference1_a_b.gml
type: vector
pk: id_a
compare:
fields:
fid: skip
geometry:
normalize: True
- algorithm: native:difference
name: Test Difference B - A (basic)
params:
INPUT:
name: custom/overlay1_b.geojson
type: vector
OVERLAY:
name: custom/overlay1_a.geojson
type: vector
results:
OUTPUT:
name: expected/difference1_b_a.gml
type: vector
pk: id_b
compare:
fields:
fid: skip
geometry:
normalize: True
- algorithm: native:difference
name: Difference points vs polys
params:
INPUT:
name: points.gml|layername=points
type: vector
OVERLAY:
name: polys.gml|layername=polys2
type: vector
results:
OUTPUT:
name: expected/difference_points_vs_polys.gml
type: vector
compare:
fields:
fid: skip
gml_id: skip
- algorithm: native:symmetricaldifference
name: Test Symmetrical Difference A - B (basic)
params:
INPUT:
name: custom/overlay1_a.geojson
type: vector
OVERLAY:
name: custom/overlay1_b.geojson
type: vector
results:
OUTPUT:
name: expected/symmetrical_difference1_a_b.gml
type: vector
pk: [id_a, id_b]
compare:
fields:
fid: skip
geometry:
normalize: True
- algorithm: native:symmetricaldifference
name: Test Symmetrical Difference B - A (basic)
params:
INPUT:
name: custom/overlay1_b.geojson
type: vector
OVERLAY:
name: custom/overlay1_a.geojson
type: vector
results:
OUTPUT:
name: expected/symmetrical_difference1_b_a.gml
type: vector
pk: [id_a, id_b]
compare:
fields:
fid: skip
geometry:
normalize: True
- algorithm: native:symmetricaldifference
name: Test Symmetrical Difference B - A (custom prefix)
params:
INPUT:
name: custom/overlay1_b.geojson
type: vector
OVERLAY:
name: custom/overlay1_a.geojson
type: vector
OVERLAY_FIELDS_PREFIX: pre_
results:
OUTPUT:
name: expected/symmetrical_difference_prefix.gml
type: vector
pk: [pre_id_a, id_b]
compare:
fields:
fid: skip
geometry:
normalize: True
- algorithm: native:union
name: Test Union of single layer
params:
INPUT:
name: custom/overlay0.geojson
type: vector
results:
OUTPUT:
name: expected/union0.gml
type: vector
compare:
unordered: true
fields:
fid: skip
geometry:
normalize: True
- algorithm: native:union
name: Test Union (basic)
params:
INPUT:
name: custom/overlay1_a.geojson
type: vector
OVERLAY:
name: custom/overlay1_b.geojson
type: vector
results:
OUTPUT:
name: expected/union1.gml
type: vector
pk: [id_a, id_b]
compare:
fields:
fid: skip
geometry:
normalize: True
- algorithm: native:union
name: Test Union (custom prefix)
params:
INPUT:
name: custom/overlay1_a.geojson
type: vector
OVERLAY:
name: custom/overlay1_b.geojson
type: vector
OVERLAY_FIELDS_PREFIX: pre_
results:
OUTPUT:
name: expected/union_prefix.gml
type: vector
pk: [id_a, pre_id_b]
compare:
fields:
fid: skip
geometry:
normalize: True
- algorithm: native:union
name: Test Union (geom types)
params:
INPUT:
name: custom/overlay3_a.geojson
type: vector
OVERLAY:
name: custom/overlay3_b.geojson
type: vector
results:
OUTPUT:
name: expected/union3.gml
type: vector
pk: [id_a, id_b]
compare:
fields:
fid: skip
geometry:
normalize: True
- algorithm: native:taperedbuffer
name: Tapered buffers (lines)
params:
END_WIDTH: 0.8
INPUT:
name: lines.gml
type: vector
SEGMENTS: 3
START_WIDTH: 0.4
results:
OUTPUT:
name: expected/tapered_buffer_line.gml
type: vector
compare:
geometry:
topo_equal_check: True
- algorithm: native:taperedbuffer
name: Tapered buffers (multiline)
params:
END_WIDTH: 0.8
INPUT:
name: multilines.gml
type: vector
SEGMENTS: 3
START_WIDTH: 0.4
results:
OUTPUT:
name:
- expected/tapered_buffer_multiline.gml
- expected/tapered_buffer_multilinev2.gml
type: vector
compare:
geometry:
topo_equal_check: True
normalize: True
- algorithm: native:bufferbym
name: Variable width buffer by m
params:
INPUT:
name: lines_m.shp
type: vector
SEGMENTS: 3
results:
OUTPUT:
name: expected/variable_width_buffer_by_m.gml
type: vector
compare:
geometry:
topo_equal_check: True
- algorithm: native:reclassifybytable
name: Reclassify by table
params:
INPUT_RASTER:
name: raster.tif
type: raster
NODATA_FOR_MISSING: false
NO_DATA: -9999.0
RANGE_BOUNDARIES: 0
RASTER_BAND: 1
TABLE:
- 1
- 850
- 3
- 850
- 1000
- 4
results:
OUTPUT:
hash: c29d14f71e8686f7445d53be646fce84702644f159fd0164ac38e861
type: rasterhash
- algorithm: native:reclassifybytable
name: Reclassify by table min <=
params:
INPUT_RASTER:
name: raster.tif
type: raster
NODATA_FOR_MISSING: false
NO_DATA: -9999.0
RANGE_BOUNDARIES: 1
RASTER_BAND: 1
TABLE:
- 1
- 843
- 3
- 843
- 1000
- 4
results:
OUTPUT:
hash: f055b582e4e5abcfa9cce6a69ceb7fac54791ad0d980003f1a23f4b1
type: rasterhash
- algorithm: native:reclassifybytable
name: Reclassify by table use original
params:
INPUT_RASTER:
name: raster.tif
type: raster
NODATA_FOR_MISSING: false
NO_DATA: -9999.0
RANGE_BOUNDARIES: 0
RASTER_BAND: 1
TABLE:
- 1
- 843
- 3
results:
OUTPUT:
hash: 4398ddc5d24b3bf968d9a6e0fbd800344b20880a57915bd50a90e1ba
type: rasterhash
- algorithm: native:reclassifybytable
name: Reclassify by table use nodata
params:
INPUT_RASTER:
name: raster.tif
type: raster
NODATA_FOR_MISSING: true
NO_DATA: -9999.0
RANGE_BOUNDARIES: 0
RASTER_BAND: 1
TABLE:
- 1
- 843
- 3
results:
OUTPUT:
hash: cea558f7e99a0564fef92a96cd8d6b59707d019f1751cb600ab00850
type: rasterhash
- algorithm: native:reclassifybytable
name: Reclassify by table infinite ranges
params:
DATA_TYPE: 5
INPUT_RASTER:
name: raster.tif
type: raster
NODATA_FOR_MISSING: false
NO_DATA: -9999.0
RANGE_BOUNDARIES: 0
RASTER_BAND: 1
TABLE:
- ''
- 850
- 3
- 850
- ''
- 4
results:
OUTPUT:
hash: c29d14f71e8686f7445d53be646fce84702644f159fd0164ac38e861
type: rasterhash
- algorithm: native:reclassifybylayer
name: Reclassify by layer
params:
INPUT_RASTER:
name: raster.tif
type: raster
INPUT_TABLE:
name: custom/reclassify_layer.gml
type: vector
MAX_FIELD: max
MIN_FIELD: min
NODATA_FOR_MISSING: false
NO_DATA: -9999.0
RANGE_BOUNDARIES: 0
RASTER_BAND: 1
VALUE_FIELD: value
results:
OUTPUT:
hash: c29d14f71e8686f7445d53be646fce84702644f159fd0164ac38e861
type: rasterhash
- algorithm: native:reclassifybylayer
name: Reclassify by layer with nulls
params:
DATA_TYPE: 5
INPUT_RASTER:
name: raster.tif
type: raster
INPUT_TABLE:
name: custom/reclassify_layer_nulls.gml
type: vector
MAX_FIELD: max
MIN_FIELD: min
NODATA_FOR_MISSING: false
NO_DATA: -9999.0
RANGE_BOUNDARIES: 0
RASTER_BAND: 1
VALUE_FIELD: value
results:
OUTPUT:
hash: c29d14f71e8686f7445d53be646fce84702644f159fd0164ac38e861
type: rasterhash
- algorithm: native:pixelstopolygons
name: Pixels to polygons
params:
FIELD_NAME: pix_val
INPUT_RASTER:
name: raster.tif
type: raster
RASTER_BAND: 1
results:
OUTPUT:
name: expected/vectorize.gml
type: vector
compare:
fields:
fid: skip
- algorithm: native:pixelstopoints
name: Pixels to points
params:
FIELD_NAME: VALUE
INPUT_RASTER:
name: raster.tif
type: raster
RASTER_BAND: 1
results:
OUTPUT:
name: expected/pixels_to_points.gml
type: vector
compare:
fields:
fid: skip
- algorithm: native:kmeansclustering
name: K means, points, 3 clusters
params:
CLUSTERS: 3
FIELD_NAME: CLUSTER_ID
INPUT:
name: points.gml
type: vector
results:
OUTPUT:
name: expected/kmeans_points_3.gml
type: vector
- algorithm: native:kmeansclustering
name: K means, points, 5 clusters
params:
CLUSTERS: 5
FIELD_NAME: CLUSTER_ID5
SIZE_FIELD_NAME: CLUSTER_SIZE5
INPUT:
name: points.gml
type: vector
results:
OUTPUT:
name: expected/kmeans_points_5.gml
type: vector
- algorithm: native:kmeansclustering
name: K means, lines
params:
CLUSTERS: 2
FIELD_NAME: CLUSTER_ID
INPUT:
name: lines.gml
type: vector
results:
OUTPUT:
name: expected/kmeans_lines.gml
type: vector
- algorithm: native:kmeansclustering
name: K means, polys
params:
CLUSTERS: 2
FIELD_NAME: CLUSTER_ID
INPUT:
name: polys.gml
type: vector
results:
OUTPUT:
name: expected/kmeans_polys.gml
type: vector
- algorithm: native:dbscanclustering
name: DBScan 5/3
params:
DBSCAN*: false
EPS: 3.0
FIELD_NAME: CLUSTER_ID
INPUT:
name: custom/points_weighted.gml
type: vector
MIN_SIZE: 5
results:
OUTPUT:
name: expected/dbscan_5_2.gml
type: vector
- algorithm: native:dbscanclustering
name: DBScan* 5/3
params:
DBSCAN*: true
EPS: 3.0
FIELD_NAME: CLUSTER_ID
INPUT:
name: custom/points_weighted.gml
type: vector
MIN_SIZE: 5
results:
OUTPUT:
name: expected/dbscan_star_5_2.gml
type: vector
- algorithm: native:dbscanclustering
name: DBScan no clusters
params:
DBSCAN*: false
EPS: 1.0
FIELD_NAME: CLUSTER_ID
INPUT:
name: custom/points_weighted.gml
type: vector
MIN_SIZE: 5
results:
OUTPUT:
name: expected/dbscan_no_clusters.gml
type: vector
- algorithm: native:dbscanclustering
name: DBScan multiple clusters
params:
DBSCAN*: false
EPS: 2.0
FIELD_NAME: CLUSTER_ID
INPUT:
name: custom/points_weighted.gml
type: vector
MIN_SIZE: 3
results:
OUTPUT:
name: expected/dbscan_multiple_clusters.gml
type: vector
- algorithm: native:stdbscanclustering
name: ST-DBScan multiple clusters
params:
DATETIME_FIELD: date
DBSCAN*: false
EPS: 5.0
EPS2: 86400000000.0
FIELD_NAME: CLUSTER_ID
INPUT:
name: custom/points_with_date.shp
type: vector
MIN_SIZE: 1
results:
OUTPUT:
name: expected/stdbscan_multiple_clusters.gml
type: vector
pk: id
- algorithm: qgis:rastersampling
name: Single band raster
params:
COLUMN_PREFIX: SAMPLE_
INPUT:
name: custom/sampling_points.gml
type: vector
RASTERCOPY:
name: dem.tif
type: raster
results:
OUTPUT:
name: expected/sampling_raster.gml
type: vector
compare:
fields:
fid: skip
- algorithm: native:filterverticesbym
name: Filter by m no max
params:
INPUT:
name: lines_m.shp
type: vector
MIN: 0.6
results:
OUTPUT:
name: expected/filter_by_m_no_max.shp
type: vector
- algorithm: native:filterverticesbym
name: Filter by m no min
params:
INPUT:
name: lines_m.shp
type: vector
MAX: 0.6
results:
OUTPUT:
name: expected/filter_by_m_no_min.shp
type: vector
- algorithm: native:filterverticesbym
name: Filter by m
params:
INPUT:
name: lines_m.shp
type: vector
MAX: 0.7
MIN: 0.4
results:
OUTPUT:
name: expected/filter_by_m.shp
type: vector
- algorithm: native:filterverticesbyz
name: Filter by z no max
params:
INPUT:
name: lines_z.shp
type: vector
MIN: 0.6
results:
OUTPUT:
name: expected/filter_by_z_no_max.shp
type: vector
- algorithm: native:filterverticesbyz
name: Filter by z no min
params:
INPUT:
name: lines_z.shp
type: vector
MAX: 0.6
results:
OUTPUT:
name: expected/filter_by_z_no_min.shp
type: vector
- algorithm: native:filterverticesbyz
name: Filter by z
params:
INPUT:
name: lines_z.shp
type: vector
MAX: 0.7
MIN: 0.4
results:
OUTPUT:
name: expected/filter_by_z.shp
type: vector
- algorithm: native:filterverticesbyz
name: Filter by z (points)
params:
INPUT:
name: multipointsz.gml
type: vector
MAX: 1.0
MIN: 1.0
results:
OUTPUT:
name: expected/filter_points_by_z.gml
type: vector
compare:
fields:
fid: skip
- algorithm: native:arraytranslatedfeatures
name: Array of point features
params:
COUNT: 3
DELTA_M: -0.4
DELTA_X: 0.1
DELTA_Y: -0.2
DELTA_Z: 0.3
INPUT:
name: points.gml
type: vector
results:
OUTPUT:
name: expected/feature_array.shp
type: vector
- algorithm: native:arrayoffsetlines
name: Array of offset (parallel) lines (GEOS < 3.11)
condition:
geos:
less_than: 31100
params:
COUNT: 3
INPUT:
name: lines.gml
type: vector
JOIN_STYLE: 1
MITER_LIMIT: 2.0
OFFSET: -0.2
SEGMENTS: 8
results:
OUTPUT:
name: expected/create_parallel_lines.gml
type: vector
- algorithm: native:arrayoffsetlines
name: Array of offset (parallel) lines (GEOS >= 3.11)
condition:
geos:
at_least: 31100
params:
COUNT: 3
INPUT:
name: lines.gml
type: vector
JOIN_STYLE: 1
MITER_LIMIT: 2.0
OFFSET: -0.2
SEGMENTS: 8
results:
OUTPUT:
name: expected/geos311/create_parallel_lines.gml
type: vector
- algorithm: native:setzfromraster
name: Drape points to z with scale factor
params:
BAND: 1
INPUT:
name: custom/sampling_points.gml
type: vector
NODATA: 0.0
RASTER:
name: dem.tif
type: raster
SCALE: 1.2
results:
OUTPUT:
name: expected/drape_points.shp
type: vector
- algorithm: native:setmfromraster
name: Drape points to m with scale factor
params:
BAND: 1
INPUT:
name: custom/sampling_points.gml
type: vector
NODATA: 0.0
RASTER:
name: dem.tif
type: raster
SCALE: 1.2
results:
OUTPUT:
name: expected/drape_points_m.shp
type: vector
- algorithm: native:setzfromraster
name: Drape lines to z
params:
BAND: 1
INPUT:
name: custom/dem_lines.shp
type: vector
NODATA: -9999.0
RASTER:
name: dem.tif
type: raster
SCALE: 1.0
results:
OUTPUT:
name: expected/drape_lines.shp
type: vector
- algorithm: native:setmfromraster
name: Drape lines to m
params:
BAND: 1
INPUT:
name: custom/dem_lines.shp
type: vector
NODATA: -9999.0
RASTER:
name: dem.tif
type: raster
SCALE: 1.0
results:
OUTPUT:
name: expected/drape_lines_m.shp
type: vector
- algorithm: native:setzfromraster
name: Drape points to z with offset
params:
BAND: 1
INPUT:
name: custom/sampling_points.gml
type: vector
NODATA: 0.0
RASTER:
name: dem.tif
type: raster
OFFSET: -20.0
results:
OUTPUT:
name: expected/drape_points_offset.shp
type: vector
- algorithm: native:setzfromraster
name: Drape points to z with scale and offset
params:
BAND: 1
INPUT:
name: custom/sampling_points.gml
type: vector
NODATA: 0.0
RASTER:
name: dem.tif
type: raster
SCALE: 1.2
OFFSET: 15.0
results:
OUTPUT:
name: expected/drape_points_scale_offset.shp
type: vector
- algorithm: native:linesubstring
name: Line substrings
params:
END_DISTANCE: 0.8
INPUT:
name: lines.gml
type: vector
START_DISTANCE: 0.2
results:
OUTPUT:
name: expected/line_substring.gml
type: vector
- algorithm: native:interpolatepoint
name: Interpolate points (line)
params:
DISTANCE: 1.0
INPUT:
name: lines.gml
type: vector
results:
OUTPUT:
name: expected/interpolate_point_lines.gml
type: vector
- algorithm: native:interpolatepoint
name: Interpolate points (polygons)
params:
DISTANCE: 2.0
INPUT:
name: polys.gml
type: vector
results:
OUTPUT:
name: expected/interpolate_point_polys.gml
type: vector
- algorithm: native:mergevectorlayers
name: Merge vector layers with conflicting feature ids
params:
LAYERS:
params:
- name: custom/pol.gpkg|layername=pol1
type: vector
- name: custom/pol.gpkg|layername=pol2
type: vector
- name: custom/pol.gpkg|layername=pol3
type: vector
type: multi
results:
OUTPUT:
# If you ever run into this test producing Polygons instead of MultiPolygons as output
# that is totally expected and you are invited to replace the file merged_pol.gpkg with
# a single polygon version.
name: ogr:dbname='expected/merged_pol.gpkg' table="output" (geom) sql=
uri: expected/merged_pol.gpkg|layername=merged_pol
type: vector
compare:
fields:
path: skip
- algorithm: native:removeduplicatesbyattribute
name: Remove dupes by attribute 1
params:
FIELDS:
- num_field1
INPUT:
name: custom/duplicate_attributes.gml
type: vector
results:
OUTPUT:
name: expected/remove_duplicates1.gml
type: vector
- algorithm: native:removeduplicatesbyattribute
name: Remove dupes by attribute 2
params:
FIELDS:
- num_field2
INPUT:
name: custom/duplicate_attributes.gml
type: vector
results:
OUTPUT:
name: expected/remove_duplicates2.gml
type: vector
- algorithm: native:removeduplicatesbyattribute
name: Remove dupes by attribute 3
params:
FIELDS:
- num_field2
- text_field
INPUT:
name: custom/duplicate_attributes.gml
type: vector
results:
DUPLICATES:
name: expected/remove_duplicates_dupes.gml
type: vector
OUTPUT:
name: expected/remove_duplicates3.gml
type: vector
- algorithm: native:forcerhr
name: Force right-hand-rule polys
params:
INPUT:
name: polys.gml|layername=polys2
type: vector
results:
OUTPUT:
name: expected/force_rhr_polys.gml
type: vector
- algorithm: native:forcerhr
name: Force right-hand-rule multipolys
params:
INPUT:
name: multipolys.gml|layername=multipolys
type: vector
results:
OUTPUT:
name: expected/force_rhr_multipolys.gml
type: vector
- algorithm: native:extractzvalues
name: Extract z, first value only
params:
COLUMN_PREFIX: z_
INPUT:
name: lines_z.shp
type: vector
SUMMARIES:
- 0
results:
OUTPUT:
name: expected/extract_z_first.shp
type: vector
- algorithm: native:extractzvalues
name: Extract z, all stats
params:
COLUMN_PREFIX: zs_
INPUT:
name: lines_z.shp
type: vector
SUMMARIES:
- 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
results:
OUTPUT:
name: expected/extract_z_all.shp
type: vector
- algorithm: native:extractzvalues
name: Extract z, points
params:
COLUMN_PREFIX: z_
INPUT:
name: custom/pointszm.shp
type: vector
SUMMARIES:
- 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
results:
OUTPUT:
name: expected/extract_z_points.shp
type: vector
- algorithm: native:extractzvalues
name: Extract z, no z values
params:
COLUMN_PREFIX: z_
INPUT:
name: lines.gml|layername=lines
type: vector
SUMMARIES:
- 0
results:
OUTPUT:
name: expected/extract_z_none.shp
type: vector
- algorithm: native:extractmvalues
name: Extract m first only
params:
COLUMN_PREFIX: m_
INPUT:
name: lines_m.shp
type: vector
SUMMARIES:
- 0
results:
OUTPUT:
name: expected/extract_m_first.shp
type: vector
- algorithm: native:extractmvalues
name: Extract m, all stats
params:
COLUMN_PREFIX: ms_
INPUT:
name: lines_m.shp
type: vector
SUMMARIES:
- 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
results:
OUTPUT:
name: expected/extract_m_all.shp
type: vector
- algorithm: native:extractmvalues
name: Extract m, points
params:
COLUMN_PREFIX: mp_
INPUT:
name: custom/pointszm.shp
type: vector
SUMMARIES:
- 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
results:
OUTPUT:
name: expected/extract_m_points.shp
type: vector
- algorithm: native:extractmvalues
name: Extract m, no m values present
params:
COLUMN_PREFIX: m_
INPUT:
name: points.gml|layername=points
type: vector
SUMMARIES:
- 0
results:
OUTPUT:
name: expected/extract_m_none.shp
type: vector
- algorithm: native:splitlinesbylength
name: Split multilines by length
params:
INPUT:
name: multilines.gml|layername=multilines
type: vector
LENGTH: 1.1
results:
OUTPUT:
name: expected/split_multiline_by_length.gml
type: vector
- algorithm: native:splitlinesbylength
name: Split lines by length
params:
INPUT:
name: lines.gml|layername=lines
type: vector
LENGTH: 2.2
results:
OUTPUT:
name: expected/split_lines_by_length.gml
type: vector
- algorithm: native:splitlinesbylength
name: Split linesz by length
params:
INPUT:
name: lines_z.shp
type: vector
LENGTH: 3.1
results:
OUTPUT:
name: expected/split_linez_by_length.shp
type: vector
- algorithm: native:deleteduplicategeometries
name: Delete Duplicates with null geometries
params:
INPUT:
name: lines.gml|layername=lines
type: vector
results:
OUTPUT:
name: expected/delete_duplicates_with_nulls.gml
type: vector
- algorithm: native:rasterlayerzonalstats
name: Raster layer zonal stats, same CRS
params:
BAND: 1
INPUT:
name: dem.tif
type: raster
ZONES:
name: custom/dem_zones.tif
type: raster
ZONES_BAND: 1
results:
OUTPUT_TABLE:
name: expected/raster_zonal_stats.csv
type: vector
pk:
- zone
compare:
fields:
sum:
cast: float
precision: 5
- algorithm: native:rasterlayerzonalstats
name: Raster layer zonal stats, reprojected
params:
BAND: 1
INPUT:
name: dem.tif
type: raster
ZONES:
name: custom/dem_zones_crs.tif
type: raster
ZONES_BAND: 1
results:
OUTPUT_TABLE:
name: expected/raster_zonal_stats_reproj.csv
type: vector
pk:
- zone
compare:
fields:
sum:
precision: 5
- algorithm: native:rasterlayerzonalstats
name: Raster layer zonal stats, zones ref
params:
BAND: 1
INPUT:
name: dem.tif
type: raster
REF_LAYER: 1
ZONES:
name: custom/dem_zones.tif
type: raster
ZONES_BAND: 1
results:
OUTPUT_TABLE:
name: expected/raster_zonal_stats_zone_ref.csv
type: vector
pk:
- zone
compare:
fields:
sum:
cast: float
precision: 5
- algorithm: native:rasterlayerzonalstats
name: Raster layer zonal stats reprojected, zones ref
params:
BAND: 1
INPUT:
name: dem.tif
type: raster
REF_LAYER: 1
ZONES:
name: custom/dem_zones_crs.tif
type: raster
ZONES_BAND: 1
results:
OUTPUT_TABLE:
name: expected/raster_zonal_stats_zone_crs_ref.csv
type: vector
pk:
- zone
compare:
fields:
sum:
cast: float
precision: -1
mean:
cast: float
precision: 3
- algorithm: native:antimeridiansplit
name: Antimeridian split, lines
ellipsoid: GRS80
project_crs: EPSG:4326
params:
INPUT:
name: custom/antimeridian_lines.gml|layername=antimeridian_lines
type: vector
results:
OUTPUT:
name: expected/antimeridian_lines_split.gml
type: vector
compare:
geometry:
precision: 4
pk:
- pk
- algorithm: native:antimeridiansplit
name: Antimeridian split, multilines
ellipsoid: GRS80
project_crs: EPSG:4326
params:
INPUT:
name: custom/antimeridian_multilines.gml|layername=antimeridian_multilines
type: vector
results:
OUTPUT:
name: expected/antimeridian_multilines_split.gml
type: vector
compare:
geometry:
precision: 4
pk:
- pk
- algorithm: native:rastersurfacevolume
name: Surface volume above
params:
BAND: 1
INPUT:
name: dem.tif
type: raster
LEVEL: 100.0
METHOD: 0
results:
OUTPUT_HTML_FILE:
name: expected/surface_vol_above.html
type: regex
rules:
- 'Volume: 0.064805'
- 'Pixel count: 95901'
- 'Area: 0.000959'
OUTPUT_TABLE:
name: expected/surface_vol_above.gml
type: vector
compare:
fields:
fid: skip
- algorithm: native:rastersurfacevolume
name: Surface volume Below
params:
BAND: 1
INPUT:
name: dem.tif
type: raster
LEVEL: 100.0
METHOD: 1
results:
OUTPUT_HTML_FILE:
name: expected/surface_vol_below.html
type: regex
rules:
- 'Volume: -0.00322225'
- 'Pixel count: 34600'
- 'Area: 0.00034599'
OUTPUT_TABLE:
name: expected/surface_vol_below.gml
type: vector
compare:
fields:
fid: skip
- algorithm: native:rastersurfacevolume
name: Surface volume subtract below
params:
BAND: 1
INPUT:
name: dem.tif
type: raster
LEVEL: 100.0
METHOD: 2
results:
OUTPUT_HTML_FILE:
name: expected/surface_vol_subtract.html
type: regex
rules:
- 'Volume: 0.0615830'
- 'Pixel count: 130550'
- 'Area: 0.00130549'
OUTPUT_TABLE:
name: expected/surface_vol_subtract.gml
type: vector
compare:
fields:
fid: skip
- algorithm: native:rastersurfacevolume
name: Surface volume add below
params:
BAND: 1
INPUT:
name: dem.tif
type: raster
LEVEL: 100.0
METHOD: 3
results:
OUTPUT_HTML_FILE:
name: expected/surface_vol_add.html
type: regex
rules:
- 'Volume: 0.06802752'
- 'Pixel count: 130550'
- 'Area: 0.00130549'
OUTPUT_TABLE:
name: expected/surface_vol_add.gml
type: vector
compare:
fields:
fid: skip
- algorithm: native:rastersurfacevolume
name: Surface volume above (meters)
params:
BAND: 1
INPUT:
name: custom/dem_crs.tif
type: raster
LEVEL: 150.0
METHOD: 0
results:
OUTPUT_HTML_FILE:
name: expected/surface_vol_above_crs.html
type: regex
rules:
- 'Volume: 413784918\.'
- 'Pixel count: 64692'
- 'Area: 11497732\.'
OUTPUT_TABLE:
name: expected/surface_vol_above_crs.gml
type: vector
compare:
fields:
volume:
cast: float
precision: 5
fid: skip
- algorithm: native:rastersurfacevolume
name: Surface volume below (meters)
params:
BAND: 1
INPUT:
name: custom/dem_crs.tif
type: raster
LEVEL: 150.0
METHOD: 1
results:
OUTPUT_HTML_FILE:
name: expected/surface_vol_below_crs.html
type: regex
rules:
- 'Volume: -479651884\.'
- 'Pixel count: 65660'
- 'Area: 11669775\.'
OUTPUT_TABLE:
name: expected/surface_vol_below_crs.gml
type: vector
compare:
fields:
volume:
cast: float
precision: 5
fid: skip
- algorithm: native:rastersurfacevolume
name: Surface volume subtract below (meters)
params:
BAND: 1
INPUT:
name: custom/dem_crs.tif
type: raster
LEVEL: 150.0
METHOD: 2
results:
OUTPUT_HTML_FILE:
name: expected/surface_vol_subtract_crs.html
type: regex
rules:
- 'Volume: -65866966\.'
- 'Pixel count: 130550'
- 'Area: 23202698\.'
OUTPUT_TABLE:
name: expected/surface_vol_subtract_crs.gml
type: vector
compare:
fields:
fid: skip
- algorithm: native:rastersurfacevolume
name: Surface volume add below (meters)
params:
BAND: 1
INPUT:
name: custom/dem_crs.tif
type: raster
LEVEL: 150.0
METHOD: 3
results:
OUTPUT_HTML_FILE:
name: expected/surface_vol_add_crs.html
type: regex
rules:
- 'Volume: 893436802\.'
- 'Pixel count: 130550'
- 'Area: 23202698\.'
OUTPUT_TABLE:
name: expected/surface_vol_add_crs.gml
type: vector
compare:
fields:
volume:
cast: float
precision: 5
fid: skip
- algorithm: native:rastersurfacevolume
name: Surface volume with gaps
params:
BAND: 1
INPUT:
name: custom/dem_gaps.tif
type: raster
LEVEL: 101.0
METHOD: 0
results:
OUTPUT_TABLE:
name: expected/surface_vol_gaps.gml
type: vector
compare:
fields:
fid: skip
- algorithm: native:dissolve
name: Test dissolve with consecutive lines
params:
INPUT:
name: custom/consecutivelines.gml|layername=consecutivelines
type: vector
results:
OUTPUT:
name: expected/dissolved_consecutive_lines.gml
type: vector
- algorithm: native:rasterbooleanand
name: Boolean AND, nodata
params:
DATA_TYPE: 5
INPUT:
params:
- name: custom/raster_boolean1.tif
type: raster
- name: custom/raster_boolean2.tif
type: raster
- name: custom/raster_boolean3.tif
type: raster
type: multi
NODATA_AS_FALSE: false
NO_DATA: -9999.0
REF_LAYER:
name: custom/raster_boolean1.tif
type: raster
results:
OUTPUT:
hash: 96799caed50406d3e31e05a182a6872231f800f01dea126aa9fbafdd
type: rasterhash
- algorithm: native:rasterbooleanand
name: Boolean AND, nodata as false
params:
DATA_TYPE: 5
INPUT:
params:
- name: custom/raster_boolean1.tif
type: raster
- name: custom/raster_boolean2.tif
type: raster
- name: custom/raster_boolean3.tif
type: raster
type: multi
NODATA_AS_FALSE: true
NO_DATA: -9999.0
REF_LAYER:
name: custom/raster_boolean1.tif
type: raster
results:
OUTPUT:
hash: bf225380193226957a2210dc45a9c10dffac5dadcee932459e243456
type: rasterhash
- algorithm: native:rasterbooleanand
name: Boolean AND, resampling
params:
DATA_TYPE: 5
INPUT:
params:
- name: custom/raster_boolean1.tif
type: raster
- name: custom/raster_boolean2.tif
type: raster
- name: custom/raster_boolean3_resample.tif
type: raster
type: multi
NODATA_AS_FALSE: false
NO_DATA: -999.0
REF_LAYER:
name: custom/raster_boolean3.tif
type: raster
results:
OUTPUT:
hash: 9c7f3070ad53b98ad9f42c3f758546268000043e990fbb38495d3c86
type: rasterhash
- algorithm: native:rasterbooleanand
name: Boolean AND resample, nodata as false
params:
DATA_TYPE: 5
INPUT:
params:
- name: custom/raster_boolean1.tif
type: raster
- name: custom/raster_boolean2.tif
type: raster
- name: custom/raster_boolean3_resample.tif
type: raster
type: multi
NODATA_AS_FALSE: true
NO_DATA: -9999.0
REF_LAYER:
name: custom/raster_boolean3.tif
type: raster
results:
OUTPUT:
hash: 1de336faba85a6b51684bda85b4f3b954b7e54486632352e05c9fab3
type: rasterhash
- algorithm: native:rasterbooleanand
name: Boolean AND, reference layer
params:
DATA_TYPE: 5
INPUT:
params:
- name: custom/raster_boolean1.tif
type: raster
- name: custom/raster_boolean2.tif
type: raster
- name: custom/raster_boolean3.tif
type: raster
type: multi
NODATA_AS_FALSE: false
NO_DATA: -9999.0
REF_LAYER:
name: custom/raster_boolean3_resample.tif
type: raster
results:
OUTPUT:
hash: eb41f92cb1198f1e4bed71e4a78d4fe2d3b35462a3949588d85cc818
type: rasterhash
- algorithm: native:rasterlogicalor
name: Boolean OR
params:
DATA_TYPE: 5
INPUT:
params:
- name: custom/raster_boolean1.tif
type: raster
- name: custom/raster_boolean2.tif
type: raster
- name: custom/raster_boolean3.tif
type: raster
type: multi
NODATA_AS_FALSE: false
NO_DATA: -9999.0
REF_LAYER:
name: custom/raster_boolean1.tif
type: raster
results:
OUTPUT:
hash: d9fe5b26cf76ff58674fd6adeb1933f4b5c9b39ca6f57b876455f167
type: rasterhash
- algorithm: native:rasterlogicalor
name: Boolean OR, nodata as false
params:
DATA_TYPE: 5
INPUT:
params:
- name: custom/raster_boolean1.tif
type: raster
- name: custom/raster_boolean2.tif
type: raster
- name: custom/raster_boolean3.tif
type: raster
type: multi
NODATA_AS_FALSE: true
NO_DATA: -9999.0
REF_LAYER:
name: custom/raster_boolean1.tif
type: raster
results:
OUTPUT:
hash: de7a8dabce3872e6ef1acd4821f7f550ac41a43d5b5914ab4474cec1
type: rasterhash
- algorithm: native:rasterlogicalor
name: Boolean OR resample
params:
DATA_TYPE: 5
INPUT:
params:
- name: custom/raster_boolean1.tif
type: raster
- name: custom/raster_boolean2.tif
type: raster
- name: custom/raster_boolean3_resample.tif
type: raster
type: multi
NODATA_AS_FALSE: false
NO_DATA: -9999.0
REF_LAYER:
name: custom/raster_boolean3.tif
type: raster
results:
OUTPUT:
hash: 2cd2f073cf337264140c1e5e3f162d5d134a731a094f1e1109e3ce12
type: rasterhash
- algorithm: native:rasterlogicalor
name: Boolean OR resample, nodata as false
params:
DATA_TYPE: 5
INPUT:
params:
- name: custom/raster_boolean1.tif
type: raster
- name: custom/raster_boolean2.tif
type: raster
- name: custom/raster_boolean3_resample.tif
type: raster
type: multi
NODATA_AS_FALSE: true
NO_DATA: -9999.0
REF_LAYER:
name: custom/raster_boolean3.tif
type: raster
results:
OUTPUT:
hash: d344a9306b7453c3faaef4558a9187da5525b0c90c6a04502bf15f1b
type: rasterhash
- algorithm: native:rasterlogicalor
name: Boolean OR, reference layer
params:
DATA_TYPE: 5
INPUT:
params:
- name: custom/raster_boolean1.tif
type: raster
- name: custom/raster_boolean2.tif
type: raster
- name: custom/raster_boolean3.tif
type: raster
type: multi
NODATA_AS_FALSE: false
NO_DATA: -9999.0
REF_LAYER:
name: custom/raster_boolean3_resample.tif
type: raster
results:
OUTPUT:
hash: 4e395a2151aba7558efedd43a33c85bbaae451ebcccef9a6dac86de4
type: rasterhash
- algorithm: native:addxyfields
name: Add XY 4326
params:
CRS: EPSG:4326
INPUT:
name: points.gml|layername=points
type: vector
PREFIX: ''
results:
OUTPUT:
name: expected/add_xy_4326.gml
type: vector
- algorithm: native:addxyfields
name: Add XY 3785
params:
CRS: EPSG:3785
INPUT:
name: points.gml|layername=points
type: vector
PREFIX: p_
results:
OUTPUT:
name: expected/add_xy_3857.gml
type: vector
compare:
fields:
p_x:
precision: 6
p_y:
precision: 6
- algorithm: native:joinbynearest
name: Join by nearest polys to points
params:
INPUT:
name: snap_points.gml|layername=snap_points
type: vector
INPUT_2:
name: snap_polys.gml|layername=snap_polys
type: vector
NEIGHBORS: 1
PREFIX: ''
results:
OUTPUT:
name: expected/nearest_polys_to_points.gml
type: vector
- algorithm: native:joinbynearest
name: Nearest polys to points, with options
params:
FIELDS_TO_COPY:
- fid
INPUT:
name: snap_points.gml|layername=snap_points
type: vector
INPUT_2:
name: snap_polys.gml|layername=snap_polys
type: vector
MAX_DISTANCE: 3.5
NEIGHBORS: 2
PREFIX: j_
results:
OUTPUT:
name: expected/nearest_polys_to_points_options.gml
type: vector
- algorithm: native:joinbynearest
name: Nearest lines to polys
params:
INPUT:
name: snap_polys.gml|layername=snap_polys
type: vector
INPUT_2:
name: snap_lines.gml|layername=snap_lines
type: vector
NEIGHBORS: 1
PREFIX: ''
results:
OUTPUT:
name: expected/nearest_lines_to_polys.gml
type: vector
pk: [fid,fid_2]
- algorithm: native:joinbynearest
name: Nearest lines to polys, max distance 0
params:
INPUT:
name: snap_polys.gml|layername=snap_polys
type: vector
INPUT_2:
name: snap_lines.gml|layername=snap_lines
type: vector
MAX_DISTANCE: 0.0
NEIGHBORS: 1
PREFIX: ''
results:
OUTPUT:
name: expected/nearest_lines_to_polys_max_distance_0.gml
type: vector
pk: [fid,fid_2]
- algorithm: native:joinbynearest
name: Nearest points to lines, with max distance
params:
INPUT:
name: snap_lines.gml|layername=snap_lines
type: vector
INPUT_2:
name: snap_points.gml|layername=snap_points
type: vector
MAX_DISTANCE: 1.5
NEIGHBORS: 1
PREFIX: ''
results:
OUTPUT:
name: expected/nearest_points_to_lines.gml
type: vector
- algorithm: native:joinbynearest
name: Nearest points to lines, reprojected
params:
INPUT:
name: custom/snap_lines_3857.gml|layername=snap_lines_3857
type: vector
INPUT_2:
name: snap_points.gml|layername=snap_points
type: vector
NEIGHBORS: 1
PREFIX: ''
results:
OUTPUT:
name: expected/nearest_points_to_reproj_lines.gml
type: vector
compare:
fields:
distance:
precision: 5
feature_x:
precision: 5
nearest_x:
precision: 5
feature_y:
precision: 5
nearest_y:
precision: 5
- algorithm: native:joinbynearest
name: Nearest lines to points, reprojected
params:
INPUT:
name: snap_points.gml|layername=snap_points
type: vector
INPUT_2:
name: custom/snap_lines_3857.gml|layername=snap_lines_3857
type: vector
NEIGHBORS: 1
PREFIX: ''
results:
OUTPUT:
name: expected/nearest_lines_to_points_reprojected.gml
type: vector
compare:
fields:
distance:
precision: 5
nearest_y:
precision: 5
- algorithm: native:joinbynearest
name: Join to nearest, self join
params:
DISCARD_NONMATCHING: false
INPUT:
name: snap_points.gml|layername=snap_points
type: vector
INPUT_2:
name: snap_points.gml|layername=snap_points
type: vector
NEIGHBORS: 1
PREFIX: ''
results:
OUTPUT:
name: expected/join_to_nearest_self.gml
type: vector
- algorithm: native:joinbynearest
name: Join to nearest 2, self join
params:
DISCARD_NONMATCHING: false
INPUT:
name: snap_points.gml|layername=snap_points
type: vector
INPUT_2:
name: snap_points.gml|layername=snap_points
type: vector
NEIGHBORS: 2
PREFIX: ''
results:
OUTPUT:
name: expected/join_to_nearest_self_2.gml
type: vector
- algorithm: native:joinbynearest
name: Join to nearest, discard no matching
params:
DISCARD_NONMATCHING: true
INPUT:
name: snap_points.gml|layername=snap_points
type: vector
INPUT_2:
name: snap_lines.gml|layername=snap_lines
type: vector
MAX_DISTANCE: 1.0
NEIGHBORS: 1
PREFIX: ''
results:
OUTPUT:
name: expected/join_points_to_layers_discard.gml
type: vector
- algorithm: native:joinbynearest
name: Join by nearest, no matching sink
params:
DISCARD_NONMATCHING: true
INPUT:
name: snap_points.gml|layername=snap_points
type: vector
INPUT_2:
name: snap_lines.gml|layername=snap_lines
type: vector
MAX_DISTANCE: 1.0
NEIGHBORS: 1
PREFIX: ''
results:
NON_MATCHING:
name: expected/join_to_nearest_no_matches.gml
type: vector
- algorithm: native:joinbynearest
name: Join by nearest field unordered
params:
INPUT:
name: points.gml|layername=points
type: vector
INPUT_2:
name: airports.gml|layername=airports
type: vector
NEIGHBORS: 1
PREFIX: ''
FIELDS_TO_COPY:
- USE
- NAME
- fk_region
- ELEV
results:
OUTPUT:
name: expected/nearest_field_subset_unordered.gml
type: vector
compare:
fields:
distance:
precision: 1
feature_x: skip
nearest_x: skip
feature_y: skip
nearest_y: skip
- name: Generate XYZ tiles (Directory)
algorithm: qgis:tilesxyzdirectory
project: ../../../../../tests/testdata/xyztiles.qgs
project_crs: EPSG:3857
params:
EXTENT: -12535000,-9883000,3360000,5349000 [EPSG:3857]
ZOOM_MIN: 1
ZOOM_MAX: 3
TILE_FORMAT: 0 # png
TMS_CONVENTION: false
TILE_WIDTH: 256
TILE_HEIGHT: 256
results:
OUTPUT_DIRECTORY:
type: directory
name: expected/xyztiles
- algorithm: native:writevectortiles_xyz
name: Generate vector tiles (Directory)
params:
LAYERS:
type: vrtlayers
params:
- layer: ../../../../../tests/testdata/lines.shp
- layer: ../../../../../tests/testdata/points.shp
- layer: ../../../../../tests/testdata/polys.shp
MAX_ZOOM: 3
MIN_ZOOM: 1
XYZ_TEMPLATE: '{z}/{x}/{y}.pbf'
results:
OUTPUT_DIRECTORY:
type: directory
name: expected/xyztiles_vector
- algorithm: native:calculatevectoroverlaps
name: Overlap analysis 1
ellipsoid: GRS80
project_crs: EPSG:4326
params:
INPUT:
name: custom/overlay0.geojson
type: vector
LAYERS:
params:
- name: custom/overlay1_a.geojson
type: vector
- name: custom/overlay1_b.geojson
type: vector
- name: custom/overlay2_a.geojson
type: vector
- name: custom/overlay2_b.geojson
type: vector
- name: custom/overlay3_a.geojson
type: vector
- name: custom/overlay3_b.geojson
type: vector
type: multi
results:
OUTPUT:
name: expected/overlap_analysis_1.gml
type: vector
compare:
fields:
custom_overlay1_a.geojson_area:
precision: 5
custom_overlay1_a.geojson_pc:
precision: 5
custom_overlay1_b.geojson_area:
precision: 5
custom_overlay1_b.geojson_pc:
precision: 5
custom_overlay2_a.geojson_area:
precision: 5
custom_overlay2_a.geojson_pc:
precision: 5
custom_overlay2_b.geojson_area:
precision: 5
custom_overlay2_b.geojson_pc:
precision: 5
custom_overlay3_a.geojson_area:
precision: 5
custom_overlay3_a.geojson_pc:
precision: 5
custom_overlay3_b.geojson_area:
precision: 4
custom_overlay3_b.geojson_pc:
precision: 3
fid: skip
- algorithm: native:calculatevectoroverlaps
name: Overlap analysis reprojected
ellipsoid: GRS80
project_crs: EPSG:4326
params:
INPUT:
name: custom/overlay0_4326.gml|layername=overlay0_4326
type: vector
LAYERS:
params:
- name: custom/overlay1_a.geojson
type: vector
- name: custom/overlay1_b.geojson
type: vector
- name: custom/overlay2_a.geojson
type: vector
- name: custom/overlay2_b.geojson
type: vector
- name: custom/overlay3_a.geojson
type: vector
- name: custom/overlay3_b.geojson
type: vector
type: multi
results:
OUTPUT:
name: expected/overlap_analysis_4326.gml
type: vector
compare:
fields:
custom_overlay2_a.geojson_area:
precision: 8
custom_overlay2_a.geojson_pc:
precision: 7
custom_overlay2_b.geojson_area:
precision: 8
custom_overlay2_b.geojson_pc:
precision: 7
custom_overlay1_a.geojson_area:
precision: 5
custom_overlay1_a.geojson_pc:
precision: 5
custom_overlay1_b.geojson_area:
precision: 5
custom_overlay1_b.geojson_pc:
precision: 5
custom_overlay3_a.geojson_area:
precision: 5
custom_overlay3_a.geojson_pc:
precision: 5
custom_overlay3_b.geojson_area:
precision: 4
custom_overlay3_b.geojson_pc:
precision: 3
fid: skip
- algorithm: native:calculatevectoroverlaps
name: Overlap analysis 3, reordered inputs
ellipsoid: GRS80
project_crs: EPSG:4326
params:
INPUT:
name: custom/overlay0.geojson
type: vector
LAYERS:
params:
- name: custom/overlay3_b.geojson
type: vector
- name: custom/overlay1_b.geojson
type: vector
- name: custom/overlay2_a.geojson
type: vector
- name: custom/overlay2_b.geojson
type: vector
- name: custom/overlay1_a.geojson
type: vector
- name: custom/overlay3_a.geojson
type: vector
type: multi
results:
OUTPUT:
name: expected/overlap_analysis_3.gml
type: vector
compare:
fields:
custom_overlay1_a.geojson_area:
precision: 8
custom_overlay1_a.geojson_pc:
precision: 3
custom_overlay1_b.geojson_area:
precision: 8
custom_overlay1_b.geojson_pc:
precision: 3
custom_overlay2_a.geojson_area:
precision: 8
custom_overlay2_a.geojson_pc:
precision: 3
custom_overlay2_b.geojson_area:
precision: 8
custom_overlay2_b.geojson_pc:
precision: 3
custom_overlay3_a.geojson_area:
precision: 8
custom_overlay3_a.geojson_pc:
precision: 3
custom_overlay3_b.geojson_area:
precision: 4
custom_overlay3_b.geojson_pc:
precision: 3
fid: skip
- algorithm: native:splitfeaturesbycharacter
name: Split features by character
params:
CHAR: B
FIELD: val
INPUT:
name: custom/split_points.shp|layername=split_points
type: vector
REGEX: false
results:
OUTPUT:
name: expected/split_by_char_a.gml
type: vector
compare:
fields:
fid: skip
- algorithm: native:splitfeaturesbycharacter
name: Split features by character 2
params:
CHAR: aB
FIELD: val
INPUT:
name: custom/split_points.shp|layername=split_points
type: vector
REGEX: false
results:
OUTPUT:
name: expected/split_by_char_b.gml
type: vector
compare:
fields:
fid: skip
- algorithm: native:splitfeaturesbycharacter
name: Split features by character regex
params:
CHAR: \d
FIELD: val2
INPUT:
name: custom/split_points.shp|layername=split_points
type: vector
REGEX: true
results:
OUTPUT:
name: expected/split_by_char_regex.gml
type: vector
compare:
fields:
fid: skip
- algorithm: native:affinetransform
name: Affine transform
params:
DELTA_M: 4.0
DELTA_X: 1.0
DELTA_Y: 2.0
DELTA_Z: 3.0
INPUT:
name: custom/pointszm.shp
type: vector
ROTATION_Z: 45.0
SCALE_M: 1.4
SCALE_X: 1.1
SCALE_Y: 1.2
SCALE_Z: 1.3
results:
OUTPUT:
name: expected/affine_transform.gml
type: vector
- algorithm: native:renametablefield
name: Rename table field
params:
FIELD: id2
INPUT:
name: points.gml|layername=points
type: vector
NEW_NAME: id_renamed
results:
OUTPUT:
name: expected/renamed_field.gml
type: vector
- algorithm: native:filterbygeometry
name: Filter by geometry type polygon input
params:
INPUT:
name: polys.gml|layername=polys2
type: vector
results:
LINES:
name: expected/filter_geom_polys_line.gml
type: vector
compare:
fields:
fid: skip
ignore_crs_check: true
NO_GEOMETRY:
name: expected/filter_geom_polys_null.gml
type: vector
compare:
fields:
fid: skip
POINTS:
name: expected/filter_geom_polys_point.gml
type: vector
compare:
fields:
fid: skip
ignore_crs_check: true
POLYGONS:
name: expected/filter_geom_polys_poly.gml
type: vector
compare:
fields:
fid: skip
ignore_crs_check: true
- algorithm: native:filterbygeometry
name: Filter by geometry type point input
params:
INPUT:
name: points.gml|layername=points
type: vector
results:
LINES:
name: expected/filter_geom_points_line.gml
type: vector
compare:
fields:
fid: skip
ignore_crs_check: true
NO_GEOMETRY:
name: expected/filter_geom_points_null.gml
type: vector
compare:
fields:
fid: skip
POINTS:
name: expected/filter_geom_points_point.gml
type: vector
compare:
fields:
fid: skip
ignore_crs_check: true
POLYGONS:
name: expected/filter_geom_points_poly.gml
type: vector
compare:
fields:
fid: skip
ignore_crs_check: true
- algorithm: native:filterbygeometry
name: Filter by geometry type line input
params:
INPUT:
name: lines.gml|layername=lines
type: vector
results:
LINES:
name: expected/filter_geom_lines_line.gml
type: vector
compare:
fields:
fid: skip
ignore_crs_check: true
NO_GEOMETRY:
name: expected/filter_geom_lines_null.gml
type: vector
compare:
fields:
fid: skip
POINTS:
name: expected/filter_geom_lines_point.gml
type: vector
compare:
fields:
fid: skip
ignore_crs_check: true
POLYGONS:
name: expected/filter_geom_lines_poly.gml
type: vector
compare:
fields:
fid: skip
ignore_crs_check: true
- algorithm: native:rescaleraster
name: Rescale raster (original nodata)
params:
BAND: 1
INPUT:
name: dem.tif
type: raster
MAXIMUM: 65535.0
MINIMUM: 0.0
results:
OUTPUT:
hash: 63610fb1f7ec3d6530591b1eb479355b52cedfebf6331cec77f2b35c
type: rasterhash
- algorithm: native:rescaleraster
name: Rescale raster (new nodata)
params:
BAND: 1
INPUT:
name: dem.tif
type: raster
MAXIMUM: 65535.0
MINIMUM: 0.0
NODATA: -255.0
results:
OUTPUT:
hash: 63610fb1f7ec3d6530591b1eb479355b52cedfebf6331cec77f2b35c
type: rasterhash
- algorithm: native:angletonearest
name: Align points to nearest line, no max distance
params:
APPLY_SYMBOLOGY: true
FIELD_NAME: rotation
INPUT:
name: points.gml|layername=points
type: vector
REFERENCE_LAYER:
name: custom/snap_lines_3857.gml|layername=snap_lines_3857
type: vector
results:
OUTPUT:
name: expected/rotated_points_no_max.gml
type: vector
compare:
fields:
rotation:
precision: 2
- algorithm: native:angletonearest
name: Align points to nearest line, max distance
params:
APPLY_SYMBOLOGY: true
FIELD_NAME: angle
INPUT:
name: points.gml|layername=points
type: vector
MAX_DISTANCE: 1.0
REFERENCE_LAYER:
name: custom/snap_lines_3857.gml|layername=snap_lines_3857
type: vector
results:
OUTPUT:
name: expected/rotated_points_max.gml
type: vector
compare:
fields:
angle:
precision: 2
- algorithm: native:deletecolumn
name: Delete one column
params:
COLUMN:
- fid
INPUT:
name: polys.gml|layername=polys2
type: vector
results:
OUTPUT:
name: expected/drop_fields_one.gml
type: vector
compare:
fields:
fid: skip
- algorithm: native:deletecolumn
name: Delete two columns
params:
COLUMN:
- name
- floatval
INPUT:
name: polys.gml|layername=polys2
type: vector
results:
OUTPUT:
name: expected/delete_columns_two.gml
type: vector
compare:
fields:
fid: skip
- algorithm: native:deletecolumn
name: Delete three columns
params:
COLUMN:
- fid
- intval
- doesntexist # should NOT cause algorithm to abort, just a warning -- otherwise we can't make flexible models
- floatval
INPUT:
name: polys.gml|layername=polys2
type: vector
results:
OUTPUT:
name: expected/delete_columns_three.gml
type: vector
compare:
fields:
fid: skip
- algorithm: native:retainfields
name: Retain one field
params:
FIELDS:
- name
INPUT:
name: polys.gml|layername=polys2
type: vector
results:
OUTPUT:
name: expected/retain_fields_one.gml
type: vector
compare:
fields:
fid: skip
- algorithm: native:retainfields
name: Retain two fields
params:
FIELDS:
- floatval
- name
INPUT:
name: polys.gml|layername=polys2
type: vector
results:
OUTPUT:
name: expected/retain_fields_two.gml
type: vector
compare:
fields:
fid: skip
- algorithm: native:retainfields
name: Retain three fields
params:
FIELDS:
- name
- floatval
- doesntexist # should NOT cause algorithm to abort, just a warning -- otherwise we can't make flexible models
- intval
INPUT:
name: polys.gml|layername=polys2
type: vector
results:
OUTPUT:
name: expected/retain_fields_three.gml
type: vector
compare:
fields:
fid: skip
- algorithm: native:extractwithindistance
name: Points within distance
params:
DISTANCE: 0.8
INPUT:
name: points.gml|layername=points
type: vector
REFERENCE:
name: lines.gml|layername=lines
type: vector
results:
OUTPUT:
name: expected/points_within_distance.gml
type: vector
pk: id
- algorithm: native:extractwithindistance
name: Lines within distance
params:
DISTANCE: 0.8
INPUT:
name: lines.gml|layername=lines
type: vector
REFERENCE:
name: points.gml|layername=points
type: vector
results:
OUTPUT:
name: expected/lines_within_distance.gml
type: vector
- algorithm: native:extractwithindistance
name: Points within distance reprojected
params:
DISTANCE: 0.7
INPUT:
name: points.gml|layername=points
type: vector
REFERENCE:
name: custom/snap_lines_3857.shp
type: vector
results:
OUTPUT:
name: expected/points_within_distance_transform.gml
type: vector
- algorithm: native:extractwithindistance
name: Lines within distance reprojected
params:
DISTANCE: 50000.0
INPUT:
name: custom/snap_lines_3857.shp
type: vector
REFERENCE:
name: points.gml|layername=points
type: vector
results:
OUTPUT:
name: expected/lines_within_distance_transform.gml
type: vector
- algorithm: native:shortestline
name: Test native:shortestline using centroid destination and matching CRSs
project_crs: EPSG:3857
params:
DESTINATION:
name: custom/snap_lines_3857.shp
type: vector
METHOD: '1'
NEIGHBORS: 1
SOURCE:
name: custom/points_distance_3857.shp
type: vector
results:
OUTPUT:
name: expected/shortest_line_point_to_lineCentroid_3857.shp
type: vector
- algorithm: native:shortestline
name: Test native:shortestline using nearest point on line geometry destination and matching CRSs
project_crs: EPSG:3857
params:
DESTINATION:
name: custom/snap_lines_3857.shp
type: vector
METHOD: '0'
NEIGHBORS: 1
SOURCE:
name: custom/points_distance_3857.shp
type: vector
results:
OUTPUT:
name: expected/shortest_line_point_to_line_3857.shp
type: vector
- algorithm: native:shortestline
name: Test native:shortestline using nearest point on polygon geometry destination and differing CRSs
params:
DESTINATION:
name: custom/polys_epsg31256.shp
type: vector
METHOD: '0'
NEIGHBORS: 1
SOURCE:
name: custom/points.shp
type: vector
results:
OUTPUT:
name: expected/shortest_line_point_to_polygon_4326_to_31256.shp
type: vector
compare:
geometry:
precision: 4
fields:
distance:
precision: 4
- algorithm: native:shortestline
name: Test native:shortestline using nearest point on line geometry destination and differing CRSs
params:
DESTINATION:
name: custom/snap_lines_3857.shp
type: vector
METHOD: '0'
NEIGHBORS: 1
SOURCE:
name: custom/points.shp
type: vector
results:
OUTPUT:
name: expected/shortest_line_point_to_line_4326_to_3857.shp
type: vector
compare:
fields:
distance:
precision: 4
- algorithm: native:joinattributestable
name: Test native:joinattributestable with name conflict, fix for issue 47650
params:
DISCARD_NONMATCHING: true
FIELD: UNIDAD_CONSTRUCCION_ID
FIELD_2: ID_2
INPUT:
name: custom/join_attributes_table_base_table.gml|layername=join_attributes_table_base_table
type: vector
INPUT_2:
name: custom/join_attributes_table_secondary_table.gml|layername=join_attributes_table_secondary_table
type: vector
METHOD: 0
PREFIX: ''
results:
OUTPUT:
name: expected/join_attributes_table_issue_47650.gml
type: vector
- algorithm: native:joinattributestable
name: Join by attribute ordered field subet
params:
DISCARD_NONMATCHING: true
FIELD: id
FIELDS_TO_COPY:
- fid
- fk_region
- ELEV
- NAME
FIELD_2: ID
INPUT:
name: points.gml|layername=points
type: vector
INPUT_2:
name: airports.gml|layername=airports
type: vector
METHOD: 1
PREFIX: ''
results:
OUTPUT:
name: expected/join_attributes_subset_ordered.gml
type: vector
- algorithm: native:joinattributestable
name: Join by attribute unordered field subset
params:
DISCARD_NONMATCHING: true
FIELD: id
FIELDS_TO_COPY:
- ELEV
- NAME
- fk_region
- fid
FIELD_2: ID
INPUT:
name: points.gml|layername=points
type: vector
INPUT_2:
name: airports.gml|layername=airports
type: vector
METHOD: 1
PREFIX: ''
results:
OUTPUT:
name: expected/join_attributes_subset_unordered.gml
type: vector
# See ../README.md for a description of the file format
|