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 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423 14424 14425 14426 14427 14428 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511 14512 14513 14514 14515 14516 14517 14518 14519 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534 14535 14536 14537 14538 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 14742 14743 14744 14745 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 15105 15106 15107 15108 15109 15110 15111 15112 15113 15114 15115 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483 15484 15485 15486 15487 15488 15489 15490 15491 15492 15493 15494 15495 15496 15497 15498 15499 15500 15501 15502 15503 15504 15505 15506 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667 15668 15669 15670 15671 15672 15673 15674 15675 15676 15677 15678 15679 15680 15681 15682 15683 15684 15685 15686 15687 15688 15689 15690 15691 15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876 15877 15878 15879 15880 15881 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909 15910 15911 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051 16052 16053 16054 16055 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169 16170 16171 16172 16173 16174 16175 16176 16177 16178 16179 16180 16181 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195 16196 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 16302 16303 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 16315 16316 16317 16318 16319 16320 16321 16322 16323 16324 16325 16326 16327 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393 16394 16395 16396 16397 16398 16399 16400 16401 16402 16403 16404 16405 16406 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423 16424 16425 16426 16427 16428 16429 16430 16431 16432 16433 16434 16435 16436 16437 16438 16439 16440 16441 16442 16443 16444 16445 16446 16447 16448 16449 16450 16451 16452 16453 16454 16455 16456 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 16474 16475 16476 16477 16478 16479 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 16490 16491 16492 16493 16494 16495 16496 16497 16498 16499 16500 16501 16502 16503 16504 16505 16506 16507 16508 16509 16510 16511 16512 16513 16514 16515 16516 16517 16518 16519 16520 16521 16522 16523 16524 16525 16526 16527 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567 16568 16569 16570 16571 16572 16573 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584 16585 16586 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 16621 16622 16623 16624 16625 16626 16627 16628 16629 16630 16631 16632 16633 16634 16635 16636 16637 16638 16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 16745 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755 16756 16757 16758 16759 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098 17099 17100 17101 17102 17103 17104 17105 17106 17107 17108 17109 17110 17111 17112 17113 17114 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124 17125 17126 17127 17128 17129 17130 17131 17132 17133 17134 17135 17136 17137 17138 17139 17140 17141 17142 17143 17144 17145 17146 17147 17148 17149 17150 17151 17152 17153 17154 17155 17156 17157 17158 17159 17160 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178 17179 17180 17181 17182 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 17199 17200 17201 17202 17203 17204 17205 17206 17207 17208 17209 17210 17211 17212 17213 17214 17215 17216 17217 17218 17219 17220 17221 17222 17223 17224 17225 17226 17227 17228 17229 17230 17231 17232 17233 17234 17235 17236 17237 17238 17239 17240 17241 17242 17243 17244 17245 17246 17247 17248 17249 17250 17251 17252 17253 17254 17255 17256 17257 17258 17259 17260 17261 17262 17263 17264 17265 17266 17267 17268 17269 17270 17271 17272 17273 17274 17275 17276 17277 17278 17279 17280 17281 17282 17283 17284 17285 17286 17287 17288 17289 17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530 17531 17532 17533 17534 17535 17536 17537 17538 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565 17566 17567 17568 17569 17570 17571 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593 17594 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645 17646 17647 17648 17649 17650 17651 17652 17653 17654 17655 17656 17657 17658 17659 17660 17661 17662 17663 17664 17665 17666 17667 17668 17669 17670 17671 17672 17673 17674 17675 17676 17677 17678 17679 17680 17681 17682 17683 17684 17685 17686 17687 17688 17689 17690 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 17776 17777 17778 17779 17780 17781 17782 17783 17784 17785 17786 17787 17788 17789 17790 17791 17792 17793 17794 17795 17796 17797 17798 17799 17800 17801 17802 17803 17804 17805 17806 17807 17808 17809 17810 17811 17812 17813 17814 17815 17816 17817 17818 17819 17820 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831 17832 17833 17834 17835 17836 17837 17838 17839 17840 17841 17842 17843 17844 17845 17846 17847 17848 17849 17850 17851 17852 17853 17854 17855 17856 17857 17858 17859 17860 17861 17862 17863 17864 17865 17866 17867 17868 17869 17870 17871 17872 17873 17874 17875 17876 17877 17878 17879 17880 17881 17882 17883 17884 17885 17886 17887 17888 17889 17890 17891 17892 17893 17894 17895 17896 17897 17898 17899 17900 17901 17902 17903 17904 17905 17906 17907 17908 17909 17910 17911 17912 17913 17914 17915 17916 17917 17918 17919 17920 17921 17922 17923 17924 17925 17926 17927 17928 17929 17930 17931 17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 17950 17951 17952 17953 17954 17955 17956 17957 17958 17959 17960 17961 17962 17963 17964 17965 17966 17967 17968 17969 17970 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034 18035 18036 18037 18038 18039 18040 18041 18042 18043 18044 18045 18046 18047 18048 18049 18050 18051 18052 18053 18054 18055 18056 18057 18058 18059 18060 18061 18062 18063 18064 18065 18066 18067 18068 18069 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088 18089 18090 18091 18092 18093 18094 18095 18096 18097 18098 18099 18100 18101 18102 18103 18104 18105 18106 18107 18108 18109 18110 18111 18112 18113 18114 18115 18116 18117 18118 18119 18120 18121 18122 18123 18124 18125 18126 18127 18128 18129 18130 18131 18132 18133 18134 18135 18136 18137 18138 18139 18140 18141 18142 18143 18144 18145 18146 18147 18148 18149 18150 18151 18152 18153 18154 18155 18156 18157 18158 18159 18160 18161 18162 18163 18164 18165 18166 18167 18168 18169 18170 18171 18172 18173 18174 18175 18176 18177 18178 18179 18180 18181 18182 18183 18184 18185 18186 18187 18188 18189 18190 18191 18192 18193 18194 18195 18196 18197 18198 18199 18200 18201 18202 18203 18204 18205 18206 18207 18208 18209 18210 18211 18212 18213 18214 18215 18216 18217 18218 18219 18220 18221 18222 18223 18224 18225 18226 18227 18228 18229 18230 18231 18232 18233 18234 18235 18236 18237 18238 18239 18240 18241 18242 18243 18244 18245 18246 18247 18248 18249
|
# SOME DESCRIPTIVE TITLE.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2018-08-19 21:47+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc@kde.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Tag: title
#: reference_raster.xml:3
#, no-c-format
msgid "Raster Reference"
msgstr ""
#. Tag: para
#: reference_raster.xml:5
#, no-c-format
msgid ""
"The functions given below are the ones which a user of PostGIS Raster is "
"likely to need and which are currently available in PostGIS Raster. There "
"are other functions which are required support functions to the raster "
"objects which are not of use to a general user."
msgstr ""
#. Tag: para
#: reference_raster.xml:9
#, no-c-format
msgid ""
"<varname>raster</varname> is a new PostGIS type for storing and analyzing "
"raster data."
msgstr ""
#. Tag: para
#: reference_raster.xml:10
#, no-c-format
msgid ""
"For loading rasters from raster files please refer to <xref linkend="
"\"RT_Loading_Rasters\"/>"
msgstr ""
#. Tag: para
#: reference_raster.xml:12
#, no-c-format
msgid ""
"For the examples in this reference we will be using a raster table of dummy "
"rasters - Formed with the following code"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:13
#, no-c-format
msgid ""
"CREATE TABLE dummy_rast(rid integer, rast raster);\n"
"INSERT INTO dummy_rast(rid, rast)\n"
"VALUES (1,\n"
"('01' -- little endian (uint8 ndr)\n"
"||\n"
"'0000' -- version (uint16 0)\n"
"||\n"
"'0000' -- nBands (uint16 0)\n"
"||\n"
"'0000000000000040' -- scaleX (float64 2)\n"
"||\n"
"'0000000000000840' -- scaleY (float64 3)\n"
"||\n"
"'000000000000E03F' -- ipX (float64 0.5)\n"
"||\n"
"'000000000000E03F' -- ipY (float64 0.5)\n"
"||\n"
"'0000000000000000' -- skewX (float64 0)\n"
"||\n"
"'0000000000000000' -- skewY (float64 0)\n"
"||\n"
"'00000000' -- SRID (int32 0)\n"
"||\n"
"'0A00' -- width (uint16 10)\n"
"||\n"
"'1400' -- height (uint16 20)\n"
")::raster\n"
"),\n"
"-- Raster: 5 x 5 pixels, 3 bands, PT_8BUI pixel type, NODATA = 0\n"
"(2, ('01000003009A9999999999A93F9A9999999999A9BF000000E02B274A' ||\n"
"'41000000007719564100000000000000000000000000000000FFFFFFFF050005000400FDFEFDFEFEFDFEFEFDF9FAFEF' "
"||\n"
"'EFCF9FBFDFEFEFDFCFAFEFEFE04004E627AADD16076B4F9FE6370A9F5FE59637AB0E54F58617087040046566487A1506CA2E3FA5A6CAFFBFE4D566DA4CB3E454C5665')::"
"raster);"
msgstr ""
#. Tag: para
#: reference_raster.xml:17
#, no-c-format
msgid ""
"This section lists the PostgreSQL data types specifically created to support "
"raster functionality."
msgstr ""
#. Tag: title
#: reference_raster.xml:20
#, no-c-format
msgid "Raster Support Data types"
msgstr ""
#. Tag: refname
#: reference_raster.xml:24
#, no-c-format
msgid "geomval"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:25
#, no-c-format
msgid ""
"A spatial datatype with two fields - geom (holding a geometry object) and "
"val (holding a double precision pixel value from a raster band)."
msgstr ""
#. Tag: title
#: reference_raster.xml:30 reference_raster.xml:49 reference_raster.xml:121
#: reference_raster.xml:171 reference_raster.xml:211 reference_raster.xml:257
#: reference_raster.xml:354 reference_raster.xml:536 reference_raster.xml:710
#: reference_raster.xml:777 reference_raster.xml:846 reference_raster.xml:889
#: reference_raster.xml:924 reference_raster.xml:961 reference_raster.xml:1004
#: reference_raster.xml:1065 reference_raster.xml:1110
#: reference_raster.xml:1225 reference_raster.xml:1434
#: reference_raster.xml:1521 reference_raster.xml:1607
#: reference_raster.xml:1664 reference_raster.xml:1731
#: reference_raster.xml:1796 reference_raster.xml:1838
#: reference_raster.xml:1888 reference_raster.xml:1927
#: reference_raster.xml:1961 reference_raster.xml:1998
#: reference_raster.xml:2041 reference_raster.xml:2076
#: reference_raster.xml:2110 reference_raster.xml:2160
#: reference_raster.xml:2214 reference_raster.xml:2251
#: reference_raster.xml:2291 reference_raster.xml:2346
#: reference_raster.xml:2401 reference_raster.xml:2447
#: reference_raster.xml:2482 reference_raster.xml:2518
#: reference_raster.xml:2554 reference_raster.xml:2589
#: reference_raster.xml:2628 reference_raster.xml:2662
#: reference_raster.xml:2696 reference_raster.xml:2740
#: reference_raster.xml:2802 reference_raster.xml:2857
#: reference_raster.xml:2903 reference_raster.xml:2965
#: reference_raster.xml:3007 reference_raster.xml:3058
#: reference_raster.xml:3093 reference_raster.xml:3129
#: reference_raster.xml:3163 reference_raster.xml:3238
#: reference_raster.xml:3281 reference_raster.xml:3327
#: reference_raster.xml:3389 reference_raster.xml:3432
#: reference_raster.xml:3487 reference_raster.xml:3530
#: reference_raster.xml:3606 reference_raster.xml:3693
#: reference_raster.xml:3780 reference_raster.xml:3868
#: reference_raster.xml:3953 reference_raster.xml:4079
#: reference_raster.xml:4176 reference_raster.xml:4228
#: reference_raster.xml:4276 reference_raster.xml:4319
#: reference_raster.xml:4366 reference_raster.xml:4410
#: reference_raster.xml:4448 reference_raster.xml:4523
#: reference_raster.xml:4592 reference_raster.xml:4660
#: reference_raster.xml:4737 reference_raster.xml:4809
#: reference_raster.xml:4888 reference_raster.xml:4996
#: reference_raster.xml:5031 reference_raster.xml:5078
#: reference_raster.xml:5131 reference_raster.xml:5206
#: reference_raster.xml:5271 reference_raster.xml:5384
#: reference_raster.xml:5505 reference_raster.xml:5571
#: reference_raster.xml:5650 reference_raster.xml:5796
#: reference_raster.xml:5838 reference_raster.xml:5881
#: reference_raster.xml:5935 reference_raster.xml:5988
#: reference_raster.xml:6040 reference_raster.xml:6135
#: reference_raster.xml:6226 reference_raster.xml:6314
#: reference_raster.xml:6425 reference_raster.xml:6618
#: reference_raster.xml:6857 reference_raster.xml:7000
#: reference_raster.xml:7149 reference_raster.xml:7479
#: reference_raster.xml:7685 reference_raster.xml:7809
#: reference_raster.xml:8135 reference_raster.xml:8253
#: reference_raster.xml:8366 reference_raster.xml:8508
#: reference_raster.xml:8594 reference_raster.xml:8666
#: reference_raster.xml:8730 reference_raster.xml:8801
#: reference_raster.xml:8876 reference_raster.xml:8959
#: reference_raster.xml:9030 reference_raster.xml:9086
#: reference_raster.xml:9161 reference_raster.xml:9232
#: reference_raster.xml:9316 reference_raster.xml:9408
#: reference_raster.xml:9490 reference_raster.xml:9544
#: reference_raster.xml:9618 reference_raster.xml:9666
#: reference_raster.xml:9718 reference_raster.xml:9760
#: reference_raster.xml:9808 reference_raster.xml:9859
#: reference_raster.xml:9907 reference_raster.xml:9949
#: reference_raster.xml:10023 reference_raster.xml:10068
#: reference_raster.xml:10112 reference_raster.xml:10157
#: reference_raster.xml:10226 reference_raster.xml:10273
#: reference_raster.xml:10346 reference_raster.xml:10414
#: reference_raster.xml:10503 reference_raster.xml:10588
#: reference_raster.xml:10669 reference_raster.xml:10750
#: reference_raster.xml:10879 reference_raster.xml:10963
#: reference_raster.xml:11043 reference_raster.xml:11162
#: reference_raster.xml:11209 reference_raster.xml:11281
#: reference_raster.xml:11378 reference_raster.xml:11471
#, no-c-format
msgid "Description"
msgstr ""
#. Tag: para
#: reference_raster.xml:31
#, no-c-format
msgid ""
"geomval is a compound data type consisting of a geometry object referenced "
"by the .geom field and val, a double precision value that represents the "
"pixel value at a particular geometric location in a raster band. It is used "
"by the ST_DumpAsPolygon and Raster intersection family of functions as an "
"output type to explode a raster band into geometry polygons."
msgstr ""
#. Tag: title
#: reference_raster.xml:37 reference_raster.xml:107 reference_raster.xml:157
#: reference_raster.xml:200 reference_raster.xml:245 reference_raster.xml:340
#: reference_raster.xml:389 reference_raster.xml:584 reference_raster.xml:725
#: reference_raster.xml:803 reference_raster.xml:863 reference_raster.xml:899
#: reference_raster.xml:936 reference_raster.xml:974 reference_raster.xml:1029
#: reference_raster.xml:1080 reference_raster.xml:1139
#: reference_raster.xml:1269 reference_raster.xml:1486
#: reference_raster.xml:1576 reference_raster.xml:1621
#: reference_raster.xml:1684 reference_raster.xml:1760
#: reference_raster.xml:1811 reference_raster.xml:1859
#: reference_raster.xml:1906 reference_raster.xml:1940
#: reference_raster.xml:1976 reference_raster.xml:2019
#: reference_raster.xml:2055 reference_raster.xml:2089
#: reference_raster.xml:2133 reference_raster.xml:2193
#: reference_raster.xml:2230 reference_raster.xml:2268
#: reference_raster.xml:2313 reference_raster.xml:2372
#: reference_raster.xml:2426 reference_raster.xml:2461
#: reference_raster.xml:2497 reference_raster.xml:2533
#: reference_raster.xml:2568 reference_raster.xml:2602
#: reference_raster.xml:2641 reference_raster.xml:2675
#: reference_raster.xml:2710 reference_raster.xml:2760
#: reference_raster.xml:2817 reference_raster.xml:2872
#: reference_raster.xml:2943 reference_raster.xml:2978
#: reference_raster.xml:3033 reference_raster.xml:3071
#: reference_raster.xml:3216 reference_raster.xml:3253
#: reference_raster.xml:3295 reference_raster.xml:3357
#: reference_raster.xml:3400 reference_raster.xml:3455
#: reference_raster.xml:3498 reference_raster.xml:3553
#: reference_raster.xml:3628 reference_raster.xml:3718
#: reference_raster.xml:3812 reference_raster.xml:3883
#: reference_raster.xml:4032 reference_raster.xml:4098
#: reference_raster.xml:4254 reference_raster.xml:4289
#: reference_raster.xml:4338 reference_raster.xml:4383
#: reference_raster.xml:4423 reference_raster.xml:4461
#: reference_raster.xml:4553 reference_raster.xml:4618
#: reference_raster.xml:4687 reference_raster.xml:4765
#: reference_raster.xml:4839 reference_raster.xml:4961
#: reference_raster.xml:5009 reference_raster.xml:5050
#: reference_raster.xml:5103 reference_raster.xml:5156
#: reference_raster.xml:5227 reference_raster.xml:5288
#: reference_raster.xml:5419 reference_raster.xml:5520
#: reference_raster.xml:5607 reference_raster.xml:5667
#: reference_raster.xml:5814 reference_raster.xml:5855
#: reference_raster.xml:5898 reference_raster.xml:5963
#: reference_raster.xml:6011 reference_raster.xml:6089
#: reference_raster.xml:6180 reference_raster.xml:6271
#: reference_raster.xml:6351 reference_raster.xml:6581
#: reference_raster.xml:6815 reference_raster.xml:6924
#: reference_raster.xml:7059 reference_raster.xml:7410
#: reference_raster.xml:7646 reference_raster.xml:7759
#: reference_raster.xml:8051 reference_raster.xml:8210
#: reference_raster.xml:8333 reference_raster.xml:8466
#: reference_raster.xml:8537 reference_raster.xml:8625
#: reference_raster.xml:8698 reference_raster.xml:8768
#: reference_raster.xml:8837 reference_raster.xml:8919
#: reference_raster.xml:8998 reference_raster.xml:9053
#: reference_raster.xml:9122 reference_raster.xml:9193
#: reference_raster.xml:9268 reference_raster.xml:9361
#: reference_raster.xml:9458 reference_raster.xml:9501
#: reference_raster.xml:9586 reference_raster.xml:9634
#: reference_raster.xml:9685 reference_raster.xml:9735
#: reference_raster.xml:9780 reference_raster.xml:9833
#: reference_raster.xml:9879 reference_raster.xml:9922
#: reference_raster.xml:9961 reference_raster.xml:10171
#: reference_raster.xml:10239 reference_raster.xml:10292
#: reference_raster.xml:10358 reference_raster.xml:10449
#: reference_raster.xml:10534 reference_raster.xml:10615
#: reference_raster.xml:10696 reference_raster.xml:10780
#: reference_raster.xml:10909 reference_raster.xml:10990
#: reference_raster.xml:11070 reference_raster.xml:11183
#: reference_raster.xml:11227 reference_raster.xml:11314
#: reference_raster.xml:11409 reference_raster.xml:11502
#, no-c-format
msgid "See Also"
msgstr ""
#. Tag: refname
#: reference_raster.xml:44
#, no-c-format
msgid "addbandarg"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:45
#, no-c-format
msgid ""
"<refpurpose>A composite type used as input into the ST_AddBand function "
"defining the attributes and initial value of the new band.</refpurpose>"
msgstr ""
#. Tag: para
#: reference_raster.xml:50
#, no-c-format
msgid ""
"<para>A composite type used as input into the ST_AddBand function defining "
"the attributes and initial value of the new band.</para>"
msgstr ""
#. Tag: term
#: reference_raster.xml:55
#, no-c-format
msgid "<parameter>index </parameter> <type>integer</type>"
msgstr ""
#. Tag: para
#: reference_raster.xml:60
#, no-c-format
msgid ""
"1-based value indicating the position where the new band will be added "
"amongst the raster's bands. If NULL, the new band will be added at the end "
"of the raster's bands."
msgstr ""
#. Tag: term
#: reference_raster.xml:67
#, no-c-format
msgid "<parameter>pixeltype </parameter> <type>text</type>"
msgstr ""
#. Tag: para
#: reference_raster.xml:72
#, no-c-format
msgid ""
"Pixel type of the new band. One of defined pixel types as described in <xref "
"linkend=\"RT_ST_BandPixelType\"/>."
msgstr ""
#. Tag: term
#: reference_raster.xml:79
#, no-c-format
msgid "<parameter>initialvalue </parameter> <type>double precision</type>"
msgstr ""
#. Tag: para
#: reference_raster.xml:84
#, no-c-format
msgid "Initial value that all pixels of new band will be set to."
msgstr ""
#. Tag: term
#: reference_raster.xml:91
#, no-c-format
msgid "<parameter>nodataval </parameter> <type>double precision</type>"
msgstr ""
#. Tag: para
#: reference_raster.xml:96
#, no-c-format
msgid ""
"NODATA value of the new band. If NULL, the new band will not have a NODATA "
"value assigned."
msgstr ""
#. Tag: refname
#: reference_raster.xml:116
#, no-c-format
msgid "rastbandarg"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:117
#, no-c-format
msgid ""
"<refpurpose>A composite type for use when needing to express a raster and a "
"band index of that raster.</refpurpose>"
msgstr ""
#. Tag: para
#: reference_raster.xml:122
#, no-c-format
msgid ""
"<para>A composite type for use when needing to express a raster and a band "
"index of that raster.</para>"
msgstr ""
#. Tag: term
#: reference_raster.xml:128
#, no-c-format
msgid "<parameter>rast </parameter> <type>raster</type>"
msgstr ""
#. Tag: para
#: reference_raster.xml:133
#, no-c-format
msgid "The raster in question/"
msgstr ""
#. Tag: term
#: reference_raster.xml:140 reference_raster.xml:360
#, no-c-format
msgid "<parameter>nband </parameter> <type>integer</type>"
msgstr ""
#. Tag: para
#: reference_raster.xml:145
#, no-c-format
msgid "1-based value indicating the band of raster"
msgstr ""
#. Tag: refname
#: reference_raster.xml:166
#, no-c-format
msgid "raster"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:167
#, no-c-format
msgid "raster spatial data type."
msgstr ""
#. Tag: para
#: reference_raster.xml:172
#, no-c-format
msgid ""
"raster is a spatial data type used to represent raster data such as those "
"imported from JPEGs, TIFFs, PNGs, digital elevation models. Each raster has "
"1 or more bands each having a set of pixel values. Rasters can be "
"georeferenced."
msgstr ""
#. Tag: para
#: reference_raster.xml:175
#, no-c-format
msgid ""
"Requires PostGIS be compiled with GDAL support. Currently rasters can be "
"implicitly converted to geometry type, but the conversion returns the <xref "
"linkend=\"RT_ST_ConvexHull\"/> of the raster. This auto casting may be "
"removed in the near future so don't rely on it."
msgstr ""
#. Tag: title
#: reference_raster.xml:181
#, no-c-format
msgid "Casting Behavior"
msgstr ""
#. Tag: para
#: reference_raster.xml:182
#, no-c-format
msgid ""
"This section lists the automatic as well as explicit casts allowed for this "
"data type"
msgstr ""
#. Tag: entry
#: reference_raster.xml:187
#, no-c-format
msgid "Cast To"
msgstr ""
#. Tag: entry
#: reference_raster.xml:188
#, no-c-format
msgid "Behavior"
msgstr ""
#. Tag: entry
#: reference_raster.xml:191
#, no-c-format
msgid "geometry"
msgstr ""
#. Tag: entry
#: reference_raster.xml:192
#, no-c-format
msgid "automatic"
msgstr ""
#. Tag: refname
#: reference_raster.xml:207
#, no-c-format
msgid "reclassarg"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:208
#, no-c-format
msgid ""
"<refpurpose>A composite type used as input into the ST_Reclass function "
"defining the behavior of reclassification.</refpurpose>"
msgstr ""
#. Tag: para
#: reference_raster.xml:212
#, no-c-format
msgid ""
"<para>A composite type used as input into the ST_Reclass function defining "
"the behavior of reclassification.</para>"
msgstr ""
#. Tag: term
#: reference_raster.xml:215
#, no-c-format
msgid "<parameter>nband </parameter><type>integer</type>"
msgstr ""
#. Tag: para
#: reference_raster.xml:216
#, no-c-format
msgid "The band number of band to reclassify."
msgstr ""
#. Tag: term
#: reference_raster.xml:219
#, no-c-format
msgid "<parameter>reclassexpr </parameter><type>text</type>"
msgstr ""
#. Tag: para
#: reference_raster.xml:220
#, no-c-format
msgid ""
"range expression consisting of comma delimited range:map_range mappings. : "
"to define mapping that defines how to map old band values to new band "
"values. ( means >, ) means less than, ] < or equal, [ means > or "
"equal"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:221
#, no-c-format
msgid ""
"1. [a-b] = a <= x <= b\n"
"\n"
"2. (a-b] = a < x <= b\n"
"\n"
"3. [a-b) = a <= x < b\n"
"\n"
"4. (a-b) = a < x < b"
msgstr ""
#. Tag: para
#: reference_raster.xml:222
#, no-c-format
msgid "( notation is optional so a-b means the same as (a-b)"
msgstr ""
#. Tag: term
#: reference_raster.xml:227
#, no-c-format
msgid "<parameter>pixeltype </parameter><type>text</type>"
msgstr ""
#. Tag: para
#: reference_raster.xml:228
#, no-c-format
msgid ""
"One of defined pixel types as described in <xref linkend="
"\"RT_ST_BandPixelType\"/>"
msgstr ""
#. Tag: term
#: reference_raster.xml:231
#, no-c-format
msgid "<parameter>nodataval </parameter><type>double precision</type>"
msgstr ""
#. Tag: para
#: reference_raster.xml:232
#, no-c-format
msgid ""
"Value to treat as no data. For image outputs that support transparency, "
"these will be blank."
msgstr ""
#. Tag: title
#: reference_raster.xml:237
#, no-c-format
msgid "Example: Reclassify band 2 as an 8BUI where 255 is nodata value"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:238
#, no-c-format
msgid ""
"SELECT ROW(2, '0-100:1-10, 101-500:11-150,501 - 10000: 151-254', '8BUI', "
"255)::reclassarg;"
msgstr ""
#. Tag: title
#: reference_raster.xml:241
#, no-c-format
msgid "Example: Reclassify band 1 as an 1BB and no nodata value defined"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:242
#, no-c-format
msgid "SELECT ROW(1, '0-100]:0, (100-255:1', '1BB', NULL)::reclassarg;"
msgstr ""
#. Tag: refname
#: reference_raster.xml:252
#, no-c-format
msgid "summarystats"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:253
#, no-c-format
msgid ""
"A composite type returned by the ST_SummaryStats and ST_SummaryStatsAgg "
"functions."
msgstr ""
#. Tag: para
#: reference_raster.xml:258
#, no-c-format
msgid ""
"A composite type returned by the <xref linkend=\"RT_ST_SummaryStats\"/> and "
"<xref linkend=\"RT_ST_SummaryStatsAgg\"/> functions."
msgstr ""
#. Tag: term
#: reference_raster.xml:263
#, no-c-format
msgid "<parameter>count </parameter> <type>integer</type>"
msgstr ""
#. Tag: para
#: reference_raster.xml:268
#, no-c-format
msgid "Number of pixels counted for the summary statistics."
msgstr ""
#. Tag: term
#: reference_raster.xml:275
#, no-c-format
msgid "<parameter>sum </parameter> <type>double precision</type>"
msgstr ""
#. Tag: para
#: reference_raster.xml:280
#, no-c-format
msgid "Sum of all counted pixel values."
msgstr ""
#. Tag: term
#: reference_raster.xml:287
#, no-c-format
msgid "<parameter>mean </parameter> <type>double precision</type>"
msgstr ""
#. Tag: para
#: reference_raster.xml:292
#, no-c-format
msgid "Arithmetic mean of all counted pixel values."
msgstr ""
#. Tag: term
#: reference_raster.xml:299
#, no-c-format
msgid "<parameter>stddev </parameter> <type>double precision</type>"
msgstr ""
#. Tag: para
#: reference_raster.xml:304
#, no-c-format
msgid "Standard deviation of all counted pixel values."
msgstr ""
#. Tag: term
#: reference_raster.xml:311
#, no-c-format
msgid "<parameter>min </parameter> <type>double precision</type>"
msgstr ""
#. Tag: para
#: reference_raster.xml:316
#, no-c-format
msgid "Minimum value of counted pixel values."
msgstr ""
#. Tag: term
#: reference_raster.xml:323
#, no-c-format
msgid "<parameter>max </parameter> <type>double precision</type>"
msgstr ""
#. Tag: para
#: reference_raster.xml:328
#, no-c-format
msgid "Maximum value of counted pixel values."
msgstr ""
#. Tag: para
#: reference_raster.xml:341
#, no-c-format
msgid ", <xref linkend=\"RT_ST_SummaryStatsAgg\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:349
#, no-c-format
msgid "unionarg"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:350
#, no-c-format
msgid ""
"<refpurpose>A composite type used as input into the ST_Union function "
"defining the bands to be processed and behavior of the UNION operation.</"
"refpurpose>"
msgstr ""
#. Tag: para
#: reference_raster.xml:355
#, no-c-format
msgid ""
"<para>A composite type used as input into the ST_Union function defining the "
"bands to be processed and behavior of the UNION operation.</para>"
msgstr ""
#. Tag: para
#: reference_raster.xml:365
#, no-c-format
msgid "1-based value indicating the band of each input raster to be processed."
msgstr ""
#. Tag: term
#: reference_raster.xml:372
#, no-c-format
msgid "<parameter>uniontype </parameter> <type>text</type>"
msgstr ""
#. Tag: para
#: reference_raster.xml:377
#, no-c-format
msgid ""
"Type of UNION operation. One of defined types as described in <xref linkend="
"\"RT_ST_Union\"/>."
msgstr ""
#. Tag: title
#: reference_raster.xml:399
#, no-c-format
msgid "Raster Management"
msgstr ""
#. Tag: refname
#: reference_raster.xml:402
#, no-c-format
msgid "AddRasterConstraints"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:404
#, no-c-format
msgid ""
"Adds raster constraints to a loaded raster table for a specific column that "
"constrains spatial ref, scaling, blocksize, alignment, bands, band type and "
"a flag to denote if raster column is regularly blocked. The table must be "
"loaded with data for the constraints to be inferred. Returns true if the "
"constraint setting was accomplished and issues a notice otherwise."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:408
#, no-c-format
msgid ""
"<funcprototype> <funcdef>boolean <function>AddRasterConstraints</function></"
"funcdef> <paramdef><type>name </type> <parameter>rasttable</parameter></"
"paramdef> <paramdef><type>name </type> <parameter>rastcolumn</parameter></"
"paramdef> <paramdef><type>boolean </type> <parameter>srid</parameter></"
"paramdef> <paramdef><type>boolean </type> <parameter>scale_x</parameter></"
"paramdef> <paramdef><type>boolean </type> <parameter>scale_y</parameter></"
"paramdef> <paramdef><type>boolean </type> <parameter>blocksize_x</"
"parameter></paramdef> <paramdef><type>boolean </type> "
"<parameter>blocksize_y</parameter></paramdef> <paramdef><type>boolean </"
"type> <parameter>same_alignment</parameter></paramdef> "
"<paramdef><type>boolean </type> <parameter>regular_blocking</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>num_bands=true</parameter> </paramdef> <paramdef choice=\"opt"
"\"><type>boolean </type> <parameter>pixel_types=true</parameter> </paramdef> "
"<paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>nodata_values=true</parameter> </paramdef> <paramdef choice=\"opt"
"\"><type>boolean </type> <parameter>out_db=true</parameter> </paramdef> "
"<paramdef choice=\"opt\"><type>boolean </type> <parameter>extent=true</"
"parameter> </paramdef> </funcprototype> <funcprototype> <funcdef>boolean "
"<function>AddRasterConstraints</function></funcdef> <paramdef><type>name </"
"type> <parameter>rasttable</parameter></paramdef> <paramdef><type>name </"
"type> <parameter>rastcolumn</parameter></paramdef> <paramdef><type>text[] </"
"type> <parameter>VARIADIC constraints</parameter></paramdef> </"
"funcprototype> <funcprototype> <funcdef>boolean "
"<function>AddRasterConstraints</function></funcdef> <paramdef><type>name </"
"type> <parameter>rastschema</parameter></paramdef> <paramdef><type>name </"
"type> <parameter>rasttable</parameter></paramdef> <paramdef><type>name </"
"type> <parameter>rastcolumn</parameter></paramdef> <paramdef><type>text[] </"
"type> <parameter>VARIADIC constraints</parameter></paramdef> </"
"funcprototype> <funcprototype> <funcdef>boolean "
"<function>AddRasterConstraints</function></funcdef> <paramdef><type>name </"
"type> <parameter>rastschema</parameter></paramdef> <paramdef><type>name </"
"type> <parameter>rasttable</parameter></paramdef> <paramdef><type>name </"
"type> <parameter>rastcolumn</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>boolean </type> <parameter>srid=true</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>boolean </type> <parameter>scale_x=true</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>scale_y=true</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>boolean </type> <parameter>blocksize_x=true</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>boolean </type> <parameter>blocksize_y=true</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>same_alignment=true</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>boolean </type> <parameter>regular_blocking=false</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>num_bands=true</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>boolean </type> <parameter>pixel_types=true</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>nodata_values=true</parameter> </paramdef> <paramdef choice=\"opt"
"\"><type>boolean </type> <parameter>out_db=true</parameter> </paramdef> "
"<paramdef choice=\"opt\"><type>boolean </type> <parameter>extent=true</"
"parameter> </paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:538
#, no-c-format
msgid ""
"Generates constraints on a raster column that are used to display "
"information in the <varname>raster_columns</varname> raster catalog. The "
"<varname>rastschema</varname> is the name of the table schema the table "
"resides in. The <varname>srid</varname> must be an integer value reference "
"to an entry in the SPATIAL_REF_SYS table."
msgstr ""
#. Tag: para
#: reference_raster.xml:543
#, no-c-format
msgid ""
"<varname>raster2pgsql</varname> loader uses this function to register raster "
"tables"
msgstr ""
#. Tag: para
#: reference_raster.xml:544
#, no-c-format
msgid ""
"Valid constraint names to pass in: refer to <xref linkend=\"RT_Raster_Columns"
"\"/> for more details."
msgstr ""
#. Tag: para
#: reference_raster.xml:546
#, no-c-format
msgid "<varname>blocksize</varname> sets both X and Y blocksize"
msgstr ""
#. Tag: para
#: reference_raster.xml:547
#, no-c-format
msgid ""
"<varname>blocksize_x</varname> sets X tile (width in pixels of each tile)"
msgstr ""
#. Tag: para
#: reference_raster.xml:548
#, no-c-format
msgid ""
"<varname>blocksize_y</varname> sets Y tile (height in pixels of each tile)"
msgstr ""
#. Tag: para
#: reference_raster.xml:549
#, no-c-format
msgid ""
"<varname>extent</varname> computes extent of whole table and applys "
"constraint all rasters must be within that extent"
msgstr ""
#. Tag: para
#: reference_raster.xml:551
#, no-c-format
msgid "<varname>num_bands</varname> number of bands"
msgstr ""
#. Tag: para
#: reference_raster.xml:552
#, no-c-format
msgid ""
"<varname>pixel_types</varname> reads array of pixel types for each band "
"ensure all band n have same pixel type"
msgstr ""
#. Tag: para
#: reference_raster.xml:553
#, no-c-format
msgid ""
"<varname>regular_blocking</varname> sets spatially unique (no two rasters "
"can be spatially the same) and coverage tile (raster is aligned to a "
"coverage) constraints"
msgstr ""
#. Tag: para
#: reference_raster.xml:554
#, no-c-format
msgid ""
"<varname>same_alignment</varname> ensures they all have same alignment "
"meaning any two tiles you compare will return true for. Refer to <xref "
"linkend=\"RT_ST_SameAlignment\"/>."
msgstr ""
#. Tag: para
#: reference_raster.xml:555
#, no-c-format
msgid "<varname>srid</varname> ensures all have same srid"
msgstr ""
#. Tag: para
#: reference_raster.xml:556
#, no-c-format
msgid "More -- any listed as inputs into the above functions"
msgstr ""
#. Tag: para
#: reference_raster.xml:559
#, no-c-format
msgid ""
"This function infers the constraints from the data already present in the "
"table. As such for it to work, you must create the raster column first and "
"then load it with data."
msgstr ""
#. Tag: para
#: reference_raster.xml:564
#, no-c-format
msgid ""
"If you need to load more data in your tables after you have already applied "
"constraints, you may want to run the DropRasterConstraints if the extent of "
"your data has changed."
msgstr ""
#. Tag: para
#: reference_raster.xml:568 reference_raster.xml:717 reference_raster.xml:793
#: reference_raster.xml:859 reference_raster.xml:1527 reference_raster.xml:1965
#: reference_raster.xml:3015 reference_raster.xml:3242
#: reference_raster.xml:3285 reference_raster.xml:3346
#: reference_raster.xml:5039 reference_raster.xml:5210
#: reference_raster.xml:5405 reference_raster.xml:5509
#: reference_raster.xml:5579 reference_raster.xml:5801
#: reference_raster.xml:6439 reference_raster.xml:7705
#: reference_raster.xml:7904 reference_raster.xml:8168
#: reference_raster.xml:8287 reference_raster.xml:8416
#: reference_raster.xml:8514 reference_raster.xml:8602
#: reference_raster.xml:8686 reference_raster.xml:8825
#: reference_raster.xml:8900 reference_raster.xml:8987
#: reference_raster.xml:9110 reference_raster.xml:9181
#: reference_raster.xml:9256 reference_raster.xml:9342
#: reference_raster.xml:9438 reference_raster.xml:9566
#: reference_raster.xml:10030 reference_raster.xml:10281
#: reference_raster.xml:10353 reference_raster.xml:11172
#, no-c-format
msgid "Availability: 2.0.0"
msgstr ""
#. Tag: title
#: reference_raster.xml:572
#, no-c-format
msgid "Examples: Apply all possible constraints on column based on data"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:574
#, no-c-format
msgid ""
"CREATE TABLE myrasters(rid SERIAL primary key, rast raster);\n"
"INSERT INTO myrasters(rast)\n"
"SELECT ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 0.3, -0.3, 2, 2, 0, "
"0,4326), 1, '8BSI'::text, -129, NULL);\n"
"\n"
"SELECT AddRasterConstraints('myrasters'::name, 'rast'::name);\n"
"\n"
"\n"
"-- verify if registered correctly in the raster_columns view --\n"
"SELECT srid, scale_x, scale_y, blocksize_x, blocksize_y, num_bands, "
"pixel_types, nodata_values\n"
" FROM raster_columns\n"
" WHERE r_table_name = 'myrasters';\n"
"\n"
" srid | scale_x | scale_y | blocksize_x | blocksize_y | num_bands | "
"pixel_types| nodata_values\n"
"------+---------+---------+-------------+-------------+-----------"
"+-------------+---------------\n"
" 4326 | 2 | 2 | 1000 | 1000 | 1 | "
"{8BSI} | {0}"
msgstr ""
#. Tag: title
#: reference_raster.xml:578
#, no-c-format
msgid "Examples: Apply single constraint"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:580
#, no-c-format
msgid ""
"CREATE TABLE public.myrasters2(rid SERIAL primary key, rast raster);\n"
"INSERT INTO myrasters2(rast)\n"
"SELECT ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 0.3, -0.3, 2, 2, 0, "
"0,4326), 1, '8BSI'::text, -129, NULL);\n"
"\n"
"SELECT AddRasterConstraints('public'::name, 'myrasters2'::name, 'rast'::"
"name,'regular_blocking', 'blocksize');\n"
"-- get notice--\n"
"NOTICE: Adding regular blocking constraint\n"
"NOTICE: Adding blocksize-X constraint\n"
"NOTICE: Adding blocksize-Y constraint"
msgstr ""
#. Tag: para
#: reference_raster.xml:586
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_AddBand\"/>, <xref linkend=\"RT_ST_MakeEmptyRaster\"/"
">, <xref linkend=\"RT_DropRasterConstraints\"/>, <xref linkend="
"\"RT_ST_BandPixelType\"/>, <xref linkend=\"RT_ST_SRID\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:592
#, no-c-format
msgid "DropRasterConstraints"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:594
#, no-c-format
msgid ""
"Drops PostGIS raster constraints that refer to a raster table column. Useful "
"if you need to reload data or update your raster column data."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:598
#, no-c-format
msgid ""
"<funcprototype> <funcdef>boolean <function>DropRasterConstraints</function></"
"funcdef> <paramdef><type>name </type> <parameter>rasttable</parameter></"
"paramdef> <paramdef><type>name </type> <parameter>rastcolumn</parameter></"
"paramdef> <paramdef><type>boolean </type> <parameter>srid</parameter></"
"paramdef> <paramdef><type>boolean </type> <parameter>scale_x</parameter></"
"paramdef> <paramdef><type>boolean </type> <parameter>scale_y</parameter></"
"paramdef> <paramdef><type>boolean </type> <parameter>blocksize_x</"
"parameter></paramdef> <paramdef><type>boolean </type> "
"<parameter>blocksize_y</parameter></paramdef> <paramdef><type>boolean </"
"type> <parameter>same_alignment</parameter></paramdef> "
"<paramdef><type>boolean </type> <parameter>regular_blocking</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>num_bands=true</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>boolean </type> <parameter>pixel_types=true</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>nodata_values=true</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>boolean </type> <parameter>out_db=true</parameter> </paramdef> "
"<paramdef choice=\"opt\"><type>boolean </type> <parameter>extent=true</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>boolean "
"<function>DropRasterConstraints</function></funcdef> <paramdef><type>name </"
"type> <parameter>rastschema</parameter></paramdef> <paramdef><type>name </"
"type> <parameter>rasttable</parameter></paramdef> <paramdef><type>name </"
"type> <parameter>rastcolumn</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>boolean </type> <parameter>srid=true</parameter></paramdef> "
"<paramdef><type>boolean </type> <parameter>scale_x=true</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>scale_y=true</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>boolean </type> <parameter>blocksize_x=true</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>boolean </type> <parameter>blocksize_y=true</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>same_alignment=true</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>boolean </type> <parameter>regular_blocking=false</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>num_bands=true</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>boolean </type> <parameter>pixel_types=true</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>nodata_values=true</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>boolean </type> <parameter>out_db=true</parameter> </paramdef> "
"<paramdef choice=\"opt\"><type>boolean </type> <parameter>extent=true</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>boolean "
"<function>DropRasterConstraints</function></funcdef> <paramdef><type>name </"
"type> <parameter>rastschema</parameter></paramdef> <paramdef><type>name </"
"type> <parameter>rasttable</parameter></paramdef> <paramdef><type>name </"
"type> <parameter>rastcolumn</parameter></paramdef> <paramdef><type>text[] </"
"type> <parameter>constraints</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:711
#, no-c-format
msgid ""
"Drops PostGIS raster constraints that refer to a raster table column that "
"were added by <xref linkend=\"RT_AddRasterConstraints\"/>. Useful if you "
"need to load more data or update your raster column data. You do not need to "
"do this if you want to get rid of a raster table or a raster column."
msgstr ""
#. Tag: para
#: reference_raster.xml:713
#, no-c-format
msgid "To drop a raster table use the standard"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:713
#, no-c-format
msgid "DROP TABLE mytable"
msgstr ""
#. Tag: para
#: reference_raster.xml:714
#, no-c-format
msgid ""
"To drop just a raster column and leave the rest of the table, use standard "
"SQL"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:714
#, no-c-format
msgid "ALTER TABLE mytable DROP COLUMN rast"
msgstr ""
#. Tag: para
#: reference_raster.xml:715
#, no-c-format
msgid ""
"the table will disappear from the <varname>raster_columns</varname> catalog "
"if the column or table is dropped. However if only the constraints are "
"dropped, the raster column will still be listed in the "
"<varname>raster_columns</varname> catalog, but there will be no other "
"information about it aside from the column name and table."
msgstr ""
#. Tag: title
#: reference_raster.xml:720 reference_raster.xml:797 reference_raster.xml:894
#: reference_raster.xml:930 reference_raster.xml:968 reference_raster.xml:1531
#: reference_raster.xml:1677 reference_raster.xml:1751
#: reference_raster.xml:1852 reference_raster.xml:1900
#: reference_raster.xml:1933 reference_raster.xml:1969
#: reference_raster.xml:2012 reference_raster.xml:2048
#: reference_raster.xml:2082 reference_raster.xml:2222
#: reference_raster.xml:2260 reference_raster.xml:2303
#: reference_raster.xml:2362 reference_raster.xml:2416
#: reference_raster.xml:2454 reference_raster.xml:2489
#: reference_raster.xml:2525 reference_raster.xml:2561
#: reference_raster.xml:2597 reference_raster.xml:2634
#: reference_raster.xml:2668 reference_raster.xml:2702
#: reference_raster.xml:2753 reference_raster.xml:2810
#: reference_raster.xml:2865 reference_raster.xml:2971
#: reference_raster.xml:3026 reference_raster.xml:3064
#: reference_raster.xml:3104 reference_raster.xml:3139
#: reference_raster.xml:3209 reference_raster.xml:3246
#: reference_raster.xml:3290 reference_raster.xml:3352
#: reference_raster.xml:3395 reference_raster.xml:3450
#: reference_raster.xml:3493 reference_raster.xml:3548
#: reference_raster.xml:3615 reference_raster.xml:3709
#: reference_raster.xml:3801 reference_raster.xml:3876
#: reference_raster.xml:4089 reference_raster.xml:4185
#: reference_raster.xml:4248 reference_raster.xml:4282
#: reference_raster.xml:4330 reference_raster.xml:4373
#: reference_raster.xml:4454 reference_raster.xml:4547
#: reference_raster.xml:4611 reference_raster.xml:4679
#: reference_raster.xml:4757 reference_raster.xml:4834
#: reference_raster.xml:4913 reference_raster.xml:5002
#: reference_raster.xml:5043 reference_raster.xml:5098
#: reference_raster.xml:5151 reference_raster.xml:5221
#: reference_raster.xml:5283 reference_raster.xml:5513
#: reference_raster.xml:5662 reference_raster.xml:5805
#: reference_raster.xml:5848 reference_raster.xml:5891
#: reference_raster.xml:5956 reference_raster.xml:6004
#: reference_raster.xml:6263 reference_raster.xml:6704
#: reference_raster.xml:7709 reference_raster.xml:8172
#: reference_raster.xml:8420 reference_raster.xml:8691
#: reference_raster.xml:8763 reference_raster.xml:8830
#: reference_raster.xml:8992 reference_raster.xml:9048
#: reference_raster.xml:9115 reference_raster.xml:9186
#: reference_raster.xml:9261 reference_raster.xml:9496
#: reference_raster.xml:9629 reference_raster.xml:9680
#: reference_raster.xml:9729 reference_raster.xml:9772
#: reference_raster.xml:9828 reference_raster.xml:9873
#: reference_raster.xml:9917 reference_raster.xml:9956
#: reference_raster.xml:10034 reference_raster.xml:10078
#: reference_raster.xml:10123 reference_raster.xml:10286
#: reference_raster.xml:10442 reference_raster.xml:10529
#: reference_raster.xml:10610 reference_raster.xml:10691
#: reference_raster.xml:10772 reference_raster.xml:10904
#: reference_raster.xml:10985 reference_raster.xml:11065
#: reference_raster.xml:11222 reference_raster.xml:11309
#: reference_raster.xml:11404 reference_raster.xml:11497
#, no-c-format
msgid "Examples"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:722
#, no-c-format
msgid ""
"SELECT DropRasterConstraints ('myrasters','rast');\n"
"----RESULT output ---\n"
"t\n"
"\n"
"-- verify change in raster_columns --\n"
"SELECT srid, scale_x, scale_y, blocksize_x, blocksize_y, num_bands, "
"pixel_types, nodata_values\n"
" FROM raster_columns\n"
" WHERE r_table_name = 'myrasters';\n"
"\n"
" srid | scale_x | scale_y | blocksize_x | blocksize_y | num_bands | "
"pixel_types| nodata_values\n"
"------+---------+---------+-------------+-------------+-----------"
"+-------------+---------------\n"
" 0 | | | | | "
"| |"
msgstr ""
#. Tag: refname
#: reference_raster.xml:733
#, no-c-format
msgid "AddOverviewConstraints"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:735
#, no-c-format
msgid "Tag a raster column as being an overview of another."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:739
#, no-c-format
msgid ""
"<funcprototype> <funcdef>boolean <function>AddOverviewConstraints</"
"function></funcdef> <paramdef><type>name </type> <parameter>ovschema</"
"parameter></paramdef> <paramdef><type>name </type> <parameter>ovtable</"
"parameter></paramdef> <paramdef><type>name </type> <parameter>ovcolumn</"
"parameter></paramdef> <paramdef><type>name </type> <parameter>refschema</"
"parameter></paramdef> <paramdef><type>name </type> <parameter>reftable</"
"parameter></paramdef> <paramdef><type>name </type> <parameter>refcolumn</"
"parameter></paramdef> <paramdef><type>int </type> <parameter>ovfactor</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>boolean "
"<function>AddOverviewConstraints</function></funcdef> <paramdef><type>name </"
"type> <parameter>ovtable</parameter></paramdef> <paramdef><type>name </type> "
"<parameter>ovcolumn</parameter></paramdef> <paramdef><type>name </type> "
"<parameter>reftable</parameter></paramdef> <paramdef><type>name </type> "
"<parameter>refcolumn</parameter></paramdef> <paramdef><type>int </type> "
"<parameter>ovfactor</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:779
#, no-c-format
msgid ""
"Adds constraints on a raster column that are used to display information in "
"the <varname>raster_overviews</varname> raster catalog."
msgstr ""
#. Tag: para
#: reference_raster.xml:783
#, no-c-format
msgid ""
"The <varname>ovfactor</varname> parameter represents the scale multiplier in "
"the overview column: higher overview factors have lower resolution."
msgstr ""
#. Tag: para
#: reference_raster.xml:787
#, no-c-format
msgid ""
"When the <varname>ovschema</varname> and <varname>refschema</varname> "
"parameters are omitted, the first table found scanning the "
"<varname>search_path</varname> will be used."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:799
#, no-c-format
msgid ""
"CREATE TABLE res1 AS SELECT\n"
"ST_AddBand(\n"
" ST_MakeEmptyRaster(1000, 1000, 0, 0, 2),\n"
" 1, '8BSI'::text, -129, NULL\n"
") r1;\n"
"\n"
"CREATE TABLE res2 AS SELECT\n"
"ST_AddBand(\n"
" ST_MakeEmptyRaster(500, 500, 0, 0, 4),\n"
" 1, '8BSI'::text, -129, NULL\n"
") r2;\n"
"\n"
"SELECT AddOverviewConstraints('res2', 'r2', 'res1', 'r1', 2);\n"
"\n"
"-- verify if registered correctly in the raster_overviews view --\n"
"SELECT o_table_name ot, o_raster_column oc,\n"
" r_table_name rt, r_raster_column rc,\n"
" overview_factor f\n"
"FROM raster_overviews WHERE o_table_name = 'res2';\n"
" ot | oc | rt | rc | f\n"
"------+----+------+----+---\n"
" res2 | r2 | res1 | r1 | 2\n"
"(1 row)"
msgstr ""
#. Tag: para
#: reference_raster.xml:805
#, no-c-format
msgid ""
", <xref linkend=\"RT_DropOverviewConstraints\"/>, <xref linkend="
"\"RT_CreateOverview\"/>, <xref linkend=\"RT_AddRasterConstraints\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:816
#, no-c-format
msgid "DropOverviewConstraints"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:818
#, no-c-format
msgid "Untag a raster column from being an overview of another."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:822
#, no-c-format
msgid ""
"<funcprototype> <funcdef>boolean <function>DropOverviewConstraints</"
"function></funcdef> <paramdef><type>name </type> <parameter>ovschema</"
"parameter></paramdef> <paramdef><type>name </type> <parameter>ovtable</"
"parameter></paramdef> <paramdef><type>name </type> <parameter>ovcolumn</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>boolean "
"<function>DropOverviewConstraints</function></funcdef> <paramdef><type>name "
"</type> <parameter>ovtable</parameter></paramdef> <paramdef><type>name </"
"type> <parameter>ovcolumn</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:848
#, no-c-format
msgid ""
"Remove from a raster column the constraints used to show it as being an "
"overview of another in the <varname>raster_overviews</varname> raster "
"catalog."
msgstr ""
#. Tag: para
#: reference_raster.xml:853
#, no-c-format
msgid ""
"When the <varname>ovschema</varname> parameter is omitted, the first table "
"found scanning the <varname>search_path</varname> will be used."
msgstr ""
#. Tag: para
#: reference_raster.xml:865
#, no-c-format
msgid ""
", <xref linkend=\"RT_AddOverviewConstraints\"/>, <xref linkend="
"\"RT_DropRasterConstraints\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:875
#, no-c-format
msgid "PostGIS_GDAL_Version"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:876
#, no-c-format
msgid "Reports the version of the GDAL library in use by PostGIS."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:881
#, no-c-format
msgid ""
"<funcdef>text <function>PostGIS_GDAL_Version</function></funcdef> "
"<paramdef></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:890
#, no-c-format
msgid ""
"Reports the version of the GDAL library in use by PostGIS. Will also check "
"and report if GDAL can find its data files."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:895
#, no-c-format
msgid ""
"SELECT PostGIS_GDAL_Version();\n"
" postgis_gdal_version\n"
"-----------------------------------\n"
" GDAL 1.11dev, released 2013/04/13"
msgstr ""
#. Tag: refname
#: reference_raster.xml:908
#, no-c-format
msgid "PostGIS_Raster_Lib_Build_Date"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:910
#, no-c-format
msgid "Reports full raster library build date."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:915
#, no-c-format
msgid ""
"<funcdef>text <function>PostGIS_Raster_Lib_Build_Date</function></funcdef> "
"<paramdef></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:926
#, no-c-format
msgid "Reports raster build date"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:932
#, no-c-format
msgid ""
"SELECT PostGIS_Raster_Lib_Build_Date();\n"
"postgis_raster_lib_build_date\n"
"-----------------------------\n"
"2010-04-28 21:15:10"
msgstr ""
#. Tag: refname
#: reference_raster.xml:944
#, no-c-format
msgid "PostGIS_Raster_Lib_Version"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:946
#, no-c-format
msgid ""
"<refpurpose>Reports full raster version and build configuration infos.</"
"refpurpose>"
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:952
#, no-c-format
msgid ""
"<funcdef>text <function>PostGIS_Raster_Lib_Version</function></funcdef> "
"<paramdef></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:963
#, no-c-format
msgid "<para>Reports full raster version and build configuration infos.</para>"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:970
#, no-c-format
msgid ""
"SELECT PostGIS_Raster_Lib_Version();\n"
"postgis_raster_lib_version\n"
"-----------------------------\n"
" 2.0.0"
msgstr ""
#. Tag: refname
#: reference_raster.xml:984
#, no-c-format
msgid "ST_GDALDrivers"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:986
#, no-c-format
msgid ""
"Returns a list of raster formats supported by PostGIS through GDAL. Only "
"those formats with can_write=True can be used by ST_AsGDALRaster"
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:991
#, no-c-format
msgid ""
"<funcdef>setof record <function>ST_GDALDrivers</function></funcdef> "
"<paramdef><type>integer </type> <parameter>OUT idx</parameter></paramdef> "
"<paramdef><type>text </type> <parameter>OUT short_name</parameter></"
"paramdef> <paramdef><type>text </type> <parameter>OUT long_name</parameter></"
"paramdef> <paramdef><type>text </type> <parameter>OUT can_read</parameter></"
"paramdef> <paramdef><type>text </type> <parameter>OUT can_write</parameter></"
"paramdef> <paramdef><type>text </type> <parameter>OUT create_options</"
"parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:1006
#, no-c-format
msgid ""
"Returns a list of raster formats short_name,long_name and creator options of "
"each format supported by GDAL. Use the short_name as input in the "
"<varname>format</varname> parameter of <xref linkend=\"RT_ST_AsGDALRaster\"/"
">. Options vary depending on what drivers your libgdal was compiled with. "
"<varname>create_options</varname> returns an xml formatted set of "
"CreationOptionList/Option consisting of name and optional <varname>type</"
"varname>, <varname>description</varname> and set of <varname>VALUE</varname> "
"for each creator option for the specific driver."
msgstr ""
#. Tag: para
#: reference_raster.xml:1011
#, no-c-format
msgid "Changed: 2.5.0 - add can_read and can_write columns."
msgstr ""
#. Tag: para
#: reference_raster.xml:1012
#, no-c-format
msgid ""
"Changed: 2.0.6, 2.1.3 - by default no drivers are enabled, unless GUC or "
"Environment variable gdal_enabled_drivers is set."
msgstr ""
#. Tag: para
#: reference_raster.xml:1013 reference_raster.xml:1454
#: reference_raster.xml:6060 reference_raster.xml:6168
#: reference_raster.xml:6259 reference_raster.xml:6339
#, no-c-format
msgid "Availability: 2.0.0 - requires GDAL >= 1.6.0."
msgstr ""
#. Tag: title
#: reference_raster.xml:1018
#, no-c-format
msgid "Examples: List of Drivers"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:1020
#, no-c-format
msgid ""
"SET postgis.gdal_enabled_drivers = 'ENABLE_ALL';\n"
"SELECT short_name, long_name, can_write\n"
"FROM st_gdaldrivers()\n"
"ORDER BY short_name;\n"
"\n"
" short_name | "
"long_name | can_write\n"
"-----------------"
"+-------------------------------------------------------------+-----------\n"
" AAIGrid | Arc/Info ASCII "
"Grid | t\n"
" ACE2 | "
"ACE2 | f\n"
" ADRG | ARC Digitized Raster "
"Graphics | f\n"
" AIG | Arc/Info Binary "
"Grid | f\n"
" AirSAR | AirSAR Polarimetric "
"Image | f\n"
" ARG | Azavea Raster Grid "
"format | t\n"
" BAG | Bathymetry Attributed "
"Grid | f\n"
" BIGGIF | Graphics Interchange Format (."
"gif) | f\n"
" BLX | Magellan topo (."
"blx) | t\n"
" BMP | MS Windows Device Independent "
"Bitmap | f\n"
" BSB | Maptech BSB Nautical "
"Charts | f\n"
" PAux | PCI .aux "
"Labelled | f\n"
" PCIDSK | PCIDSK Database "
"File | f\n"
" PCRaster | PCRaster Raster "
"File | f\n"
" PDF | Geospatial "
"PDF | f\n"
" PDS | NASA Planetary Data "
"System | f\n"
" PDS4 | NASA Planetary Data System "
"4 | t\n"
" PLMOSAIC | Planet Labs Mosaics "
"API | f\n"
" PLSCENES | Planet Labs Scenes "
"API | f\n"
" PNG | Portable Network "
"Graphics | t\n"
" PNM | Portable Pixmap Format "
"(netpbm) | f\n"
" PRF | Racurs PHOTOMOD "
"PRF | f\n"
" R | R Object Data "
"Store | t\n"
" Rasterlite | "
"Rasterlite | t\n"
" RDA | DigitalGlobe Raster Data Access "
"driver | f\n"
" RIK | Swedish Grid RIK (."
"rik) | f\n"
" RMF | Raster Matrix "
"Format | f\n"
" ROI_PAC | ROI_PAC "
"raster | f\n"
" RPFTOC | Raster Product Format TOC "
"format | f\n"
" RRASTER | R "
"Raster | f\n"
" RS2 | RadarSat 2 XML "
"Product | f\n"
" RST | Idrisi Raster "
"A.1 | t\n"
" SAFE | Sentinel-1 SAR SAFE "
"Product | f\n"
" SAGA | SAGA GIS Binary Grid (.sdat, .sg-grd-"
"z) | t\n"
" SAR_CEOS | CEOS SAR "
"Image | f\n"
" SDTS | SDTS "
"Raster | f\n"
" SENTINEL2 | Sentinel "
"2 | f\n"
" SGI | SGI Image File Format "
"1.0 | f\n"
" SNODAS | Snow Data Assimilation "
"System | f\n"
" SRP | Standard Raster Product (ASRP/"
"USRP) | f\n"
" SRTMHGT | SRTMHGT File "
"Format | t\n"
" Terragen | Terragen "
"heightfield | f\n"
" TIL | EarthWatch ."
"TIL | f\n"
" TSX | TerraSAR-X "
"Product | f\n"
" USGSDEM | USGS Optional ASCII DEM (and "
"CDED) | t\n"
" VICAR | MIPL VICAR "
"file | f\n"
" VRT | Virtual "
"Raster | t\n"
" WCS | OGC Web Coverage "
"Service | f\n"
" WMS | OGC Web Map "
"Service | t\n"
" WMTS | OGC Web Map Tile "
"Service | t\n"
" XPM | X11 PixMap "
"Format | t\n"
" XYZ | ASCII Gridded "
"XYZ | t\n"
" ZMap | ZMap Plus "
"Grid | t"
msgstr ""
#. Tag: title
#: reference_raster.xml:1022
#, no-c-format
msgid "Example: List of options for each driver"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:1023
#, no-c-format
msgid ""
"-- Output the create options XML column of JPEG as a table --\n"
"-- Note you can use these creator options in ST_AsGDALRaster options "
"argument\n"
"SELECT (xpath('@name', g.opt))[1]::text As oname,\n"
" (xpath('@type', g.opt))[1]::text As otype,\n"
" (xpath('@description', g.opt))[1]::text As descrip\n"
"FROM (SELECT unnest(xpath('/CreationOptionList/Option', create_options::"
"xml)) As opt\n"
"FROM st_gdaldrivers()\n"
"WHERE short_name = 'JPEG') As g;\n"
"\n"
" oname | otype | descrip\n"
"--------------------+---------"
"+-------------------------------------------------\n"
" PROGRESSIVE | boolean | whether to generate a progressive JPEG\n"
" QUALITY | int | good=100, bad=0, default=75\n"
" WORLDFILE | boolean | whether to geneate a worldfile\n"
" INTERNAL_MASK | boolean | whether to generate a validity mask\n"
" COMMENT | string | Comment\n"
" SOURCE_ICC_PROFILE | string | ICC profile encoded in Base64\n"
" EXIF_THUMBNAIL | boolean | whether to generate an EXIF "
"thumbnail(overview).\n"
" By default its max dimension will be 128\n"
" THUMBNAIL_WIDTH | int | Forced thumbnail width\n"
" THUMBNAIL_HEIGHT | int | Forced thumbnail height\n"
"(9 rows)"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:1025
#, no-c-format
msgid ""
"-- raw xml output for creator options for GeoTiff --\n"
"SELECT create_options\n"
"FROM st_gdaldrivers()\n"
"WHERE short_name = 'GTiff';\n"
"\n"
"<![CDATA[<CreationOptionList>\n"
" <Option name=\"COMPRESS\" type=\"string-select\">\n"
" <Value>NONE</Value>\n"
" <Value>LZW</Value>\n"
" <Value>PACKBITS</Value>\n"
" <Value>JPEG</Value>\n"
" <Value>CCITTRLE</Value>\n"
" <Value>CCITTFAX3</Value>\n"
" <Value>CCITTFAX4</Value>\n"
" <Value>DEFLATE</Value>\n"
" </Option>\n"
" <Option name=\"PREDICTOR\" type=\"int\" description=\"Predictor Type\"/"
">\n"
" <Option name=\"JPEG_QUALITY\" type=\"int\" description=\"JPEG quality "
"1-100\" default=\"75\"/>\n"
" <Option name=\"ZLEVEL\" type=\"int\" description=\"DEFLATE compression "
"level 1-9\" default=\"6\"/>\n"
" <Option name=\"NBITS\" type=\"int\" description=\"BITS for sub-byte "
"files (1-7), sub-uint16 (9-15), sub-uint32 (17-31)\"/>\n"
" <Option name=\"INTERLEAVE\" type=\"string-select\" default=\"PIXEL\">\n"
" <Value>BAND</Value>\n"
" <Value>PIXEL</Value>\n"
" </Option>\n"
" <Option name=\"TILED\" type=\"boolean\" description=\"Switch to tiled "
"format\"/>\n"
" <Option name=\"TFW\" type=\"boolean\" description=\"Write out world file"
"\"/>\n"
" <Option name=\"RPB\" type=\"boolean\" description=\"Write out .RPB (RPC) "
"file\"/>\n"
" <Option name=\"BLOCKXSIZE\" type=\"int\" description=\"Tile Width\"/>\n"
" <Option name=\"BLOCKYSIZE\" type=\"int\" description=\"Tile/Strip Height"
"\"/>\n"
" <Option name=\"PHOTOMETRIC\" type=\"string-select\">\n"
" <Value>MINISBLACK</Value>\n"
" <Value>MINISWHITE</Value>\n"
" <Value>PALETTE</Value>\n"
" <Value>RGB</Value>\n"
" <Value>CMYK</Value>\n"
" <Value>YCBCR</Value>\n"
" <Value>CIELAB</Value>\n"
" <Value>ICCLAB</Value>\n"
" <Value>ITULAB</Value>\n"
" </Option>\n"
" <Option name=\"SPARSE_OK\" type=\"boolean\" description=\"Can newly "
"created files have missing blocks?\" default=\"FALSE\"/>\n"
" <Option name=\"ALPHA\" type=\"boolean\" description=\"Mark first "
"extrasample as being alpha\"/>\n"
" <Option name=\"PROFILE\" type=\"string-select\" default=\"GDALGeoTIFF"
"\">\n"
" <Value>GDALGeoTIFF</Value>\n"
" <Value>GeoTIFF</Value>\n"
" <Value>BASELINE</Value>\n"
" </Option>\n"
" <Option name=\"PIXELTYPE\" type=\"string-select\">\n"
" <Value>DEFAULT</Value>\n"
" <Value>SIGNEDBYTE</Value>\n"
" </Option>\n"
" <Option name=\"BIGTIFF\" type=\"string-select\" description=\"Force "
"creation of BigTIFF file\">\n"
" <Value>YES</Value>\n"
" <Value>NO</Value>\n"
" <Value>IF_NEEDED</Value>\n"
" <Value>IF_SAFER</Value>\n"
" </Option>\n"
" <Option name=\"ENDIANNESS\" type=\"string-select\" default=\"NATIVE\" "
"description=\"Force endianness of created file. For DEBUG purpose mostly\">\n"
" <Value>NATIVE</Value>\n"
" <Value>INVERTED</Value>\n"
" <Value>LITTLE</Value>\n"
" <Value>BIG</Value>\n"
" </Option>\n"
" <Option name=\"COPY_SRC_OVERVIEWS\" type=\"boolean\" default=\"NO\" "
"description=\"Force copy of overviews of source dataset (CreateCopy())\"/>\n"
"</CreationOptionList>]]>\n"
"\n"
"-- Output the create options XML column for GTiff as a table --\n"
"SELECT (xpath('@name', g.opt))[1]::text As oname,\n"
" (xpath('@type', g.opt))[1]::text As otype,\n"
" (xpath('@description', g.opt))[1]::text As descrip,\n"
" array_to_string(xpath('Value/text()', g.opt),', ') As vals\n"
"FROM (SELECT unnest(xpath('/CreationOptionList/Option', create_options::"
"xml)) As opt\n"
"FROM st_gdaldrivers()\n"
"WHERE short_name = 'GTiff') As g;\n"
"\n"
" oname | otype | "
"descrip | "
"vals\n"
"--------------------+---------------"
"+----------------------------------------------------------------------"
"+---------------------------------------------------------------------------\n"
" COMPRESS | string-select "
"| | "
"NONE, LZW, PACKBITS, JPEG, CCITTRLE, CCITTFAX3, CCITTFAX4, DEFLATE\n"
" PREDICTOR | int | Predictor "
"Type |\n"
" JPEG_QUALITY | int | JPEG quality "
"1-100 |\n"
" ZLEVEL | int | DEFLATE compression level "
"1-9 |\n"
" NBITS | int | BITS for sub-byte files (1-7), sub-"
"uint16 (9-15), sub-uint32 (17-31) |\n"
" INTERLEAVE | string-select "
"| | "
"BAND, PIXEL\n"
" TILED | boolean | Switch to tiled "
"format |\n"
" TFW | boolean | Write out world "
"file |\n"
" RPB | boolean | Write out .RPB (RPC) "
"file |\n"
" BLOCKXSIZE | int | Tile "
"Width |\n"
" BLOCKYSIZE | int | Tile/Strip "
"Height |\n"
" PHOTOMETRIC | string-select "
"| | "
"MINISBLACK, MINISWHITE, PALETTE, RGB, CMYK, YCBCR, CIELAB, ICCLAB, ITULAB\n"
" SPARSE_OK | boolean | Can newly created files have missing "
"blocks? |\n"
" ALPHA | boolean | Mark first extrasample as being "
"alpha |\n"
" PROFILE | string-select "
"| | "
"GDALGeoTIFF, GeoTIFF, BASELINE\n"
" PIXELTYPE | string-select "
"| | "
"DEFAULT, SIGNEDBYTE\n"
" BIGTIFF | string-select | Force creation of BigTIFF "
"file | YES, NO, IF_NEEDED, IF_SAFER\n"
" ENDIANNESS | string-select | Force endianness of created file. For "
"DEBUG purpose mostly | NATIVE, INVERTED, LITTLE, BIG\n"
" COPY_SRC_OVERVIEWS | boolean | Force copy of overviews of source "
"dataset (CreateCopy()) |\n"
"(19 rows)"
msgstr ""
#. Tag: para
#: reference_raster.xml:1031
#, no-c-format
msgid ""
", <xref linkend=\"ST_SRID\"/>, <xref linkend=\"postgis_gdal_enabled_drivers"
"\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:1037
#, no-c-format
msgid "UpdateRasterSRID"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:1038
#, no-c-format
msgid "Change the SRID of all rasters in the user-specified column and table."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:1044
#, no-c-format
msgid ""
"<funcprototype> <funcdef>raster <function>UpdateRasterSRID</function></"
"funcdef> <paramdef><type>name </type> <parameter>schema_name</parameter></"
"paramdef> <paramdef><type>name </type> <parameter>table_name</parameter></"
"paramdef> <paramdef><type>name </type> <parameter>column_name</parameter></"
"paramdef> <paramdef><type>integer </type> <parameter>new_srid</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>UpdateRasterSRID</function></funcdef> <paramdef><type>name </type> "
"<parameter>table_name</parameter></paramdef> <paramdef><type>name </type> "
"<parameter>column_name</parameter></paramdef> <paramdef><type>integer </"
"type> <parameter>new_srid</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:1067
#, no-c-format
msgid ""
"Change the SRID of all rasters in the user-specified column and table. The "
"function will drop all appropriate column constraints (extent, alignment and "
"SRID) before changing the SRID of the specified column's rasters."
msgstr ""
#. Tag: para
#: reference_raster.xml:1072
#, no-c-format
msgid ""
"The data (band pixel values) of the rasters are not touched by this "
"function. Only the raster's metadata is changed."
msgstr ""
#. Tag: para
#: reference_raster.xml:1077 reference_raster.xml:1747
#: reference_raster.xml:1848 reference_raster.xml:2298
#: reference_raster.xml:2593 reference_raster.xml:2748
#: reference_raster.xml:3391 reference_raster.xml:3445
#: reference_raster.xml:3489 reference_raster.xml:3543
#: reference_raster.xml:3700 reference_raster.xml:3797
#: reference_raster.xml:3982 reference_raster.xml:4085
#: reference_raster.xml:4182 reference_raster.xml:6700
#: reference_raster.xml:7294 reference_raster.xml:7485
#: reference_raster.xml:8759 reference_raster.xml:9044
#: reference_raster.xml:9492 reference_raster.xml:9625
#: reference_raster.xml:9676 reference_raster.xml:9913
#: reference_raster.xml:10166 reference_raster.xml:10438
#: reference_raster.xml:10525 reference_raster.xml:10606
#: reference_raster.xml:10687 reference_raster.xml:10768
#: reference_raster.xml:10981 reference_raster.xml:11061
#: reference_raster.xml:11218 reference_raster.xml:11305
#: reference_raster.xml:11400 reference_raster.xml:11493
#, no-c-format
msgid "Availability: 2.1.0"
msgstr ""
#. Tag: refname
#: reference_raster.xml:1089
#, no-c-format
msgid "ST_CreateOverview"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:1090
#, no-c-format
msgid "Create an reduced resolution version of a given raster coverage."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:1098
#, no-c-format
msgid ""
"<funcdef>regclass <function>ST_CreateOverview</function></funcdef> "
"<paramdef><type>regclass </type> <parameter>tab</parameter></paramdef> "
"<paramdef><type>name </type> <parameter>col</parameter></paramdef> "
"<paramdef><type>int </type> <parameter>factor</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>text </type> "
"<parameter>algo='NearestNeighbor'</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:1112
#, no-c-format
msgid ""
"Create an overview table with resampled tiles from the source table. Output "
"tiles will have the same size of input tiles and cover the same spatial "
"extent with a lower resolution (pixel size will be 1/<varname>factor</"
"varname> of the original in both directions)."
msgstr ""
#. Tag: para
#: reference_raster.xml:1119
#, no-c-format
msgid ""
"The overview table will be made available in the <varname>raster_overviews</"
"varname> catalog and will have raster constraints enforced."
msgstr ""
#. Tag: para
#: reference_raster.xml:1125 reference_raster.xml:1806
#: reference_raster.xml:4892
#, no-c-format
msgid ""
"Algorithm options are: 'NearestNeighbor', 'Bilinear', 'Cubic', "
"'CubicSpline', and 'Lanczos'. Refer to: <ulink url=\"http://www.gdal.org/"
"gdalwarp.html\">GDAL Warp resampling methods</ulink> for more details."
msgstr ""
#. Tag: para
#: reference_raster.xml:1127 reference_raster.xml:1808
#: reference_raster.xml:2007 reference_raster.xml:5279
#: reference_raster.xml:5658
#, no-c-format
msgid "Availability: 2.2.0"
msgstr ""
#. Tag: title
#: reference_raster.xml:1130
#, no-c-format
msgid "Example"
msgstr ""
#. Tag: para
#: reference_raster.xml:1131
#, no-c-format
msgid "Output to generally better quality but slower to product format"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:1132
#, no-c-format
msgid ""
"SELECT ST_CreateOverview('mydata.mytable'::regclass, 'rast', 2, 'Lanczos');"
msgstr ""
#. Tag: para
#: reference_raster.xml:1134
#, no-c-format
msgid "Output to faster to process default nearest neighbor"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:1135
#, no-c-format
msgid "SELECT ST_CreateOverview('mydata.mytable'::regclass, 'rast', 2);"
msgstr ""
#. Tag: para
#: reference_raster.xml:1140
#, no-c-format
msgid ""
", <xref linkend=\"RT_AddOverviewConstraints\"/>, <xref linkend="
"\"RT_AddRasterConstraints\"/>, <xref linkend=\"RT_Raster_Overviews\"/>"
msgstr ""
#. Tag: title
#: reference_raster.xml:1151
#, no-c-format
msgid "Raster Constructors"
msgstr ""
#. Tag: refname
#: reference_raster.xml:1155
#, no-c-format
msgid "ST_AddBand"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:1156
#, no-c-format
msgid ""
"Returns a raster with the new band(s) of given type added with given initial "
"value in the given index location. If no index is specified, the band is "
"added to the end."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:1162
#, no-c-format
msgid ""
"<funcprototype> <funcdef>(1) raster <function>ST_AddBand</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> <paramdef><type>addbandarg[] </type> <parameter>addbandargset</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>(2) raster "
"<function>ST_AddBand</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>index</parameter></paramdef> <paramdef><type>text </type> "
"<parameter>pixeltype</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>initialvalue=0</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>(3) raster <function>ST_AddBand</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> <paramdef><type>text </type> <parameter>pixeltype</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>initialvalue=0</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>nodataval=NULL</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>(4) raster "
"<function>ST_AddBand</function></funcdef> <paramdef><type>raster </type> "
"<parameter>torast</parameter></paramdef> <paramdef><type>raster </type> "
"<parameter>fromrast</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>integer </type> <parameter>fromband=1</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>integer </type> "
"<parameter>torastindex=at_end</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>(5) raster <function>ST_AddBand</function></"
"funcdef> <paramdef><type>raster </type> <parameter>torast</parameter></"
"paramdef> <paramdef><type>raster[] </type> <parameter>fromrasts</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>integer </type> "
"<parameter>fromband=1</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>integer </type> <parameter>torastindex=at_end</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>(6) raster "
"<function>ST_AddBand</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>index</parameter></paramdef> <paramdef><type>text </type> "
"<parameter>outdbfile</parameter></paramdef> <paramdef><type>integer[] </"
"type> <parameter>outdbindex</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>nodataval=NULL</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>(7) raster "
"<function>ST_AddBand</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef><type>text </type> "
"<parameter>outdbfile</parameter></paramdef> <paramdef><type>integer[] </"
"type> <parameter>outdbindex</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>integer </type> <parameter>index=at_end</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:1227
#, no-c-format
msgid ""
"Returns a raster with a new band added in given position (index), of given "
"type, of given initial value, and of given nodata value. If no index is "
"specified, the band is added to the end. If no <varname>fromband</varname> "
"is specified, band 1 is assumed. Pixel type is a string representation of "
"one of the pixel types specified in <xref linkend=\"RT_ST_BandPixelType\"/>. "
"If an existing index is specified all subsequent bands >= that index are "
"incremented by 1. If an initial value greater than the max of the pixel type "
"is specified, then the initial value is set to the highest value allowed by "
"the pixel type."
msgstr ""
#. Tag: para
#: reference_raster.xml:1231
#, no-c-format
msgid ""
"For the variant that takes an array of <xref linkend=\"addbandarg\"/> "
"(Variant 1), a specific addbandarg's index value is relative to the raster "
"at the time when the band described by that addbandarg is being added to the "
"raster. See the Multiple New Bands example below."
msgstr ""
#. Tag: para
#: reference_raster.xml:1235
#, no-c-format
msgid ""
"For the variant that takes an array of rasters (Variant 5), if "
"<varname>torast</varname> is NULL then the <varname>fromband</varname> band "
"of each raster in the array is accumulated into a new raster."
msgstr ""
#. Tag: para
#: reference_raster.xml:1239
#, no-c-format
msgid ""
"For the variants that take <varname>outdbfile</varname> (Variants 6 and 7), "
"the value must include the full path to the raster file. The file must also "
"be accessible to the postgres server process."
msgstr ""
#. Tag: para
#: reference_raster.xml:1243
#, no-c-format
msgid "Enhanced: 2.1.0 support for addbandarg added."
msgstr ""
#. Tag: para
#: reference_raster.xml:1244
#, no-c-format
msgid "Enhanced: 2.1.0 support for new out-db bands added."
msgstr ""
#. Tag: title
#: reference_raster.xml:1248
#, no-c-format
msgid "Examples: Single New Band"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:1250
#, no-c-format
msgid ""
"-- Add another band of type 8 bit unsigned integer with pixels initialized "
"to 200\n"
"UPDATE dummy_rast\n"
" SET rast = ST_AddBand(rast,'8BUI'::text,200)\n"
"WHERE rid = 1;"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:1252
#, no-c-format
msgid ""
"-- Create an empty raster 100x100 units, with upper left right at 0, add 2 "
"bands (band 1 is 0/1 boolean bit switch, band2 allows values 0-15)\n"
"-- uses addbandargs\n"
"INSERT INTO dummy_rast(rid,rast)\n"
" VALUES(10, ST_AddBand(ST_MakeEmptyRaster(100, 100, 0, 0, 1, -1, 0, 0, "
"0),\n"
" ARRAY[\n"
" ROW(1, '1BB'::text, 0, NULL),\n"
" ROW(2, '4BUI'::text, 0, NULL)\n"
" ]::addbandarg[]\n"
" )\n"
" );\n"
"\n"
"-- output meta data of raster bands to verify all is right --\n"
"SELECT (bmd).*\n"
"FROM (SELECT ST_BandMetaData(rast,generate_series(1,2)) As bmd\n"
" FROM dummy_rast WHERE rid = 10) AS foo;\n"
" --result --\n"
" pixeltype | nodatavalue | isoutdb | path\n"
"-----------+----------------+-------------+---------+------\n"
" 1BB | | f |\n"
" 4BUI | | f |\n"
"\n"
"\n"
"-- output meta data of raster -\n"
"SELECT (rmd).width, (rmd).height, (rmd).numbands\n"
"FROM (SELECT ST_MetaData(rast) As rmd\n"
" FROM dummy_rast WHERE rid = 10) AS foo;\n"
"-- result --\n"
" upperleftx | upperlefty | width | height | scalex | scaley | skewx | skewy "
"| srid | numbands\n"
"------------+------------+-------+--------+------------+------------+-------"
"+-------+------+----------\n"
" 0 | 0 | 100 | 100 | 1 | -1 | 0 | 0 "
"| 0 | 2"
msgstr ""
#. Tag: title
#: reference_raster.xml:1256
#, no-c-format
msgid "Examples: Multiple New Bands"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:1258
#, no-c-format
msgid ""
"SELECT\n"
" *\n"
"FROM ST_BandMetadata(\n"
" ST_AddBand(\n"
" ST_MakeEmptyRaster(10, 10, 0, 0, 1, -1, 0, 0, 0),\n"
" ARRAY[\n"
" ROW(NULL, '8BUI', 255, 0),\n"
" ROW(NULL, '16BUI', 1, 2),\n"
" ROW(2, '32BUI', 100, 12),\n"
" ROW(2, '32BF', 3.14, -1)\n"
" ]::addbandarg[]\n"
" ),\n"
" ARRAY[]::integer[]\n"
");\n"
"\n"
" bandnum | pixeltype | nodatavalue | isoutdb | path\n"
"---------+-----------+-------------+---------+------\n"
" 1 | 8BUI | 0 | f |\n"
" 2 | 32BF | -1 | f |\n"
" 3 | 32BUI | 12 | f |\n"
" 4 | 16BUI | 2 | f |"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:1260
#, no-c-format
msgid ""
"-- Aggregate the 1st band of a table of like rasters into a single raster\n"
"-- with as many bands as there are test_types and as many rows (new rasters) "
"as there are mice\n"
"-- NOTE: The ORDER BY test_type is only supported in PostgreSQL 9.0+\n"
"-- for 8.4 and below it usually works to order your data in a subselect (but "
"not guaranteed)\n"
"-- The resulting raster will have a band for each test_type alphabetical by "
"test_type\n"
"-- For mouse lovers: No mice were harmed in this exercise\n"
"SELECT\n"
" mouse,\n"
" ST_AddBand(NULL, array_agg(rast ORDER BY test_type), 1) As rast\n"
"FROM mice_studies\n"
"GROUP BY mouse;"
msgstr ""
#. Tag: title
#: reference_raster.xml:1264
#, no-c-format
msgid "Examples: New Out-db band"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:1265
#, no-c-format
msgid ""
"SELECT\n"
" *\n"
"FROM ST_BandMetadata(\n"
" ST_AddBand(\n"
" ST_MakeEmptyRaster(10, 10, 0, 0, 1, -1, 0, 0, 0),\n"
" '/home/raster/mytestraster.tif'::text, NULL::int[]\n"
" ),\n"
" ARRAY[]::integer[]\n"
");\n"
"\n"
" bandnum | pixeltype | nodatavalue | isoutdb | path\n"
"---------+-----------+-------------+---------+------\n"
" 1 | 8BUI | | t | /home/raster/mytestraster."
"tif\n"
" 2 | 8BUI | | t | /home/raster/mytestraster."
"tif\n"
" 3 | 8BUI | | t | /home/raster/mytestraster.tif"
msgstr ""
#. Tag: para
#: reference_raster.xml:1270
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_BandPixelType\"/>, <xref linkend="
"\"RT_ST_MakeEmptyRaster\"/>, <xref linkend=\"RT_ST_MetaData\"/>, <xref "
"linkend=\"RT_ST_NumBands\"/>, <xref linkend=\"RT_ST_Reclass\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:1283
#, no-c-format
msgid "ST_AsRaster"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:1284
#, no-c-format
msgid "Converts a PostGIS geometry to a PostGIS raster."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:1288
#, no-c-format
msgid ""
"<funcprototype> <funcdef>raster <function>ST_AsRaster</function></funcdef> "
"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> "
"<paramdef><type>raster </type> <parameter>ref</parameter></paramdef> "
"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>double precision </type> <parameter>value=1</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
"type> <parameter>nodataval=0</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>boolean </type> <parameter>touched=false</parameter></paramdef> </"
"funcprototype> <funcprototype> <funcdef>raster <function>ST_AsRaster</"
"function></funcdef> <paramdef><type>geometry </type> <parameter>geom</"
"parameter></paramdef> <paramdef><type>raster </type> <parameter>ref</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>text[] </type> "
"<parameter>pixeltype=ARRAY['8BUI']</parameter></paramdef> <paramdef choice="
"\"opt\"><type>double precision[] </type> <parameter>value=ARRAY[1]</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </"
"type> <parameter>nodataval=ARRAY[0]</parameter></paramdef> <paramdef choice="
"\"opt\"><type>boolean </type> <parameter>touched=false</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>ST_AsRaster</function></funcdef> <paramdef><type>geometry </type> "
"<parameter>geom</parameter></paramdef> <paramdef><type>double precision </"
"type> <parameter>scalex</parameter></paramdef> <paramdef><type>double "
"precision </type> <parameter>scaley</parameter></paramdef> "
"<paramdef><type>double precision </type> <parameter>gridx</parameter></"
"paramdef> <paramdef><type>double precision </type> <parameter>gridy</"
"parameter></paramdef> <paramdef><type>text </type> <parameter>pixeltype</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
"type> <parameter>value=1</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>nodataval=0</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>boolean </type> <parameter>touched=false</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>ST_AsRaster</function></funcdef> <paramdef><type>geometry </type> "
"<parameter>geom</parameter></paramdef> <paramdef><type>double precision </"
"type> <parameter>scalex</parameter></paramdef> <paramdef><type>double "
"precision </type> <parameter>scaley</parameter></paramdef> <paramdef choice="
"\"opt\"><type>double precision </type> <parameter>gridx=NULL</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>gridy=NULL</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>text[] </type> <parameter>pixeltype=ARRAY['8BUI']</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>double precision[] </type> "
"<parameter>value=ARRAY[1]</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision[] </type> <parameter>nodataval=ARRAY[0]</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
"type> <parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>boolean </type> <parameter>touched=false</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>ST_AsRaster</function></funcdef> <paramdef><type>geometry </type> "
"<parameter>geom</parameter></paramdef> <paramdef><type>double precision </"
"type> <parameter>scalex</parameter></paramdef> <paramdef><type>double "
"precision </type> <parameter>scaley</parameter></paramdef> "
"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>double precision </type> <parameter>value=1</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
"type> <parameter>nodataval=0</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>upperleftx=NULL</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>upperlefty=NULL</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>skewx=0</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>double precision </type> <parameter>skewy=0</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>touched=false</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>raster <function>ST_AsRaster</function></funcdef> "
"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> "
"<paramdef><type>double precision </type> <parameter>scalex</parameter></"
"paramdef> <paramdef><type>double precision </type> <parameter>scaley</"
"parameter></paramdef> <paramdef><type>text[] </type> <parameter>pixeltype</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </"
"type> <parameter>value=ARRAY[1]</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision[] </type> <parameter>nodataval=ARRAY[0]</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
"type> <parameter>upperleftx=NULL</parameter></paramdef> <paramdef choice="
"\"opt\"><type>double precision </type> <parameter>upperlefty=NULL</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
"type> <parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>boolean </type> <parameter>touched=false</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>ST_AsRaster</function></funcdef> <paramdef><type>geometry </type> "
"<parameter>geom</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>width</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>height</parameter></paramdef> <paramdef><type>double precision </"
"type> <parameter>gridx</parameter></paramdef> <paramdef><type>double "
"precision </type> <parameter>gridy</parameter></paramdef> "
"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>double precision </type> <parameter>value=1</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
"type> <parameter>nodataval=0</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>skewx=0</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>double precision </type> <parameter>skewy=0</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>touched=false</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>raster <function>ST_AsRaster</function></funcdef> "
"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>gridx=NULL</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>gridy=NULL</parameter></"
"paramdef> <paramdef><type>text[] </type> <parameter>pixeltype=ARRAY['8BUI']</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </"
"type> <parameter>value=ARRAY[1]</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision[] </type> <parameter>nodataval=ARRAY[0]</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
"type> <parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>boolean </type> <parameter>touched=false</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>ST_AsRaster</function></funcdef> <paramdef><type>geometry </type> "
"<parameter>geom</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>width</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>height</parameter></paramdef> <paramdef><type>text </type> "
"<parameter>pixeltype</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>value=1</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>nodataval=0</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>upperleftx=NULL</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>upperlefty=NULL</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>skewx=0</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>double precision </type> <parameter>skewy=0</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>touched=false</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>raster <function>ST_AsRaster</function></funcdef> "
"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> "
"<paramdef><type>text[] </type> <parameter>pixeltype</parameter></paramdef> "
"<paramdef><type>double precision[] </type> <parameter>value=ARRAY[1]</"
"parameter></paramdef> <paramdef><type>double precision[] </type> "
"<parameter>nodataval=ARRAY[0]</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>upperleftx=NULL</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>upperlefty=NULL</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>skewx=0</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>double precision </type> <parameter>skewy=0</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>touched=false</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:1436
#, no-c-format
msgid ""
"Converts a PostGIS geometry to a PostGIS raster. The many variants offers "
"three groups of possibilities for setting the alignment and pixelsize of the "
"resulting raster."
msgstr ""
#. Tag: para
#: reference_raster.xml:1438
#, no-c-format
msgid ""
"The first group, composed of the two first variants, produce a raster having "
"the same alignment (<varname>scalex</varname>, <varname>scaley</varname>, "
"<varname>gridx</varname> and <varname>gridy</varname>), pixel type and "
"nodata value as the provided reference raster. You generally pass this "
"reference raster by joining the table containing the geometry with the table "
"containing the reference raster."
msgstr ""
#. Tag: para
#: reference_raster.xml:1440
#, no-c-format
msgid ""
"The second group, composed of four variants, let you set the dimensions of "
"the raster by providing the parameters of a pixel size (<varname>scalex</"
"varname> & <varname>scaley</varname> and <varname>skewx</varname> & "
"<varname>skewy</varname>). The <varname>width</varname> & "
"<varname>height</varname> of the resulting raster will be adjusted to fit "
"the extent of the geometry. In most cases, you must cast integer "
"<varname>scalex</varname> & <varname>scaley</varname> arguments to "
"double precision so that PostgreSQL choose the right variant."
msgstr ""
#. Tag: para
#: reference_raster.xml:1442
#, no-c-format
msgid ""
"The third group, composed of four variants, let you fix the dimensions of "
"the raster by providing the dimensions of the raster (<varname>width</"
"varname> & <varname>height</varname>). The parameters of the pixel size "
"(<varname>scalex</varname> & <varname>scaley</varname> and "
"<varname>skewx</varname> & <varname>skewy</varname>) of the resulting "
"raster will be adjusted to fit the extent of the geometry."
msgstr ""
#. Tag: para
#: reference_raster.xml:1444
#, no-c-format
msgid ""
"The two first variants of each of those two last groups let you specify the "
"alignment with an arbitrary corner of the alignment grid (<varname>gridx</"
"varname> & <varname>gridy</varname>) and the two last variants takes the "
"upper left corner (<varname>upperleftx</varname> & <varname>upperlefty</"
"varname>)."
msgstr ""
#. Tag: para
#: reference_raster.xml:1446
#, no-c-format
msgid ""
"Each group of variant allows producing a one band raster or a multiple bands "
"raster. To produce a multiple bands raster, you must provide an array of "
"pixel types (<varname>pixeltype[]</varname>), an array of initial values "
"(<varname>value</varname>) and an array of nodata values "
"(<varname>nodataval</varname>). If not provided pixeltyped defaults to 8BUI, "
"values to 1 and nodataval to 0."
msgstr ""
#. Tag: para
#: reference_raster.xml:1448
#, no-c-format
msgid ""
"The output raster will be in the same spatial reference as the source "
"geometry. The only exception is for variants with a reference raster. In "
"this case the resulting raster will get the same SRID as the reference "
"raster."
msgstr ""
#. Tag: para
#: reference_raster.xml:1450
#, no-c-format
msgid ""
"The optional <varname>touched</varname> parameter defaults to false and maps "
"to the GDAL ALL_TOUCHED rasterization option, which determines if pixels "
"touched by lines or polygons will be burned. Not just those on the line "
"render path, or whose center point is within the polygon."
msgstr ""
#. Tag: para
#: reference_raster.xml:1452
#, no-c-format
msgid ""
"This is particularly useful for rendering jpegs and pngs of geometries "
"directly from the database when using in combination with <xref linkend="
"\"RT_ST_AsPNG\"/> and other <xref linkend=\"RT_ST_AsGDALRaster\"/> family of "
"functions."
msgstr ""
#. Tag: para
#: reference_raster.xml:1456
#, no-c-format
msgid ""
"Not yet capable of rendering complex geometry types such as curves, TINS, "
"and PolyhedralSurfaces, but should be able too once GDAL can."
msgstr ""
#. Tag: title
#: reference_raster.xml:1461
#, no-c-format
msgid "Examples: Output geometries as PNG files"
msgstr ""
#. Tag: para
#: reference_raster.xml:1467
#, no-c-format
msgid "black circle"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:1470
#, no-c-format
msgid ""
"-- this will output a black circle taking up 150 x 150 pixels --\n"
"SELECT ST_AsPNG(ST_AsRaster(ST_Buffer(ST_Point(1,5),10),150, 150));"
msgstr ""
#. Tag: para
#: reference_raster.xml:1477
#, no-c-format
msgid "example from buffer rendered with just PostGIS"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:1481
#, no-c-format
msgid ""
"-- the bands map to RGB bands - the value (118,154,118) - teal --\n"
"SELECT ST_AsPNG(\n"
" ST_AsRaster(\n"
" ST_Buffer(\n"
" ST_GeomFromText('LINESTRING(50 50,150 150,150 50)'), "
"10,'join=bevel'),\n"
" 200,200,ARRAY['8BUI', '8BUI', '8BUI'], "
"ARRAY[118,154,118], ARRAY[0,0,0]));"
msgstr ""
#. Tag: para
#: reference_raster.xml:1487
#, no-c-format
msgid ""
", <xref linkend=\"ST_Buffer\"/>, <xref linkend=\"RT_ST_GDALDrivers\"/>, "
"<xref linkend=\"RT_ST_AsGDALRaster\"/>, <xref linkend=\"RT_ST_AsPNG\"/>, "
"<xref linkend=\"RT_ST_AsJPEG\"/>, <xref linkend=\"RT_ST_SRID\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:1493
#, no-c-format
msgid "ST_Band"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:1494
#, no-c-format
msgid ""
"Returns one or more bands of an existing raster as a new raster. Useful for "
"building new rasters from existing rasters."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:1498
#, no-c-format
msgid ""
"<funcprototype> <funcdef>raster <function>ST_Band</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>integer[] </type> <parameter>nbands = "
"ARRAY[1]</parameter></paramdef> </funcprototype> <funcprototype> "
"<funcdef>raster <function>ST_Band</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> </"
"funcprototype> <funcprototype> <funcdef>raster <function>ST_Band</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> <paramdef><type>text </type> <parameter>nbands</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>character </type> "
"<parameter>delimiter=,</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:1523
#, no-c-format
msgid ""
"Returns one or more bands of an existing raster as a new raster. Useful for "
"building new rasters from existing rasters or export of only selected bands "
"of a raster or rearranging the order of bands in a raster. If no band is "
"specified or any of specified bands does not exist in the raster, then all "
"bands are returned. Used as a helper function in various functions such as "
"for deleting a band."
msgstr ""
#. Tag: para
#: reference_raster.xml:1525
#, no-c-format
msgid ""
"For the <code>nbands</code> as text variant of function, the default "
"delimiter is <code>,</code> which means you can ask for <code>'1,2,3'</code> "
"and if you wanted to use a different delimeter you would do "
"<code>ST_Band(rast, '1@2@3', '@')</code>. For asking for multiple bands, we "
"strongly suggest you use the array form of this function e.g. "
"<code>ST_Band(rast, '{1,2,3}'::int[]);</code> since the <code>text</code> "
"list of bands form may be removed in future versions of PostGIS."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:1533
#, no-c-format
msgid ""
"-- Make 2 new rasters: 1 containing band 1 of dummy, second containing band "
"2 of dummy and then reclassified as a 2BUI\n"
"SELECT ST_NumBands(rast1) As numb1, ST_BandPixelType(rast1) As pix1,\n"
" ST_NumBands(rast2) As numb2, ST_BandPixelType(rast2) As pix2\n"
"FROM (\n"
" SELECT ST_Band(rast) As rast1, ST_Reclass(ST_Band(rast,3), '100-200):1, "
"[200-254:2', '2BUI') As rast2\n"
" FROM dummy_rast\n"
" WHERE rid = 2) As foo;\n"
"\n"
" numb1 | pix1 | numb2 | pix2\n"
"-------+------+-------+------\n"
" 1 | 8BUI | 1 | 2BUI"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:1535
#, no-c-format
msgid ""
"-- Return bands 2 and 3. Using array cast syntax\n"
"SELECT ST_NumBands(ST_Band(rast, '{2,3}'::int[])) As num_bands\n"
" FROM dummy_rast WHERE rid=2;\n"
"\n"
"num_bands\n"
"----------\n"
"2\n"
"\n"
"-- Return bands 2 and 3. Use array to define bands\n"
"SELECT ST_NumBands(ST_Band(rast, ARRAY[2,3])) As num_bands\n"
" FROM dummy_rast\n"
"WHERE rid=2;"
msgstr ""
#. Tag: para
#: reference_raster.xml:1545
#, no-c-format
msgid "original (column rast)"
msgstr ""
#. Tag: para
#: reference_raster.xml:1554
#, no-c-format
msgid "dupe_band"
msgstr ""
#. Tag: para
#: reference_raster.xml:1563
#, no-c-format
msgid "sing_band"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:1571
#, no-c-format
msgid ""
"--Make a new raster with 2nd band of original and 1st band repeated twice,\n"
"and another with just the third band\n"
"SELECT rast, ST_Band(rast, ARRAY[2,1,1]) As dupe_band,\n"
" ST_Band(rast, 3) As sing_band\n"
"FROM samples.than_chunked\n"
"WHERE rid=35;"
msgstr ""
#. Tag: para
#: reference_raster.xml:1577
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_NumBands\"/>, <xref linkend=\"RT_ST_Reclass\"/>, "
"<xref linkend=\"RT_reference\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:1583
#, no-c-format
msgid "ST_MakeEmptyCoverage"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:1584
#, no-c-format
msgid "Cover georeferenced area with a grid of empty raster tiles."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:1589
#, no-c-format
msgid ""
"<funcdef>raster <function>ST_MakeEmptyCoverage</function></funcdef> "
"<paramdef><type>integer </type> <parameter>tilewidth</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>tileheight</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> "
"<paramdef><type>double precision </type> <parameter>upperleftx</parameter></"
"paramdef> <paramdef><type>double precision </type> <parameter>upperlefty</"
"parameter></paramdef> <paramdef><type>double precision </type> "
"<parameter>scalex</parameter></paramdef> <paramdef><type>double precision </"
"type> <parameter>scaley</parameter></paramdef> <paramdef><type>double "
"precision </type> <parameter>skewx</parameter></paramdef> "
"<paramdef><type>double precision </type> <parameter>skewy</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>integer </type> "
"<parameter>srid=unknown</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:1609
#, no-c-format
msgid ""
"Create a set of raster tiles with <xref linkend=\"RT_ST_MakeEmptyRaster\"/>. "
"Grid dimension is <varname>width</varname> & <varname>height</varname>. "
"Tile dimension is <varname>tilewidth</varname> & <varname>tileheight</"
"varname>. The covered georeferenced area is from upper left corner "
"(<varname>upperleftx</varname>, <varname>upperlefty</varname>) to lower "
"right corner (<varname>upperleftx</varname> + <varname>width</varname> * "
"<varname>scalex</varname>, <varname>upperlefty</varname> + <varname>height</"
"varname> * <varname>scaley</varname>)."
msgstr ""
#. Tag: para
#: reference_raster.xml:1610
#, no-c-format
msgid ""
"Note that scaley is generally negative for rasters and scalex is generally "
"positive. So lower right corner will have a lower y value and higher x value "
"than the upper left corner."
msgstr ""
#. Tag: para
#: reference_raster.xml:1611
#, no-c-format
msgid "Availability: 2.4.0"
msgstr ""
#. Tag: title
#: reference_raster.xml:1615 reference_raster.xml:8518
#, no-c-format
msgid "Examples Basic"
msgstr ""
#. Tag: para
#: reference_raster.xml:1616
#, no-c-format
msgid ""
"Create 16 tiles in a 4x4 grid to cover the WGS84 area from upper left corner "
"(22, 77) to lower right corner (55, 33)."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:1617
#, no-c-format
msgid ""
"<![CDATA[SELECT (ST_MetaData(tile)).* FROM ST_MakeEmptyCoverage(1, 1, 4, 4, "
"22, 33, (55 - 22)/(4)::float, (33 - 77)/(4)::float, 0., 0., 4326) tile;\n"
"\n"
" upperleftx | upperlefty | width | height | scalex | scaley | skewx | skewy "
"| srid | numbands\n"
"-------------------------------------------------------------------------------------\n"
" 22 | 33 | 1 | 1 | 8.25 | -11 | 0 | 0 "
"| 4326 | 0\n"
" 30.25 | 33 | 1 | 1 | 8.25 | -11 | 0 | 0 "
"| 4326 | 0\n"
" 38.5 | 33 | 1 | 1 | 8.25 | -11 | 0 | 0 "
"| 4326 | 0\n"
" 46.75 | 33 | 1 | 1 | 8.25 | -11 | 0 | 0 "
"| 4326 | 0\n"
" 22 | 22 | 1 | 1 | 8.25 | -11 | 0 | 0 "
"| 4326 | 0\n"
" 30.25 | 22 | 1 | 1 | 8.25 | -11 | 0 | 0 "
"| 4326 | 0\n"
" 38.5 | 22 | 1 | 1 | 8.25 | -11 | 0 | 0 "
"| 4326 | 0\n"
" 46.75 | 22 | 1 | 1 | 8.25 | -11 | 0 | 0 "
"| 4326 | 0\n"
" 22 | 11 | 1 | 1 | 8.25 | -11 | 0 | 0 "
"| 4326 | 0\n"
" 30.25 | 11 | 1 | 1 | 8.25 | -11 | 0 | 0 "
"| 4326 | 0\n"
" 38.5 | 11 | 1 | 1 | 8.25 | -11 | 0 | 0 "
"| 4326 | 0\n"
" 46.75 | 11 | 1 | 1 | 8.25 | -11 | 0 | 0 "
"| 4326 | 0\n"
" 22 | 0 | 1 | 1 | 8.25 | -11 | 0 | 0 "
"| 4326 | 0\n"
" 30.25 | 0 | 1 | 1 | 8.25 | -11 | 0 | 0 "
"| 4326 | 0\n"
" 38.5 | 0 | 1 | 1 | 8.25 | -11 | 0 | 0 "
"| 4326 | 0\n"
" 46.75 | 0 | 1 | 1 | 8.25 | -11 | 0 | 0 "
"| 4326 | 0]]>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:1630
#, no-c-format
msgid "ST_MakeEmptyRaster"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:1631
#, no-c-format
msgid ""
"Returns an empty raster (having no bands) of given dimensions (width & "
"height), upperleft X and Y, pixel size and rotation (scalex, scaley, skewx "
"& skewy) and reference system (srid). If a raster is passed in, returns "
"a new raster with the same size, alignment and SRID. If srid is left out, "
"the spatial ref is set to unknown (0)."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:1635
#, no-c-format
msgid ""
"<funcprototype> <funcdef>raster <function>ST_MakeEmptyRaster</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>ST_MakeEmptyRaster</function></funcdef> <paramdef><type>integer </"
"type> <parameter>width</parameter></paramdef> <paramdef><type>integer </"
"type> <parameter>height</parameter></paramdef> <paramdef><type>float8 </"
"type> <parameter>upperleftx</parameter></paramdef> <paramdef><type>float8 </"
"type> <parameter>upperlefty</parameter></paramdef> <paramdef><type>float8 </"
"type> <parameter>scalex</parameter></paramdef> <paramdef><type>float8 </"
"type> <parameter>scaley</parameter></paramdef> <paramdef><type>float8 </"
"type> <parameter>skewx</parameter></paramdef> <paramdef><type>float8 </type> "
"<parameter>skewy</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>integer </type> <parameter>srid=unknown</parameter></paramdef> </"
"funcprototype> <funcprototype> <funcdef>raster <function>ST_MakeEmptyRaster</"
"function></funcdef> <paramdef><type>integer </type> <parameter>width</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>height</"
"parameter></paramdef> <paramdef><type>float8 </type> <parameter>upperleftx</"
"parameter></paramdef> <paramdef><type>float8 </type> <parameter>upperlefty</"
"parameter></paramdef> <paramdef><type>float8 </type> <parameter>pixelsize</"
"parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:1665
#, no-c-format
msgid ""
"Returns an empty raster (having no band) of given dimensions (width & "
"height) and georeferenced in spatial (or world) coordinates with upper left "
"X (upperleftx), upper left Y (upperlefty), pixel size and rotation (scalex, "
"scaley, skewx & skewy) and reference system (srid)."
msgstr ""
#. Tag: para
#: reference_raster.xml:1668
#, no-c-format
msgid ""
"The last version use a single parameter to specify the pixel size "
"(pixelsize). scalex is set to this argument and scaley is set to the "
"negative value of this argument. skewx and skewy are set to 0."
msgstr ""
#. Tag: para
#: reference_raster.xml:1670
#, no-c-format
msgid ""
"If an existing raster is passed in, it returns a new raster with the same "
"meta data settings (without the bands)."
msgstr ""
#. Tag: para
#: reference_raster.xml:1672
#, no-c-format
msgid ""
"If no srid is specified it defaults to 0. After you create an empty raster "
"you probably want to add bands to it and maybe edit it. Refer to <xref "
"linkend=\"RT_ST_AddBand\"/> to define bands and <xref linkend="
"\"RT_ST_SetValue\"/> to set initial pixel values."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:1679
#, no-c-format
msgid ""
"INSERT INTO dummy_rast(rid,rast)\n"
"VALUES(3, ST_MakeEmptyRaster( 100, 100, 0.0005, 0.0005, 1, 1, 0, 0, "
"4326) );\n"
"\n"
"--use an existing raster as template for new raster\n"
"INSERT INTO dummy_rast(rid,rast)\n"
"SELECT 4, ST_MakeEmptyRaster(rast)\n"
"FROM dummy_rast WHERE rid = 3;\n"
"\n"
"-- output meta data of rasters we just added\n"
"SELECT rid, (md).*\n"
"FROM (SELECT rid, ST_MetaData(rast) As md\n"
" FROM dummy_rast\n"
" WHERE rid IN(3,4)) As foo;\n"
"\n"
"-- output --\n"
" rid | upperleftx | upperlefty | width | height | scalex | scaley | skewx | "
"skewy | srid | numbands\n"
"-----+------------+------------+-------+--------+------------+------------"
"+-------+-------+------+----------\n"
" 3 | 0.0005 | 0.0005 | 100 | 100 | 1 | 1 "
"| 0 | 0 | 4326 | 0\n"
" 4 | 0.0005 | 0.0005 | 100 | 100 | 1 | 1 "
"| 0 | 0 | 4326 | 0"
msgstr ""
#. Tag: para
#: reference_raster.xml:1685
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_MetaData\"/>, <xref linkend=\"RT_ST_ScaleX\"/>, "
"<xref linkend=\"RT_ST_ScaleY\"/>, <xref linkend=\"RT_ST_SetValue\"/>, <xref "
"linkend=\"RT_ST_SkewX\"/>, , <xref linkend=\"RT_ST_SkewY\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:1692
#, no-c-format
msgid "ST_Tile"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:1693
#, no-c-format
msgid ""
"<refpurpose>Returns a set of rasters resulting from the split of the input "
"raster based upon the desired dimensions of the output rasters.</refpurpose>"
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:1697
#, no-c-format
msgid ""
"<funcprototype> <funcdef>setof raster <function>ST_Tile</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>int[] </type> <parameter>nband</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>padwithnodata=FALSE</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>nodataval=NULL</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>setof raster "
"<function>ST_Tile</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>nband</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>width</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>height</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>boolean </type> <parameter>padwithnodata=FALSE</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>setof raster <function>ST_Tile</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>padwithnodata=FALSE</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>nodataval=NULL</parameter></"
"paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:1733
#, no-c-format
msgid ""
"<para>Returns a set of rasters resulting from the split of the input raster "
"based upon the desired dimensions of the output rasters.</para>"
msgstr ""
#. Tag: para
#: reference_raster.xml:1737
#, no-c-format
msgid ""
"If <varname>padwithnodata</varname> = FALSE, edge tiles on the right and "
"bottom sides of the raster may have different dimensions than the rest of "
"the tiles. If <varname>padwithnodata</varname> = TRUE, all tiles will have "
"the same dimensions with the possibility that edge tiles being padded with "
"NODATA values. If raster band(s) do not have NODATA value(s) specified, one "
"can be specified by setting <varname>nodataval</varname>."
msgstr ""
#. Tag: para
#: reference_raster.xml:1742
#, no-c-format
msgid ""
"If a specified band of the input raster is out-of-db, the corresponding band "
"in the output rasters will also be out-of-db."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:1753
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, "
"0, 0, 0), 1, '8BUI', 1, 0), 2, '8BUI', 10, 0) AS rast UNION ALL\n"
" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, 0, 1, -1, "
"0, 0, 0), 1, '8BUI', 2, 0), 2, '8BUI', 20, 0) AS rast UNION ALL\n"
" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, 0, 1, -1, "
"0, 0, 0), 1, '8BUI', 3, 0), 2, '8BUI', 30, 0) AS rast UNION ALL\n"
"\n"
" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, -3, 1, -1, "
"0, 0, 0), 1, '8BUI', 4, 0), 2, '8BUI', 40, 0) AS rast UNION ALL\n"
" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, -3, 1, -1, "
"0, 0, 0), 1, '8BUI', 5, 0), 2, '8BUI', 50, 0) AS rast UNION ALL\n"
" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, -3, 1, -1, "
"0, 0, 0), 1, '8BUI', 6, 0), 2, '8BUI', 60, 0) AS rast UNION ALL\n"
"\n"
" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, -6, 1, -1, "
"0, 0, 0), 1, '8BUI', 7, 0), 2, '8BUI', 70, 0) AS rast UNION ALL\n"
" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, -6, 1, -1, "
"0, 0, 0), 1, '8BUI', 8, 0), 2, '8BUI', 80, 0) AS rast UNION ALL\n"
" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, -6, 1, -1, "
"0, 0, 0), 1, '8BUI', 9, 0), 2, '8BUI', 90, 0) AS rast\n"
"), bar AS (\n"
" SELECT ST_Union(rast) AS rast FROM foo\n"
"), baz AS (\n"
" SELECT ST_Tile(rast, 3, 3, TRUE) AS rast FROM bar\n"
")\n"
"SELECT\n"
" ST_DumpValues(rast)\n"
"FROM baz;\n"
"\n"
" st_dumpvalues\n"
"------------------------------------------\n"
" (1,\"{{1,1,1},{1,1,1},{1,1,1}}\")\n"
" (2,\"{{10,10,10},{10,10,10},{10,10,10}}\")\n"
" (1,\"{{2,2,2},{2,2,2},{2,2,2}}\")\n"
" (2,\"{{20,20,20},{20,20,20},{20,20,20}}\")\n"
" (1,\"{{3,3,3},{3,3,3},{3,3,3}}\")\n"
" (2,\"{{30,30,30},{30,30,30},{30,30,30}}\")\n"
" (1,\"{{4,4,4},{4,4,4},{4,4,4}}\")\n"
" (2,\"{{40,40,40},{40,40,40},{40,40,40}}\")\n"
" (1,\"{{5,5,5},{5,5,5},{5,5,5}}\")\n"
" (2,\"{{50,50,50},{50,50,50},{50,50,50}}\")\n"
" (1,\"{{6,6,6},{6,6,6},{6,6,6}}\")\n"
" (2,\"{{60,60,60},{60,60,60},{60,60,60}}\")\n"
" (1,\"{{7,7,7},{7,7,7},{7,7,7}}\")\n"
" (2,\"{{70,70,70},{70,70,70},{70,70,70}}\")\n"
" (1,\"{{8,8,8},{8,8,8},{8,8,8}}\")\n"
" (2,\"{{80,80,80},{80,80,80},{80,80,80}}\")\n"
" (1,\"{{9,9,9},{9,9,9},{9,9,9}}\")\n"
" (2,\"{{90,90,90},{90,90,90},{90,90,90}}\")\n"
"(18 rows)"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:1755
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, "
"0, 0, 0), 1, '8BUI', 1, 0), 2, '8BUI', 10, 0) AS rast UNION ALL\n"
" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, 0, 1, -1, "
"0, 0, 0), 1, '8BUI', 2, 0), 2, '8BUI', 20, 0) AS rast UNION ALL\n"
" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, 0, 1, -1, "
"0, 0, 0), 1, '8BUI', 3, 0), 2, '8BUI', 30, 0) AS rast UNION ALL\n"
"\n"
" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, -3, 1, -1, "
"0, 0, 0), 1, '8BUI', 4, 0), 2, '8BUI', 40, 0) AS rast UNION ALL\n"
" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, -3, 1, -1, "
"0, 0, 0), 1, '8BUI', 5, 0), 2, '8BUI', 50, 0) AS rast UNION ALL\n"
" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, -3, 1, -1, "
"0, 0, 0), 1, '8BUI', 6, 0), 2, '8BUI', 60, 0) AS rast UNION ALL\n"
"\n"
" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, -6, 1, -1, "
"0, 0, 0), 1, '8BUI', 7, 0), 2, '8BUI', 70, 0) AS rast UNION ALL\n"
" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, -6, 1, -1, "
"0, 0, 0), 1, '8BUI', 8, 0), 2, '8BUI', 80, 0) AS rast UNION ALL\n"
" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, -6, 1, -1, "
"0, 0, 0), 1, '8BUI', 9, 0), 2, '8BUI', 90, 0) AS rast\n"
"), bar AS (\n"
" SELECT ST_Union(rast) AS rast FROM foo\n"
"), baz AS (\n"
" SELECT ST_Tile(rast, 3, 3, 2) AS rast FROM bar\n"
")\n"
"SELECT\n"
" ST_DumpValues(rast)\n"
"FROM baz;\n"
"\n"
" st_dumpvalues\n"
"------------------------------------------\n"
" (1,\"{{10,10,10},{10,10,10},{10,10,10}}\")\n"
" (1,\"{{20,20,20},{20,20,20},{20,20,20}}\")\n"
" (1,\"{{30,30,30},{30,30,30},{30,30,30}}\")\n"
" (1,\"{{40,40,40},{40,40,40},{40,40,40}}\")\n"
" (1,\"{{50,50,50},{50,50,50},{50,50,50}}\")\n"
" (1,\"{{60,60,60},{60,60,60},{60,60,60}}\")\n"
" (1,\"{{70,70,70},{70,70,70},{70,70,70}}\")\n"
" (1,\"{{80,80,80},{80,80,80},{80,80,80}}\")\n"
" (1,\"{{90,90,90},{90,90,90},{90,90,90}}\")\n"
"(9 rows)"
msgstr ""
#. Tag: para
#: reference_raster.xml:1761
#, no-c-format
msgid ", <xref linkend=\"RT_Retile\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:1771
#, no-c-format
msgid "ST_Retile"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:1772
#, no-c-format
msgid ""
"Return a set of configured tiles from an arbitrarily tiled raster coverage."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:1780
#, no-c-format
msgid ""
"<funcdef>SETOF raster <function>ST_Retile</function></funcdef> "
"<paramdef><type>regclass </type> <parameter>tab</parameter></paramdef> "
"<paramdef><type>name </type> <parameter>col</parameter></paramdef> "
"<paramdef><type>geometry </type> <parameter>ext</parameter></paramdef> "
"<paramdef><type>float8 </type> <parameter>sfx</parameter></paramdef> "
"<paramdef><type>float8 </type> <parameter>sfy</parameter></paramdef> "
"<paramdef><type>int </type> <parameter>tw</parameter></paramdef> "
"<paramdef><type>int </type> <parameter>th</parameter></paramdef> <paramdef "
"choice=\"opt\"><type>text </type> <parameter>algo='NearestNeighbor'</"
"parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:1798
#, no-c-format
msgid ""
"Return a set of tiles having the specified scale (<varname>sfx</varname>, "
"<varname>sfy</varname>) and max size (<varname>tw</varname>, <varname>th</"
"varname>) and covering the specified extent (<varname>ext</varname>) with "
"data coming from the specified raster coverage (<varname>tab</varname>, "
"<varname>col</varname>)."
msgstr ""
#. Tag: refname
#: reference_raster.xml:1822
#, no-c-format
msgid "ST_FromGDALRaster"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:1823
#, no-c-format
msgid "Returns a raster from a supported GDAL raster file."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:1828
#, no-c-format
msgid ""
"<funcdef>raster <function>ST_FromGDALRaster</function></funcdef> "
"<paramdef><type>bytea </type> <parameter>gdaldata</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>integer </type> <parameter>srid=NULL</"
"parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:1840
#, no-c-format
msgid ""
"Returns a raster from a supported GDAL raster file. <varname>gdaldata</"
"varname> is of type bytea and should be the contents of the GDAL raster file."
msgstr ""
#. Tag: para
#: reference_raster.xml:1844
#, no-c-format
msgid ""
"If <varname>srid</varname> is NULL, the function will try to automatically "
"assign the SRID from the GDAL raster. If <varname>srid</varname> is "
"provided, the value provided will override any automatically assigned SRID."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:1854
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT "
"ST_AsPNG(ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, "
"0.1, -0.1, 0, 0, 4326), 1, '8BUI', 1, 0), 2, '8BUI', 2, 0), 3, '8BUI', 3, "
"0)) AS png\n"
"),\n"
"bar AS (\n"
" SELECT 1 AS rid, ST_FromGDALRaster(png) AS rast FROM foo\n"
" UNION ALL\n"
" SELECT 2 AS rid, ST_FromGDALRaster(png, 3310) AS rast FROM foo\n"
")\n"
"SELECT\n"
" rid,\n"
" ST_Metadata(rast) AS metadata,\n"
" ST_SummaryStats(rast, 1) AS stats1,\n"
" ST_SummaryStats(rast, 2) AS stats2,\n"
" ST_SummaryStats(rast, 3) AS stats3\n"
"FROM bar\n"
"ORDER BY rid;\n"
"\n"
" rid | metadata | stats1 | stats2 | "
"stats3\n"
"-----+---------------------------+---------------+---------------"
"+----------------\n"
" 1 | (0,0,2,2,1,-1,0,0,0,3) | (4,4,1,0,1,1) | (4,8,2,0,2,2) | "
"(4,12,3,0,3,3)\n"
" 2 | (0,0,2,2,1,-1,0,0,3310,3) | (4,4,1,0,1,1) | (4,8,2,0,2,2) | "
"(4,12,3,0,3,3)\n"
"(2 rows)"
msgstr ""
#. Tag: title
#: reference_raster.xml:1869
#, no-c-format
msgid "Raster Accessors"
msgstr ""
#. Tag: refname
#: reference_raster.xml:1873
#, no-c-format
msgid "ST_GeoReference"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:1874
#, no-c-format
msgid ""
"Returns the georeference meta data in GDAL or ESRI format as commonly seen "
"in a world file. Default is GDAL."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:1879
#, no-c-format
msgid ""
"<funcdef>text <function>ST_GeoReference</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>text </type> <parameter>format=GDAL</"
"parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:1890
#, no-c-format
msgid ""
"Returns the georeference meta data including carriage return in GDAL or ESRI "
"format as commonly seen in a <ulink url=\"http://en.wikipedia.org/wiki/"
"World_file\">world file</ulink>. Default is GDAL if no type specified. type "
"is string 'GDAL' or 'ESRI'."
msgstr ""
#. Tag: para
#: reference_raster.xml:1892 reference_raster.xml:4231
#, no-c-format
msgid "Difference between format representations is as follows:"
msgstr ""
#. Tag: para
#: reference_raster.xml:1893 reference_raster.xml:4232
#, no-c-format
msgid "<varname>GDAL</varname>:"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:1894
#, no-c-format
msgid ""
"scalex\n"
"skewy\n"
"skewx\n"
"scaley\n"
"upperleftx\n"
"upperlefty"
msgstr ""
#. Tag: para
#: reference_raster.xml:1895 reference_raster.xml:4234
#, no-c-format
msgid "<varname>ESRI</varname>:"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:1896
#, no-c-format
msgid ""
"scalex\n"
"skewy\n"
"skewx\n"
"scaley\n"
"upperleftx + scalex*0.5\n"
"upperlefty + scaley*0.5"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:1902
#, no-c-format
msgid ""
"SELECT ST_GeoReference(rast, 'ESRI') As esri_ref, ST_GeoReference(rast, "
"'GDAL') As gdal_ref\n"
" FROM dummy_rast WHERE rid=1;\n"
"\n"
" esri_ref | gdal_ref\n"
"--------------+--------------\n"
" 2.0000000000 | 2.0000000000\n"
" 0.0000000000 : 0.0000000000\n"
" 0.0000000000 : 0.0000000000\n"
" 3.0000000000 : 3.0000000000\n"
" 1.5000000000 : 0.5000000000\n"
" 2.0000000000 : 0.5000000000"
msgstr ""
#. Tag: para
#: reference_raster.xml:1907
#, no-c-format
msgid ", <xref linkend=\"RT_ST_ScaleX\"/>, <xref linkend=\"RT_ST_ScaleY\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:1913
#, no-c-format
msgid "ST_Height"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:1914
#, no-c-format
msgid "Returns the height of the raster in pixels."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:1919
#, no-c-format
msgid ""
"<funcdef>integer <function>ST_Height</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:1929
#, no-c-format
msgid "Returns the height of the raster."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:1935
#, no-c-format
msgid ""
"SELECT rid, ST_Height(rast) As rastheight\n"
"FROM dummy_rast;\n"
"\n"
" rid | rastheight\n"
"-----+------------\n"
" 1 | 20\n"
" 2 | 5"
msgstr ""
#. Tag: refname
#: reference_raster.xml:1947
#, no-c-format
msgid "ST_IsEmpty"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:1948
#, no-c-format
msgid ""
"<refpurpose>Returns true if the raster is empty (width = 0 and height = 0). "
"Otherwise, returns false.</refpurpose>"
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:1953
#, no-c-format
msgid ""
"<funcdef>boolean <function>ST_IsEmpty</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:1963
#, no-c-format
msgid ""
"<para>Returns true if the raster is empty (width = 0 and height = 0). "
"Otherwise, returns false.</para>"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:1971
#, no-c-format
msgid ""
"SELECT ST_IsEmpty(ST_MakeEmptyRaster(100, 100, 0, 0, 0, 0, 0, 0))\n"
"st_isempty |\n"
"-----------+\n"
"f |\n"
"\n"
"\n"
"SELECT ST_IsEmpty(ST_MakeEmptyRaster(0, 0, 0, 0, 0, 0, 0, 0))\n"
"st_isempty |\n"
"-----------+\n"
"t |"
msgstr ""
#. Tag: refname
#: reference_raster.xml:1983
#, no-c-format
msgid "ST_MemSize"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:1985
#, no-c-format
msgid ""
"<refpurpose>Returns the amount of space (in bytes) the raster takes.</"
"refpurpose>"
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:1990
#, no-c-format
msgid ""
"<funcdef>integer <function>ST_MemSize</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:2000
#, no-c-format
msgid "<para>Returns the amount of space (in bytes) the raster takes.</para>"
msgstr ""
#. Tag: para
#: reference_raster.xml:2001
#, no-c-format
msgid ""
"This is a nice compliment to PostgreSQL built in functions pg_column_size, "
"pg_size_pretty, pg_relation_size, pg_total_relation_size."
msgstr ""
#. Tag: para
#: reference_raster.xml:2002
#, no-c-format
msgid ""
"pg_relation_size which gives the byte size of a table may return byte size "
"lower than ST_MemSize. This is because pg_relation_size does not add toasted "
"table contribution and large geometries are stored in TOAST tables. "
"pg_column_size might return lower because it returns the compressed size."
msgstr ""
#. Tag: para
#: reference_raster.xml:2004
#, no-c-format
msgid ""
"pg_total_relation_size - includes, the table, the toasted tables, and the "
"indexes."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:2014
#, no-c-format
msgid ""
"SELECT ST_MemSize(ST_AsRaster(ST_Buffer(ST_Point(1,5),10,1000),150, 150, "
"'8BUI')) As rast_mem;\n"
"\n"
" rast_mem\n"
" --------\n"
" 22568"
msgstr ""
#. Tag: refname
#: reference_raster.xml:2027
#, no-c-format
msgid "ST_MetaData"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:2028
#, no-c-format
msgid ""
"Returns basic meta data about a raster object such as pixel size, rotation "
"(skew), upper, lower left, etc."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:2033
#, no-c-format
msgid ""
"<funcdef>record <function>ST_MetaData</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:2043
#, no-c-format
msgid ""
"Returns basic meta data about a raster object such as pixel size, rotation "
"(skew), upper, lower left, etc. Columns returned: upperleftx | upperlefty | "
"width | height | scalex | scaley | skewx | skewy | srid | numbands"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:2050
#, no-c-format
msgid ""
"SELECT rid, (foo.md).*\n"
" FROM (SELECT rid, ST_MetaData(rast) As md\n"
"FROM dummy_rast) As foo;\n"
"\n"
" rid | upperleftx | upperlefty | width | height | scalex | scaley | skewx | "
"skewy | srid | numbands\n"
" ----+------------+------------+-------+--------+--------+-----------+-------"
"+-------+------+-------\n"
" 1 | 0.5 | 0.5 | 10 | 20 | 2 | 3 "
"| 0 | 0 | 0 | 0\n"
" 2 | 3427927.75 | 5793244 | 5 | 5 | 0.05 | -0.05 "
"| 0 | 0 | 0 | 3"
msgstr ""
#. Tag: para
#: reference_raster.xml:2056 reference_raster.xml:5010
#, no-c-format
msgid ", <xref linkend=\"RT_ST_NumBands\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:2062
#, no-c-format
msgid "ST_NumBands"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:2063
#, no-c-format
msgid ""
"<refpurpose>Returns the number of bands in the raster object.</refpurpose>"
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:2068
#, no-c-format
msgid ""
"<funcdef>integer <function>ST_NumBands</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:2078
#, no-c-format
msgid "<para>Returns the number of bands in the raster object.</para>"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:2084
#, no-c-format
msgid ""
"SELECT rid, ST_NumBands(rast) As numbands\n"
"FROM dummy_rast;\n"
"\n"
"rid | numbands\n"
"----+----------\n"
" 1 | 0\n"
" 2 | 3"
msgstr ""
#. Tag: refname
#: reference_raster.xml:2096
#, no-c-format
msgid "ST_PixelHeight"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:2097
#, no-c-format
msgid ""
"Returns the pixel height in geometric units of the spatial reference system."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:2102
#, no-c-format
msgid ""
"<funcdef>double precision <function>ST_PixelHeight</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:2112
#, no-c-format
msgid ""
"Returns the height of a pixel in geometric units of the spatial reference "
"system. In the common case where there is no skew, the pixel height is just "
"the scale ratio between geometric coordinates and raster pixels."
msgstr ""
#. Tag: para
#: reference_raster.xml:2114
#, no-c-format
msgid ""
"Refer to <xref linkend=\"RT_ST_PixelWidth\"/> for a diagrammatic "
"visualization of the relationship."
msgstr ""
#. Tag: title
#: reference_raster.xml:2118 reference_raster.xml:2178
#, no-c-format
msgid "Examples: Rasters with no skew"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:2120
#, no-c-format
msgid ""
"SELECT ST_Height(rast) As rastheight, ST_PixelHeight(rast) As pixheight,\n"
" ST_ScaleX(rast) As scalex, ST_ScaleY(rast) As scaley, ST_SkewX(rast) As "
"skewx,\n"
" ST_SkewY(rast) As skewy\n"
"FROM dummy_rast;\n"
"\n"
" rastheight | pixheight | scalex | scaley | skewx | skewy\n"
"------------+-----------+--------+--------+-------+----------\n"
" 20 | 3 | 2 | 3 | 0 | 0\n"
" 5 | 0.05 | 0.05 | -0.05 | 0 | 0"
msgstr ""
#. Tag: title
#: reference_raster.xml:2125 reference_raster.xml:2185
#, no-c-format
msgid "Examples: Rasters with skew different than 0"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:2127
#, no-c-format
msgid ""
"SELECT ST_Height(rast) As rastheight, ST_PixelHeight(rast) As pixheight,\n"
" ST_ScaleX(rast) As scalex, ST_ScaleY(rast) As scaley, ST_SkewX(rast) As "
"skewx,\n"
" ST_SkewY(rast) As skewy\n"
"FROM (SELECT ST_SetSKew(rast,0.5,0.5) As rast\n"
" FROM dummy_rast) As skewed;\n"
"\n"
"rastheight | pixheight | scalex | scaley | skewx | skewy\n"
"-----------+-------------------+--------+--------+-------+----------\n"
" 20 | 3.04138126514911 | 2 | 3 | 0.5 | 0.5\n"
" 5 | 0.502493781056044 | 0.05 | -0.05 | 0.5 | 0.5"
msgstr ""
#. Tag: para
#: reference_raster.xml:2134 reference_raster.xml:2194
#: reference_raster.xml:4290
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_ScaleX\"/>, <xref linkend=\"RT_ST_ScaleY\"/>, <xref "
"linkend=\"RT_ST_SkewX\"/>, <xref linkend=\"RT_ST_SkewY\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:2146
#, no-c-format
msgid "ST_PixelWidth"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:2147
#, no-c-format
msgid ""
"Returns the pixel width in geometric units of the spatial reference system."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:2152
#, no-c-format
msgid ""
"<funcdef>double precision <function>ST_PixelWidth</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:2162
#, no-c-format
msgid ""
"Returns the width of a pixel in geometric units of the spatial reference "
"system. In the common case where there is no skew, the pixel width is just "
"the scale ratio between geometric coordinates and raster pixels."
msgstr ""
#. Tag: para
#: reference_raster.xml:2164
#, no-c-format
msgid "The following diagram demonstrates the relationship:"
msgstr ""
#. Tag: para
#: reference_raster.xml:2171
#, no-c-format
msgid "Pixel Width: Pixel size in the i direction"
msgstr ""
#. Tag: para
#: reference_raster.xml:2171
#, no-c-format
msgid "Pixel Height: Pixel size in the j direction"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:2180
#, no-c-format
msgid ""
"SELECT ST_Width(rast) As rastwidth, ST_PixelWidth(rast) As pixwidth,\n"
" ST_ScaleX(rast) As scalex, ST_ScaleY(rast) As scaley, ST_SkewX(rast) "
"As skewx,\n"
" ST_SkewY(rast) As skewy\n"
" FROM dummy_rast;\n"
"\n"
" rastwidth | pixwidth | scalex | scaley | skewx | skewy\n"
" -----------+----------+--------+--------+-------+----------\n"
" 10 | 2 | 2 | 3 | 0 | 0\n"
" 5 | 0.05 | 0.05 | -0.05 | 0 | 0"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:2187
#, no-c-format
msgid ""
"SELECT ST_Width(rast) As rastwidth, ST_PixelWidth(rast) As pixwidth,\n"
" ST_ScaleX(rast) As scalex, ST_ScaleY(rast) As scaley, ST_SkewX(rast) "
"As skewx,\n"
" ST_SkewY(rast) As skewy\n"
" FROM (SELECT ST_SetSkew(rast,0.5,0.5) As rast\n"
" FROM dummy_rast) As skewed;\n"
"\n"
" rastwidth | pixwidth | scalex | scaley | skewx | skewy\n"
" -----------+-------------------+--------+--------+-------"
"+----------\n"
" 10 | 2.06155281280883 | 2 | 3 | 0.5 | 0.5\n"
" 5 | 0.502493781056044 | 0.05 | -0.05 | 0.5 | 0.5"
msgstr ""
#. Tag: refname
#: reference_raster.xml:2200
#, no-c-format
msgid "ST_ScaleX"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:2201
#, no-c-format
msgid ""
"Returns the X component of the pixel width in units of coordinate reference "
"system."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:2206
#, no-c-format
msgid ""
"<funcdef>float8 <function>ST_ScaleX</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:2216
#, no-c-format
msgid ""
"Returns the X component of the pixel width in units of coordinate reference "
"system. Refer to <ulink url=\"http://en.wikipedia.org/wiki/World_file"
"\">World File</ulink> for more details."
msgstr ""
#. Tag: para
#: reference_raster.xml:2218
#, no-c-format
msgid "Changed: 2.0.0. In WKTRaster versions this was called ST_PixelSizeX."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:2224
#, no-c-format
msgid ""
"SELECT rid, ST_ScaleX(rast) As rastpixwidth\n"
"FROM dummy_rast;\n"
"\n"
" rid | rastpixwidth\n"
"-----+--------------\n"
" 1 | 2\n"
" 2 | 0.05"
msgstr ""
#. Tag: refname
#: reference_raster.xml:2237
#, no-c-format
msgid "ST_ScaleY"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:2238
#, no-c-format
msgid ""
"Returns the Y component of the pixel height in units of coordinate reference "
"system."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:2243
#, no-c-format
msgid ""
"<funcdef>float8 <function>ST_ScaleY</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:2253
#, no-c-format
msgid ""
"Returns the Y component of the pixel height in units of coordinate reference "
"system. May be negative. Refer to <ulink url=\"http://en.wikipedia.org/wiki/"
"World_file\">World File</ulink> for more details."
msgstr ""
#. Tag: para
#: reference_raster.xml:2256
#, no-c-format
msgid "Changed: 2.0.0. In WKTRaster versions this was called ST_PixelSizeY."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:2262
#, no-c-format
msgid ""
"SELECT rid, ST_ScaleY(rast) As rastpixheight\n"
"FROM dummy_rast;\n"
"\n"
" rid | rastpixheight\n"
"-----+---------------\n"
" 1 | 3\n"
" 2 | -0.05"
msgstr ""
#. Tag: refname
#: reference_raster.xml:2275
#, no-c-format
msgid "ST_RasterToWorldCoord"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:2276
#, no-c-format
msgid ""
"Returns the raster's upper left corner as geometric X and Y (longitude and "
"latitude) given a column and row. Column and row starts at 1."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:2281
#, no-c-format
msgid ""
"<funcdef>record <function>ST_RasterToWorldCoord</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>xcolumn</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>yrow</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:2293
#, no-c-format
msgid ""
"Returns the upper left corner as geometric X and Y (longitude and latitude) "
"given a column and row. Returned X and Y are in geometric units of the "
"georeferenced raster. Numbering of column and row starts at 1 but if either "
"parameter is passed a zero, a negative number or a number greater than the "
"respective dimension of the raster, it will return coordinates outside of "
"the raster assuming the raster's grid is applicable outside the raster's "
"bounds."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:2305
#, no-c-format
msgid ""
"-- non-skewed raster\n"
"SELECT\n"
" rid,\n"
" (ST_RasterToWorldCoord(rast,1, 1)).*,\n"
" (ST_RasterToWorldCoord(rast,2, 2)).*\n"
"FROM dummy_rast\n"
"\n"
" rid | longitude | latitude | longitude | latitude\n"
"-----+------------+----------+-----------+------------\n"
" 1 | 0.5 | 0.5 | 2.5 | 3.5\n"
" 2 | 3427927.75 | 5793244 | 3427927.8 | 5793243.95"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:2307
#, no-c-format
msgid ""
"-- skewed raster\n"
"SELECT\n"
" rid,\n"
" (ST_RasterToWorldCoord(rast, 1, 1)).*,\n"
" (ST_RasterToWorldCoord(rast, 2, 3)).*\n"
"FROM (\n"
" SELECT\n"
" rid,\n"
" ST_SetSkew(rast, 100.5, 0) As rast\n"
" FROM dummy_rast\n"
") As foo\n"
"\n"
" rid | longitude | latitude | longitude | latitude\n"
"-----+------------+----------+-----------+-----------\n"
" 1 | 0.5 | 0.5 | 203.5 | 6.5\n"
" 2 | 3427927.75 | 5793244 | 3428128.8 | 5793243.9"
msgstr ""
#. Tag: para
#: reference_raster.xml:2314
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_RasterToWorldCoordY\"/>, <xref linkend="
"\"RT_ST_SetSkew\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:2324
#, no-c-format
msgid "ST_RasterToWorldCoordX"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:2325
#, no-c-format
msgid ""
"Returns the geometric X coordinate upper left of a raster, column and row. "
"Numbering of columns and rows starts at 1."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:2330
#, no-c-format
msgid ""
"<funcprototype> <funcdef>float8 <function>ST_RasterToWorldCoordX</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> <paramdef><type>integer </type> <parameter>xcolumn</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>float8 "
"<function>ST_RasterToWorldCoordX</function></funcdef> <paramdef><type>raster "
"</type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </"
"type> <parameter>xcolumn</parameter></paramdef> <paramdef><type>integer </"
"type> <parameter>yrow</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:2348
#, no-c-format
msgid ""
"Returns the upper left X coordinate of a raster column row in geometric "
"units of the georeferenced raster. Numbering of columns and rows starts at 1 "
"but if you pass in a negative number or number higher than number of columns "
"in raster, it will give you coordinates outside of the raster file to left "
"or right with the assumption that the skew and pixel sizes are same as "
"selected raster."
msgstr ""
#. Tag: para
#: reference_raster.xml:2353
#, no-c-format
msgid ""
"For non-skewed rasters, providing the X column is sufficient. For skewed "
"rasters, the georeferenced coordinate is a function of the ST_ScaleX and "
"ST_SkewX and row and column. An error will be raised if you give just the X "
"column for a skewed raster."
msgstr ""
#. Tag: para
#: reference_raster.xml:2357
#, no-c-format
msgid "Changed: 2.1.0 In prior versions, this was called ST_Raster2WorldCoordX"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:2364
#, no-c-format
msgid ""
"-- non-skewed raster providing column is sufficient\n"
"SELECT rid, ST_RasterToWorldCoordX(rast,1) As x1coord,\n"
" ST_RasterToWorldCoordX(rast,2) As x2coord,\n"
" ST_ScaleX(rast) As pixelx\n"
"FROM dummy_rast;\n"
"\n"
" rid | x1coord | x2coord | pixelx\n"
"-----+------------+-----------+--------\n"
" 1 | 0.5 | 2.5 | 2\n"
" 2 | 3427927.75 | 3427927.8 | 0.05"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:2366
#, no-c-format
msgid ""
"-- for fun lets skew it\n"
"SELECT rid, ST_RasterToWorldCoordX(rast, 1, 1) As x1coord,\n"
" ST_RasterToWorldCoordX(rast, 2, 3) As x2coord,\n"
" ST_ScaleX(rast) As pixelx\n"
"FROM (SELECT rid, ST_SetSkew(rast, 100.5, 0) As rast FROM dummy_rast) As "
"foo;\n"
"\n"
" rid | x1coord | x2coord | pixelx\n"
"-----+------------+-----------+--------\n"
" 1 | 0.5 | 203.5 | 2\n"
" 2 | 3427927.75 | 3428128.8 | 0.05"
msgstr ""
#. Tag: para
#: reference_raster.xml:2373
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_RasterToWorldCoordY\"/>, <xref linkend="
"\"RT_ST_SetSkew\"/>, <xref linkend=\"RT_ST_SkewX\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:2379
#, no-c-format
msgid "ST_RasterToWorldCoordY"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:2380
#, no-c-format
msgid ""
"Returns the geometric Y coordinate upper left corner of a raster, column and "
"row. Numbering of columns and rows starts at 1."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:2385
#, no-c-format
msgid ""
"<funcprototype> <funcdef>float8 <function>ST_RasterToWorldCoordY</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> <paramdef><type>integer </type> <parameter>yrow</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>float8 "
"<function>ST_RasterToWorldCoordY</function></funcdef> <paramdef><type>raster "
"</type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </"
"type> <parameter>xcolumn</parameter></paramdef> <paramdef><type>integer </"
"type> <parameter>yrow</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:2403
#, no-c-format
msgid ""
"Returns the upper left Y coordinate of a raster column row in geometric "
"units of the georeferenced raster. Numbering of columns and rows starts at 1 "
"but if you pass in a negative number or number higher than number of columns/"
"rows in raster, it will give you coordinates outside of the raster file to "
"left or right with the assumption that the skew and pixel sizes are same as "
"selected raster tile."
msgstr ""
#. Tag: para
#: reference_raster.xml:2408
#, no-c-format
msgid ""
"For non-skewed rasters, providing the Y column is sufficient. For skewed "
"rasters, the georeferenced coordinate is a function of the ST_ScaleY and "
"ST_SkewY and row and column. An error will be raised if you give just the Y "
"row for a skewed raster."
msgstr ""
#. Tag: para
#: reference_raster.xml:2412
#, no-c-format
msgid "Changed: 2.1.0 In prior versions, this was called ST_Raster2WorldCoordY"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:2418
#, no-c-format
msgid ""
"-- non-skewed raster providing row is sufficient\n"
"SELECT rid, ST_RasterToWorldCoordY(rast,1) As y1coord,\n"
" ST_RasterToWorldCoordY(rast,3) As y2coord,\n"
" ST_ScaleY(rast) As pixely\n"
"FROM dummy_rast;\n"
"\n"
" rid | y1coord | y2coord | pixely\n"
"-----+---------+-----------+--------\n"
" 1 | 0.5 | 6.5 | 3\n"
" 2 | 5793244 | 5793243.9 | -0.05"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:2420
#, no-c-format
msgid ""
"-- for fun lets skew it\n"
"SELECT rid, ST_RasterToWorldCoordY(rast,1,1) As y1coord,\n"
" ST_RasterToWorldCoordY(rast,2,3) As y2coord,\n"
" ST_ScaleY(rast) As pixely\n"
"FROM (SELECT rid, ST_SetSkew(rast,0,100.5) As rast FROM dummy_rast) As foo;\n"
"\n"
" rid | y1coord | y2coord | pixely\n"
"-----+---------+-----------+--------\n"
" 1 | 0.5 | 107 | 3\n"
" 2 | 5793244 | 5793344.4 | -0.05"
msgstr ""
#. Tag: para
#: reference_raster.xml:2427
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_RasterToWorldCoordX\"/>, <xref linkend="
"\"RT_ST_SetSkew\"/>, <xref linkend=\"RT_ST_SkewY\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:2433
#, no-c-format
msgid "ST_Rotation"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:2434
#, no-c-format
msgid "Returns the rotation of the raster in radian."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:2439
#, no-c-format
msgid ""
"<funcdef>float8 <function>ST_Rotation</function></funcdef> "
"<paramdef><type>raster</type> <parameter>rast</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:2449
#, no-c-format
msgid ""
"Returns the uniform rotation of the raster in radian. If a raster does not "
"have uniform rotation, NaN is returned. Refer to <ulink url=\"http://en."
"wikipedia.org/wiki/World_file\">World File</ulink> for more details."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:2456
#, no-c-format
msgid ""
"SELECT rid, ST_Rotation(ST_SetScale(ST_SetSkew(rast, sqrt(2)), sqrt(2))) as "
"rot FROM dummy_rast;\n"
"\n"
" rid | rot\n"
"-----+-------------------\n"
" 1 | 0.785398163397448\n"
" 2 | 0.785398163397448"
msgstr ""
#. Tag: para
#: reference_raster.xml:2462
#, no-c-format
msgid ", <xref linkend=\"RT_ST_SetScale\"/>, <xref linkend=\"RT_ST_SetSkew\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:2468
#, no-c-format
msgid "ST_SkewX"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:2469
#, no-c-format
msgid "Returns the georeference X skew (or rotation parameter)."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:2474
#, no-c-format
msgid ""
"<funcdef>float8 <function>ST_SkewX</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:2484
#, no-c-format
msgid ""
"Returns the georeference X skew (or rotation parameter). Refer to <ulink url="
"\"http://en.wikipedia.org/wiki/World_file\">World File</ulink> for more "
"details."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:2491 reference_raster.xml:2527
#, no-c-format
msgid ""
"SELECT rid, ST_SkewX(rast) As skewx, ST_SkewY(rast) As skewy,\n"
" ST_GeoReference(rast) as georef\n"
"FROM dummy_rast;\n"
"\n"
" rid | skewx | skewy | georef\n"
"-----+-------+-------+--------------------\n"
" 1 | 0 | 0 | 2.0000000000\n"
" : 0.0000000000\n"
" : 0.0000000000\n"
" : 3.0000000000\n"
" : 0.5000000000\n"
" : 0.5000000000\n"
" :\n"
" 2 | 0 | 0 | 0.0500000000\n"
" : 0.0000000000\n"
" : 0.0000000000\n"
" : -0.0500000000\n"
" : 3427927.7500000000\n"
" : 5793244.0000000000"
msgstr ""
#. Tag: para
#: reference_raster.xml:2498
#, no-c-format
msgid ", <xref linkend=\"RT_ST_SkewY\"/>, <xref linkend=\"RT_ST_SetSkew\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:2504
#, no-c-format
msgid "ST_SkewY"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:2505
#, no-c-format
msgid "Returns the georeference Y skew (or rotation parameter)."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:2510
#, no-c-format
msgid ""
"<funcdef>float8 <function>ST_SkewY</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:2520
#, no-c-format
msgid ""
"Returns the georeference Y skew (or rotation parameter). Refer to <ulink url="
"\"http://en.wikipedia.org/wiki/World_file\">World File</ulink> for more "
"details."
msgstr ""
#. Tag: para
#: reference_raster.xml:2534
#, no-c-format
msgid ", <xref linkend=\"RT_ST_SkewX\"/>, <xref linkend=\"RT_ST_SetSkew\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:2540
#, no-c-format
msgid "ST_SRID"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:2541
#, no-c-format
msgid ""
"Returns the spatial reference identifier of the raster as defined in "
"spatial_ref_sys table."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:2546
#, no-c-format
msgid ""
"<funcdef>integer <function>ST_SRID</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:2556
#, no-c-format
msgid ""
"Returns the spatial reference identifier of the raster object as defined in "
"the spatial_ref_sys table."
msgstr ""
#. Tag: para
#: reference_raster.xml:2557
#, no-c-format
msgid ""
"From PostGIS 2.0+ the srid of a non-georeferenced raster/geometry is 0 "
"instead of the prior -1."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:2563
#, no-c-format
msgid ""
"SELECT ST_SRID(rast) As srid\n"
"FROM dummy_rast WHERE rid=1;\n"
"\n"
"srid\n"
"----------------\n"
"0"
msgstr ""
#. Tag: para
#: reference_raster.xml:2569
#, no-c-format
msgid ", <xref linkend=\"ST_SRID\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:2575
#, no-c-format
msgid "ST_Summary"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:2576
#, no-c-format
msgid ""
"<refpurpose>Returns a text summary of the contents of the raster.</"
"refpurpose>"
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:2581
#, no-c-format
msgid ""
"<funcdef>text <function>ST_Summary</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:2591
#, no-c-format
msgid "<para>Returns a text summary of the contents of the raster.</para>"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:2598
#, no-c-format
msgid ""
"SELECT ST_Summary(\n"
" ST_AddBand(\n"
" ST_AddBand(\n"
" ST_AddBand(\n"
" ST_MakeEmptyRaster(10, 10, 0, 0, 1, -1, 0, "
"0, 0)\n"
" , 1, '8BUI', 1, 0\n"
" )\n"
" , 2, '32BF', 0, -9999\n"
" )\n"
" , 3, '16BSI', 0, NULL\n"
" )\n"
");\n"
"\n"
" st_summary\n"
"------------------------------------------------------------------\n"
" Raster of 10x10 pixels has 3 bands and extent of BOX(0 -10,10 0)+\n"
" band 1 of pixtype 8BUI is in-db with NODATA value of 0 +\n"
" band 2 of pixtype 32BF is in-db with NODATA value of -9999 +\n"
" band 3 of pixtype 16BSI is in-db with no NODATA value\n"
"(1 row)"
msgstr ""
#. Tag: para
#: reference_raster.xml:2603
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_BandMetaData\"/>, <xref linkend=\"ST_Summary\"/> "
"<xref linkend=\"ST_Extent\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:2614
#, no-c-format
msgid "ST_UpperLeftX"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:2615
#, no-c-format
msgid ""
"<refpurpose>Returns the upper left X coordinate of raster in projected "
"spatial ref.</refpurpose>"
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:2620
#, no-c-format
msgid ""
"<funcdef>float8 <function>ST_UpperLeftX</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:2630
#, no-c-format
msgid ""
"<para>Returns the upper left X coordinate of raster in projected spatial ref."
"</para>"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:2636
#, no-c-format
msgid ""
"SELECt rid, ST_UpperLeftX(rast) As ulx\n"
"FROM dummy_rast;\n"
"\n"
" rid | ulx\n"
"-----+------------\n"
" 1 | 0.5\n"
" 2 | 3427927.75"
msgstr ""
#. Tag: para
#: reference_raster.xml:2642 reference_raster.xml:2676
#, no-c-format
msgid ", <xref linkend=\"RT_ST_GeoReference\"/>, <xref linkend=\"RT_Box3D\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:2648
#, no-c-format
msgid "ST_UpperLeftY"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:2649
#, no-c-format
msgid ""
"<refpurpose>Returns the upper left Y coordinate of raster in projected "
"spatial ref.</refpurpose>"
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:2654
#, no-c-format
msgid ""
"<funcdef>float8 <function>ST_UpperLeftY</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:2664
#, no-c-format
msgid ""
"<para>Returns the upper left Y coordinate of raster in projected spatial ref."
"</para>"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:2670
#, no-c-format
msgid ""
"SELECT rid, ST_UpperLeftY(rast) As uly\n"
"FROM dummy_rast;\n"
"\n"
" rid | uly\n"
"-----+---------\n"
" 1 | 0.5\n"
" 2 | 5793244"
msgstr ""
#. Tag: refname
#: reference_raster.xml:2682
#, no-c-format
msgid "ST_Width"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:2683
#, no-c-format
msgid "<refpurpose>Returns the width of the raster in pixels.</refpurpose>"
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:2688
#, no-c-format
msgid ""
"<funcdef>integer <function>ST_Width</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:2698
#, no-c-format
msgid "<para>Returns the width of the raster in pixels.</para>"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:2704
#, no-c-format
msgid ""
"SELECT ST_Width(rast) As rastwidth\n"
"FROM dummy_rast WHERE rid=1;\n"
"\n"
"rastwidth\n"
"----------------\n"
"10"
msgstr ""
#. Tag: refname
#: reference_raster.xml:2718
#, no-c-format
msgid "ST_WorldToRasterCoord"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:2719
#, no-c-format
msgid ""
"Returns the upper left corner as column and row given geometric X and Y "
"(longitude and latitude) or a point geometry expressed in the spatial "
"reference coordinate system of the raster."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:2723
#, no-c-format
msgid ""
"<funcprototype> <funcdef>record <function>ST_WorldToRasterCoord</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> <paramdef><type>geometry </type> <parameter>pt</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>record "
"<function>ST_WorldToRasterCoord</function></funcdef> <paramdef><type>raster "
"</type> <parameter>rast</parameter></paramdef> <paramdef><type>double "
"precision </type> <parameter>longitude</parameter></paramdef> "
"<paramdef><type>double precision </type> <parameter>latitude</parameter></"
"paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:2742
#, no-c-format
msgid ""
"Returns the upper left corner as column and row given geometric X and Y "
"(longitude and latitude) or a point geometry. This function works regardless "
"of whether or not the geometric X and Y or point geometry is outside the "
"extent of the raster. Geometric X and Y must be expressed in the spatial "
"reference coordinate system of the raster."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:2755
#, no-c-format
msgid ""
"SELECT\n"
" rid,\n"
" (ST_WorldToRasterCoord(rast,3427927.8,20.5)).*,\n"
" (ST_WorldToRasterCoord(rast,ST_GeomFromText('POINT(3427927.8 20.5)',"
"ST_SRID(rast)))).*\n"
"FROM dummy_rast;\n"
"\n"
" rid | columnx | rowy | columnx | rowy\n"
"-----+---------+-----------+---------+-----------\n"
" 1 | 1713964 | 7 | 1713964 | 7\n"
" 2 | 2 | 115864471 | 2 | 115864471"
msgstr ""
#. Tag: para
#: reference_raster.xml:2761
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_WorldToRasterCoordY\"/>, <xref linkend="
"\"RT_ST_RasterToWorldCoordX\"/>, <xref linkend=\"RT_ST_RasterToWorldCoordY\"/"
">, <xref linkend=\"RT_ST_SRID\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:2773
#, no-c-format
msgid "ST_WorldToRasterCoordX"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:2774
#, no-c-format
msgid ""
"Returns the column in the raster of the point geometry (pt) or a X and Y "
"world coordinate (xw, yw) represented in world spatial reference system of "
"raster."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:2779
#, no-c-format
msgid ""
"<funcprototype> <funcdef>integer <function>ST_WorldToRasterCoordX</"
"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>integer "
"<function>ST_WorldToRasterCoordX</function></funcdef> <paramdef><type>raster "
"</type> <parameter>rast</parameter></paramdef> <paramdef><type>double "
"precision </type> <parameter>xw</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>integer <function>ST_WorldToRasterCoordX</"
"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
"parameter></paramdef> <paramdef><type>double precision </type> "
"<parameter>xw</parameter></paramdef> <paramdef><type>double precision </"
"type> <parameter>yw</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:2804
#, no-c-format
msgid ""
"Returns the column in the raster of the point geometry (pt) or a X and Y "
"world coordinate (xw, yw). A point, or (both xw and yw world coordinates are "
"required if a raster is skewed). If a raster is not skewed then xw is "
"sufficient. World coordinates are in the spatial reference coordinate system "
"of the raster."
msgstr ""
#. Tag: para
#: reference_raster.xml:2806
#, no-c-format
msgid "Changed: 2.1.0 In prior versions, this was called ST_World2RasterCoordX"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:2812
#, no-c-format
msgid ""
"SELECT rid, ST_WorldToRasterCoordX(rast,3427927.8) As xcoord,\n"
" ST_WorldToRasterCoordX(rast,3427927.8,20.5) As xcoord_xwyw,\n"
" ST_WorldToRasterCoordX(rast,ST_GeomFromText('POINT(3427927.8 "
"20.5)',ST_SRID(rast))) As ptxcoord\n"
"FROM dummy_rast;\n"
"\n"
" rid | xcoord | xcoord_xwyw | ptxcoord\n"
"-----+---------+---------+----------\n"
" 1 | 1713964 | 1713964 | 1713964\n"
" 2 | 1 | 1 | 1"
msgstr ""
#. Tag: para
#: reference_raster.xml:2818 reference_raster.xml:2873
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_RasterToWorldCoordY\"/>, <xref linkend=\"RT_ST_SRID"
"\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:2828
#, no-c-format
msgid "ST_WorldToRasterCoordY"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:2829
#, no-c-format
msgid ""
"Returns the row in the raster of the point geometry (pt) or a X and Y world "
"coordinate (xw, yw) represented in world spatial reference system of raster."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:2834
#, no-c-format
msgid ""
"<funcprototype> <funcdef>integer <function>ST_WorldToRasterCoordY</"
"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>integer "
"<function>ST_WorldToRasterCoordY</function></funcdef> <paramdef><type>raster "
"</type> <parameter>rast</parameter></paramdef> <paramdef><type>double "
"precision </type> <parameter>xw</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>integer <function>ST_WorldToRasterCoordY</"
"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
"parameter></paramdef> <paramdef><type>double precision </type> "
"<parameter>xw</parameter></paramdef> <paramdef><type>double precision </"
"type> <parameter>yw</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:2859
#, no-c-format
msgid ""
"Returns the row in the raster of the point geometry (pt) or a X and Y world "
"coordinate (xw, yw). A point, or (both xw and yw world coordinates are "
"required if a raster is skewed). If a raster is not skewed then xw is "
"sufficient. World coordinates are in the spatial reference coordinate system "
"of the raster."
msgstr ""
#. Tag: para
#: reference_raster.xml:2861
#, no-c-format
msgid "Changed: 2.1.0 In prior versions, this was called ST_World2RasterCoordY"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:2867
#, no-c-format
msgid ""
"SELECT rid, ST_WorldToRasterCoordY(rast,20.5) As ycoord,\n"
" ST_WorldToRasterCoordY(rast,3427927.8,20.5) As ycoord_xwyw,\n"
" ST_WorldToRasterCoordY(rast,ST_GeomFromText('POINT(3427927.8 "
"20.5)',ST_SRID(rast))) As ptycoord\n"
"FROM dummy_rast;\n"
"\n"
" rid | ycoord | ycoord_xwyw | ptycoord\n"
"-----+-----------+-------------+-----------\n"
" 1 | 7 | 7 | 7\n"
" 2 | 115864471 | 115864471 | 115864471"
msgstr ""
#. Tag: title
#: reference_raster.xml:2880
#, no-c-format
msgid "Raster Band Accessors"
msgstr ""
#. Tag: refname
#: reference_raster.xml:2883
#, no-c-format
msgid "ST_BandMetaData"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:2884
#, no-c-format
msgid ""
"Returns basic meta data for a specific raster band. band num 1 is assumed if "
"none-specified."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:2888
#, no-c-format
msgid ""
"<funcprototype> <funcdef>(1) record <function>ST_BandMetaData</function></"
"funcdef> <paramdef><type>raster </type><parameter>rast</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>integer </type><parameter>band=1</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>(2) record "
"<function>ST_BandMetaData</function></funcdef> <paramdef><type>raster </"
"type><parameter>rast</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>integer[] </type><parameter>band</parameter></paramdef> </"
"funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:2905
#, no-c-format
msgid ""
"Returns basic meta data about a raster band. Columns returned: pixeltype, "
"nodatavalue, isoutdb, path, outdbbandnum, filesize, filetimestamp."
msgstr ""
#. Tag: para
#: reference_raster.xml:2908
#, no-c-format
msgid "If raster contains no bands then an error is thrown."
msgstr ""
#. Tag: para
#: reference_raster.xml:2914
#, no-c-format
msgid "If band has no NODATA value, nodatavalue are NULL."
msgstr ""
#. Tag: para
#: reference_raster.xml:2919
#, no-c-format
msgid ""
"If isoutdb is False, path, outdbbandnum, filesize and filetimestamp are "
"NULL. If outdb access is disabled, filesize and filetimestamp will also be "
"NULL."
msgstr ""
#. Tag: para
#: reference_raster.xml:2924
#, no-c-format
msgid ""
"Enhanced: 2.5.0 to include <emphasis>outdbbandnum</emphasis>, "
"<emphasis>filesize</emphasis> and <emphasis>filetimestamp</emphasis> for "
"outdb rasters."
msgstr ""
#. Tag: title
#: reference_raster.xml:2928 reference_raster.xml:3987
#: reference_raster.xml:6874 reference_raster.xml:7299
#: reference_raster.xml:8905 reference_raster.xml:9348
#: reference_raster.xml:9445 reference_raster.xml:9573
#, no-c-format
msgid "Examples: Variant 1"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:2930
#, no-c-format
msgid ""
"SELECT\n"
" rid,\n"
" (foo.md).*\n"
"FROM (\n"
" SELECT\n"
" rid,\n"
" ST_BandMetaData(rast, 1) AS md\n"
" FROM dummy_rast\n"
" WHERE rid=2\n"
") As foo;\n"
"\n"
" rid | pixeltype | nodatavalue | isoutdb | path | outdbbandnum\n"
"-----+-----------+---- --------+---------+------+--------------\n"
" 2 | 8BUI | 0 | f | |"
msgstr ""
#. Tag: title
#: reference_raster.xml:2935 reference_raster.xml:4000
#: reference_raster.xml:6918 reference_raster.xml:8912
#: reference_raster.xml:9353 reference_raster.xml:9450
#: reference_raster.xml:9578
#, no-c-format
msgid "Examples: Variant 2"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:2937
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT\n"
" ST_AddBand(NULL::raster, '/home/pele/devel/geo/postgis-git/"
"raster/test/regress/loader/Projected.tif', NULL::int[]) AS rast\n"
")\n"
"SELECT\n"
" *\n"
"FROM ST_BandMetadata(\n"
" (SELECT rast FROM foo),\n"
" ARRAY[1,3,2]::int[]\n"
");\n"
"\n"
" bandnum | pixeltype | nodatavalue | isoutdb "
"| "
"path | outdbbandnum | filesize | "
"filetimestamp |\n"
"---------+-----------+-------------+---------"
"+--------------------------------------------------------------------------------"
"+---------------+----------+---------------+-\n"
" 1 | 8BUI | | t | /home/pele/devel/geo/postgis-"
"git/raster/test/regress/loader/Projected.tif | 1 | 12345 "
"| 1521807257 |\n"
" 3 | 8BUI | | t | /home/pele/devel/geo/postgis-"
"git/raster/test/regress/loader/Projected.tif | 3 | 12345 "
"| 1521807257 |\n"
" 2 | 8BUI | | t | /home/pele/devel/geo/postgis-"
"git/raster/test/regress/loader/Projected.tif | 2 | 12345 "
"| 1521807257 |"
msgstr ""
#. Tag: para
#: reference_raster.xml:2944
#, no-c-format
msgid ", <xref linkend=\"RT_ST_BandPixelType\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:2950
#, no-c-format
msgid "ST_BandNoDataValue"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:2951
#, no-c-format
msgid ""
"Returns the value in a given band that represents no data. If no band num 1 "
"is assumed."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:2956
#, no-c-format
msgid ""
"<funcdef>double precision <function>ST_BandNoDataValue</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>integer </type> <parameter>bandnum=1</"
"parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:2967 reference_raster.xml:3165
#, no-c-format
msgid "Returns the value that represents no data for the band"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:2973
#, no-c-format
msgid ""
"SELECT ST_BandNoDataValue(rast,1) As bnval1,\n"
" ST_BandNoDataValue(rast,2) As bnval2, ST_BandNoDataValue(rast,3) As "
"bnval3\n"
"FROM dummy_rast\n"
"WHERE rid = 2;\n"
"\n"
" bnval1 | bnval2 | bnval3\n"
"--------+--------+--------\n"
" 0 | 0 | 0"
msgstr ""
#. Tag: refname
#: reference_raster.xml:2986
#, no-c-format
msgid "ST_BandIsNoData"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:2987
#, no-c-format
msgid "Returns true if the band is filled with only nodata values."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:2991
#, no-c-format
msgid ""
"<funcprototype> <funcdef>boolean <function>ST_BandIsNoData</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> <paramdef><type>integer </type> <parameter>band</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>forceChecking=true</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>boolean <function>ST_BandIsNoData</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>forceChecking=true</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:3008
#, no-c-format
msgid ""
"Returns true if the band is filled with only nodata values. Band 1 is "
"assumed if not specified. If the last argument is TRUE, the entire band is "
"checked pixel by pixel. Otherwise, the function simply returns the value of "
"the isnodata flag for the band. The default value for this parameter is "
"FALSE, if not specified."
msgstr ""
#. Tag: para
#: reference_raster.xml:3018
#, no-c-format
msgid ""
"If the flag is dirty (this is, the result is different using TRUE as last "
"parameter and not using it) you should update the raster to set this flag to "
"true, by using ST_SetBandIsNodata(), or ST_SetBandNodataValue() with TRUE as "
"last argument. See <xref linkend=\"RT_ST_SetBandIsNoData\"/>."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3028
#, no-c-format
msgid ""
"-- Create dummy table with one raster column\n"
"create table dummy_rast (rid integer, rast raster);\n"
"\n"
"-- Add raster with two bands, one pixel/band. In the first band, nodatavalue "
"= pixel value = 3.\n"
"-- In the second band, nodatavalue = 13, pixel value = 4\n"
"insert into dummy_rast values(1,\n"
"(\n"
"'01' -- little endian (uint8 ndr)\n"
"||\n"
"'0000' -- version (uint16 0)\n"
"||\n"
"'0200' -- nBands (uint16 0)\n"
"||\n"
"'17263529ED684A3F' -- scaleX (float64 0.000805965234044584)\n"
"||\n"
"'F9253529ED684ABF' -- scaleY (float64 -0.00080596523404458)\n"
"||\n"
"'1C9F33CE69E352C0' -- ipX (float64 -75.5533328537098)\n"
"||\n"
"'718F0E9A27A44840' -- ipY (float64 49.2824585505576)\n"
"||\n"
"'ED50EB853EC32B3F' -- skewX (float64 0.000211812383858707)\n"
"||\n"
"'7550EB853EC32B3F' -- skewY (float64 0.000211812383858704)\n"
"||\n"
"'E6100000' -- SRID (int32 4326)\n"
"||\n"
"'0100' -- width (uint16 1)\n"
"||\n"
"'0100' -- height (uint16 1)\n"
"||\n"
"'6' -- hasnodatavalue and isnodata value set to true.\n"
"||\n"
"'2' -- first band type (4BUI)\n"
"||\n"
"'03' -- novalue==3\n"
"||\n"
"'03' -- pixel(0,0)==3 (same that nodata)\n"
"||\n"
"'0' -- hasnodatavalue set to false\n"
"||\n"
"'5' -- second band type (16BSI)\n"
"||\n"
"'0D00' -- novalue==13\n"
"||\n"
"'0400' -- pixel(0,0)==4\n"
")::raster\n"
");\n"
"\n"
"select st_bandisnodata(rast, 1) from dummy_rast where rid = 1; -- Expected "
"true\n"
"select st_bandisnodata(rast, 2) from dummy_rast where rid = 1; -- Expected "
"false"
msgstr ""
#. Tag: para
#: reference_raster.xml:3034
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_NumBands\"/>, <xref linkend="
"\"RT_ST_SetBandNoDataValue\"/>, <xref linkend=\"RT_ST_SetBandIsNoData\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:3043
#, no-c-format
msgid "ST_BandPath"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:3044
#, no-c-format
msgid ""
"Returns system file path to a band stored in file system. If no bandnum "
"specified, 1 is assumed."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:3049
#, no-c-format
msgid ""
"<funcdef>text <function>ST_BandPath</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>integer </type> <parameter>bandnum=1</"
"parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:3060
#, no-c-format
msgid ""
"Returns system file path to a band. Throws an error if called with an in db "
"band."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3066
#, no-c-format
msgid "<!-- TODO: -->"
msgstr ""
#. Tag: refname
#: reference_raster.xml:3078
#, no-c-format
msgid "ST_BandFileSize"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:3079
#, no-c-format
msgid ""
"Returns the file size of a band stored in file system. If no bandnum "
"specified, 1 is assumed."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:3084
#, no-c-format
msgid ""
"<funcdef>bigint <function>ST_BandFileSize</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>integer </type> <parameter>bandnum=1</"
"parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:3095
#, no-c-format
msgid ""
"Returns the file size of a band stored in file system. Throws an error if "
"called with an in db band, or if outdb access is not enabled."
msgstr ""
#. Tag: para
#: reference_raster.xml:3097
#, no-c-format
msgid ""
"This function is typically used in conjunction with ST_BandPath() and "
"ST_BandFileTimestamp() so a client can determine if the filename of a outdb "
"raster as seen by it is the same as the one seen by the server."
msgstr ""
#. Tag: para
#: reference_raster.xml:3099 reference_raster.xml:3135
#: reference_raster.xml:5094 reference_raster.xml:5147
#: reference_raster.xml:5844 reference_raster.xml:5887
#: reference_raster.xml:6000 reference_raster.xml:6869
#, no-c-format
msgid "Availability: 2.5.0"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3106
#, no-c-format
msgid ""
"SELECT ST_BandFileSize(rast,1) FROM dummy_rast WHERE rid = 1;\n"
"\n"
" st_bandfilesize\n"
"-----------------\n"
" 240574"
msgstr ""
#. Tag: refname
#: reference_raster.xml:3114
#, no-c-format
msgid "ST_BandFileTimestamp"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:3115
#, no-c-format
msgid ""
"Returns the file timestamp of a band stored in file system. If no bandnum "
"specified, 1 is assumed."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:3120
#, no-c-format
msgid ""
"<funcdef>bigint <function>ST_BandFileTimestamp</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>integer </type> <parameter>bandnum=1</"
"parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:3131
#, no-c-format
msgid ""
"Returns the file timestamp (number of seconds since Jan 1st 1970 00:00:00 "
"UTC) of a band stored in file system. Throws an error if called with an in "
"db band, or if outdb access is not enabled."
msgstr ""
#. Tag: para
#: reference_raster.xml:3133
#, no-c-format
msgid ""
"This function is typically used in conjunction with ST_BandPath() and "
"ST_BandFileSize() so a client can determine if the filename of a outdb "
"raster as seen by it is the same as the one seen by the server."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3141
#, no-c-format
msgid ""
"SELECT ST_BandFileTimestamp(rast,1) FROM dummy_rast WHERE rid = 1;\n"
"\n"
" st_bandfiletimestamp\n"
"----------------------\n"
" 1521807257"
msgstr ""
#. Tag: refname
#: reference_raster.xml:3148
#, no-c-format
msgid "ST_BandPixelType"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:3149
#, no-c-format
msgid ""
"Returns the type of pixel for given band. If no bandnum specified, 1 is "
"assumed."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:3154
#, no-c-format
msgid ""
"<funcdef>text <function>ST_BandPixelType</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>integer </type> <parameter>bandnum=1</"
"parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:3166
#, no-c-format
msgid "There are 11 pixel types. Pixel Types supported are as follows:"
msgstr ""
#. Tag: para
#: reference_raster.xml:3169
#, no-c-format
msgid "1BB - 1-bit boolean"
msgstr ""
#. Tag: para
#: reference_raster.xml:3173
#, no-c-format
msgid "2BUI - 2-bit unsigned integer"
msgstr ""
#. Tag: para
#: reference_raster.xml:3177
#, no-c-format
msgid "4BUI - 4-bit unsigned integer"
msgstr ""
#. Tag: para
#: reference_raster.xml:3181
#, no-c-format
msgid "8BSI - 8-bit signed integer"
msgstr ""
#. Tag: para
#: reference_raster.xml:3184
#, no-c-format
msgid "8BUI - 8-bit unsigned integer"
msgstr ""
#. Tag: para
#: reference_raster.xml:3187
#, no-c-format
msgid "16BSI - 16-bit signed integer"
msgstr ""
#. Tag: para
#: reference_raster.xml:3190
#, no-c-format
msgid "16BUI - 16-bit unsigned integer"
msgstr ""
#. Tag: para
#: reference_raster.xml:3193
#, no-c-format
msgid "32BSI - 32-bit signed integer"
msgstr ""
#. Tag: para
#: reference_raster.xml:3196
#, no-c-format
msgid "32BUI - 32-bit unsigned integer"
msgstr ""
#. Tag: para
#: reference_raster.xml:3199
#, no-c-format
msgid "32BF - 32-bit float"
msgstr ""
#. Tag: para
#: reference_raster.xml:3202
#, no-c-format
msgid "64BF - 64-bit float"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3211
#, no-c-format
msgid ""
"SELECT ST_BandPixelType(rast,1) As btype1,\n"
" ST_BandPixelType(rast,2) As btype2, ST_BandPixelType(rast,3) As btype3\n"
"FROM dummy_rast\n"
"WHERE rid = 2;\n"
"\n"
" btype1 | btype2 | btype3\n"
"--------+--------+--------\n"
" 8BUI | 8BUI | 8BUI"
msgstr ""
#. Tag: refname
#: reference_raster.xml:3223
#, no-c-format
msgid "ST_HasNoBand"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:3224
#, no-c-format
msgid ""
"<refpurpose>Returns true if there is no band with given band number. If no "
"band number is specified, then band number 1 is assumed.</refpurpose>"
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:3229
#, no-c-format
msgid ""
"<funcdef>boolean <function>ST_HasNoBand</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>bandnum=1</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:3240
#, no-c-format
msgid ""
"<para>Returns true if there is no band with given band number. If no band "
"number is specified, then band number 1 is assumed.</para>"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3248
#, no-c-format
msgid ""
"SELECT rid, ST_HasNoBand(rast) As hb1, ST_HasNoBand(rast,2) as hb2,\n"
"ST_HasNoBand(rast,4) as hb4, ST_NumBands(rast) As numbands\n"
"FROM dummy_rast;\n"
"\n"
"rid | hb1 | hb2 | hb4 | numbands\n"
"-----+-----+-----+-----+----------\n"
"1 | t | t | t | 0\n"
"2 | f | f | t | 3"
msgstr ""
#. Tag: title
#: reference_raster.xml:3261
#, no-c-format
msgid "Raster Pixel Accessors and Setters"
msgstr ""
#. Tag: refname
#: reference_raster.xml:3265
#, no-c-format
msgid "ST_PixelAsPolygon"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:3266
#, no-c-format
msgid ""
"<refpurpose>Returns the polygon geometry that bounds the pixel for a "
"particular row and column.</refpurpose>"
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:3271
#, no-c-format
msgid ""
"<funcdef>geometry <function>ST_PixelAsPolygon</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:3283
#, no-c-format
msgid ""
"<para>Returns the polygon geometry that bounds the pixel for a particular "
"row and column.</para>"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3291
#, no-c-format
msgid ""
"-- get raster pixel polygon\n"
"SELECT i,j, ST_AsText(ST_PixelAsPolygon(foo.rast, i,j)) As b1pgeom\n"
"FROM dummy_rast As foo\n"
" CROSS JOIN generate_series(1,2) As i\n"
" CROSS JOIN generate_series(1,1) As j\n"
"WHERE rid=2;\n"
"\n"
" i | j | b1pgeom\n"
"---+---"
"+-----------------------------------------------------------------------------\n"
" 1 | 1 | POLYGON((3427927.75 5793244,3427927.8 5793244,3427927.8 "
"5793243.95,...\n"
" 2 | 1 | POLYGON((3427927.8 5793244,3427927.85 5793244,3427927.85 "
"5793243.95, .."
msgstr ""
#. Tag: para
#: reference_raster.xml:3296
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_PixelAsPolygons\"/>, <xref linkend="
"\"RT_ST_PixelAsPoint\"/>, <xref linkend=\"RT_ST_PixelAsPoints\"/>, <xref "
"linkend=\"RT_ST_PixelAsCentroid\"/>, <xref linkend=\"RT_ST_PixelAsCentroids"
"\"/>, <xref linkend=\"RT_ST_Intersection\"/>, <xref linkend=\"ST_AsText\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:3311
#, no-c-format
msgid "ST_PixelAsPolygons"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:3312
#, no-c-format
msgid ""
"Returns the polygon geometry that bounds every pixel of a raster band along "
"with the value, the X and the Y raster coordinates of each pixel."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:3317
#, no-c-format
msgid ""
"<funcdef>setof record <function>ST_PixelAsPolygons</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>integer </type> <parameter>band=1</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>exclude_nodata_value=TRUE</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:3329
#, no-c-format
msgid ""
"Returns the polygon geometry that bounds every pixel of a raster band along "
"with the value (double precision), the X and the Y raster coordinates "
"(integers) of each pixel."
msgstr ""
#. Tag: para
#: reference_raster.xml:3331 reference_raster.xml:3437
#: reference_raster.xml:3534
#, no-c-format
msgid ""
"Return record format: <parameter>geom</parameter> <xref linkend=\"geometry\"/"
">, <parameter>val</parameter> double precision, <parameter>x</parameter> "
"integer, <parameter>y</parameter> integers."
msgstr ""
#. Tag: para
#: reference_raster.xml:3335 reference_raster.xml:3441
#: reference_raster.xml:3538
#, no-c-format
msgid ""
"When <parameter>exclude_nodata_value</parameter> = TRUE, only those pixels "
"whose values are not NODATA are returned as points."
msgstr ""
#. Tag: para
#: reference_raster.xml:3341
#, no-c-format
msgid ""
"ST_PixelAsPolygons returns one polygon geometry for every pixel. This is "
"different than ST_DumpAsPolygons where each geometry represents one or more "
"pixels with the same pixel value."
msgstr ""
#. Tag: para
#: reference_raster.xml:3347
#, no-c-format
msgid "Enhanced: 2.1.0 exclude_nodata_value optional argument was added."
msgstr ""
#. Tag: para
#: reference_raster.xml:3348 reference_raster.xml:3446
#: reference_raster.xml:3544
#, no-c-format
msgid "Changed: 2.1.1 Changed behavior of exclude_nodata_value."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3353
#, no-c-format
msgid ""
"-- get raster pixel polygon\n"
"SELECT (gv).x, (gv).y, (gv).val, ST_AsText((gv).geom) geom\n"
"FROM (SELECT ST_PixelAsPolygons(\n"
" ST_SetValue(ST_SetValue(ST_AddBand(ST_MakeEmptyRaster(2, 2, "
"0, 0, 0.001, -0.001, 0.001, 0.001, 4269),\n"
" '8BUI'::text, 1, 0),\n"
" 2, 2, 10),\n"
" 1, 1, NULL)\n"
") gv\n"
") foo;\n"
"\n"
" x | y | val | geom\n"
"---+---"
"+-----------------------------------------------------------------------------\n"
" 1 | 1 | | POLYGON((0 0,0.001 0.001,0.002 0,0.001 -0.001,0 0))\n"
" 1 | 2 | 1 | POLYGON((0.001 -0.001,0.002 0,0.003 -0.001,0.002 -0.002,0.001 "
"-0.001))\n"
" 2 | 1 | 1 | POLYGON((0.001 0.001,0.002 0.002,0.003 0.001,0.002 0,0.001 "
"0.001))\n"
" 2 | 2 | 10 | POLYGON((0.002 0,0.003 0.001,0.004 0,0.003 -0.001,0.002 0))"
msgstr ""
#. Tag: para
#: reference_raster.xml:3358
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend="
"\"RT_ST_PixelAsPoint\"/>, <xref linkend=\"RT_ST_PixelAsPoints\"/>, <xref "
"linkend=\"RT_ST_PixelAsCentroid\"/>, <xref linkend=\"RT_ST_PixelAsCentroids"
"\"/>, <xref linkend=\"ST_AsText\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:3372
#, no-c-format
msgid "ST_PixelAsPoint"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:3373
#, no-c-format
msgid ""
"<refpurpose>Returns a point geometry of the pixel's upper-left corner.</"
"refpurpose>"
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:3379
#, no-c-format
msgid ""
"<funcdef>geometry <function>ST_PixelAsPoint</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:3390
#, no-c-format
msgid "<para>Returns a point geometry of the pixel's upper-left corner.</para>"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3396
#, no-c-format
msgid ""
"SELECT ST_AsText(ST_PixelAsPoint(rast, 1, 1)) FROM dummy_rast WHERE rid = "
"1;\n"
"\n"
" st_astext\n"
"----------------\n"
" POINT(0.5 0.5)"
msgstr ""
#. Tag: para
#: reference_raster.xml:3401
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend="
"\"RT_ST_PixelAsPolygons\"/>, <xref linkend=\"RT_ST_PixelAsPoints\"/>, <xref "
"linkend=\"RT_ST_PixelAsCentroid\"/>, <xref linkend=\"RT_ST_PixelAsCentroids"
"\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:3415
#, no-c-format
msgid "ST_PixelAsPoints"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:3416
#, no-c-format
msgid ""
"<refpurpose>Returns a point geometry for each pixel of a raster band along "
"with the value, the X and the Y raster coordinates of each pixel. The "
"coordinates of the point geometry are of the pixel's upper-left corner.</"
"refpurpose>"
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:3422
#, no-c-format
msgid ""
"<funcdef>setof record <function>ST_PixelAsPoints</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>integer </type> <parameter>band=1</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>exclude_nodata_value=TRUE</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:3433
#, no-c-format
msgid ""
"<para>Returns a point geometry for each pixel of a raster band along with "
"the value, the X and the Y raster coordinates of each pixel. The coordinates "
"of the point geometry are of the pixel's upper-left corner.</para>"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3451
#, no-c-format
msgid ""
"SELECT x, y, val, ST_AsText(geom) FROM (SELECT (ST_PixelAsPoints(rast, 1)).* "
"FROM dummy_rast WHERE rid = 2) foo;\n"
"\n"
" x | y | val | st_astext\n"
"---+---+-----+------------------------------\n"
" 1 | 1 | 253 | POINT(3427927.75 5793244)\n"
" 2 | 1 | 254 | POINT(3427927.8 5793244)\n"
" 3 | 1 | 253 | POINT(3427927.85 5793244)\n"
" 4 | 1 | 254 | POINT(3427927.9 5793244)\n"
" 5 | 1 | 254 | POINT(3427927.95 5793244)\n"
" 1 | 2 | 253 | POINT(3427927.75 5793243.95)\n"
" 2 | 2 | 254 | POINT(3427927.8 5793243.95)\n"
" 3 | 2 | 254 | POINT(3427927.85 5793243.95)\n"
" 4 | 2 | 253 | POINT(3427927.9 5793243.95)\n"
" 5 | 2 | 249 | POINT(3427927.95 5793243.95)\n"
" 1 | 3 | 250 | POINT(3427927.75 5793243.9)\n"
" 2 | 3 | 254 | POINT(3427927.8 5793243.9)\n"
" 3 | 3 | 254 | POINT(3427927.85 5793243.9)\n"
" 4 | 3 | 252 | POINT(3427927.9 5793243.9)\n"
" 5 | 3 | 249 | POINT(3427927.95 5793243.9)\n"
" 1 | 4 | 251 | POINT(3427927.75 5793243.85)\n"
" 2 | 4 | 253 | POINT(3427927.8 5793243.85)\n"
" 3 | 4 | 254 | POINT(3427927.85 5793243.85)\n"
" 4 | 4 | 254 | POINT(3427927.9 5793243.85)\n"
" 5 | 4 | 253 | POINT(3427927.95 5793243.85)\n"
" 1 | 5 | 252 | POINT(3427927.75 5793243.8)\n"
" 2 | 5 | 250 | POINT(3427927.8 5793243.8)\n"
" 3 | 5 | 254 | POINT(3427927.85 5793243.8)\n"
" 4 | 5 | 254 | POINT(3427927.9 5793243.8)\n"
" 5 | 5 | 254 | POINT(3427927.95 5793243.8)"
msgstr ""
#. Tag: para
#: reference_raster.xml:3456
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend="
"\"RT_ST_PixelAsPolygons\"/>, <xref linkend=\"RT_ST_PixelAsPoint\"/>, <xref "
"linkend=\"RT_ST_PixelAsCentroid\"/>, <xref linkend=\"RT_ST_PixelAsCentroids"
"\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:3470
#, no-c-format
msgid "ST_PixelAsCentroid"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:3471
#, no-c-format
msgid ""
"<refpurpose>Returns the centroid (point geometry) of the area represented by "
"a pixel.</refpurpose>"
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:3477
#, no-c-format
msgid ""
"<funcdef>geometry <function>ST_PixelAsCentroid</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>x</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>y</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:3488
#, no-c-format
msgid ""
"<para>Returns the centroid (point geometry) of the area represented by a "
"pixel.</para>"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3494
#, no-c-format
msgid ""
"SELECT ST_AsText(ST_PixelAsCentroid(rast, 1, 1)) FROM dummy_rast WHERE rid = "
"1;\n"
"\n"
" st_astext\n"
"--------------\n"
" POINT(1.5 2)"
msgstr ""
#. Tag: para
#: reference_raster.xml:3499
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend="
"\"RT_ST_PixelAsPolygons\"/>, <xref linkend=\"RT_ST_PixelAsPoint\"/>, <xref "
"linkend=\"RT_ST_PixelAsPoints\"/>, <xref linkend=\"RT_ST_PixelAsCentroids\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:3513
#, no-c-format
msgid "ST_PixelAsCentroids"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:3514
#, no-c-format
msgid ""
"<refpurpose>Returns the centroid (point geometry) for each pixel of a raster "
"band along with the value, the X and the Y raster coordinates of each pixel. "
"The point geometry is the centroid of the area represented by a pixel.</"
"refpurpose>"
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:3520
#, no-c-format
msgid ""
"<funcdef>setof record <function>ST_PixelAsCentroids</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>integer </type> <parameter>band=1</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>exclude_nodata_value=TRUE</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:3531
#, no-c-format
msgid ""
"<para>Returns the centroid (point geometry) for each pixel of a raster band "
"along with the value, the X and the Y raster coordinates of each pixel. The "
"point geometry is the centroid of the area represented by a pixel.</para>"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3549
#, no-c-format
msgid ""
"--LATERAL syntax requires PostgreSQL 9.3+\n"
"SELECT x, y, val, ST_AsText(geom)\n"
" FROM (SELECT dp.* FROM dummy_rast, LATERAL ST_PixelAsCentroids(rast, "
"1) AS dp WHERE rid = 2) foo;\n"
" x | y | val | st_astext\n"
"---+---+-----+--------------------------------\n"
" 1 | 1 | 253 | POINT(3427927.775 5793243.975)\n"
" 2 | 1 | 254 | POINT(3427927.825 5793243.975)\n"
" 3 | 1 | 253 | POINT(3427927.875 5793243.975)\n"
" 4 | 1 | 254 | POINT(3427927.925 5793243.975)\n"
" 5 | 1 | 254 | POINT(3427927.975 5793243.975)\n"
" 1 | 2 | 253 | POINT(3427927.775 5793243.925)\n"
" 2 | 2 | 254 | POINT(3427927.825 5793243.925)\n"
" 3 | 2 | 254 | POINT(3427927.875 5793243.925)\n"
" 4 | 2 | 253 | POINT(3427927.925 5793243.925)\n"
" 5 | 2 | 249 | POINT(3427927.975 5793243.925)\n"
" 1 | 3 | 250 | POINT(3427927.775 5793243.875)\n"
" 2 | 3 | 254 | POINT(3427927.825 5793243.875)\n"
" 3 | 3 | 254 | POINT(3427927.875 5793243.875)\n"
" 4 | 3 | 252 | POINT(3427927.925 5793243.875)\n"
" 5 | 3 | 249 | POINT(3427927.975 5793243.875)\n"
" 1 | 4 | 251 | POINT(3427927.775 5793243.825)\n"
" 2 | 4 | 253 | POINT(3427927.825 5793243.825)\n"
" 3 | 4 | 254 | POINT(3427927.875 5793243.825)\n"
" 4 | 4 | 254 | POINT(3427927.925 5793243.825)\n"
" 5 | 4 | 253 | POINT(3427927.975 5793243.825)\n"
" 1 | 5 | 252 | POINT(3427927.775 5793243.775)\n"
" 2 | 5 | 250 | POINT(3427927.825 5793243.775)\n"
" 3 | 5 | 254 | POINT(3427927.875 5793243.775)\n"
" 4 | 5 | 254 | POINT(3427927.925 5793243.775)\n"
" 5 | 5 | 254 | POINT(3427927.975 5793243.775)"
msgstr ""
#. Tag: para
#: reference_raster.xml:3554
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend="
"\"RT_ST_PixelAsPolygons\"/>, <xref linkend=\"RT_ST_PixelAsPoint\"/>, <xref "
"linkend=\"RT_ST_PixelAsPoints\"/>, <xref linkend=\"RT_ST_PixelAsCentroid\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:3568
#, no-c-format
msgid "ST_Value"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:3569
#, no-c-format
msgid ""
"Returns the value of a given band in a given columnx, rowy pixel or at a "
"particular geometric point. Band numbers start at 1 and assumed to be 1 if "
"not specified. If <varname>exclude_nodata_value</varname> is set to false, "
"then all pixels include <varname>nodata</varname> pixels are considered to "
"intersect and return value. If <varname>exclude_nodata_value</varname> is "
"not passed in then reads it from metadata of raster."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:3573
#, no-c-format
msgid ""
"<funcprototype> <funcdef>double precision <function>ST_Value</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> <paramdef><type>geometry </type> <parameter>pt</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>double precision <function>ST_Value</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> <paramdef><type>integer </type> <parameter>band</parameter></"
"paramdef> <paramdef><type>geometry </type> <parameter>pt</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>double precision <function>ST_Value</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> <paramdef><type>integer </type> <parameter>x</parameter></"
"paramdef> <paramdef><type>integer </type> <parameter>y</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>double precision <function>ST_Value</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> <paramdef><type>integer </type> <parameter>band</parameter></"
"paramdef> <paramdef><type>integer </type> <parameter>x</parameter></"
"paramdef> <paramdef><type>integer </type> <parameter>y</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:3608
#, no-c-format
msgid ""
"Returns the value of a given band in a given columnx, rowy pixel or at a "
"given geometry point. Band numbers start at 1 and band is assumed to be 1 if "
"not specified. If <varname>exclude_nodata_value</varname> is set to true, "
"then only non <varname>nodata</varname> pixels are considered. If "
"<varname>exclude_nodata_value</varname> is set to false, then all pixels are "
"considered."
msgstr ""
#. Tag: para
#: reference_raster.xml:3611
#, no-c-format
msgid "Enhanced: 2.0.0 exclude_nodata_value optional argument was added."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3616
#, no-c-format
msgid ""
"-- get raster values at particular postgis geometry points\n"
"-- the srid of your geometry should be same as for your raster\n"
"SELECT rid, ST_Value(rast, foo.pt_geom) As b1pval, ST_Value(rast, 2, foo."
"pt_geom) As b2pval\n"
"FROM dummy_rast CROSS JOIN (SELECT ST_SetSRID(ST_Point(3427927.77, "
"5793243.76), 0) As pt_geom) As foo\n"
"WHERE rid=2;\n"
"\n"
" rid | b1pval | b2pval\n"
"-----+--------+--------\n"
" 2 | 252 | 79\n"
"\n"
"\n"
"-- general fictitious example using a real table\n"
"SELECT rid, ST_Value(rast, 3, sometable.geom) As b3pval\n"
"FROM sometable\n"
"WHERE ST_Intersects(rast,sometable.geom);"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3617
#, no-c-format
msgid ""
"SELECT rid, ST_Value(rast, 1, 1, 1) As b1pval,\n"
" ST_Value(rast, 2, 1, 1) As b2pval, ST_Value(rast, 3, 1, 1) As b3pval\n"
"FROM dummy_rast\n"
"WHERE rid=2;\n"
"\n"
" rid | b1pval | b2pval | b3pval\n"
"-----+--------+--------+--------\n"
" 2 | 253 | 78 | 70"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3619
#, no-c-format
msgid ""
"--- Get all values in bands 1,2,3 of each pixel --\n"
"SELECT x, y, ST_Value(rast, 1, x, y) As b1val,\n"
" ST_Value(rast, 2, x, y) As b2val, ST_Value(rast, 3, x, y) As b3val\n"
"FROM dummy_rast CROSS JOIN\n"
"generate_series(1, 1000) As x CROSS JOIN generate_series(1, 1000) As y\n"
"WHERE rid = 2 AND x <= ST_Width(rast) AND y <= ST_Height(rast);\n"
"\n"
" x | y | b1val | b2val | b3val\n"
"---+---+-------+-------+-------\n"
" 1 | 1 | 253 | 78 | 70\n"
" 1 | 2 | 253 | 96 | 80\n"
" 1 | 3 | 250 | 99 | 90\n"
" 1 | 4 | 251 | 89 | 77\n"
" 1 | 5 | 252 | 79 | 62\n"
" 2 | 1 | 254 | 98 | 86\n"
" 2 | 2 | 254 | 118 | 108\n"
" :\n"
" :"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3621
#, no-c-format
msgid ""
"--- Get all values in bands 1,2,3 of each pixel same as above but returning "
"the upper left point point of each pixel --\n"
"SELECT ST_AsText(ST_SetSRID(\n"
" ST_Point(ST_UpperLeftX(rast) + ST_ScaleX(rast)*x,\n"
" ST_UpperLeftY(rast) + ST_ScaleY(rast)*y),\n"
" ST_SRID(rast))) As uplpt\n"
" , ST_Value(rast, 1, x, y) As b1val,\n"
" ST_Value(rast, 2, x, y) As b2val, ST_Value(rast, 3, x, y) As b3val\n"
"FROM dummy_rast CROSS JOIN\n"
"generate_series(1,1000) As x CROSS JOIN generate_series(1,1000) As y\n"
"WHERE rid = 2 AND x <= ST_Width(rast) AND y <= ST_Height(rast);\n"
"\n"
" uplpt | b1val | b2val | b3val\n"
"-----------------------------+-------+-------+-------\n"
" POINT(3427929.25 5793245.5) | 253 | 78 | 70\n"
" POINT(3427929.25 5793247) | 253 | 96 | 80\n"
" POINT(3427929.25 5793248.5) | 250 | 99 | 90\n"
":"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3622
#, no-c-format
msgid ""
"--- Get a polygon formed by union of all pixels\n"
" that fall in a particular value range and intersect particular "
"polygon --\n"
"SELECT ST_AsText(ST_Union(pixpolyg)) As shadow\n"
"FROM (SELECT ST_Translate(ST_MakeEnvelope(\n"
" ST_UpperLeftX(rast), ST_UpperLeftY(rast),\n"
" ST_UpperLeftX(rast) + ST_ScaleX(rast),\n"
" ST_UpperLeftY(rast) + ST_ScaleY(rast), 0\n"
" ), ST_ScaleX(rast)*x, ST_ScaleY(rast)*y\n"
" ) As pixpolyg, ST_Value(rast, 2, x, y) As b2val\n"
" FROM dummy_rast CROSS JOIN\n"
"generate_series(1,1000) As x CROSS JOIN generate_series(1,1000) As y\n"
"WHERE rid = 2\n"
" AND x <= ST_Width(rast) AND y <= ST_Height(rast)) As foo\n"
"WHERE\n"
" ST_Intersects(\n"
" pixpolyg,\n"
" ST_GeomFromText('POLYGON((3427928 5793244,3427927.75 "
"5793243.75,3427928 5793243.75,3427928 5793244))',0)\n"
" ) AND b2val != 254;\n"
"\n"
"\n"
" shadow\n"
"------------------------------------------------------------------------------------\n"
" MULTIPOLYGON(((3427928 5793243.9,3427928 5793243.85,3427927.95 "
"5793243.85,3427927.95 5793243.9,\n"
" 3427927.95 5793243.95,3427928 5793243.95,3427928.05 5793243.95,3427928.05 "
"5793243.9,3427928 5793243.9)),((3427927.95 5793243.9,3427927.95 579324\n"
"3.85,3427927.9 5793243.85,3427927.85 5793243.85,3427927.85 "
"5793243.9,3427927.9 5793243.9,3427927.9 5793243.95,\n"
"3427927.95 5793243.95,3427927.95 5793243.9)),((3427927.85 "
"5793243.75,3427927.85 5793243.7,3427927.8 5793243.7,3427927.8 5793243.75\n"
",3427927.8 5793243.8,3427927.8 5793243.85,3427927.85 5793243.85,3427927.85 "
"5793243.8,3427927.85 5793243.75)),\n"
"((3427928.05 5793243.75,3427928.05 5793243.7,3427928 5793243.7,3427927.95 "
"5793243.7,3427927.95 5793243.75,3427927.95 5793243.8,3427\n"
"927.95 5793243.85,3427928 5793243.85,3427928 5793243.8,3427928.05 "
"5793243.8,\n"
"3427928.05 5793243.75)),((3427927.95 5793243.75,3427927.95 "
"5793243.7,3427927.9 5793243.7,3427927.85 5793243.7,\n"
"3427927.85 5793243.75,3427927.85 5793243.8,3427927.85 5793243.85,3427927.9 "
"5793243.85,\n"
"3427927.95 5793243.85,3427927.95 5793243.8,3427927.95 5793243.75)))"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3624
#, no-c-format
msgid ""
"--- Checking all the pixels of a large raster tile can take a long time.\n"
"--- You can dramatically improve speed at some lose of precision by orders "
"of magnitude\n"
"-- by sampling pixels using the step optional parameter of "
"generate_series.\n"
"-- This next example does the same as previous but by checking 1 for every "
"4 (2x2) pixels and putting in the last checked\n"
"-- putting in the checked pixel as the value for subsequent 4\n"
"\n"
"SELECT ST_AsText(ST_Union(pixpolyg)) As shadow\n"
"FROM (SELECT ST_Translate(ST_MakeEnvelope(\n"
" ST_UpperLeftX(rast), ST_UpperLeftY(rast),\n"
" ST_UpperLeftX(rast) + ST_ScaleX(rast)*2,\n"
" ST_UpperLeftY(rast) + ST_ScaleY(rast)*2, 0\n"
" ), ST_ScaleX(rast)*x, ST_ScaleY(rast)*y\n"
" ) As pixpolyg, ST_Value(rast, 2, x, y) As b2val\n"
" FROM dummy_rast CROSS JOIN\n"
"generate_series(1,1000,2) As x CROSS JOIN generate_series(1,1000,2) As y\n"
"WHERE rid = 2\n"
" AND x <= ST_Width(rast) AND y <= ST_Height(rast) ) As foo\n"
"WHERE\n"
" ST_Intersects(\n"
" pixpolyg,\n"
" ST_GeomFromText('POLYGON((3427928 5793244,3427927.75 "
"5793243.75,3427928 5793243.75,3427928 5793244))',0)\n"
" ) AND b2val != 254;\n"
"\n"
" shadow\n"
"------------------------------------------------------------------------------------\n"
" MULTIPOLYGON(((3427927.9 5793243.85,3427927.8 5793243.85,3427927.8 "
"5793243.95,\n"
" 3427927.9 5793243.95,3427928 5793243.95,3427928.1 5793243.95,3427928.1 "
"5793243.85,3427928 5793243.85,3427927.9 5793243.85)),\n"
" ((3427927.9 5793243.65,3427927.8 5793243.65,3427927.8 5793243.75,3427927.8 "
"5793243.85,3427927.9 5793243.85,\n"
" 3427928 5793243.85,3427928 5793243.75,3427928.1 5793243.75,3427928.1 "
"5793243.65,3427928 5793243.65,3427927.9 5793243.65)))"
msgstr ""
#. Tag: para
#: reference_raster.xml:3629
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_DumpAsPolygons\"/>, <xref linkend=\"RT_ST_NumBands\"/"
">, <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend=\"RT_ST_ScaleX\"/"
">, <xref linkend=\"RT_ST_ScaleY\"/>, <xref linkend=\"RT_ST_UpperLeftX\"/>, "
"<xref linkend=\"RT_ST_UpperLeftY\"/>, <xref linkend=\"RT_ST_SRID\"/>, <xref "
"linkend=\"ST_AsText\"/>, <xref linkend=\"ST_Point\"/>, <xref linkend="
"\"ST_MakeEnvelope\"/>, <xref linkend=\"ST_Intersects\"/>, <xref linkend="
"\"ST_Intersection\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:3650
#, no-c-format
msgid "ST_NearestValue"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:3651
#, no-c-format
msgid ""
"Returns the nearest non-<varname>NODATA</varname> value of a given band's "
"pixel specified by a columnx and rowy or a geometric point expressed in the "
"same spatial reference coordinate system as the raster."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:3657
#, no-c-format
msgid ""
"<funcprototype> <funcdef>double precision <function>ST_NearestValue</"
"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>bandnum</"
"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>double precision <function>ST_NearestValue</"
"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>double precision <function>ST_NearestValue</"
"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>bandnum</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>columnx</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>rowy</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>double precision <function>ST_NearestValue</"
"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>columnx</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>rowy</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:3694
#, no-c-format
msgid ""
"Returns the nearest non-<varname>NODATA</varname> value of a given band in a "
"given columnx, rowy pixel or at a specific geometric point. If the columnx, "
"rowy pixel or the pixel at the specified geometric point is <varname>NODATA</"
"varname>, the function will find the nearest pixel to the columnx, rowy "
"pixel or geometric point whose value is not <varname>NODATA</varname>."
msgstr ""
#. Tag: para
#: reference_raster.xml:3697 reference_raster.xml:3784
#, no-c-format
msgid ""
"Band numbers start at 1 and <varname>bandnum</varname> is assumed to be 1 if "
"not specified. If <varname>exclude_nodata_value</varname> is set to false, "
"then all pixels include <varname>nodata</varname> pixels are considered to "
"intersect and return value. If <varname>exclude_nodata_value</varname> is "
"not passed in then reads it from metadata of raster."
msgstr ""
#. Tag: para
#: reference_raster.xml:3702
#, no-c-format
msgid "ST_NearestValue is a drop-in replacement for ST_Value."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3711
#, no-c-format
msgid ""
"-- pixel 2x2 has value\n"
"SELECT\n"
" ST_Value(rast, 2, 2) AS value,\n"
" ST_NearestValue(rast, 2, 2) AS nearestvalue\n"
"FROM (\n"
" SELECT\n"
" ST_SetValue(\n"
" ST_SetValue(\n"
" ST_SetValue(\n"
" ST_SetValue(\n"
" ST_SetValue(\n"
" ST_AddBand(\n"
" ST_MakeEmptyRaster(5, "
"5, -2, 2, 1, -1, 0, 0, 0),\n"
" '8BUI'::"
"text, 1, 0\n"
" ),\n"
" 1, 1, 0.\n"
" ),\n"
" 2, 3, 0.\n"
" ),\n"
" 3, 5, 0.\n"
" ),\n"
" 4, 2, 0.\n"
" ),\n"
" 5, 4, 0.\n"
" ) AS rast\n"
") AS foo\n"
"\n"
" value | nearestvalue\n"
"-------+--------------\n"
" 1 | 1"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3713
#, no-c-format
msgid ""
"-- pixel 2x3 is NODATA\n"
"SELECT\n"
" ST_Value(rast, 2, 3) AS value,\n"
" ST_NearestValue(rast, 2, 3) AS nearestvalue\n"
"FROM (\n"
" SELECT\n"
" ST_SetValue(\n"
" ST_SetValue(\n"
" ST_SetValue(\n"
" ST_SetValue(\n"
" ST_SetValue(\n"
" ST_AddBand(\n"
" ST_MakeEmptyRaster(5, "
"5, -2, 2, 1, -1, 0, 0, 0),\n"
" '8BUI'::"
"text, 1, 0\n"
" ),\n"
" 1, 1, 0.\n"
" ),\n"
" 2, 3, 0.\n"
" ),\n"
" 3, 5, 0.\n"
" ),\n"
" 4, 2, 0.\n"
" ),\n"
" 5, 4, 0.\n"
" ) AS rast\n"
") AS foo\n"
"\n"
" value | nearestvalue\n"
"-------+--------------\n"
" | 1"
msgstr ""
#. Tag: para
#: reference_raster.xml:3719
#, no-c-format
msgid ", <xref linkend=\"RT_ST_Value\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:3729
#, no-c-format
msgid "ST_Neighborhood"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:3730
#, no-c-format
msgid ""
"Returns a 2-D double precision array of the non-<varname>NODATA</varname> "
"values around a given band's pixel specified by either a columnX and rowY or "
"a geometric point expressed in the same spatial reference coordinate system "
"as the raster."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:3736
#, no-c-format
msgid ""
"<funcprototype> <funcdef>double precision[][] <function>ST_Neighborhood</"
"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>bandnum</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>columnX</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>rowY</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceX</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceY</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>double precision[][] <function>ST_Neighborhood</"
"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>columnX</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>rowY</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceX</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceY</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>double precision[][] <function>ST_Neighborhood</"
"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>bandnum</"
"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceX</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceY</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>double precision[][] <function>ST_Neighborhood</"
"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceX</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceY</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:3781
#, no-c-format
msgid ""
"Returns a 2-D double precision array of the non-<varname>NODATA</varname> "
"values around a given band's pixel specified by either a columnX and rowY or "
"a geometric point expressed in the same spatial reference coordinate system "
"as the raster. The <varname>distanceX</varname> and <varname>distanceY</"
"varname> parameters define the number of pixels around the specified pixel "
"in the X and Y axes, e.g. I want all values within 3 pixel distance along "
"the X axis and 2 pixel distance along the Y axis around my pixel of "
"interest. The center value of the 2-D array will be the value at the pixel "
"specified by the columnX and rowY or the geometric point."
msgstr ""
#. Tag: para
#: reference_raster.xml:3788
#, no-c-format
msgid ""
"The number of elements along each axis of the returning 2-D array is 2 * "
"(<varname>distanceX</varname>|<varname>distanceY</varname>) + 1. So for a "
"<varname>distanceX</varname> and <varname>distanceY</varname> of 1, the "
"returning array will be 3x3."
msgstr ""
#. Tag: para
#: reference_raster.xml:3793
#, no-c-format
msgid ""
"The 2-D array output can be passed to any of the raster processing builtin "
"functions, e.g. ST_Min4ma, ST_Sum4ma, ST_Mean4ma."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3803
#, no-c-format
msgid ""
"-- pixel 2x2 has value\n"
"SELECT\n"
" ST_Neighborhood(rast, 2, 2, 1, 1)\n"
"FROM (\n"
" SELECT\n"
" ST_SetValues(\n"
" ST_AddBand(\n"
" ST_MakeEmptyRaster(5, 5, -2, 2, 1, -1, 0, 0, "
"0),\n"
" '8BUI'::text, 1, 0\n"
" ),\n"
" 1, 1, 1, ARRAY[\n"
" [0, 1, 1, 1, 1],\n"
" [1, 1, 1, 0, 1],\n"
" [1, 0, 1, 1, 1],\n"
" [1, 1, 1, 1, 0],\n"
" [1, 1, 0, 1, 1]\n"
" ]::double precision[],\n"
" 1\n"
" ) AS rast\n"
") AS foo\n"
"\n"
" st_neighborhood\n"
"---------------------------------\n"
" {{NULL,1,1},{1,1,NULL},{1,1,1}}"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3805
#, no-c-format
msgid ""
"-- pixel 2x3 is NODATA\n"
"SELECT\n"
" ST_Neighborhood(rast, 2, 3, 1, 1)\n"
"FROM (\n"
" SELECT\n"
" ST_SetValues(\n"
" ST_AddBand(\n"
" ST_MakeEmptyRaster(5, 5, -2, 2, 1, -1, 0, 0, "
"0),\n"
" '8BUI'::text, 1, 0\n"
" ),\n"
" 1, 1, 1, ARRAY[\n"
" [0, 1, 1, 1, 1],\n"
" [1, 1, 1, 0, 1],\n"
" [1, 0, 1, 1, 1],\n"
" [1, 1, 1, 1, 0],\n"
" [1, 1, 0, 1, 1]\n"
" ]::double precision[],\n"
" 1\n"
" ) AS rast\n"
") AS foo\n"
"\n"
" st_neighborhood\n"
"------------------------------\n"
" {{1,1,1},{1,NULL,1},{1,1,1}}"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3807
#, no-c-format
msgid ""
"-- pixel 3x3 has value\n"
"-- exclude_nodata_value = FALSE\n"
"SELECT\n"
" ST_Neighborhood(rast, 3, 3, 1, 1, false)\n"
"FROM (\n"
" ST_SetValues(\n"
" ST_AddBand(\n"
" ST_MakeEmptyRaster(5, 5, -2, 2, 1, -1, 0, 0, "
"0),\n"
" '8BUI'::text, 1, 0\n"
" ),\n"
" 1, 1, 1, ARRAY[\n"
" [0, 1, 1, 1, 1],\n"
" [1, 1, 1, 0, 1],\n"
" [1, 0, 1, 1, 1],\n"
" [1, 1, 1, 1, 0],\n"
" [1, 1, 0, 1, 1]\n"
" ]::double precision[],\n"
" 1\n"
" ) AS rast\n"
") AS foo\n"
"\n"
" st_neighborhood\n"
"---------------------------\n"
" {{1,0,1},{1,1,1},{0,1,1}}"
msgstr ""
#. Tag: para
#: reference_raster.xml:3813
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_Min4ma\"/>, <xref linkend=\"RT_ST_Max4ma\"/>, <xref "
"linkend=\"RT_ST_Sum4ma\"/>, <xref linkend=\"RT_ST_Mean4ma\"/>, <xref linkend="
"\"RT_ST_Range4ma\"/>, <xref linkend=\"RT_ST_Distinct4ma\"/>, <xref linkend="
"\"RT_ST_StdDev4ma\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:3830
#, no-c-format
msgid "ST_SetValue"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:3831
#, no-c-format
msgid ""
"Returns modified raster resulting from setting the value of a given band in "
"a given columnx, rowy pixel or the pixels that intersect a particular "
"geometry. Band numbers start at 1 and assumed to be 1 if not specified."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:3835
#, no-c-format
msgid ""
"<funcprototype> <funcdef>raster <function>ST_SetValue</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>bandnum</parameter></paramdef> "
"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> "
"<paramdef><type>double precision </type> <parameter>newvalue</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>ST_SetValue</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef><type>geometry </type> "
"<parameter>geom</parameter></paramdef> <paramdef><type>double precision </"
"type> <parameter>newvalue</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>raster <function>ST_SetValue</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>bandnum</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef> "
"<paramdef><type>double precision </type> <parameter>newvalue</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>ST_SetValue</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>columnx</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>rowy</parameter></paramdef> <paramdef><type>double precision </"
"type> <parameter>newvalue</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:3869
#, no-c-format
msgid ""
"Returns modified raster resulting from setting the specified pixels' values "
"to new value for the designated band given the raster's row and column or a "
"geometry. If no band is specified, then band 1 is assumed."
msgstr ""
#. Tag: para
#: reference_raster.xml:3872
#, no-c-format
msgid ""
"Enhanced: 2.1.0 Geometry variant of ST_SetValue() now supports any geometry "
"type, not just point. The geometry variant is a wrapper around the geomval[] "
"variant of ST_SetValues()"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3878
#, no-c-format
msgid ""
"-- Geometry example\n"
"SELECT (foo.geomval).val, ST_AsText(ST_Union((foo.geomval).geom))\n"
"FROM (SELECT ST_DumpAsPolygons(\n"
" ST_SetValue(rast,1,\n"
" ST_Point(3427927.75, 5793243.95),\n"
" 50)\n"
" ) As geomval\n"
"FROM dummy_rast\n"
"where rid = 2) As foo\n"
"WHERE (foo.geomval).val < 250\n"
"GROUP BY (foo.geomval).val;\n"
"\n"
" val | st_astext\n"
"-----+-------------------------------------------------------------------\n"
" 50 | POLYGON((3427927.75 5793244,3427927.75 5793243.95,3427927.8 "
"579324 ...\n"
" 249 | POLYGON((3427927.95 5793243.95,3427927.95 5793243.85,3427928 57932 ..."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3880
#, no-c-format
msgid ""
"-- Store the changed raster --\n"
" UPDATE dummy_rast SET rast = ST_SetValue(rast,1, "
"ST_Point(3427927.75, 5793243.95),100)\n"
" WHERE rid = 2 ;"
msgstr ""
#. Tag: para
#: reference_raster.xml:3884 reference_raster.xml:9962
#, no-c-format
msgid ", <xref linkend=\"RT_ST_DumpAsPolygons\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:3890
#, no-c-format
msgid "ST_SetValues"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:3891
#, no-c-format
msgid ""
"Returns modified raster resulting from setting the values of a given band."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:3895
#, no-c-format
msgid ""
"<funcprototype> <funcdef>raster <function>ST_SetValues</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef> "
"<paramdef><type>double precision[][] </type> <parameter>newvalueset</"
"parameter></paramdef> <paramdef><type>boolean[][] </type> "
"<parameter>noset=NULL</parameter></paramdef> <paramdef><type>boolean </type> "
"<parameter>keepnodata=FALSE</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>raster <function>ST_SetValues</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef> "
"<paramdef><type>double precision[][] </type> <parameter>newvalueset</"
"parameter></paramdef> <paramdef><type>double precision </type> "
"<parameter>nosetvalue</parameter></paramdef> <paramdef><type>boolean </type> "
"<parameter>keepnodata=FALSE</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>raster <function>ST_SetValues</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> "
"<paramdef><type>double precision </type> <parameter>newvalue</parameter></"
"paramdef> <paramdef><type>boolean </type> <parameter>keepnodata=FALSE</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>ST_SetValues</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>columnx</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>rowy</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>width</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>height</parameter></paramdef> <paramdef><type>double precision </"
"type> <parameter>newvalue</parameter></paramdef> <paramdef><type>boolean </"
"type> <parameter>keepnodata=FALSE</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>raster <function>ST_SetValues</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
"<paramdef><type>geomval[] </type> <parameter>geomvalset</parameter></"
"paramdef> <paramdef><type>boolean </type> <parameter>keepnodata=FALSE</"
"parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:3954
#, no-c-format
msgid ""
"Returns modified raster resulting from setting specified pixels to new "
"value(s) for the designated band."
msgstr ""
#. Tag: para
#: reference_raster.xml:3958
#, no-c-format
msgid ""
"If <varname>keepnodata</varname> is TRUE, those pixels whose values are "
"NODATA will not be set with the corresponding value in <varname>newvalueset</"
"varname>."
msgstr ""
#. Tag: para
#: reference_raster.xml:3962
#, no-c-format
msgid ""
"For Variant 1, the specific pixels to be set are determined by the "
"<varname>columnx</varname>, <varname>rowy</varname> pixel coordinates and "
"the dimensions of the <varname>newvalueset</varname> array. <varname>noset</"
"varname> can be used to prevent pixels with values present in "
"<varname>newvalueset</varname> from being set (due to PostgreSQL not "
"permitting ragged/jagged arrays). See example Variant 1."
msgstr ""
#. Tag: para
#: reference_raster.xml:3966
#, no-c-format
msgid ""
"Variant 2 is like Variant 1 but with a simple double precision "
"<varname>nosetvalue</varname> instead of a boolean <varname>noset</varname> "
"array. Elements in <varname>newvalueset</varname> with the "
"<varname>nosetvalue</varname> value with be skipped. See example Variant 2."
msgstr ""
#. Tag: para
#: reference_raster.xml:3970
#, no-c-format
msgid ""
"For Variant 3, the specific pixels to be set are determined by the "
"<varname>columnx</varname>, <varname>rowy</varname> pixel coordinates, "
"<varname>width</varname> and <varname>height</varname>. See example Variant "
"3."
msgstr ""
#. Tag: para
#: reference_raster.xml:3974
#, no-c-format
msgid ""
"Variant 4 is the same as Variant 3 with the exception that it assumes that "
"the first band's pixels of <varname>rast</varname> will be set."
msgstr ""
#. Tag: para
#: reference_raster.xml:3978
#, no-c-format
msgid ""
"For Variant 5, an array of <xref linkend=\"geomval\"/> is used to determine "
"the specific pixels to be set. If all the geometries in the array are of "
"type POINT or MULTIPOINT, the function uses a shortcut where the longitude "
"and latitude of each point is used to set a pixel directly. Otherwise, the "
"geometries are converted to rasters and then iterated through in one pass. "
"See example Variant 5."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3989
#, no-c-format
msgid ""
"/*\n"
"The ST_SetValues() does the following...\n"
"\n"
"+ - + - + - + + - + - + - +\n"
"| 1 | 1 | 1 | | 1 | 1 | 1 |\n"
"+ - + - + - + + - + - + - +\n"
"| 1 | 1 | 1 | => | 1 | 9 | 9 |\n"
"+ - + - + - + + - + - + - +\n"
"| 1 | 1 | 1 | | 1 | 9 | 9 |\n"
"+ - + - + - + + - + - + - +\n"
"*/\n"
"SELECT\n"
" (poly).x,\n"
" (poly).y,\n"
" (poly).val\n"
"FROM (\n"
"SELECT\n"
" ST_PixelAsPolygons(\n"
" ST_SetValues(\n"
" ST_AddBand(\n"
" ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, "
"0),\n"
" 1, '8BUI', 1, 0\n"
" ),\n"
" 1, 2, 2, ARRAY[[9, 9], [9, 9]]::double precision[]"
"[]\n"
" )\n"
" ) AS poly\n"
") foo\n"
"ORDER BY 1, 2;\n"
"\n"
" x | y | val\n"
"---+---+-----\n"
" 1 | 1 | 1\n"
" 1 | 2 | 1\n"
" 1 | 3 | 1\n"
" 2 | 1 | 1\n"
" 2 | 2 | 9\n"
" 2 | 3 | 9\n"
" 3 | 1 | 1\n"
" 3 | 2 | 9\n"
" 3 | 3 | 9"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3991
#, no-c-format
msgid ""
"/*\n"
"The ST_SetValues() does the following...\n"
"\n"
"+ - + - + - + + - + - + - +\n"
"| 1 | 1 | 1 | | 9 | 9 | 9 |\n"
"+ - + - + - + + - + - + - +\n"
"| 1 | 1 | 1 | => | 9 | | 9 |\n"
"+ - + - + - + + - + - + - +\n"
"| 1 | 1 | 1 | | 9 | 9 | 9 |\n"
"+ - + - + - + + - + - + - +\n"
"*/\n"
"SELECT\n"
" (poly).x,\n"
" (poly).y,\n"
" (poly).val\n"
"FROM (\n"
"SELECT\n"
" ST_PixelAsPolygons(\n"
" ST_SetValues(\n"
" ST_AddBand(\n"
" ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, "
"0),\n"
" 1, '8BUI', 1, 0\n"
" ),\n"
" 1, 1, 1, ARRAY[[9, 9, 9], [9, NULL, 9], [9, 9, 9]]::"
"double precision[][]\n"
" )\n"
" ) AS poly\n"
") foo\n"
"ORDER BY 1, 2;\n"
"\n"
" x | y | val\n"
"---+---+-----\n"
" 1 | 1 | 9\n"
" 1 | 2 | 9\n"
" 1 | 3 | 9\n"
" 2 | 1 | 9\n"
" 2 | 2 |\n"
" 2 | 3 | 9\n"
" 3 | 1 | 9\n"
" 3 | 2 | 9\n"
" 3 | 3 | 9"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3993
#, no-c-format
msgid ""
"/*\n"
"The ST_SetValues() does the following...\n"
"\n"
"+ - + - + - + + - + - + - +\n"
"| 1 | 1 | 1 | | 9 | 9 | 9 |\n"
"+ - + - + - + + - + - + - +\n"
"| 1 | 1 | 1 | => | 1 | | 9 |\n"
"+ - + - + - + + - + - + - +\n"
"| 1 | 1 | 1 | | 9 | 9 | 9 |\n"
"+ - + - + - + + - + - + - +\n"
"*/\n"
"SELECT\n"
" (poly).x,\n"
" (poly).y,\n"
" (poly).val\n"
"FROM (\n"
"SELECT\n"
" ST_PixelAsPolygons(\n"
" ST_SetValues(\n"
" ST_AddBand(\n"
" ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, "
"0),\n"
" 1, '8BUI', 1, 0\n"
" ),\n"
" 1, 1, 1,\n"
" ARRAY[[9, 9, 9], [9, NULL, 9], [9, 9, 9]]::"
"double precision[][],\n"
" ARRAY[[false], [true]]::boolean[][]\n"
" )\n"
" ) AS poly\n"
") foo\n"
"ORDER BY 1, 2;\n"
"\n"
" x | y | val\n"
"---+---+-----\n"
" 1 | 1 | 9\n"
" 1 | 2 | 1\n"
" 1 | 3 | 9\n"
" 2 | 1 | 9\n"
" 2 | 2 |\n"
" 2 | 3 | 9\n"
" 3 | 1 | 9\n"
" 3 | 2 | 9\n"
" 3 | 3 | 9"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:3995
#, no-c-format
msgid ""
"/*\n"
"The ST_SetValues() does the following...\n"
"\n"
"+ - + - + - + + - + - + - +\n"
"| | 1 | 1 | | | 9 | 9 |\n"
"+ - + - + - + + - + - + - +\n"
"| 1 | 1 | 1 | => | 1 | | 9 |\n"
"+ - + - + - + + - + - + - +\n"
"| 1 | 1 | 1 | | 9 | 9 | 9 |\n"
"+ - + - + - + + - + - + - +\n"
"*/\n"
"SELECT\n"
" (poly).x,\n"
" (poly).y,\n"
" (poly).val\n"
"FROM (\n"
"SELECT\n"
" ST_PixelAsPolygons(\n"
" ST_SetValues(\n"
" ST_SetValue(\n"
" ST_AddBand(\n"
" ST_MakeEmptyRaster(3, 3, 0, 0, 1, "
"-1, 0, 0, 0),\n"
" 1, '8BUI', 1, 0\n"
" ),\n"
" 1, 1, 1, NULL\n"
" ),\n"
" 1, 1, 1,\n"
" ARRAY[[9, 9, 9], [9, NULL, 9], [9, 9, 9]]::"
"double precision[][],\n"
" ARRAY[[false], [true]]::boolean[][],\n"
" TRUE\n"
" )\n"
" ) AS poly\n"
") foo\n"
"ORDER BY 1, 2;\n"
"\n"
" x | y | val\n"
"---+---+-----\n"
" 1 | 1 |\n"
" 1 | 2 | 1\n"
" 1 | 3 | 9\n"
" 2 | 1 | 9\n"
" 2 | 2 |\n"
" 2 | 3 | 9\n"
" 3 | 1 | 9\n"
" 3 | 2 | 9\n"
" 3 | 3 | 9"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:4002
#, no-c-format
msgid ""
"/*\n"
"The ST_SetValues() does the following...\n"
"\n"
"+ - + - + - + + - + - + - +\n"
"| 1 | 1 | 1 | | 1 | 1 | 1 |\n"
"+ - + - + - + + - + - + - +\n"
"| 1 | 1 | 1 | => | 1 | 9 | 9 |\n"
"+ - + - + - + + - + - + - +\n"
"| 1 | 1 | 1 | | 1 | 9 | 9 |\n"
"+ - + - + - + + - + - + - +\n"
"*/\n"
"SELECT\n"
" (poly).x,\n"
" (poly).y,\n"
" (poly).val\n"
"FROM (\n"
"SELECT\n"
" ST_PixelAsPolygons(\n"
" ST_SetValues(\n"
" ST_AddBand(\n"
" ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, "
"0),\n"
" 1, '8BUI', 1, 0\n"
" ),\n"
" 1, 1, 1, ARRAY[[-1, -1, -1], [-1, 9, 9], [-1, 9, "
"9]]::double precision[][], -1\n"
" )\n"
" ) AS poly\n"
") foo\n"
"ORDER BY 1, 2;\n"
"\n"
" x | y | val\n"
"---+---+-----\n"
" 1 | 1 | 1\n"
" 1 | 2 | 1\n"
" 1 | 3 | 1\n"
" 2 | 1 | 1\n"
" 2 | 2 | 9\n"
" 2 | 3 | 9\n"
" 3 | 1 | 1\n"
" 3 | 2 | 9\n"
" 3 | 3 | 9"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:4004
#, no-c-format
msgid ""
"/*\n"
"This example is like the previous one. Instead of nosetvalue = -1, "
"nosetvalue = NULL\n"
"\n"
"The ST_SetValues() does the following...\n"
"\n"
"+ - + - + - + + - + - + - +\n"
"| 1 | 1 | 1 | | 1 | 1 | 1 |\n"
"+ - + - + - + + - + - + - +\n"
"| 1 | 1 | 1 | => | 1 | 9 | 9 |\n"
"+ - + - + - + + - + - + - +\n"
"| 1 | 1 | 1 | | 1 | 9 | 9 |\n"
"+ - + - + - + + - + - + - +\n"
"*/\n"
"SELECT\n"
" (poly).x,\n"
" (poly).y,\n"
" (poly).val\n"
"FROM (\n"
"SELECT\n"
" ST_PixelAsPolygons(\n"
" ST_SetValues(\n"
" ST_AddBand(\n"
" ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, "
"0),\n"
" 1, '8BUI', 1, 0\n"
" ),\n"
" 1, 1, 1, ARRAY[[NULL, NULL, NULL], [NULL, 9, 9], "
"[NULL, 9, 9]]::double precision[][], NULL::double precision\n"
" )\n"
" ) AS poly\n"
") foo\n"
"ORDER BY 1, 2;\n"
"\n"
" x | y | val\n"
"---+---+-----\n"
" 1 | 1 | 1\n"
" 1 | 2 | 1\n"
" 1 | 3 | 1\n"
" 2 | 1 | 1\n"
" 2 | 2 | 9\n"
" 2 | 3 | 9\n"
" 3 | 1 | 1\n"
" 3 | 2 | 9\n"
" 3 | 3 | 9"
msgstr ""
#. Tag: title
#: reference_raster.xml:4009 reference_raster.xml:4954
#, no-c-format
msgid "Examples: Variant 3"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:4011
#, no-c-format
msgid ""
"/*\n"
"The ST_SetValues() does the following...\n"
"\n"
"+ - + - + - + + - + - + - +\n"
"| 1 | 1 | 1 | | 1 | 1 | 1 |\n"
"+ - + - + - + + - + - + - +\n"
"| 1 | 1 | 1 | => | 1 | 9 | 9 |\n"
"+ - + - + - + + - + - + - +\n"
"| 1 | 1 | 1 | | 1 | 9 | 9 |\n"
"+ - + - + - + + - + - + - +\n"
"*/\n"
"SELECT\n"
" (poly).x,\n"
" (poly).y,\n"
" (poly).val\n"
"FROM (\n"
"SELECT\n"
" ST_PixelAsPolygons(\n"
" ST_SetValues(\n"
" ST_AddBand(\n"
" ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, "
"0),\n"
" 1, '8BUI', 1, 0\n"
" ),\n"
" 1, 2, 2, 2, 2, 9\n"
" )\n"
" ) AS poly\n"
") foo\n"
"ORDER BY 1, 2;\n"
"\n"
" x | y | val\n"
"---+---+-----\n"
" 1 | 1 | 1\n"
" 1 | 2 | 1\n"
" 1 | 3 | 1\n"
" 2 | 1 | 1\n"
" 2 | 2 | 9\n"
" 2 | 3 | 9\n"
" 3 | 1 | 1\n"
" 3 | 2 | 9\n"
" 3 | 3 | 9"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:4013
#, no-c-format
msgid ""
"/*\n"
"The ST_SetValues() does the following...\n"
"\n"
"+ - + - + - + + - + - + - +\n"
"| 1 | 1 | 1 | | 1 | 1 | 1 |\n"
"+ - + - + - + + - + - + - +\n"
"| 1 | | 1 | => | 1 | | 9 |\n"
"+ - + - + - + + - + - + - +\n"
"| 1 | 1 | 1 | | 1 | 9 | 9 |\n"
"+ - + - + - + + - + - + - +\n"
"*/\n"
"SELECT\n"
" (poly).x,\n"
" (poly).y,\n"
" (poly).val\n"
"FROM (\n"
"SELECT\n"
" ST_PixelAsPolygons(\n"
" ST_SetValues(\n"
" ST_SetValue(\n"
" ST_AddBand(\n"
" ST_MakeEmptyRaster(3, 3, 0, 0, 1, "
"-1, 0, 0, 0),\n"
" 1, '8BUI', 1, 0\n"
" ),\n"
" 1, 2, 2, NULL\n"
" ),\n"
" 1, 2, 2, 2, 2, 9, TRUE\n"
" )\n"
" ) AS poly\n"
") foo\n"
"ORDER BY 1, 2;\n"
"\n"
" x | y | val\n"
"---+---+-----\n"
" 1 | 1 | 1\n"
" 1 | 2 | 1\n"
" 1 | 3 | 1\n"
" 2 | 1 | 1\n"
" 2 | 2 |\n"
" 2 | 3 | 9\n"
" 3 | 1 | 1\n"
" 3 | 2 | 9\n"
" 3 | 3 | 9"
msgstr ""
#. Tag: title
#: reference_raster.xml:4018
#, no-c-format
msgid "Examples: Variant 5"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:4020
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT 1 AS rid, ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, "
"0, 0), 1, '8BUI', 0, 0) AS rast\n"
"), bar AS (\n"
" SELECT 1 AS gid, 'SRID=0;POINT(2.5 -2.5)'::geometry geom UNION ALL\n"
" SELECT 2 AS gid, 'SRID=0;POLYGON((1 -1, 4 -1, 4 -4, 1 -4, 1 -1))'::"
"geometry geom UNION ALL\n"
" SELECT 3 AS gid, 'SRID=0;POLYGON((0 0, 5 0, 5 -1, 1 -1, 1 -4, 0 -4, "
"0 0))'::geometry geom UNION ALL\n"
" SELECT 4 AS gid, 'SRID=0;MULTIPOINT(0 0, 4 4, 4 -4)'::geometry\n"
")\n"
"SELECT\n"
" rid, gid, ST_DumpValues(ST_SetValue(rast, 1, geom, gid))\n"
"FROM foo t1\n"
"CROSS JOIN bar t2\n"
"ORDER BY rid, gid;\n"
"\n"
" rid | gid | "
"st_dumpvalues\n"
"-----+-----"
"+---------------------------------------------------------------------------------------------------------------------------------------------\n"
" 1 | 1 | (1,\"{{NULL,NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL,NULL},"
"{NULL,NULL,1,NULL,NULL},{NULL,NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL,"
"NULL}}\")\n"
" 1 | 2 | (1,\"{{NULL,NULL,NULL,NULL,NULL},{NULL,2,2,2,NULL},{NULL,2,2,2,"
"NULL},{NULL,2,2,2,NULL},{NULL,NULL,NULL,NULL,NULL}}\")\n"
" 1 | 3 | (1,\"{{3,3,3,3,3},{3,NULL,NULL,NULL,NULL},{3,NULL,NULL,NULL,"
"NULL},{3,NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL,NULL}}\")\n"
" 1 | 4 | (1,\"{{4,NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL,NULL},{NULL,"
"NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL,4}}\")\n"
"(4 rows)"
msgstr ""
#. Tag: para
#: reference_raster.xml:4022
#, no-c-format
msgid ""
"The following shows that geomvals later in the array can overwrite prior "
"geomvals"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:4023
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT 1 AS rid, ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, "
"0, 0), 1, '8BUI', 0, 0) AS rast\n"
"), bar AS (\n"
" SELECT 1 AS gid, 'SRID=0;POINT(2.5 -2.5)'::geometry geom UNION ALL\n"
" SELECT 2 AS gid, 'SRID=0;POLYGON((1 -1, 4 -1, 4 -4, 1 -4, 1 -1))'::"
"geometry geom UNION ALL\n"
" SELECT 3 AS gid, 'SRID=0;POLYGON((0 0, 5 0, 5 -1, 1 -1, 1 -4, 0 -4, "
"0 0))'::geometry geom UNION ALL\n"
" SELECT 4 AS gid, 'SRID=0;MULTIPOINT(0 0, 4 4, 4 -4)'::geometry\n"
")\n"
"SELECT\n"
" t1.rid, t2.gid, t3.gid, ST_DumpValues(ST_SetValues(rast, 1, "
"ARRAY[ROW(t2.geom, t2.gid), ROW(t3.geom, t3.gid)]::geomval[]))\n"
"FROM foo t1\n"
"CROSS JOIN bar t2\n"
"CROSS JOIN bar t3\n"
"WHERE t2.gid = 1\n"
" AND t3.gid = 2\n"
"ORDER BY t1.rid, t2.gid, t3.gid;\n"
"\n"
" rid | gid | gid | "
"st_dumpvalues\n"
"-----+-----+-----"
"+---------------------------------------------------------------------------------------------------------------------\n"
" 1 | 1 | 2 | (1,\"{{NULL,NULL,NULL,NULL,NULL},{NULL,2,2,2,NULL},"
"{NULL,2,2,2,NULL},{NULL,2,2,2,NULL},{NULL,NULL,NULL,NULL,NULL}}\")\n"
"(1 row)"
msgstr ""
#. Tag: para
#: reference_raster.xml:4025
#, no-c-format
msgid "This example is the opposite of the prior example"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:4026
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT 1 AS rid, ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, "
"0, 0), 1, '8BUI', 0, 0) AS rast\n"
"), bar AS (\n"
" SELECT 1 AS gid, 'SRID=0;POINT(2.5 -2.5)'::geometry geom UNION ALL\n"
" SELECT 2 AS gid, 'SRID=0;POLYGON((1 -1, 4 -1, 4 -4, 1 -4, 1 -1))'::"
"geometry geom UNION ALL\n"
" SELECT 3 AS gid, 'SRID=0;POLYGON((0 0, 5 0, 5 -1, 1 -1, 1 -4, 0 -4, "
"0 0))'::geometry geom UNION ALL\n"
" SELECT 4 AS gid, 'SRID=0;MULTIPOINT(0 0, 4 4, 4 -4)'::geometry\n"
")\n"
"SELECT\n"
" t1.rid, t2.gid, t3.gid, ST_DumpValues(ST_SetValues(rast, 1, "
"ARRAY[ROW(t2.geom, t2.gid), ROW(t3.geom, t3.gid)]::geomval[]))\n"
"FROM foo t1\n"
"CROSS JOIN bar t2\n"
"CROSS JOIN bar t3\n"
"WHERE t2.gid = 2\n"
" AND t3.gid = 1\n"
"ORDER BY t1.rid, t2.gid, t3.gid;\n"
"\n"
" rid | gid | gid | "
"st_dumpvalues\n"
"-----+-----+-----"
"+---------------------------------------------------------------------------------------------------------------------\n"
" 1 | 2 | 1 | (1,\"{{NULL,NULL,NULL,NULL,NULL},{NULL,2,2,2,NULL},"
"{NULL,2,1,2,NULL},{NULL,2,2,2,NULL},{NULL,NULL,NULL,NULL,NULL}}\")\n"
"(1 row)"
msgstr ""
#. Tag: para
#: reference_raster.xml:4033
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_SetValue\"/>, <xref linkend=\"RT_ST_PixelAsPolygons"
"\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:4043
#, no-c-format
msgid "ST_DumpValues"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:4044
#, no-c-format
msgid "Get the values of the specified band as a 2-dimension array."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:4050
#, no-c-format
msgid ""
"<funcprototype> <funcdef>setof record <function>ST_DumpValues</function></"
"funcdef> <paramdef> <type>raster </type> <parameter>rast</parameter> </"
"paramdef> <paramdef> <type>integer[] </type> <parameter>nband=NULL</"
"parameter> </paramdef> <paramdef> <type>boolean </type> "
"<parameter>exclude_nodata_value=true</parameter> </paramdef> </"
"funcprototype> <funcprototype> <funcdef>double precision[][] "
"<function>ST_DumpValues</function></funcdef> <paramdef> <type>raster </type> "
"<parameter>rast</parameter> </paramdef> <paramdef> <type>integer </type> "
"<parameter>nband</parameter> </paramdef> <paramdef> <type>boolean </type> "
"<parameter>exclude_nodata_value=true</parameter> </paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:4081
#, no-c-format
msgid ""
"Get the values of the specified band as a 2-dimension array (first index is "
"row, second is column). If <varname>nband</varname> is NULL or not provided, "
"all raster bands are processed."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:4091
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, "
"0, 1, -1, 0, 0, 0), 1, '8BUI'::text, 1, 0), 2, '32BF'::text, 3, -9999), 3, "
"'16BSI', 0, 0) AS rast\n"
")\n"
"SELECT\n"
" (ST_DumpValues(rast)).*\n"
"FROM foo;\n"
"\n"
" nband | valarray\n"
"-------+------------------------------------------------------\n"
" 1 | {{1,1,1},{1,1,1},{1,1,1}}\n"
" 2 | {{3,3,3},{3,3,3},{3,3,3}}\n"
" 3 | {{NULL,NULL,NULL},{NULL,NULL,NULL},{NULL,NULL,NULL}}\n"
"(3 rows)"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:4093
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, "
"0, 1, -1, 0, 0, 0), 1, '8BUI'::text, 1, 0), 2, '32BF'::text, 3, -9999), 3, "
"'16BSI', 0, 0) AS rast\n"
")\n"
"SELECT\n"
" (ST_DumpValues(rast, ARRAY[3, 1])).*\n"
"FROM foo;\n"
"\n"
" nband | valarray\n"
"-------+------------------------------------------------------\n"
" 3 | {{NULL,NULL,NULL},{NULL,NULL,NULL},{NULL,NULL,NULL}}\n"
" 1 | {{1,1,1},{1,1,1},{1,1,1}}\n"
"(2 rows)"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:4094
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT ST_SetValue(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, "
"0, 0, 0), 1, '8BUI', 1, 0), 1, 2, 5) AS rast\n"
")\n"
"SELECT\n"
" (ST_DumpValues(rast, 1))[2][1]\n"
"FROM foo;\n"
"\n"
" st_dumpvalues\n"
"---------------\n"
" 5\n"
"(1 row)"
msgstr ""
#. Tag: para
#: reference_raster.xml:4099
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_SetValue\"/>, <xref linkend=\"RT_ST_SetValues\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:4110
#, no-c-format
msgid "ST_PixelOfValue"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:4111
#, no-c-format
msgid ""
"Get the columnx, rowy coordinates of the pixel whose value equals the search "
"value."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:4117
#, no-c-format
msgid ""
"<funcprototype> <funcdef>setof record <function>ST_PixelOfValue</function></"
"funcdef> <paramdef> <type>raster </type> <parameter>rast</parameter> </"
"paramdef> <paramdef> <type>integer </type> <parameter>nband</parameter> </"
"paramdef> <paramdef> <type>double precision[] </type> <parameter>search</"
"parameter> </paramdef> <paramdef> <type>boolean </type> "
"<parameter>exclude_nodata_value=true</parameter> </paramdef> </"
"funcprototype> <funcprototype> <funcdef>setof record "
"<function>ST_PixelOfValue</function></funcdef> <paramdef> <type>raster </"
"type> <parameter>rast</parameter> </paramdef> <paramdef> <type>double "
"precision[] </type> <parameter>search</parameter> </paramdef> <paramdef> "
"<type>boolean </type> <parameter>exclude_nodata_value=true</parameter> </"
"paramdef> </funcprototype> <funcprototype> <funcdef>setof record "
"<function>ST_PixelOfValue</function></funcdef> <paramdef> <type>raster </"
"type> <parameter>rast</parameter> </paramdef> <paramdef> <type>integer </"
"type> <parameter>nband</parameter> </paramdef> <paramdef> <type>double "
"precision </type> <parameter>search</parameter> </paramdef> <paramdef> "
"<type>boolean </type> <parameter>exclude_nodata_value=true</parameter> </"
"paramdef> </funcprototype> <funcprototype> <funcdef>setof record "
"<function>ST_PixelOfValue</function></funcdef> <paramdef> <type>raster </"
"type> <parameter>rast</parameter> </paramdef> <paramdef> <type>double "
"precision </type> <parameter>search</parameter> </paramdef> <paramdef> "
"<type>boolean </type> <parameter>exclude_nodata_value=true</parameter> </"
"paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:4178
#, no-c-format
msgid ""
"Get the columnx, rowy coordinates of the pixel whose value equals the search "
"value. If no band is specified, then band 1 is assumed."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:4187
#, no-c-format
msgid ""
"SELECT\n"
" (pixels).*\n"
"FROM (\n"
" SELECT\n"
" ST_PixelOfValue(\n"
" ST_SetValue(\n"
" ST_SetValue(\n"
" ST_SetValue(\n"
" ST_SetValue(\n"
" ST_SetValue(\n"
" ST_AddBand(\n"
" ST_MakeEmptyRaster(5, "
"5, -2, 2, 1, -1, 0, 0, 0),\n"
" '8BUI'::"
"text, 1, 0\n"
" ),\n"
" 1, 1, 0\n"
" ),\n"
" 2, 3, 0\n"
" ),\n"
" 3, 5, 0\n"
" ),\n"
" 4, 2, 0\n"
" ),\n"
" 5, 4, 255\n"
" )\n"
" , 1, ARRAY[1, 255]) AS pixels\n"
") AS foo\n"
"\n"
" val | x | y\n"
"-----+---+---\n"
" 1 | 1 | 2\n"
" 1 | 1 | 3\n"
" 1 | 1 | 4\n"
" 1 | 1 | 5\n"
" 1 | 2 | 1\n"
" 1 | 2 | 2\n"
" 1 | 2 | 4\n"
" 1 | 2 | 5\n"
" 1 | 3 | 1\n"
" 1 | 3 | 2\n"
" 1 | 3 | 3\n"
" 1 | 3 | 4\n"
" 1 | 4 | 1\n"
" 1 | 4 | 3\n"
" 1 | 4 | 4\n"
" 1 | 4 | 5\n"
" 1 | 5 | 1\n"
" 1 | 5 | 2\n"
" 1 | 5 | 3\n"
" 255 | 5 | 4\n"
" 1 | 5 | 5"
msgstr ""
#. Tag: title
#: reference_raster.xml:4195
#, no-c-format
msgid "Raster Editors"
msgstr ""
#. Tag: refname
#: reference_raster.xml:4199
#, no-c-format
msgid "ST_SetGeoReference"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:4200
#, no-c-format
msgid ""
"Set Georeference 6 georeference parameters in a single call. Numbers should "
"be separated by white space. Accepts inputs in GDAL or ESRI format. Default "
"is GDAL."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:4204
#, no-c-format
msgid ""
"<funcprototype> <funcdef>raster <function>ST_SetGeoReference</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> <paramdef><type>text </type> <parameter>georefcoords</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>text </type> "
"<parameter>format=GDAL</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>raster <function>ST_SetGeoReference</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> <paramdef><type>double precision </type> <parameter>upperleftx</"
"parameter></paramdef> <paramdef><type>double precision </type> "
"<parameter>upperlefty</parameter></paramdef> <paramdef><type>double "
"precision </type> <parameter>scalex</parameter></paramdef> "
"<paramdef><type>double precision </type> <parameter>scaley</parameter></"
"paramdef> <paramdef><type>double precision </type> <parameter>skewx</"
"parameter></paramdef> <paramdef><type>double precision </type> "
"<parameter>skewy</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:4230
#, no-c-format
msgid ""
"Set Georeference 6 georeference parameters in a single call. Accepts inputs "
"in 'GDAL' or 'ESRI' format. Default is GDAL. If 6 coordinates are not "
"provided will return null."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:4233
#, no-c-format
msgid "scalex skewy skewx scaley upperleftx upperlefty"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:4235
#, no-c-format
msgid ""
"scalex skewy skewx scaley upperleftx + scalex*0.5 upperlefty + scaley*0.5"
msgstr ""
#. Tag: para
#: reference_raster.xml:4238
#, no-c-format
msgid ""
"If the raster has out-db bands, changing the georeference may result in "
"incorrect access of the band's externally stored data."
msgstr ""
#. Tag: para
#: reference_raster.xml:4243
#, no-c-format
msgid ""
"Enhanced: 2.1.0 Addition of ST_SetGeoReference(raster, double "
"precision, ...) variant"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:4250
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, 0, 0) AS rast\n"
")\n"
"SELECT\n"
" 0 AS rid, (ST_Metadata(rast)).*\n"
"FROM foo\n"
"UNION ALL\n"
"SELECT\n"
" 1, (ST_Metadata(ST_SetGeoReference(rast, '10 0 0 -10 0.1 0.1', "
"'GDAL'))).*\n"
"FROM foo\n"
"UNION ALL\n"
"SELECT\n"
" 2, (ST_Metadata(ST_SetGeoReference(rast, '10 0 0 -10 5.1 -4.9', "
"'ESRI'))).*\n"
"FROM foo\n"
"UNION ALL\n"
"SELECT\n"
" 3, (ST_Metadata(ST_SetGeoReference(rast, 1, 1, 10, -10, 0.001, "
"0.001))).*\n"
"FROM foo\n"
"\n"
" rid | upperleftx | upperlefty | width | height | scalex | "
"scaley | skewx | skewy | srid | numbands\n"
"-----+--------------------+--------------------+-------+--------+--------"
"+--------+-------+-------+------+----------\n"
" 0 | 0 | 0 | 5 | 5 | 1 "
"| -1 | 0 | 0 | 0 | 0\n"
" 1 | 0.1 | 0.1 | 5 | 5 | 10 "
"| -10 | 0 | 0 | 0 | 0\n"
" 2 | 0.0999999999999996 | 0.0999999999999996 | 5 | 5 | 10 "
"| -10 | 0 | 0 | 0 | 0\n"
" 3 | 1 | 1 | 5 | 5 | 10 "
"| -10 | 0.001 | 0.001 | 0 | 0"
msgstr ""
#. Tag: para
#: reference_raster.xml:4255
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_ScaleX\"/>, <xref linkend=\"RT_ST_ScaleY\"/>, <xref "
"linkend=\"RT_ST_UpperLeftX\"/>, <xref linkend=\"RT_ST_UpperLeftY\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:4261
#, no-c-format
msgid "ST_SetRotation"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:4262
#, no-c-format
msgid "Set the rotation of the raster in radian."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:4267
#, no-c-format
msgid ""
"<funcdef>float8 <function>ST_SetRotation</function></funcdef> "
"<paramdef><type>raster</type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>float8</type> <parameter>rotation</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:4278
#, no-c-format
msgid ""
"Uniformly rotate the raster. Rotation is in radian. Refer to <ulink url="
"\"http://en.wikipedia.org/wiki/World_file\">World File</ulink> for more "
"details."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:4284
#, no-c-format
msgid ""
"SELECT\n"
" ST_ScaleX(rast1), ST_ScaleY(rast1), ST_SkewX(rast1), ST_SkewY(rast1),\n"
" ST_ScaleX(rast2), ST_ScaleY(rast2), ST_SkewX(rast2), ST_SkewY(rast2)\n"
"FROM (\n"
" SELECT ST_SetRotation(rast, 15) AS rast1, rast as rast2 FROM dummy_rast\n"
") AS foo;\n"
" st_scalex | st_scaley | st_skewx | "
"st_skewy | st_scalex | st_scaley | st_skewx | st_skewy\n"
"---------------------+---------------------+--------------------"
"+--------------------+-----------+-----------+----------+----------\n"
" -1.51937582571764 | -2.27906373857646 | 1.95086352047135 | "
"1.30057568031423 | 2 | 3 | 0 | 0\n"
" -0.0379843956429411 | -0.0379843956429411 | 0.0325143920078558 | "
"0.0325143920078558 | 0.05 | -0.05 | 0 | 0"
msgstr ""
#. Tag: refname
#: reference_raster.xml:4297
#, no-c-format
msgid "ST_SetScale"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:4298
#, no-c-format
msgid ""
"Sets the X and Y size of pixels in units of coordinate reference system. "
"Number units/pixel width/height."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:4302
#, no-c-format
msgid ""
"<funcprototype> <funcdef>raster <function>ST_SetScale</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>float8 </type> <parameter>xy</parameter></paramdef> </"
"funcprototype> <funcprototype> <funcdef>raster <function>ST_SetScale</"
"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
"parameter></paramdef> <paramdef><type>float8 </type> <parameter>x</"
"parameter></paramdef> <paramdef><type>float8 </type> <parameter>y</"
"parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:4321
#, no-c-format
msgid ""
"Sets the X and Y size of pixels in units of coordinate reference system. "
"Number units/pixel width/height. If only one unit passed in, assumed X and Y "
"are the same number."
msgstr ""
#. Tag: para
#: reference_raster.xml:4324
#, no-c-format
msgid ""
"ST_SetScale is different from <xref linkend=\"RT_ST_Rescale\"/> in that "
"ST_SetScale do not resample the raster to match the raster extent. It only "
"changes the metadata (or georeference) of the raster to correct an "
"originally mis-specified scaling. ST_Rescale results in a raster having "
"different width and height computed to fit the geographic extent of the "
"input raster. ST_SetScale do not modify the width, nor the height of the "
"raster."
msgstr ""
#. Tag: para
#: reference_raster.xml:4326
#, no-c-format
msgid ""
"Changed: 2.0.0 In WKTRaster versions this was called ST_SetPixelSize. This "
"was changed in 2.0.0."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:4332
#, no-c-format
msgid ""
"UPDATE dummy_rast\n"
" SET rast = ST_SetScale(rast, 1.5)\n"
"WHERE rid = 2;\n"
"\n"
"SELECT ST_ScaleX(rast) As pixx, ST_ScaleY(rast) As pixy, Box3D(rast) As "
"newbox\n"
"FROM dummy_rast\n"
"WHERE rid = 2;\n"
"\n"
" pixx | pixy | newbox\n"
"------+------+----------------------------------------------\n"
" 1.5 | 1.5 | BOX(3427927.75 5793244 0, 3427935.25 5793251.5 0)"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:4333
#, no-c-format
msgid ""
"UPDATE dummy_rast\n"
" SET rast = ST_SetScale(rast, 1.5, 0.55)\n"
"WHERE rid = 2;\n"
"\n"
"SELECT ST_ScaleX(rast) As pixx, ST_ScaleY(rast) As pixy, Box3D(rast) As "
"newbox\n"
"FROM dummy_rast\n"
"WHERE rid = 2;\n"
"\n"
" pixx | pixy | newbox\n"
"------+------+--------------------------------------------\n"
" 1.5 | 0.55 | BOX(3427927.75 5793244 0,3427935.25 5793247 0)"
msgstr ""
#. Tag: para
#: reference_raster.xml:4339
#, no-c-format
msgid ", <xref linkend=\"RT_ST_ScaleY\"/>, <xref linkend=\"RT_Box3D\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:4345
#, no-c-format
msgid "ST_SetSkew"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:4346
#, no-c-format
msgid ""
"Sets the georeference X and Y skew (or rotation parameter). If only one is "
"passed in, sets X and Y to the same value."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:4350
#, no-c-format
msgid ""
"<funcprototype> <funcdef>raster <function>ST_SetSkew</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>float8 </type> <parameter>skewxy</parameter></paramdef> </"
"funcprototype> <funcprototype> <funcdef>raster <function>ST_SetSkew</"
"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
"parameter></paramdef> <paramdef><type>float8 </type> <parameter>skewx</"
"parameter></paramdef> <paramdef><type>float8 </type> <parameter>skewy</"
"parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:4368
#, no-c-format
msgid ""
"Sets the georeference X and Y skew (or rotation parameter). If only one is "
"passed in, sets X and Y to the same value. Refer to <ulink url=\"http://en."
"wikipedia.org/wiki/World_file\">World File</ulink> for more details."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:4375
#, no-c-format
msgid ""
"-- Example 1\n"
"UPDATE dummy_rast SET rast = ST_SetSkew(rast,1,2) WHERE rid = 1;\n"
"SELECT rid, ST_SkewX(rast) As skewx, ST_SkewY(rast) As skewy,\n"
" ST_GeoReference(rast) as georef\n"
"FROM dummy_rast WHERE rid = 1;\n"
"\n"
"rid | skewx | skewy | georef\n"
"----+-------+-------+--------------\n"
" 1 | 1 | 2 | 2.0000000000\n"
" : 2.0000000000\n"
" : 1.0000000000\n"
" : 3.0000000000\n"
" : 0.5000000000\n"
" : 0.5000000000"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:4377
#, no-c-format
msgid ""
"-- Example 2 set both to same number:\n"
"UPDATE dummy_rast SET rast = ST_SetSkew(rast,0) WHERE rid = 1;\n"
"SELECT rid, ST_SkewX(rast) As skewx, ST_SkewY(rast) As skewy,\n"
" ST_GeoReference(rast) as georef\n"
"FROM dummy_rast WHERE rid = 1;\n"
"\n"
" rid | skewx | skewy | georef\n"
"-----+-------+-------+--------------\n"
" 1 | 0 | 0 | 2.0000000000\n"
" : 0.0000000000\n"
" : 0.0000000000\n"
" : 3.0000000000\n"
" : 0.5000000000\n"
" : 0.5000000000"
msgstr ""
#. Tag: para
#: reference_raster.xml:4384
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_SetGeoReference\"/>, <xref linkend=\"RT_ST_SkewX\"/"
">, <xref linkend=\"RT_ST_SkewY\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:4390
#, no-c-format
msgid "ST_SetSRID"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:4392
#, no-c-format
msgid ""
"Sets the SRID of a raster to a particular integer srid defined in the "
"spatial_ref_sys table."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:4397
#, no-c-format
msgid ""
"<funcdef>raster <function>ST_SetSRID</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>srid</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:4412
#, no-c-format
msgid "Sets the SRID on a raster to a particular integer value."
msgstr ""
#. Tag: para
#: reference_raster.xml:4415
#, no-c-format
msgid ""
"This function does not transform the raster in any way - it simply sets meta "
"data defining the spatial ref of the coordinate reference system that it's "
"currently in. Useful for transformations later."
msgstr ""
#. Tag: para
#: reference_raster.xml:4425
#, no-c-format
msgid ", <xref linkend=\"RT_ST_SRID\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:4432
#, no-c-format
msgid "ST_SetUpperLeft"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:4433
#, no-c-format
msgid ""
"Sets the value of the upper left corner of the pixel of the raster to "
"projected X and Y coordinates."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:4438
#, no-c-format
msgid ""
"<funcdef>raster <function>ST_SetUpperLeft</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>double precision </type> <parameter>x</parameter></paramdef> "
"<paramdef><type>double precision </type> <parameter>y</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:4450
#, no-c-format
msgid ""
"Set the value of the upper left corner of raster to the projected X and Y "
"coordinates"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:4456
#, no-c-format
msgid ""
"SELECT ST_SetUpperLeft(rast,-71.01,42.37)\n"
"FROM dummy_rast\n"
"WHERE rid = 2;"
msgstr ""
#. Tag: para
#: reference_raster.xml:4462
#, no-c-format
msgid ", <xref linkend=\"RT_ST_UpperLeftY\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:4468
#, no-c-format
msgid "ST_Resample"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:4469
#, no-c-format
msgid ""
"Resample a raster using a specified resampling algorithm, new dimensions, an "
"arbitrary grid corner and a set of raster georeferencing attributes defined "
"or borrowed from another raster."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:4475
#, no-c-format
msgid ""
"<funcprototype> <funcdef>raster <function>ST_Resample</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>gridx=NULL</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>gridy=NULL</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>text </type> "
"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef "
"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>ST_Resample</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef choice=\"opt\"><type>double "
"precision </type> <parameter>scalex=0</parameter></paramdef> <paramdef "
"choice=\"opt\"><type>double precision </type> <parameter>scaley=0</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
"type> <parameter>gridx=NULL</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>gridy=NULL</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>text </type> "
"<parameter>algorithm=NearestNeighbor</parameter></paramdef> <paramdef choice="
"\"opt\"><type>double precision </type> <parameter>maxerr=0.125</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>ST_Resample</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef><type>raster </type> "
"<parameter>ref</parameter></paramdef> <paramdef choice=\"opt\"><type>text </"
"type> <parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef "
"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>usescale=true</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>raster <function>ST_Resample</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>raster </type> <parameter>ref</parameter></paramdef> "
"<paramdef><type>boolean </type> <parameter>usescale</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>text </type> "
"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef "
"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</"
"parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:4525
#, no-c-format
msgid ""
"Resample a raster using a specified resampling algorithm, new dimensions "
"(width & height), a grid corner (gridx & gridy) and a set of raster "
"georeferencing attributes (scalex, scaley, skewx & skewy) defined or "
"borrowed from another raster. If using a reference raster, the two rasters "
"must have the same SRID."
msgstr ""
#. Tag: para
#: reference_raster.xml:4529
#, no-c-format
msgid ""
"New pixel values are computed using the NearestNeighbor (English or American "
"spelling), Bilinear, Cubic, CubicSpline or Lanczos resampling algorithm. "
"Default is NearestNeighbor which is the fastest but produce the worst "
"interpolation."
msgstr ""
#. Tag: para
#: reference_raster.xml:4533 reference_raster.xml:4600
#, no-c-format
msgid ""
"A maxerror percent of 0.125 is used if no <varname>maxerr</varname> is "
"specified."
msgstr ""
#. Tag: para
#: reference_raster.xml:4538 reference_raster.xml:4602
#: reference_raster.xml:4670 reference_raster.xml:4748
#, no-c-format
msgid ""
"Refer to: <ulink url=\"http://www.gdal.org/gdalwarp.html\">GDAL Warp "
"resampling methods</ulink> for more details."
msgstr ""
#. Tag: para
#: reference_raster.xml:4542 reference_raster.xml:4606
#: reference_raster.xml:4674 reference_raster.xml:4752
#: reference_raster.xml:4908
#, no-c-format
msgid "Availability: 2.0.0 Requires GDAL 1.6.1+"
msgstr ""
#. Tag: para
#: reference_raster.xml:4543
#, no-c-format
msgid ""
"Changed: 2.1.0 Parameter srid removed. Variants with a reference raster no "
"longer applies the reference raster's SRID. Use ST_Transform() to reproject "
"raster. Works on rasters with no SRID."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:4549
#, no-c-format
msgid ""
"SELECT\n"
" ST_Width(orig) AS orig_width,\n"
" ST_Width(reduce_100) AS new_width\n"
"FROM (\n"
" SELECT\n"
" rast AS orig,\n"
" ST_Resample(rast,100,100) AS reduce_100\n"
" FROM aerials.boston\n"
" WHERE ST_Intersects(rast,\n"
" ST_Transform(\n"
" ST_MakeEnvelope(-71.128, 42.2392,-71.1277, 42.2397, "
"4326),26986)\n"
" )\n"
" LIMIT 1\n"
") AS foo;\n"
"\n"
" orig_width | new_width\n"
"------------+-------------\n"
" 200 | 100"
msgstr ""
#. Tag: para
#: reference_raster.xml:4554
#, no-c-format
msgid ", <xref linkend=\"RT_ST_Resize\"/>, <xref linkend=\"RT_ST_Transform\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:4564
#, no-c-format
msgid "ST_Rescale"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:4565
#, no-c-format
msgid ""
"Resample a raster by adjusting only its scale (or pixel size). New pixel "
"values are computed using the NearestNeighbor (english or american "
"spelling), Bilinear, Cubic, CubicSpline or Lanczos resampling algorithm. "
"Default is NearestNeighbor."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:4570
#, no-c-format
msgid ""
"<funcprototype> <funcdef>raster <function>ST_Rescale</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>double precision </type> <parameter>scalexy</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>text </type> "
"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef "
"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>ST_Rescale</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </"
"type> <parameter>scalex</parameter></paramdef> <paramdef><type>double "
"precision </type> <parameter>scaley</parameter></paramdef> <paramdef choice="
"\"opt\"><type>text </type> <parameter>algorithm=NearestNeighbour</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
"type> <parameter>maxerr=0.125</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:4594
#, no-c-format
msgid ""
"Resample a raster by adjusting only its scale (or pixel size). New pixel "
"values are computed using the NearestNeighbor (english or american "
"spelling), Bilinear, Cubic, CubicSpline or Lanczos resampling algorithm. The "
"default is NearestNeighbor which is the fastest but results in the worst "
"interpolation."
msgstr ""
#. Tag: para
#: reference_raster.xml:4596
#, no-c-format
msgid ""
"<varname>scalex</varname> and <varname>scaley</varname> define the new pixel "
"size. scaley must often be negative to get well oriented raster."
msgstr ""
#. Tag: para
#: reference_raster.xml:4598
#, no-c-format
msgid ""
"When the new scalex or scaley is not a divisor of the raster width or "
"height, the extent of the resulting raster is expanded to encompass the "
"extent of the provided raster. If you want to be sure to retain exact input "
"extent see <xref linkend=\"RT_ST_Resize\"/>"
msgstr ""
#. Tag: para
#: reference_raster.xml:4604
#, no-c-format
msgid ""
"ST_Rescale is different from <xref linkend=\"RT_ST_SetScale\"/> in that "
"ST_SetScale do not resample the raster to match the raster extent. "
"ST_SetScale only changes the metadata (or georeference) of the raster to "
"correct an originally mis-specified scaling. ST_Rescale results in a raster "
"having different width and height computed to fit the geographic extent of "
"the input raster. ST_SetScale do not modify the width, nor the height of the "
"raster."
msgstr ""
#. Tag: para
#: reference_raster.xml:4607 reference_raster.xml:4675
#: reference_raster.xml:4753
#, no-c-format
msgid "Changed: 2.1.0 Works on rasters with no SRID"
msgstr ""
#. Tag: para
#: reference_raster.xml:4612
#, no-c-format
msgid ""
"A simple example rescaling a raster from a pixel size of 0.001 degree to a "
"pixel size of 0.0015 degree."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:4614
#, no-c-format
msgid ""
"-- the original raster pixel size\n"
"SELECT ST_PixelWidth(ST_AddBand(ST_MakeEmptyRaster(100, 100, 0, 0, 0.001, "
"-0.001, 0, 0, 4269), '8BUI'::text, 1, 0)) width\n"
"\n"
" width\n"
"----------\n"
"0.001\n"
"\n"
"-- the rescaled raster raster pixel size\n"
"SELECT ST_PixelWidth(ST_Rescale(ST_AddBand(ST_MakeEmptyRaster(100, 100, 0, "
"0, 0.001, -0.001, 0, 0, 4269), '8BUI'::text, 1, 0), 0.0015)) width\n"
"\n"
" width\n"
"----------\n"
"0.0015"
msgstr ""
#. Tag: para
#: reference_raster.xml:4619
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_Resample\"/>, <xref linkend=\"RT_ST_SetScale\"/>, "
"<xref linkend=\"RT_ST_ScaleX\"/>, <xref linkend=\"RT_ST_ScaleY\"/>, <xref "
"linkend=\"RT_ST_Transform\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:4632
#, no-c-format
msgid "ST_Reskew"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:4633
#, no-c-format
msgid ""
"Resample a raster by adjusting only its skew (or rotation parameters). New "
"pixel values are computed using the NearestNeighbor (english or american "
"spelling), Bilinear, Cubic, CubicSpline or Lanczos resampling algorithm. "
"Default is NearestNeighbor."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:4638
#, no-c-format
msgid ""
"<funcprototype> <funcdef>raster <function>ST_Reskew</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>double precision </type> <parameter>skewxy</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>text </type> "
"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef "
"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>ST_Reskew</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </"
"type> <parameter>skewx</parameter></paramdef> <paramdef><type>double "
"precision </type> <parameter>skewy</parameter></paramdef> <paramdef choice="
"\"opt\"><type>text </type> <parameter>algorithm=NearestNeighbour</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
"type> <parameter>maxerr=0.125</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:4662
#, no-c-format
msgid ""
"Resample a raster by adjusting only its skew (or rotation parameters). New "
"pixel values are computed using the NearestNeighbor (english or american "
"spelling), Bilinear, Cubic, CubicSpline or Lanczos resampling algorithm. The "
"default is NearestNeighbor which is the fastest but results in the worst "
"interpolation."
msgstr ""
#. Tag: para
#: reference_raster.xml:4664
#, no-c-format
msgid ""
"<varname>skewx</varname> and <varname>skewy</varname> define the new skew."
msgstr ""
#. Tag: para
#: reference_raster.xml:4666 reference_raster.xml:4744
#, no-c-format
msgid ""
"The extent of the new raster will encompass the extent of the provided "
"raster."
msgstr ""
#. Tag: para
#: reference_raster.xml:4668 reference_raster.xml:4746
#, no-c-format
msgid ""
"A maxerror percent of 0.125 if no <varname>maxerr</varname> is specified."
msgstr ""
#. Tag: para
#: reference_raster.xml:4672
#, no-c-format
msgid ""
"ST_Reskew is different from <xref linkend=\"RT_ST_SetSkew\"/> in that "
"ST_SetSkew do not resample the raster to match the raster extent. ST_SetSkew "
"only changes the metadata (or georeference) of the raster to correct an "
"originally mis-specified skew. ST_Reskew results in a raster having "
"different width and height computed to fit the geographic extent of the "
"input raster. ST_SetSkew do not modify the width, nor the height of the "
"raster."
msgstr ""
#. Tag: para
#: reference_raster.xml:4680
#, no-c-format
msgid ""
"A simple example reskewing a raster from a skew of 0.0 to a skew of 0.0015."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:4682
#, no-c-format
msgid ""
"-- the original raster non-rotated\n"
"SELECT ST_Rotation(ST_AddBand(ST_MakeEmptyRaster(100, 100, 0, 0, 0.001, "
"-0.001, 0, 0, 4269), '8BUI'::text, 1, 0));\n"
"\n"
"-- result\n"
"0\n"
"\n"
"-- the reskewed raster raster rotation\n"
"SELECT ST_Rotation(ST_Reskew(ST_AddBand(ST_MakeEmptyRaster(100, 100, 0, 0, "
"0.001, -0.001, 0, 0, 4269), '8BUI'::text, 1, 0), 0.0015));\n"
"\n"
"-- result\n"
"-0.982793723247329"
msgstr ""
#. Tag: para
#: reference_raster.xml:4688
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_Rescale\"/>, <xref linkend=\"RT_ST_SetSkew\"/>, "
"<xref linkend=\"RT_ST_SetRotation\"/>, <xref linkend=\"RT_ST_SkewX\"/>, "
"<xref linkend=\"RT_ST_SkewY\"/>, <xref linkend=\"RT_ST_Transform\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:4694
#, no-c-format
msgid "ST_SnapToGrid"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:4695
#, no-c-format
msgid ""
"Resample a raster by snapping it to a grid. New pixel values are computed "
"using the NearestNeighbor (english or american spelling), Bilinear, Cubic, "
"CubicSpline or Lanczos resampling algorithm. Default is NearestNeighbor."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:4700
#, no-c-format
msgid ""
"<funcprototype> <funcdef>raster <function>ST_SnapToGrid</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>double precision </type> <parameter>gridx</parameter></"
"paramdef> <paramdef><type>double precision </type> <parameter>gridy</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef "
"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
"type> <parameter>scalex=DEFAULT 0</parameter></paramdef> <paramdef choice="
"\"opt\"><type>double precision </type> <parameter>scaley=DEFAULT 0</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>ST_SnapToGrid</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </"
"type> <parameter>gridx</parameter></paramdef> <paramdef><type>double "
"precision </type> <parameter>gridy</parameter></paramdef> "
"<paramdef><type>double precision </type> <parameter>scalex</parameter></"
"paramdef> <paramdef><type>double precision </type> <parameter>scaley</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef "
"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>ST_SnapToGrid</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </"
"type> <parameter>gridx</parameter></paramdef> <paramdef><type>double "
"precision </type> <parameter>gridy</parameter></paramdef> "
"<paramdef><type>double precision </type> <parameter>scalexy</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>text </type> "
"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef "
"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</"
"parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:4739
#, no-c-format
msgid ""
"Resample a raster by snapping it to a grid defined by an arbitrary pixel "
"corner (gridx & gridy) and optionally a pixel size (scalex & "
"scaley). New pixel values are computed using the NearestNeighbor (english or "
"american spelling), Bilinear, Cubic, CubicSpline or Lanczos resampling "
"algorithm. The default is NearestNeighbor which is the fastest but results "
"in the worst interpolation."
msgstr ""
#. Tag: para
#: reference_raster.xml:4741
#, no-c-format
msgid ""
"<varname>gridx</varname> and <varname>gridy</varname> define any arbitrary "
"pixel corner of the new grid. This is not necessarily the upper left corner "
"of the new raster and it does not have to be inside or on the edge of the "
"new raster extent."
msgstr ""
#. Tag: para
#: reference_raster.xml:4743
#, no-c-format
msgid ""
"You can optionally define the pixel size of the new grid with "
"<varname>scalex</varname> and <varname>scaley</varname>."
msgstr ""
#. Tag: para
#: reference_raster.xml:4750
#, no-c-format
msgid ""
"Use <xref linkend=\"RT_ST_Resample\"/> if you need more control over the "
"grid parameters."
msgstr ""
#. Tag: para
#: reference_raster.xml:4758
#, no-c-format
msgid "A simple example snapping a raster to a slightly different grid."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:4760
#, no-c-format
msgid ""
"-- the original raster upper left X\n"
"SELECT ST_UpperLeftX(ST_AddBand(ST_MakeEmptyRaster(10, 10, 0, 0, 0.001, "
"-0.001, 0, 0, 4269), '8BUI'::text, 1, 0));\n"
"-- result\n"
"0\n"
"\n"
"-- the upper left of raster after snapping\n"
"SELECT ST_UpperLeftX(ST_SnapToGrid(ST_AddBand(ST_MakeEmptyRaster(10, 10, 0, "
"0, 0.001, -0.001, 0, 0, 4269), '8BUI'::text, 1, 0), 0.0002, 0.0002));\n"
"\n"
"--result\n"
"-0.0008"
msgstr ""
#. Tag: para
#: reference_raster.xml:4766
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_Rescale\"/>, <xref linkend=\"RT_ST_UpperLeftX\"/>, "
"<xref linkend=\"RT_ST_UpperLeftY\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:4772
#, no-c-format
msgid "ST_Resize"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:4773
#, no-c-format
msgid "Resize a raster to a new width/height"
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:4777
#, no-c-format
msgid ""
"<funcprototype> <funcdef>raster <function>ST_Resize</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>text </type> "
"<parameter>algorithm=NearestNeighbor</parameter></paramdef> <paramdef choice="
"\"opt\"><type>double precision </type> <parameter>maxerr=0.125</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>ST_Resize</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </"
"type> <parameter>percentwidth</parameter></paramdef> <paramdef><type>double "
"precision </type> <parameter>percentheight</parameter></paramdef> <paramdef "
"choice=\"opt\"><type>text </type> <parameter>algorithm=NearestNeighbor</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
"type> <parameter>maxerr=0.125</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>raster <function>ST_Resize</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>text </type> <parameter>width</parameter></paramdef> "
"<paramdef><type>text </type> <parameter>height</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>text </type> "
"<parameter>algorithm=NearestNeighbor</parameter></paramdef> <paramdef choice="
"\"opt\"><type>double precision </type> <parameter>maxerr=0.125</parameter></"
"paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:4811
#, no-c-format
msgid ""
"Resize a raster to a new width/height. The new width/height can be specified "
"in exact number of pixels or a percentage of the raster's width/height. The "
"extent of the the new raster will be the same as the extent of the provided "
"raster."
msgstr ""
#. Tag: para
#: reference_raster.xml:4815
#, no-c-format
msgid ""
"New pixel values are computed using the NearestNeighbor (english or american "
"spelling), Bilinear, Cubic, CubicSpline or Lanczos resampling algorithm. The "
"default is NearestNeighbor which is the fastest but results in the worst "
"interpolation."
msgstr ""
#. Tag: para
#: reference_raster.xml:4819
#, no-c-format
msgid "Variant 1 expects the actual width/height of the output raster."
msgstr ""
#. Tag: para
#: reference_raster.xml:4823
#, no-c-format
msgid ""
"Variant 2 expects decimal values between zero (0) and one (1) indicating the "
"percentage of the input raster's width/height."
msgstr ""
#. Tag: para
#: reference_raster.xml:4827
#, no-c-format
msgid ""
"Variant 3 takes either the actual width/height of the output raster or a "
"textual percentage (\"20%\") indicating the percentage of the input raster's "
"width/height."
msgstr ""
#. Tag: para
#: reference_raster.xml:4831
#, no-c-format
msgid "Availability: 2.1.0 Requires GDAL 1.6.1+"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:4835
#, no-c-format
msgid ""
"WITH foo AS(\n"
"SELECT\n"
" 1 AS rid,\n"
" ST_Resize(\n"
" ST_AddBand(\n"
" ST_MakeEmptyRaster(1000, 1000, 0, 0, 1, -1, 0, 0, "
"0)\n"
" , 1, '8BUI', 255, 0\n"
" )\n"
" , '50%', '500') AS rast\n"
"UNION ALL\n"
"SELECT\n"
" 2 AS rid,\n"
" ST_Resize(\n"
" ST_AddBand(\n"
" ST_MakeEmptyRaster(1000, 1000, 0, 0, 1, -1, 0, 0, "
"0)\n"
" , 1, '8BUI', 255, 0\n"
" )\n"
" , 500, 100) AS rast\n"
"UNION ALL\n"
"SELECT\n"
" 3 AS rid,\n"
" ST_Resize(\n"
" ST_AddBand(\n"
" ST_MakeEmptyRaster(1000, 1000, 0, 0, 1, -1, 0, 0, "
"0)\n"
" , 1, '8BUI', 255, 0\n"
" )\n"
" , 0.25, 0.9) AS rast\n"
"), bar AS (\n"
" SELECT rid, ST_Metadata(rast) AS meta, rast FROM foo\n"
")\n"
"SELECT rid, (meta).* FROM bar\n"
"\n"
" rid | upperleftx | upperlefty | width | height | scalex | scaley | skewx | "
"skewy | srid | numbands\n"
"-----+------------+------------+-------+--------+--------+--------+-------"
"+-------+------+----------\n"
" 1 | 0 | 0 | 500 | 500 | 1 | -1 | 0 "
"| 0 | 0 | 1\n"
" 2 | 0 | 0 | 500 | 100 | 1 | -1 | 0 "
"| 0 | 0 | 1\n"
" 3 | 0 | 0 | 250 | 900 | 1 | -1 | 0 "
"| 0 | 0 | 1\n"
"(3 rows)"
msgstr ""
#. Tag: para
#: reference_raster.xml:4840
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_Rescale\"/>, <xref linkend=\"RT_ST_Reskew\"/>, <xref "
"linkend=\"RT_ST_SnapToGrid\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:4851
#, no-c-format
msgid "ST_Transform"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:4852
#, no-c-format
msgid ""
"Reprojects a raster in a known spatial reference system to another known "
"spatial reference system using specified resampling algorithm. Options are "
"NearestNeighbor, Bilinear, Cubic, CubicSpline, Lanczos defaulting to "
"NearestNeighbor."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:4856
#, no-c-format
msgid ""
"<funcprototype> <funcdef>raster <function>ST_Transform</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>srid</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>text </type> "
"<parameter>algorithm=NearestNeighbor</parameter></paramdef> <paramdef choice="
"\"opt\"><type>double precision </type> <parameter>maxerr=0.125</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>scalex</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>scaley</parameter></paramdef> </"
"funcprototype> <funcprototype> <funcdef>raster <function>ST_Transform</"
"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>srid</"
"parameter></paramdef> <paramdef><type>double precision </type> "
"<parameter>scalex</parameter></paramdef> <paramdef><type>double precision </"
"type> <parameter>scaley</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>text </type> <parameter>algorithm=NearestNeighbor</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>maxerr=0.125</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>raster <function>ST_Transform</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>raster </type> <parameter>alignto</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>text </type> "
"<parameter>algorithm=NearestNeighbor</parameter></paramdef> <paramdef choice="
"\"opt\"><type>double precision </type> <parameter>maxerr=0.125</parameter></"
"paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:4890
#, no-c-format
msgid ""
"Reprojects a raster in a known spatial reference system to another known "
"spatial reference system using specified pixel warping algorithm. Uses "
"'NearestNeighbor' if no algorithm is specified and maxerror percent of 0.125 "
"if no maxerr is specified."
msgstr ""
#. Tag: para
#: reference_raster.xml:4894
#, no-c-format
msgid ""
"ST_Transform is often confused with ST_SetSRID(). ST_Transform actually "
"changes the coordinates of a raster (and resamples the pixel values) from "
"one spatial reference system to another, while ST_SetSRID() simply changes "
"the SRID identifier of the raster."
msgstr ""
#. Tag: para
#: reference_raster.xml:4898
#, no-c-format
msgid ""
"Unlike the other variants, Variant 3 requires a reference raster as "
"<varname>alignto</varname>. The transformed raster will be transformed to "
"the spatial reference system (SRID) of the reference raster and be aligned "
"(ST_SameAlignment = TRUE) to the reference raster."
msgstr ""
#. Tag: para
#: reference_raster.xml:4903
#, no-c-format
msgid ""
"If you find your transformation support is not working right, you may need "
"to set the environment variable PROJSO to the .so or .dll projection library "
"your PostGIS is using. This just needs to have the name of the file. So for "
"example on windows, you would in Control Panel -> System -> Environment "
"Variables add a system variable called <varname>PROJSO</varname> and set it "
"to <varname>libproj.dll</varname> (if you are using proj 4.6.1). You'll have "
"to restart your PostgreSQL service/daemon after this change."
msgstr ""
#. Tag: para
#: reference_raster.xml:4909
#, no-c-format
msgid "Enhanced: 2.1.0 Addition of ST_Transform(rast, alignto) variant"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:4915
#, no-c-format
msgid ""
"SELECT ST_Width(mass_stm) As w_before, ST_Width(wgs_84) As w_after,\n"
" ST_Height(mass_stm) As h_before, ST_Height(wgs_84) As h_after\n"
" FROM\n"
" ( SELECT rast As mass_stm, ST_Transform(rast,4326) As wgs_84\n"
" , ST_Transform(rast,4326, 'Bilinear') AS wgs_84_bilin\n"
" FROM aerials.o_2_boston\n"
" WHERE ST_Intersects(rast,\n"
" ST_Transform(ST_MakeEnvelope(-71.128, "
"42.2392,-71.1277, 42.2397, 4326),26986) )\n"
" LIMIT 1) As foo;\n"
"\n"
" w_before | w_after | h_before | h_after\n"
"----------+---------+----------+---------\n"
" 200 | 228 | 200 | 170"
msgstr ""
#. Tag: para
#: reference_raster.xml:4925
#, no-c-format
msgid "original mass state plane meters (mass_stm)"
msgstr ""
#. Tag: para
#: reference_raster.xml:4934
#, no-c-format
msgid "After transform to wgs 84 long lat (wgs_84)"
msgstr ""
#. Tag: para
#: reference_raster.xml:4943
#, no-c-format
msgid ""
"After transform to wgs 84 long lat with bilinear algorithm instead of NN "
"default (wgs_84_bilin)"
msgstr ""
#. Tag: para
#: reference_raster.xml:4956
#, no-c-format
msgid ""
"The following shows the difference between using ST_Transform(raster, srid) "
"and ST_Transform(raster, alignto)"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:4957
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT 0 AS rid, ST_AddBand(ST_MakeEmptyRaster(2, 2, -500000, "
"600000, 100, -100, 0, 0, 2163), 1, '16BUI', 1, 0) AS rast UNION ALL\n"
" SELECT 1, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499800, 600000, 100, "
"-100, 0, 0, 2163), 1, '16BUI', 2, 0) AS rast UNION ALL\n"
" SELECT 2, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499600, 600000, 100, "
"-100, 0, 0, 2163), 1, '16BUI', 3, 0) AS rast UNION ALL\n"
"\n"
" SELECT 3, ST_AddBand(ST_MakeEmptyRaster(2, 2, -500000, 599800, 100, "
"-100, 0, 0, 2163), 1, '16BUI', 10, 0) AS rast UNION ALL\n"
" SELECT 4, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499800, 599800, 100, "
"-100, 0, 0, 2163), 1, '16BUI', 20, 0) AS rast UNION ALL\n"
" SELECT 5, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499600, 599800, 100, "
"-100, 0, 0, 2163), 1, '16BUI', 30, 0) AS rast UNION ALL\n"
"\n"
" SELECT 6, ST_AddBand(ST_MakeEmptyRaster(2, 2, -500000, 599600, 100, "
"-100, 0, 0, 2163), 1, '16BUI', 100, 0) AS rast UNION ALL\n"
" SELECT 7, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499800, 599600, 100, "
"-100, 0, 0, 2163), 1, '16BUI', 200, 0) AS rast UNION ALL\n"
" SELECT 8, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499600, 599600, 100, "
"-100, 0, 0, 2163), 1, '16BUI', 300, 0) AS rast\n"
"), bar AS (\n"
" SELECT\n"
" ST_Transform(rast, 4269) AS alignto\n"
" FROM foo\n"
" LIMIT 1\n"
"), baz AS (\n"
" SELECT\n"
" rid,\n"
" rast,\n"
" ST_Transform(rast, 4269) AS not_aligned,\n"
" ST_Transform(rast, alignto) AS aligned\n"
" FROM foo\n"
" CROSS JOIN bar\n"
")\n"
"SELECT\n"
" ST_SameAlignment(rast) AS rast,\n"
" ST_SameAlignment(not_aligned) AS not_aligned,\n"
" ST_SameAlignment(aligned) AS aligned\n"
"FROM baz\n"
"\n"
" rast | not_aligned | aligned\n"
"------+-------------+---------\n"
" t | f | t"
msgstr ""
#. Tag: para
#: reference_raster.xml:4962
#, no-c-format
msgid ", <xref linkend=\"RT_ST_SetSRID\"/>"
msgstr ""
#. Tag: title
#: reference_raster.xml:4968
#, no-c-format
msgid "Raster Band Editors"
msgstr ""
#. Tag: refname
#: reference_raster.xml:4972
#, no-c-format
msgid "ST_SetBandNoDataValue"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:4973
#, no-c-format
msgid ""
"Sets the value for the given band that represents no data. Band 1 is assumed "
"if no band is specified. To mark a band as having no nodata value, set the "
"nodata value = NULL."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:4977
#, no-c-format
msgid ""
"<funcprototype> <funcdef>raster <function>ST_SetBandNoDataValue</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> <paramdef><type>double precision </type> <parameter>nodatavalue</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>ST_SetBandNoDataValue</function></funcdef> <paramdef><type>raster "
"</type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </"
"type> <parameter>band</parameter></paramdef> <paramdef><type>double "
"precision </type> <parameter>nodatavalue</parameter></paramdef> <paramdef "
"choice=\"opt\"><type>boolean </type> <parameter>forcechecking=false</"
"parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:4998
#, no-c-format
msgid ""
"Sets the value that represents no data for the band. Band 1 is assumed if "
"not specified. This will affect results from <xref linkend=\"RT_ST_Polygon\"/"
">, <xref linkend=\"RT_ST_DumpAsPolygons\"/>, and the ST_PixelAs...() "
"functions."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:5004
#, no-c-format
msgid ""
"-- change just first band no data value\n"
"UPDATE dummy_rast\n"
" SET rast = ST_SetBandNoDataValue(rast,1, 254)\n"
"WHERE rid = 2;\n"
"\n"
"-- change no data band value of bands 1,2,3\n"
"UPDATE dummy_rast\n"
" SET rast =\n"
" ST_SetBandNoDataValue(\n"
" ST_SetBandNoDataValue(\n"
" ST_SetBandNoDataValue(\n"
" rast,1, 254)\n"
" ,2,99),\n"
" 3,108)\n"
" WHERE rid = 2;\n"
"\n"
"-- wipe out the nodata value this will ensure all pixels are considered for "
"all processing functions\n"
"UPDATE dummy_rast\n"
" SET rast = ST_SetBandNoDataValue(rast,1, NULL)\n"
"WHERE rid = 2;"
msgstr ""
#. Tag: refname
#: reference_raster.xml:5016
#, no-c-format
msgid "ST_SetBandIsNoData"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:5017
#, no-c-format
msgid "Sets the isnodata flag of the band to TRUE."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:5022
#, no-c-format
msgid ""
"<funcdef>raster <function>ST_SetBandIsNoData</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>integer </type> <parameter>band=1</"
"parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:5033
#, no-c-format
msgid ""
"Sets the isnodata flag for the band to true. Band 1 is assumed if not "
"specified. This function should be called only when the flag is considered "
"dirty. That is, when the result calling <xref linkend=\"RT_ST_BandIsNoData\"/"
"> is different using TRUE as last argument and without using it"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:5045
#, no-c-format
msgid ""
"-- Create dummy table with one raster column\n"
"create table dummy_rast (rid integer, rast raster);\n"
"\n"
"-- Add raster with two bands, one pixel/band. In the first band, nodatavalue "
"= pixel value = 3.\n"
"-- In the second band, nodatavalue = 13, pixel value = 4\n"
"insert into dummy_rast values(1,\n"
"(\n"
"'01' -- little endian (uint8 ndr)\n"
"||\n"
"'0000' -- version (uint16 0)\n"
"||\n"
"'0200' -- nBands (uint16 0)\n"
"||\n"
"'17263529ED684A3F' -- scaleX (float64 0.000805965234044584)\n"
"||\n"
"'F9253529ED684ABF' -- scaleY (float64 -0.00080596523404458)\n"
"||\n"
"'1C9F33CE69E352C0' -- ipX (float64 -75.5533328537098)\n"
"||\n"
"'718F0E9A27A44840' -- ipY (float64 49.2824585505576)\n"
"||\n"
"'ED50EB853EC32B3F' -- skewX (float64 0.000211812383858707)\n"
"||\n"
"'7550EB853EC32B3F' -- skewY (float64 0.000211812383858704)\n"
"||\n"
"'E6100000' -- SRID (int32 4326)\n"
"||\n"
"'0100' -- width (uint16 1)\n"
"||\n"
"'0100' -- height (uint16 1)\n"
"||\n"
"'4' -- hasnodatavalue set to true, isnodata value set to false (when it "
"should be true)\n"
"||\n"
"'2' -- first band type (4BUI)\n"
"||\n"
"'03' -- novalue==3\n"
"||\n"
"'03' -- pixel(0,0)==3 (same that nodata)\n"
"||\n"
"'0' -- hasnodatavalue set to false\n"
"||\n"
"'5' -- second band type (16BSI)\n"
"||\n"
"'0D00' -- novalue==13\n"
"||\n"
"'0400' -- pixel(0,0)==4\n"
")::raster\n"
");\n"
"\n"
"select st_bandisnodata(rast, 1) from dummy_rast where rid = 1; -- Expected "
"false\n"
"select st_bandisnodata(rast, 1, TRUE) from dummy_rast where rid = 1; -- "
"Expected true\n"
"\n"
"-- The isnodata flag is dirty. We are going to set it to true\n"
"update dummy_rast set rast = st_setbandisnodata(rast, 1) where rid = 1;\n"
"\n"
"\n"
"select st_bandisnodata(rast, 1) from dummy_rast where rid = 1; -- Expected "
"true"
msgstr ""
#. Tag: para
#: reference_raster.xml:5051
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_NumBands\"/>, <xref linkend="
"\"RT_ST_SetBandNoDataValue\"/>, <xref linkend=\"RT_ST_BandIsNoData\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:5060
#, no-c-format
msgid "ST_SetBandPath"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:5061
#, no-c-format
msgid "Update the external path and band number of an out-db band"
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:5066
#, no-c-format
msgid ""
"<funcdef>raster <function>ST_SetBandPath</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>band</parameter></paramdef> "
"<paramdef><type>text </type> <parameter>outdbpath</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>outdbindex</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>boolean </type> <parameter>force=false</"
"parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:5080
#, no-c-format
msgid ""
"Updates an out-db band's external raster file path and external band number."
msgstr ""
#. Tag: para
#: reference_raster.xml:5083
#, no-c-format
msgid ""
"If <varname>force</varname> is set to true, no tests are done to ensure "
"compatibility (e.g. alignment, pixel support) between the external raster "
"file and the PostGIS raster. This mode is intended for file system changes "
"where the external raster resides."
msgstr ""
#. Tag: para
#: reference_raster.xml:5089 reference_raster.xml:5142
#, no-c-format
msgid ""
"Internally, this method replaces the PostGIS raster's band at index "
"<varname>band</varname> with a new band instead of updating the existing "
"path information."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:5099
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT\n"
" ST_AddBand(NULL::raster, '/home/pele/devel/geo/postgis-git/"
"raster/test/regress/loader/Projected.tif', NULL::int[]) AS rast\n"
")\n"
"SELECT\n"
" 1 AS query,\n"
" *\n"
"FROM ST_BandMetadata(\n"
" (SELECT rast FROM foo),\n"
" ARRAY[1,3,2]::int[]\n"
")\n"
"UNION ALL\n"
"SELECT\n"
" 2,\n"
" *\n"
"FROM ST_BandMetadata(\n"
" (\n"
" SELECT\n"
" <emphasis role=\"strong\">ST_SetBandPath(\n"
" rast,\n"
" 2,\n"
" '/home/pele/devel/geo/postgis-git/raster/"
"test/regress/loader/Projected2.tif',\n"
" 1\n"
" )</emphasis> AS rast\n"
" FROM foo\n"
" ),\n"
" ARRAY[1,3,2]::int[]\n"
")\n"
"ORDER BY 1, 2;\n"
"\n"
" query | bandnum | pixeltype | nodatavalue | isoutdb "
"| "
"path | outdbbandnum\n"
"-------+---------+-----------+-------------+---------"
"+---------------------------------------------------------------------------------"
"+--------------\n"
" 1 | 1 | 8BUI | | t | /home/pele/devel/geo/"
"postgis-git/raster/test/regress/loader/Projected.tif | 1\n"
" 1 | 2 | 8BUI | | t | /home/pele/devel/geo/"
"postgis-git/raster/test/regress/loader/Projected.tif | 2\n"
" 1 | 3 | 8BUI | | t | /home/pele/devel/geo/"
"postgis-git/raster/test/regress/loader/Projected.tif | 3\n"
" 2 | 1 | 8BUI | | t | /home/pele/devel/geo/"
"postgis-git/raster/test/regress/loader/Projected.tif | 1\n"
"<emphasis role=\"strong\"> 2 | 2 | 8BUI | | "
"t | /home/pele/devel/geo/postgis-git/raster/test/regress/loader/"
"Projected2.tif | 1</emphasis>\n"
" 2 | 3 | 8BUI | | t | /home/pele/devel/geo/"
"postgis-git/raster/test/regress/loader/Projected.tif | 3"
msgstr ""
#. Tag: para
#: reference_raster.xml:5104
#, no-c-format
msgid ", <xref linkend=\"RT_ST_SetBandIndex\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:5114
#, no-c-format
msgid "ST_SetBandIndex"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:5115
#, no-c-format
msgid "Update the external band number of an out-db band"
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:5120
#, no-c-format
msgid ""
"<funcdef>raster <function>ST_SetBandIndex</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>band</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>outdbindex</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>boolean </type> <parameter>force=false</"
"parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:5133
#, no-c-format
msgid ""
"Updates an out-db band's external band number. This does not touch the "
"external raster file associated with the out-db band"
msgstr ""
#. Tag: para
#: reference_raster.xml:5136
#, no-c-format
msgid ""
"If <varname>force</varname> is set to true, no tests are done to ensure "
"compatibility (e.g. alignment, pixel support) between the external raster "
"file and the PostGIS raster. This mode is intended for where bands are moved "
"around in the external raster file."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:5152
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT\n"
" ST_AddBand(NULL::raster, '/home/pele/devel/geo/postgis-git/"
"raster/test/regress/loader/Projected.tif', NULL::int[]) AS rast\n"
")\n"
"SELECT\n"
" 1 AS query,\n"
" *\n"
"FROM ST_BandMetadata(\n"
" (SELECT rast FROM foo),\n"
" ARRAY[1,3,2]::int[]\n"
")\n"
"UNION ALL\n"
"SELECT\n"
" 2,\n"
" *\n"
"FROM ST_BandMetadata(\n"
" (\n"
" SELECT\n"
" <emphasis role=\"strong\">ST_SetBandIndex(\n"
" rast,\n"
" 2,\n"
" 1\n"
" )</emphasis> AS rast\n"
" FROM foo\n"
" ),\n"
" ARRAY[1,3,2]::int[]\n"
")\n"
"ORDER BY 1, 2;\n"
"\n"
" query | bandnum | pixeltype | nodatavalue | isoutdb "
"| "
"path | outdbbandnum\n"
"-------+---------+-----------+-------------+---------"
"+---------------------------------------------------------------------------------"
"+--------------\n"
" 1 | 1 | 8BUI | | t | /home/pele/devel/geo/"
"postgis-git/raster/test/regress/loader/Projected.tif | 1\n"
" 1 | 2 | 8BUI | | t | /home/pele/devel/geo/"
"postgis-git/raster/test/regress/loader/Projected.tif | 2\n"
" 1 | 3 | 8BUI | | t | /home/pele/devel/geo/"
"postgis-git/raster/test/regress/loader/Projected.tif | 3\n"
" 2 | 1 | 8BUI | | t | /home/pele/devel/geo/"
"postgis-git/raster/test/regress/loader/Projected.tif | 1\n"
"<emphasis role=\"strong\"> 2 | 2 | 8BUI | | "
"t | /home/pele/devel/geo/postgis-git/raster/test/regress/loader/"
"Projected.tif | 1</emphasis>\n"
" 2 | 3 | 8BUI | | t | /home/pele/devel/geo/"
"postgis-git/raster/test/regress/loader/Projected.tif | 3"
msgstr ""
#. Tag: para
#: reference_raster.xml:5157
#, no-c-format
msgid ", <xref linkend=\"RT_ST_SetBandPath\"/>"
msgstr ""
#. Tag: title
#: reference_raster.xml:5168
#, no-c-format
msgid "Raster Band Statistics and Analytics"
msgstr ""
#. Tag: refname
#: reference_raster.xml:5172
#, no-c-format
msgid "ST_Count"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:5173
#, no-c-format
msgid ""
"Returns the number of pixels in a given band of a raster or raster coverage. "
"If no band is specified defaults to band 1. If exclude_nodata_value is set "
"to true, will only count pixels that are not equal to the nodata value."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:5177
#, no-c-format
msgid ""
"<funcprototype> <funcdef>bigint <function>ST_Count</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>bigint <function>ST_Count</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>boolean </type> <parameter>exclude_nodata_value</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>bigint "
"<function>ST_Count</function></funcdef> <paramdef><type>text </type> "
"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> "
"<parameter>rastercolumn</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>integer </type> <parameter>nband=1</parameter></paramdef> <paramdef "
"choice=\"opt\"><type>boolean </type> <parameter>exclude_nodata_value=true</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bigint "
"<function>ST_Count</function></funcdef> <paramdef><type>text </type> "
"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> "
"<parameter>rastercolumn</parameter></paramdef> <paramdef><type>boolean </"
"type> <parameter>exclude_nodata_value</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:5208
#, no-c-format
msgid ""
"Returns the number of pixels in a given band of a raster or raster coverage. "
"If no band is specified <varname>nband</varname> defaults to 1."
msgstr ""
#. Tag: para
#: reference_raster.xml:5209
#, no-c-format
msgid ""
"If <varname>exclude_nodata_value</varname> is set to true, will only count "
"pixels with value not equal to the <varname>nodata</varname> value of the "
"raster. Set <varname>exclude_nodata_value</varname> to false to get count "
"all pixels"
msgstr ""
#. Tag: para
#: reference_raster.xml:5213
#, no-c-format
msgid ""
"The ST_Count(rastertable, rastercolumn, ...) variants are deprecated as of "
"2.2.0. Use <xref linkend=\"RT_ST_CountAgg\"/> instead."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:5223
#, no-c-format
msgid ""
"--example will count all pixels not 249 and one will count all pixels. --\n"
"SELECT rid, ST_Count(ST_SetBandNoDataValue(rast,249)) As exclude_nodata,\n"
" ST_Count(ST_SetBandNoDataValue(rast,249),false) As include_nodata\n"
" FROM dummy_rast WHERE rid=2;\n"
"\n"
"rid | exclude_nodata | include_nodata\n"
"-----+----------------+----------------\n"
" 2 | 23 | 25"
msgstr ""
#. Tag: para
#: reference_raster.xml:5228 reference_raster.xml:5289
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_SummaryStats\"/>, <xref linkend="
"\"RT_ST_SetBandNoDataValue\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:5238
#, no-c-format
msgid "ST_CountAgg"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:5239
#, no-c-format
msgid ""
"Aggregate. Returns the number of pixels in a given band of a set of rasters. "
"If no band is specified defaults to band 1. If exclude_nodata_value is set "
"to true, will only count pixels that are not equal to the NODATA value."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:5245
#, no-c-format
msgid ""
"<funcprototype> <funcdef>bigint <function>ST_CountAgg</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
"<paramdef><type>boolean </type> <parameter>exclude_nodata_value</parameter></"
"paramdef> <paramdef><type>double precision </type> "
"<parameter>sample_percent</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>bigint <function>ST_CountAgg</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
"<paramdef><type>boolean </type> <parameter>exclude_nodata_value</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>bigint "
"<function>ST_CountAgg</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef><type>boolean </type> "
"<parameter>exclude_nodata_value</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:5273
#, no-c-format
msgid ""
"Returns the number of pixels in a given band of a set of rasters. If no band "
"is specified <varname>nband</varname> defaults to 1."
msgstr ""
#. Tag: para
#: reference_raster.xml:5274
#, no-c-format
msgid ""
"If <varname>exclude_nodata_value</varname> is set to true, will only count "
"pixels with value not equal to the <varname>NODATA</varname> value of the "
"raster. Set <varname>exclude_nodata_value</varname> to false to get count "
"all pixels"
msgstr ""
#. Tag: para
#: reference_raster.xml:5277
#, no-c-format
msgid ""
"By default will sample all pixels. To get faster response, set "
"<varname>sample_percent</varname> to value between zero (0) and one (1)"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:5284
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT\n"
" rast.rast\n"
" FROM (\n"
" SELECT ST_SetValue(\n"
" ST_SetValue(\n"
" ST_SetValue(\n"
" ST_AddBand(\n"
" ST_MakeEmptyRaster(10, 10, "
"10, 10, 2, 2, 0, 0,0)\n"
" , 1, '64BF', 0, 0\n"
" )\n"
" , 1, 1, 1, -10\n"
" )\n"
" , 1, 5, 4, 0\n"
" )\n"
" , 1, 5, 5, 3.14159\n"
" ) AS rast\n"
" ) AS rast\n"
" FULL JOIN (\n"
" SELECT generate_series(1, 10) AS id\n"
" ) AS id\n"
" ON 1 = 1\n"
")\n"
"SELECT\n"
" ST_CountAgg(rast, 1, TRUE)\n"
"FROM foo;\n"
"\n"
" st_countagg\n"
"-------------\n"
" 20\n"
"(1 row)"
msgstr ""
#. Tag: refname
#: reference_raster.xml:5299
#, no-c-format
msgid "ST_Histogram"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:5300
#, no-c-format
msgid ""
"Returns a set of record summarizing a raster or raster coverage data "
"distribution separate bin ranges. Number of bins are autocomputed if not "
"specified."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:5304
#, no-c-format
msgid ""
"<funcprototype> <funcdef>SETOF record <function>ST_Histogram</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>exclude_nodata_value=true</parameter></paramdef> <paramdef choice="
"\"opt\"><type>integer </type> <parameter>bins=autocomputed</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>double precision[] </type> "
"<parameter>width=NULL</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>boolean </type> <parameter>right=false</parameter></paramdef> </"
"funcprototype> <funcprototype> <funcdef>SETOF record <function>ST_Histogram</"
"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>nband</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>bins</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </"
"type> <parameter>width=NULL</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>boolean </type> <parameter>right=false</parameter></paramdef> </"
"funcprototype> <funcprototype> <funcdef>SETOF record <function>ST_Histogram</"
"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>nband</"
"parameter></paramdef> <paramdef><type>boolean </type> "
"<parameter>exclude_nodata_value</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>bins</parameter></paramdef> "
"<paramdef><type>boolean </type> <parameter>right</parameter></paramdef> </"
"funcprototype> <funcprototype> <funcdef>SETOF record <function>ST_Histogram</"
"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>nband</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>bins</"
"parameter></paramdef> <paramdef><type>boolean </type> <parameter>right</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>SETOF record "
"<function>ST_Histogram</function></funcdef> <paramdef><type>text </type> "
"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> "
"<parameter>rastercolumn</parameter></paramdef> <paramdef><type>integer </"
"type> <parameter>nband</parameter></paramdef> <paramdef><type>integer </"
"type> <parameter>bins</parameter></paramdef> <paramdef><type>boolean </type> "
"<parameter>right</parameter></paramdef> </funcprototype> <funcprototype> "
"<funcdef>SETOF record <function>ST_Histogram</function></funcdef> "
"<paramdef><type>text </type> <parameter>rastertable</parameter></paramdef> "
"<paramdef><type>text </type> <parameter>rastercolumn</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
"<paramdef><type>boolean </type> <parameter>exclude_nodata_value</parameter></"
"paramdef> <paramdef><type>integer </type> <parameter>bins</parameter></"
"paramdef> <paramdef><type>boolean </type> <parameter>right</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>SETOF record "
"<function>ST_Histogram</function></funcdef> <paramdef><type>text </type> "
"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> "
"<parameter>rastercolumn</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>integer </type> <parameter>nband=1</parameter></paramdef> <paramdef "
"choice=\"opt\"><type>boolean </type> <parameter>exclude_nodata_value=true</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> "
"<parameter>bins=autocomputed</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision[] </type> <parameter>width=NULL</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>right=false</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>SETOF record <function>ST_Histogram</function></"
"funcdef> <paramdef><type>text </type> <parameter>rastertable</parameter></"
"paramdef> <paramdef><type>text </type> <parameter>rastercolumn</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>bins</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </"
"type> <parameter>width=NULL</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>boolean </type> <parameter>right=false</parameter></paramdef> </"
"funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:5386
#, no-c-format
msgid ""
"Returns set of records consisting of min, max, count, percent for a given "
"raster band for each bin. If no band is specified <varname>nband</varname> "
"defaults to 1."
msgstr ""
#. Tag: para
#: reference_raster.xml:5387
#, no-c-format
msgid ""
"By default only considers pixel values not equal to the <varname>nodata</"
"varname> value . Set <varname>exclude_nodata_value</varname> to false to get "
"count all pixels."
msgstr ""
#. Tag: term
#: reference_raster.xml:5391
#, no-c-format
msgid "<parameter>width </parameter><type>double precision[]</type>"
msgstr ""
#. Tag: para
#: reference_raster.xml:5392
#, no-c-format
msgid ""
"width: an array indicating the width of each category/bin. If the number of "
"bins is greater than the number of widths, the widths are repeated."
msgstr ""
#. Tag: para
#: reference_raster.xml:5393
#, no-c-format
msgid ""
"Example: 9 bins, widths are [a, b, c] will have the output be [a, b, c, a, "
"b, c, a, b, c]"
msgstr ""
#. Tag: term
#: reference_raster.xml:5396
#, no-c-format
msgid "<parameter>bins </parameter><type>integer</type>"
msgstr ""
#. Tag: para
#: reference_raster.xml:5397
#, no-c-format
msgid ""
"Number of breakouts -- this is the number of records you'll get back from "
"the function if specified. If not specified then the number of breakouts is "
"autocomputed."
msgstr ""
#. Tag: term
#: reference_raster.xml:5401
#, no-c-format
msgid "<parameter>right </parameter><type>boolean</type>"
msgstr ""
#. Tag: para
#: reference_raster.xml:5402
#, no-c-format
msgid ""
"compute the histogram from the right rather than from the left (default). "
"This changes the criteria for evaluating a value x from [a, b) to (a, b]"
msgstr ""
#. Tag: title
#: reference_raster.xml:5409
#, no-c-format
msgid ""
"Example: Single raster tile - compute histograms for bands 1, 2, 3 and "
"autocompute bins"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:5410
#, no-c-format
msgid ""
"SELECT band, (stats).*\n"
"FROM (SELECT rid, band, ST_Histogram(rast, band) As stats\n"
" FROM dummy_rast CROSS JOIN generate_series(1,3) As band\n"
" WHERE rid=2) As foo;\n"
"\n"
" band | min | max | count | percent\n"
"------+-------+-------+-------+---------\n"
" 1 | 249 | 250 | 2 | 0.08\n"
" 1 | 250 | 251 | 2 | 0.08\n"
" 1 | 251 | 252 | 1 | 0.04\n"
" 1 | 252 | 253 | 2 | 0.08\n"
" 1 | 253 | 254 | 18 | 0.72\n"
" 2 | 78 | 113.2 | 11 | 0.44\n"
" 2 | 113.2 | 148.4 | 4 | 0.16\n"
" 2 | 148.4 | 183.6 | 4 | 0.16\n"
" 2 | 183.6 | 218.8 | 1 | 0.04\n"
" 2 | 218.8 | 254 | 5 | 0.2\n"
" 3 | 62 | 100.4 | 11 | 0.44\n"
" 3 | 100.4 | 138.8 | 5 | 0.2\n"
" 3 | 138.8 | 177.2 | 4 | 0.16\n"
" 3 | 177.2 | 215.6 | 1 | 0.04\n"
" 3 | 215.6 | 254 | 4 | 0.16"
msgstr ""
#. Tag: title
#: reference_raster.xml:5414
#, no-c-format
msgid "Example: Just band 2 but for 6 bins"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:5415
#, no-c-format
msgid ""
"SELECT (stats).*\n"
"FROM (SELECT rid, ST_Histogram(rast, 2,6) As stats\n"
" FROM dummy_rast\n"
" WHERE rid=2) As foo;\n"
"\n"
" min | max | count | percent\n"
"------------+------------+-------+---------\n"
" 78 | 107.333333 | 9 | 0.36\n"
" 107.333333 | 136.666667 | 6 | 0.24\n"
" 136.666667 | 166 | 0 | 0\n"
" 166 | 195.333333 | 4 | 0.16\n"
" 195.333333 | 224.666667 | 1 | 0.04\n"
" 224.666667 | 254 | 5 | 0.2\n"
"(6 rows)\n"
"\n"
"-- Same as previous but we explicitly control the pixel value range of each "
"bin.\n"
"SELECT (stats).*\n"
"FROM (SELECT rid, ST_Histogram(rast, 2,6,ARRAY[0.5,1,4,100,5]) As stats\n"
" FROM dummy_rast\n"
" WHERE rid=2) As foo;\n"
"\n"
" min | max | count | percent\n"
"-------+-------+-------+----------\n"
" 78 | 78.5 | 1 | 0.08\n"
" 78.5 | 79.5 | 1 | 0.04\n"
" 79.5 | 83.5 | 0 | 0\n"
" 83.5 | 183.5 | 17 | 0.0068\n"
" 183.5 | 188.5 | 0 | 0\n"
" 188.5 | 254 | 6 | 0.003664\n"
"(6 rows)"
msgstr ""
#. Tag: para
#: reference_raster.xml:5420
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_SummaryStats\"/>, <xref linkend="
"\"RT_ST_SummaryStatsAgg\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:5430
#, no-c-format
msgid "ST_Quantile"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:5431
#, no-c-format
msgid ""
"<refpurpose>Compute quantiles for a raster or raster table coverage in the "
"context of the sample or population. Thus, a value could be examined to be "
"at the raster's 25%, 50%, 75% percentile.</refpurpose>"
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:5435
#, no-c-format
msgid ""
"<funcprototype> <funcdef>SETOF record <function>ST_Quantile</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>exclude_nodata_value=true</parameter></paramdef> <paramdef choice="
"\"opt\"><type>double precision[] </type> <parameter>quantiles=NULL</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>SETOF record "
"<function>ST_Quantile</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef><type>double precision[] </"
"type> <parameter>quantiles</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>SETOF record <function>ST_Quantile</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> <paramdef><type>integer </type> <parameter>nband</parameter></"
"paramdef> <paramdef><type>double precision[] </type> <parameter>quantiles</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>double "
"precision <function>ST_Quantile</function></funcdef> <paramdef><type>raster "
"</type> <parameter>rast</parameter></paramdef> <paramdef><type>double "
"precision </type> <parameter>quantile</parameter></paramdef> </"
"funcprototype> <funcprototype> <funcdef>double precision "
"<function>ST_Quantile</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef><type>boolean </type> "
"<parameter>exclude_nodata_value</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>quantile=NULL</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>double precision "
"<function>ST_Quantile</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>nband</parameter></paramdef> <paramdef><type>double precision </"
"type> <parameter>quantile</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>double precision <function>ST_Quantile</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> <paramdef><type>integer </type> <parameter>nband</parameter></"
"paramdef> <paramdef><type>boolean </type> <parameter>exclude_nodata_value</"
"parameter></paramdef> <paramdef><type>double precision </type> "
"<parameter>quantile</parameter></paramdef> </funcprototype> <funcprototype> "
"<funcdef>double precision <function>ST_Quantile</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
"<paramdef><type>double precision </type> <parameter>quantile</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>SETOF record "
"<function>ST_Quantile</function></funcdef> <paramdef><type>text </type> "
"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> "
"<parameter>rastercolumn</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>integer </type> <parameter>nband=1</parameter></paramdef> <paramdef "
"choice=\"opt\"><type>boolean </type> <parameter>exclude_nodata_value=true</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </"
"type> <parameter>quantiles=NULL</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>SETOF record <function>ST_Quantile</function></"
"funcdef> <paramdef><type>text </type> <parameter>rastertable</parameter></"
"paramdef> <paramdef><type>text </type> <parameter>rastercolumn</parameter></"
"paramdef> <paramdef><type>integer </type> <parameter>nband</parameter></"
"paramdef> <paramdef><type>double precision[] </type> <parameter>quantiles</"
"parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:5507
#, no-c-format
msgid ""
"<para>Compute quantiles for a raster or raster table coverage in the context "
"of the sample or population. Thus, a value could be examined to be at the "
"raster's 25%, 50%, 75% percentile.</para>"
msgstr ""
#. Tag: para
#: reference_raster.xml:5508 reference_raster.xml:5800
#, no-c-format
msgid ""
"If <varname>exclude_nodata_value</varname> is set to false, will also count "
"pixels with no data."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:5515
#, no-c-format
msgid ""
"UPDATE dummy_rast SET rast = ST_SetBandNoDataValue(rast,249) WHERE rid=2;\n"
"--Example will consider only pixels of band 1 that are not 249 and in named "
"quantiles --\n"
"\n"
"SELECT (pvq).*\n"
"FROM (SELECT ST_Quantile(rast, ARRAY[0.25,0.75]) As pvq\n"
" FROM dummy_rast WHERE rid=2) As foo\n"
" ORDER BY (pvq).quantile;\n"
"\n"
" quantile | value\n"
"----------+-------\n"
" 0.25 | 253\n"
" 0.75 | 254\n"
"\n"
"SELECT ST_Quantile(rast, 0.75) As value\n"
" FROM dummy_rast WHERE rid=2;\n"
"\n"
"value\n"
"------\n"
" 254"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:5516
#, no-c-format
msgid ""
"--real live example. Quantile of all pixels in band 2 intersecting a "
"geometry\n"
"SELECT rid, (ST_Quantile(rast,2)).* As pvc\n"
" FROM o_4_boston\n"
" WHERE ST_Intersects(rast,\n"
" ST_GeomFromText('POLYGON((224486 892151,224486 892200,224706 "
"892200,224706 892151,224486 892151))',26986)\n"
" )\n"
"ORDER BY value, quantile,rid\n"
";\n"
"\n"
"\n"
" rid | quantile | value\n"
"-----+----------+-------\n"
" 1 | 0 | 0\n"
" 2 | 0 | 0\n"
" 14 | 0 | 1\n"
" 15 | 0 | 2\n"
" 14 | 0.25 | 37\n"
" 1 | 0.25 | 42\n"
" 15 | 0.25 | 47\n"
" 2 | 0.25 | 50\n"
" 14 | 0.5 | 56\n"
" 1 | 0.5 | 64\n"
" 15 | 0.5 | 66\n"
" 2 | 0.5 | 77\n"
" 14 | 0.75 | 81\n"
" 15 | 0.75 | 87\n"
" 1 | 0.75 | 94\n"
" 2 | 0.75 | 106\n"
" 14 | 1 | 199\n"
" 1 | 1 | 244\n"
" 2 | 1 | 255\n"
" 15 | 1 | 255"
msgstr ""
#. Tag: para
#: reference_raster.xml:5521
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_SummaryStats\"/>, <xref linkend="
"\"RT_ST_SummaryStatsAgg\"/>, <xref linkend=\"RT_ST_SetBandNoDataValue\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:5532
#, no-c-format
msgid "ST_SummaryStats"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:5533
#, no-c-format
msgid ""
"Returns summarystats consisting of count, sum, mean, stddev, min, max for a "
"given raster band of a raster or raster coverage. Band 1 is assumed is no "
"band is specified."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:5537
#, no-c-format
msgid ""
"<funcprototype> <funcdef>summarystats <function>ST_SummaryStats</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> <paramdef><type>boolean </type> <parameter>exclude_nodata_value</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>summarystats "
"<function>ST_SummaryStats</function></funcdef> <paramdef><type>raster </"
"type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>nband</parameter></paramdef> <paramdef><type>boolean </type> "
"<parameter>exclude_nodata_value</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>summarystats <function>ST_SummaryStats</function></"
"funcdef> <paramdef><type>text </type> <parameter>rastertable</parameter></"
"paramdef> <paramdef><type>text </type> <parameter>rastercolumn</parameter></"
"paramdef> <paramdef><type>boolean </type> <parameter>exclude_nodata_value</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>summarystats "
"<function>ST_SummaryStats</function></funcdef> <paramdef><type>text </type> "
"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> "
"<parameter>rastercolumn</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>integer </type> <parameter>nband=1</parameter></paramdef> <paramdef "
"choice=\"opt\"><type>boolean </type> <parameter>exclude_nodata_value=true</"
"parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:5573 reference_raster.xml:5652
#, no-c-format
msgid ""
"Returns <xref linkend=\"summarystats\"/> consisting of count, sum, mean, "
"stddev, min, max for a given raster band of a raster or raster coverage. If "
"no band is specified <varname>nband</varname> defaults to 1."
msgstr ""
#. Tag: para
#: reference_raster.xml:5575
#, no-c-format
msgid ""
"By default only considers pixel values not equal to the <varname>nodata</"
"varname> value. Set <varname>exclude_nodata_value</varname> to false to get "
"count of all pixels."
msgstr ""
#. Tag: para
#: reference_raster.xml:5577
#, no-c-format
msgid ""
"By default will sample all pixels. To get faster response, set "
"<varname>sample_percent</varname> to lower than 1"
msgstr ""
#. Tag: para
#: reference_raster.xml:5582
#, no-c-format
msgid ""
"The ST_SummaryStats(rastertable, rastercolumn, ...) variants are deprecated "
"as of 2.2.0. Use <xref linkend=\"RT_ST_SummaryStatsAgg\"/> instead."
msgstr ""
#. Tag: title
#: reference_raster.xml:5590
#, no-c-format
msgid "Example: Single raster tile"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:5591
#, no-c-format
msgid ""
"SELECT rid, band, (stats).*\n"
"FROM (SELECT rid, band, ST_SummaryStats(rast, band) As stats\n"
" FROM dummy_rast CROSS JOIN generate_series(1,3) As band\n"
" WHERE rid=2) As foo;\n"
"\n"
" rid | band | count | sum | mean | stddev | min | max\n"
"-----+------+-------+------+------------+-----------+-----+-----\n"
" 2 | 1 | 23 | 5821 | 253.086957 | 1.248061 | 250 | 254\n"
" 2 | 2 | 25 | 3682 | 147.28 | 59.862188 | 78 | 254\n"
" 2 | 3 | 25 | 3290 | 131.6 | 61.647384 | 62 | 254"
msgstr ""
#. Tag: title
#: reference_raster.xml:5595
#, no-c-format
msgid "Example: Summarize pixels that intersect buildings of interest"
msgstr ""
#. Tag: para
#: reference_raster.xml:5596
#, no-c-format
msgid ""
"This example took 574ms on PostGIS windows 64-bit with all of Boston "
"Buildings and aerial Tiles (tiles each 150x150 pixels ~ 134,000 tiles), "
"~102,000 building records"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:5598
#, no-c-format
msgid ""
"WITH\n"
"-- our features of interest\n"
" feat AS (SELECT gid As building_id, geom_26986 As geom FROM buildings AS "
"b\n"
" WHERE gid IN(100, 103,150)\n"
" ),\n"
"-- clip band 2 of raster tiles to boundaries of builds\n"
"-- then get stats for these clipped regions\n"
" b_stats AS\n"
" (SELECT building_id, (stats).*\n"
"FROM (SELECT building_id, ST_SummaryStats(ST_Clip(rast,2,geom)) As stats\n"
" FROM aerials.boston\n"
" INNER JOIN feat\n"
" ON ST_Intersects(feat.geom,rast)\n"
" ) As foo\n"
" )\n"
"-- finally summarize stats\n"
"SELECT building_id, SUM(count) As num_pixels\n"
" , MIN(min) As min_pval\n"
" , MAX(max) As max_pval\n"
" , SUM(mean*count)/SUM(count) As avg_pval\n"
" FROM b_stats\n"
" WHERE count > 0\n"
" GROUP BY building_id\n"
" ORDER BY building_id;\n"
" building_id | num_pixels | min_pval | max_pval | avg_pval\n"
"-------------+------------+----------+----------+------------------\n"
" 100 | 1090 | 1 | 255 | 61.0697247706422\n"
" 103 | 655 | 7 | 182 | 70.5038167938931\n"
" 150 | 895 | 2 | 252 | 185.642458100559"
msgstr ""
#. Tag: title
#: reference_raster.xml:5602
#, no-c-format
msgid "Example: Raster coverage"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:5603
#, no-c-format
msgid ""
"-- stats for each band --\n"
"SELECT band, (stats).*\n"
"FROM (SELECT band, ST_SummaryStats('o_4_boston','rast', band) As stats\n"
" FROM generate_series(1,3) As band) As foo;\n"
"\n"
" band | count | sum | mean | stddev | min | max\n"
"------+---------+--------+------------------+------------------+-----+-----\n"
" 1 | 8450000 | 725799 | 82.7064349112426 | 45.6800222638537 | 0 | 255\n"
" 2 | 8450000 | 700487 | 81.4197705325444 | 44.2161184161765 | 0 | 255\n"
" 3 | 8450000 | 575943 | 74.682739408284 | 44.2143885481407 | 0 | 255\n"
"\n"
"-- For a table -- will get better speed if set sampling to less than 100%\n"
"-- Here we set to 25% and get a much faster answer\n"
"SELECT band, (stats).*\n"
"FROM (SELECT band, ST_SummaryStats('o_4_boston','rast', band,true,0.25) As "
"stats\n"
" FROM generate_series(1,3) As band) As foo;\n"
"\n"
" band | count | sum | mean | stddev | min | max\n"
"------+---------+--------+------------------+------------------+-----+-----\n"
" 1 | 2112500 | 180686 | 82.6890480473373 | 45.6961043857248 | 0 | 255\n"
" 2 | 2112500 | 174571 | 81.448503668639 | 44.2252623171821 | 0 | 255\n"
" 3 | 2112500 | 144364 | 74.6765884023669 | 44.2014869384578 | 0 | 255"
msgstr ""
#. Tag: para
#: reference_raster.xml:5608
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_SummaryStatsAgg\"/>, <xref linkend=\"RT_ST_Count\"/"
">, <xref linkend=\"RT_ST_Clip\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:5619
#, no-c-format
msgid "ST_SummaryStatsAgg"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:5620
#, no-c-format
msgid ""
"Aggregate. Returns summarystats consisting of count, sum, mean, stddev, min, "
"max for a given raster band of a set of raster. Band 1 is assumed is no band "
"is specified."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:5624
#, no-c-format
msgid ""
"<funcprototype> <funcdef>summarystats <function>ST_SummaryStatsAgg</"
"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>nband</"
"parameter></paramdef> <paramdef><type>boolean </type> "
"<parameter>exclude_nodata_value</parameter></paramdef> "
"<paramdef><type>double precision </type> <parameter>sample_percent</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>summarystats "
"<function>ST_SummaryStatsAgg</function></funcdef> <paramdef><type>raster </"
"type> <parameter>rast</parameter></paramdef> <paramdef><type>boolean </type> "
"<parameter>exclude_nodata_value</parameter></paramdef> "
"<paramdef><type>double precision </type> <parameter>sample_percent</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>summarystats "
"<function>ST_SummaryStatsAgg</function></funcdef> <paramdef><type>raster </"
"type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>nband</parameter></paramdef> <paramdef><type>boolean </type> "
"<parameter>exclude_nodata_value</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:5654
#, no-c-format
msgid ""
"By default only considers pixel values not equal to the <varname>NODATA</"
"varname> value. Set <varname>exclude_nodata_value</varname> to False to get "
"count of all pixels."
msgstr ""
#. Tag: para
#: reference_raster.xml:5656
#, no-c-format
msgid ""
"By default will sample all pixels. To get faster response, set "
"<varname>sample_percent</varname> to value between 0 and 1"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:5663
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT\n"
" rast.rast\n"
" FROM (\n"
" SELECT ST_SetValue(\n"
" ST_SetValue(\n"
" ST_SetValue(\n"
" ST_AddBand(\n"
" ST_MakeEmptyRaster(10, 10, "
"10, 10, 2, 2, 0, 0,0)\n"
" , 1, '64BF', 0, 0\n"
" )\n"
" , 1, 1, 1, -10\n"
" )\n"
" , 1, 5, 4, 0\n"
" )\n"
" , 1, 5, 5, 3.14159\n"
" ) AS rast\n"
" ) AS rast\n"
" FULL JOIN (\n"
" SELECT generate_series(1, 10) AS id\n"
" ) AS id\n"
" ON 1 = 1\n"
")\n"
"SELECT\n"
" (stats).count,\n"
" round((stats).sum::numeric, 3),\n"
" round((stats).mean::numeric, 3),\n"
" round((stats).stddev::numeric, 3),\n"
" round((stats).min::numeric, 3),\n"
" round((stats).max::numeric, 3)\n"
"FROM (\n"
" SELECT\n"
" ST_SummaryStatsAgg(rast, 1, TRUE, 1) AS stats\n"
" FROM foo\n"
") bar;\n"
"\n"
" count | round | round | round | round | round\n"
"-------+---------+--------+-------+---------+-------\n"
" 20 | -68.584 | -3.429 | 6.571 | -10.000 | 3.142\n"
"(1 row)"
msgstr ""
#. Tag: para
#: reference_raster.xml:5668
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_SummaryStats\"/>, <xref linkend=\"RT_ST_Count\"/>, "
"<xref linkend=\"RT_ST_Clip\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:5679
#, no-c-format
msgid "ST_ValueCount"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:5680
#, no-c-format
msgid ""
"Returns a set of records containing a pixel band value and count of the "
"number of pixels in a given band of a raster (or a raster coverage) that "
"have a given set of values. If no band is specified defaults to band 1. By "
"default nodata value pixels are not counted. and all other values in the "
"pixel are output and pixel band values are rounded to the nearest integer."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:5685
#, no-c-format
msgid ""
"<funcprototype> <funcdef>SETOF record <function>ST_ValueCount</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>exclude_nodata_value=true</parameter></paramdef> <paramdef choice="
"\"opt\"><type>double precision[] </type> <parameter>searchvalues=NULL</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
"type> <parameter>roundto=0</parameter></paramdef> <paramdef><type>double "
"precision </type> <parameter>OUT value</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>OUT count</parameter></paramdef> "
"</funcprototype> <funcprototype> <funcdef>SETOF record "
"<function>ST_ValueCount</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>nband</parameter></paramdef> <paramdef><type>double precision[] </"
"type> <parameter>searchvalues</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>roundto=0</parameter></"
"paramdef> <paramdef><type>double precision </type> <parameter>OUT value</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>OUT count</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>SETOF record "
"<function>ST_ValueCount</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef><type>double precision[] </"
"type> <parameter>searchvalues</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>roundto=0</parameter></"
"paramdef> <paramdef><type>double precision </type> <parameter>OUT value</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>OUT count</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bigint "
"<function>ST_ValueCount</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </"
"type> <parameter>searchvalue</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>roundto=0</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>bigint "
"<function>ST_ValueCount</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>nband</parameter></paramdef> <paramdef><type>boolean </type> "
"<parameter>exclude_nodata_value</parameter></paramdef> "
"<paramdef><type>double precision </type> <parameter>searchvalue</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>roundto=0</parameter></paramdef> </funcprototype> <funcprototype> "
"<funcdef>bigint <function>ST_ValueCount</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
"<paramdef><type>double precision </type> <parameter>searchvalue</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>roundto=0</parameter></paramdef> </funcprototype> <funcprototype> "
"<funcdef>SETOF record <function>ST_ValueCount</function></funcdef> "
"<paramdef><type>text </type> <parameter>rastertable</parameter></paramdef> "
"<paramdef><type>text </type> <parameter>rastercolumn</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>exclude_nodata_value=true</parameter></paramdef> <paramdef choice="
"\"opt\"><type>double precision[] </type> <parameter>searchvalues=NULL</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
"type> <parameter>roundto=0</parameter></paramdef> <paramdef><type>double "
"precision </type> <parameter>OUT value</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>OUT count</parameter></paramdef> "
"</funcprototype> <funcprototype> <funcdef>SETOF record "
"<function>ST_ValueCount</function></funcdef> <paramdef><type>text </type> "
"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> "
"<parameter>rastercolumn</parameter></paramdef> <paramdef><type>double "
"precision[] </type> <parameter>searchvalues</parameter></paramdef> <paramdef "
"choice=\"opt\"><type>double precision </type> <parameter>roundto=0</"
"parameter></paramdef> <paramdef><type>double precision </type> "
"<parameter>OUT value</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>OUT count</parameter></paramdef> </funcprototype> <funcprototype> "
"<funcdef>SETOF record <function>ST_ValueCount</function></funcdef> "
"<paramdef><type>text </type> <parameter>rastertable</parameter></paramdef> "
"<paramdef><type>text </type> <parameter>rastercolumn</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
"<paramdef><type>double precision[] </type> <parameter>searchvalues</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
"type> <parameter>roundto=0</parameter></paramdef> <paramdef><type>double "
"precision </type> <parameter>OUT value</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>OUT count</parameter></paramdef> "
"</funcprototype> <funcprototype> <funcdef>bigint<function>ST_ValueCount</"
"function></funcdef> <paramdef><type>text </type> <parameter>rastertable</"
"parameter></paramdef> <paramdef><type>text </type> <parameter>rastercolumn</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>nband</"
"parameter></paramdef> <paramdef><type>boolean </type> "
"<parameter>exclude_nodata_value</parameter></paramdef> "
"<paramdef><type>double precision </type> <parameter>searchvalue</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>roundto=0</parameter></paramdef> </funcprototype> <funcprototype> "
"<funcdef>bigint <function>ST_ValueCount</function></funcdef> "
"<paramdef><type>text </type> <parameter>rastertable</parameter></paramdef> "
"<paramdef><type>text </type> <parameter>rastercolumn</parameter></paramdef> "
"<paramdef><type>double precision </type> <parameter>searchvalue</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>roundto=0</parameter></paramdef> </funcprototype> <funcprototype> "
"<funcdef>bigint <function>ST_ValueCount</function></funcdef> "
"<paramdef><type>text </type> <parameter>rastertable</parameter></paramdef> "
"<paramdef><type>text </type> <parameter>rastercolumn</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
"<paramdef><type>double precision </type> <parameter>searchvalue</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>roundto=0</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:5798
#, no-c-format
msgid ""
"Returns a set of records with columns <varname>value</varname> "
"<varname>count</varname> which contain the pixel band value and count of "
"pixels in the raster tile or raster coverage of selected band."
msgstr ""
#. Tag: para
#: reference_raster.xml:5799
#, no-c-format
msgid ""
"If no band is specified <varname>nband</varname> defaults to 1. If no "
"<varname>searchvalues</varname> are specified, will return all pixel values "
"found in the raster or raster coverage. If one searchvalue is given, will "
"return an integer instead of records denoting the count of pixels having "
"that pixel band value"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:5807
#, no-c-format
msgid ""
"UPDATE dummy_rast SET rast = ST_SetBandNoDataValue(rast,249) WHERE rid=2;\n"
"--Example will count only pixels of band 1 that are not 249. --\n"
"\n"
"SELECT (pvc).*\n"
"FROM (SELECT ST_ValueCount(rast) As pvc\n"
" FROM dummy_rast WHERE rid=2) As foo\n"
" ORDER BY (pvc).value;\n"
"\n"
" value | count\n"
"-------+-------\n"
" 250 | 2\n"
" 251 | 1\n"
" 252 | 2\n"
" 253 | 6\n"
" 254 | 12\n"
"\n"
"-- Example will coount all pixels of band 1 including 249 --\n"
"SELECT (pvc).*\n"
"FROM (SELECT ST_ValueCount(rast,1,false) As pvc\n"
" FROM dummy_rast WHERE rid=2) As foo\n"
" ORDER BY (pvc).value;\n"
"\n"
" value | count\n"
"-------+-------\n"
" 249 | 2\n"
" 250 | 2\n"
" 251 | 1\n"
" 252 | 2\n"
" 253 | 6\n"
" 254 | 12\n"
"\n"
"-- Example will count only non-nodata value pixels of band 2\n"
"SELECT (pvc).*\n"
"FROM (SELECT ST_ValueCount(rast,2) As pvc\n"
" FROM dummy_rast WHERE rid=2) As foo\n"
" ORDER BY (pvc).value;\n"
" value | count\n"
"-------+-------\n"
" 78 | 1\n"
" 79 | 1\n"
" 88 | 1\n"
" 89 | 1\n"
" 96 | 1\n"
" 97 | 1\n"
" 98 | 1\n"
" 99 | 2\n"
" 112 | 2\n"
":"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:5808
#, no-c-format
msgid ""
"--real live example. Count all the pixels in an aerial raster tile band 2 "
"intersecting a geometry\n"
"-- and return only the pixel band values that have a count > 500\n"
"SELECT (pvc).value, SUM((pvc).count) As total\n"
"FROM (SELECT ST_ValueCount(rast,2) As pvc\n"
" FROM o_4_boston\n"
" WHERE ST_Intersects(rast,\n"
" ST_GeomFromText('POLYGON((224486 892151,224486 892200,224706 "
"892200,224706 892151,224486 892151))',26986)\n"
" )\n"
" ) As foo\n"
" GROUP BY (pvc).value\n"
" HAVING SUM((pvc).count) > 500\n"
" ORDER BY (pvc).value;\n"
"\n"
" value | total\n"
"-------+-----\n"
" 51 | 502\n"
" 54 | 521"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:5810
#, no-c-format
msgid ""
"-- Just return count of pixels in each raster tile that have value of 100 of "
"tiles that intersect a specific geometry --\n"
"SELECT rid, ST_ValueCount(rast,2,100) As count\n"
" FROM o_4_boston\n"
" WHERE ST_Intersects(rast,\n"
" ST_GeomFromText('POLYGON((224486 892151,224486 892200,224706 "
"892200,224706 892151,224486 892151))',26986)\n"
" ) ;\n"
"\n"
" rid | count\n"
"-----+-------\n"
" 1 | 56\n"
" 2 | 95\n"
" 14 | 37\n"
" 15 | 64"
msgstr ""
#. Tag: para
#: reference_raster.xml:5815
#, no-c-format
msgid ", <xref linkend=\"RT_ST_SetBandNoDataValue\"/>"
msgstr ""
#. Tag: title
#: reference_raster.xml:5821
#, no-c-format
msgid "Raster Inputs"
msgstr ""
#. Tag: refname
#: reference_raster.xml:5824
#, no-c-format
msgid "ST_RastFromWKB"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:5825
#, no-c-format
msgid "Return a raster value from a Well-Known Binary (WKB) raster."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:5830
#, no-c-format
msgid ""
"<funcdef>raster <function>ST_RastFromWKB</function></funcdef> "
"<paramdef><type>bytea </type> <parameter>wkb</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:5840
#, no-c-format
msgid "Given a Well-Known Binary (WKB) raster, return a raster."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:5850
#, no-c-format
msgid ""
"SELECT (ST_Metadata(\n"
" ST_RastFromWKB(\n"
" '\\001\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000@"
"\\000\\000\\000\\000\\000\\000\\010@\\000\\000\\000\\000\\000\\000\\340?"
"\\000\\000\\000\\000\\000\\000\\340?"
"\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\012\\000\\000\\000\\012\\000\\024\\000'::"
"bytea\n"
" )\n"
")).* AS metadata;\n"
"\n"
" upperleftx | upperlefty | width | height | scalex | scaley | skewx | skewy "
"| srid | numbands\n"
"------------+------------+-------+--------+--------+--------+-------+-------"
"+------+----------\n"
" 0.5 | 0.5 | 10 | 20 | 2 | 3 | 0 | 0 "
"| 10 | 0"
msgstr ""
#. Tag: para
#: reference_raster.xml:5856
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_RastFromHexWKB\"/>, <xref linkend=\"RT_ST_AsBinary\"/"
">, <xref linkend=\"RT_ST_AsHexWKB\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:5867
#, no-c-format
msgid "ST_RastFromHexWKB"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:5868
#, no-c-format
msgid ""
"Return a raster value from a Hex representation of Well-Known Binary (WKB) "
"raster."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:5873
#, no-c-format
msgid ""
"<funcdef>raster <function>ST_RastFromHexWKB</function></funcdef> "
"<paramdef><type>text </type> <parameter>wkb</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:5883
#, no-c-format
msgid ""
"Given a Well-Known Binary (WKB) raster in Hex representation, return a "
"raster."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:5893
#, no-c-format
msgid ""
"SELECT (ST_Metadata(\n"
" ST_RastFromHexWKB(\n"
" '010000000000000000000000400000000000000840000000000000E03F000000000000E03F000000000000000000000000000000000A0000000A001400'\n"
" )\n"
")).* AS metadata;\n"
"\n"
" upperleftx | upperlefty | width | height | scalex | scaley | skewx | skewy "
"| srid | numbands\n"
"------------+------------+-------+--------+--------+--------+-------+-------"
"+------+----------\n"
" 0.5 | 0.5 | 10 | 20 | 2 | 3 | 0 | 0 "
"| 10 | 0"
msgstr ""
#. Tag: para
#: reference_raster.xml:5899
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_RastFromWKB\"/>, <xref linkend=\"RT_ST_AsBinary\"/>, "
"<xref linkend=\"RT_ST_AsHexWKB\"/>"
msgstr ""
#. Tag: title
#: reference_raster.xml:5911
#, no-c-format
msgid "Raster Outputs"
msgstr ""
#. Tag: refname
#: reference_raster.xml:5915
#, no-c-format
msgid "ST_AsBinary/ST_AsWKB"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:5916
#, no-c-format
msgid "Return the Well-Known Binary (WKB) representation of the raster."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:5920
#, no-c-format
msgid ""
"<funcprototype> <funcdef>bytea <function>ST_AsBinary</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>boolean </type> <parameter>outasin=FALSE</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bytea "
"<function>ST_AsWKB</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>boolean </type> <parameter>outasin=FALSE</parameter></paramdef> </"
"funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:5937
#, no-c-format
msgid ""
"Returns the Binary representation of the raster. If <varname>outasin</"
"varname> is TRUE, out-db bands are treated as in-db. Refer to raster/doc/"
"RFC2-WellKnownBinaryFormat located in the PostGIS source folder for details "
"of the representation."
msgstr ""
#. Tag: para
#: reference_raster.xml:5942
#, no-c-format
msgid ""
"This is useful in binary cursors to pull data out of the database without "
"converting it to a string representation."
msgstr ""
#. Tag: para
#: reference_raster.xml:5947
#, no-c-format
msgid ""
"By default, WKB output contains the external file path for out-db bands. If "
"the client does not have access to the raster file underlying an out-db "
"band, set <varname>outasin</varname> to TRUE."
msgstr ""
#. Tag: para
#: reference_raster.xml:5951
#, no-c-format
msgid "Enhanced: 2.1.0 Addition of <varname>outasin</varname>"
msgstr ""
#. Tag: para
#: reference_raster.xml:5952
#, no-c-format
msgid "Enhanced: 2.5.0 Addition of <varname>ST_AsWKB</varname>"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:5958
#, no-c-format
msgid ""
"SELECT ST_AsBinary(rast) As rastbin FROM dummy_rast WHERE rid=1;\n"
"\n"
" rastbin\n"
"---------------------------------------------------------------------------------\n"
"\\001\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000@"
"\\000\\000\\000\\000\\000\\000\\010@\\000\\000\\000\\000\\000\\000\\340?"
"\\000\\000\\000\\000\\000\\000\\340?"
"\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\012\\000\\000\\000\\012\\000\\024\\000"
msgstr ""
#. Tag: para
#: reference_raster.xml:5964
#, no-c-format
msgid ", <xref linkend=\"RT_ST_AsHexWKB\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:5973
#, no-c-format
msgid "ST_AsHexWKB"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:5974
#, no-c-format
msgid "Return the Well-Known Binary (WKB) in Hex representation of the raster."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:5979
#, no-c-format
msgid ""
"<funcdef>bytea <function>ST_AsHexWKB</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>boolean </type> <parameter>outasin=FALSE</"
"parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:5990
#, no-c-format
msgid ""
"Returns the Binary representation in Hex representation of the raster. If "
"<varname>outasin</varname> is TRUE, out-db bands are treated as in-db. Refer "
"to raster/doc/RFC2-WellKnownBinaryFormat located in the PostGIS source "
"folder for details of the representation."
msgstr ""
#. Tag: para
#: reference_raster.xml:5996
#, no-c-format
msgid ""
"By default, Hex WKB output contains the external file path for out-db bands. "
"If the client does not have access to the raster file underlying an out-db "
"band, set <varname>outasin</varname> to TRUE."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:6006
#, no-c-format
msgid ""
"SELECT ST_AsHexWKB(rast) As rastbin FROM dummy_rast WHERE rid=1;\n"
"\n"
" st_ashexwkb\n"
"----------------------------------------------------------------------------------------------------------------------------\n"
" 010000000000000000000000400000000000000840000000000000E03F000000000000E03F000000000000000000000000000000000A0000000A001400"
msgstr ""
#. Tag: para
#: reference_raster.xml:6012
#, no-c-format
msgid ", <xref linkend=\"RT_ST_AsBinary\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:6022
#, no-c-format
msgid "ST_AsGDALRaster"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:6023
#, no-c-format
msgid ""
"Return the raster tile in the designated GDAL Raster format. Raster formats "
"are one of those supported by your compiled library. Use ST_GDALDrivers() to "
"get a list of formats supported by your library."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:6028
#, no-c-format
msgid ""
"<funcdef>bytea <function>ST_AsGDALRaster</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>text </type> <parameter>format</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> "
"<parameter>srid=sameassource</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:6042
#, no-c-format
msgid ""
"Returns the raster tile in the designated format. Arguments are itemized "
"below:"
msgstr ""
#. Tag: para
#: reference_raster.xml:6045
#, no-c-format
msgid ""
"<varname>format</varname> format to output. This is dependent on the drivers "
"compiled in your libgdal library. Generally available are 'JPEG', 'GTIff', "
"'PNG'. Use <xref linkend=\"RT_ST_GDALDrivers\"/> to get a list of formats "
"supported by your library."
msgstr ""
#. Tag: para
#: reference_raster.xml:6050
#, no-c-format
msgid ""
"<varname>options</varname> text array of GDAL options. Valid options are "
"dependent on the format. Refer to <ulink url=\"http://www.gdal.org/"
"frmt_various.html\">GDAL Raster format options</ulink> for more details."
msgstr ""
#. Tag: para
#: reference_raster.xml:6055
#, no-c-format
msgid ""
"<varname>srs</varname> The proj4text or srtext (from spatial_ref_sys) to "
"embed in the image"
msgstr ""
#. Tag: title
#: reference_raster.xml:6065
#, no-c-format
msgid "JPEG Output Example, multiple tiles as single raster"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:6067
#, no-c-format
msgid ""
"<![CDATA[SELECT ST_AsGDALRaster(ST_Union(rast), 'JPEG', ARRAY['QUALITY=50']) "
"As rastjpg\n"
"FROM dummy_rast\n"
"WHERE rast && ST_MakeEnvelope(10, 10, 11, 11);]]>"
msgstr ""
#. Tag: title
#: reference_raster.xml:6072
#, no-c-format
msgid "Using PostgreSQL Large Object Support to export raster"
msgstr ""
#. Tag: para
#: reference_raster.xml:6073
#, no-c-format
msgid ""
"One way to export raster into another format is using <ulink url=\"https://"
"www.postgresql.org/docs/current/static/lo-funcs.html\">PostgreSQL large "
"object export functions</ulink>. We'lll repeat the prior example but also "
"exporting. Note for this you'll need to have super user access to db since "
"it uses server side lo functions. It will also export to path on server "
"network. If you need export locally, use the psql equivalent lo_ functions "
"which export to the local file system instead of the server file system."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:6077
#, no-c-format
msgid ""
"<![CDATA[DROP TABLE IF EXISTS tmp_out ;\n"
"\n"
"CREATE TABLE tmp_out AS\n"
"SELECT lo_from_bytea(0,\n"
" ST_AsGDALRaster(ST_Union(rast), 'JPEG', ARRAY['QUALITY=50'])\n"
" ) AS loid\n"
" FROM dummy_rast\n"
"WHERE rast && ST_MakeEnvelope(10, 10, 11, 11);\n"
"\n"
"SELECT lo_export(loid, '/tmp/dummy.jpg')\n"
" FROM tmp_out;\n"
"\n"
"SELECT lo_unlink(loid)\n"
" FROM tmp_out;]]>"
msgstr ""
#. Tag: title
#: reference_raster.xml:6081
#, no-c-format
msgid "GTIFF Output Examples"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:6083
#, no-c-format
msgid ""
"SELECT ST_AsGDALRaster(rast, 'GTiff') As rastjpg\n"
"FROM dummy_rast WHERE rid=2;\n"
"\n"
"-- Out GeoTiff with jpeg compression, 90% quality\n"
"SELECT ST_AsGDALRaster(rast, 'GTiff',\n"
" ARRAY['COMPRESS=JPEG', 'JPEG_QUALITY=90'],\n"
" 4269) As rasttiff\n"
"FROM dummy_rast WHERE rid=2;"
msgstr ""
#. Tag: para
#: reference_raster.xml:6090
#, no-c-format
msgid ", <xref linkend=\"RT_ST_GDALDrivers\"/>, <xref linkend=\"RT_ST_SRID\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:6096
#, no-c-format
msgid "ST_AsJPEG"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:6097
#, no-c-format
msgid ""
"Return the raster tile selected bands as a single Joint Photographic Exports "
"Group (JPEG) image (byte array). If no band is specified and 1 or more than "
"3 bands, then only the first band is used. If only 3 bands then all 3 bands "
"are used and mapped to RGB."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:6101
#, no-c-format
msgid ""
"<funcprototype> <funcdef>bytea <function>ST_AsJPEG</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bytea "
"<function>ST_AsJPEG</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>nband</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>quality</parameter></paramdef> </funcprototype> <funcprototype> "
"<funcdef>bytea <function>ST_AsJPEG</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bytea "
"<function>ST_AsJPEG</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef><type>integer[] </type> "
"<parameter>nbands</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>text[] </type> <parameter>options=NULL</parameter></paramdef> </"
"funcprototype> <funcprototype> <funcdef>bytea <function>ST_AsJPEG</"
"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
"parameter></paramdef> <paramdef><type>integer[] </type> <parameter>nbands</"
"parameter></paramdef> <paramdef><type>integer </type> <parameter>quality</"
"parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:6137
#, no-c-format
msgid ""
"Returns the selected bands of the raster as a single Joint Photographic "
"Exports Group Image (JPEG). Use <xref linkend=\"RT_ST_AsGDALRaster\"/> if "
"you need to export as less common raster types. If no band is specified and "
"1 or more than 3 bands, then only the first band is used. If 3 bands then "
"all 3 bands are used. There are many variants of the function with many "
"options. These are itemized below:"
msgstr ""
#. Tag: para
#: reference_raster.xml:6140 reference_raster.xml:6231
#, no-c-format
msgid "<varname>nband</varname> is for single band exports."
msgstr ""
#. Tag: para
#: reference_raster.xml:6145
#, no-c-format
msgid ""
"<varname>nbands</varname> is an array of bands to export (note that max is 3 "
"for JPEG) and the order of the bands is RGB. e.g ARRAY[3,2,1] means map band "
"3 to Red, band 2 to green and band 1 to blue"
msgstr ""
#. Tag: para
#: reference_raster.xml:6150
#, no-c-format
msgid ""
"<varname>quality</varname> number from 0 to 100. The higher the number the "
"crisper the image."
msgstr ""
#. Tag: para
#: reference_raster.xml:6155
#, no-c-format
msgid ""
"<varname>options</varname> text Array of GDAL options as defined for JPEG "
"(look at create_options for JPEG <xref linkend=\"RT_ST_GDALDrivers\"/>). For "
"JPEG valid ones are <varname>PROGRESSIVE</varname> ON or OFF and "
"<varname>QUALITY</varname> a range from 0 to 100 and default to 75. Refer to "
"<ulink url=\"http://www.gdal.org/frmt_various.html\">GDAL Raster format "
"options</ulink> for more details."
msgstr ""
#. Tag: title
#: reference_raster.xml:6172
#, no-c-format
msgid "Examples: Output"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:6174
#, no-c-format
msgid ""
"-- output first 3 bands 75% quality\n"
"SELECT ST_AsJPEG(rast) As rastjpg\n"
" FROM dummy_rast WHERE rid=2;\n"
"\n"
"-- output only first band as 90% quality\n"
"SELECT ST_AsJPEG(rast,1,90) As rastjpg\n"
" FROM dummy_rast WHERE rid=2;\n"
"\n"
"-- output first 3 bands (but make band 2 Red, band 1 green, and band 3 blue, "
"progressive and 90% quality\n"
"SELECT ST_AsJPEG(rast,ARRAY[2,1,3],ARRAY['QUALITY=90','PROGRESSIVE=ON']) As "
"rastjpg\n"
" FROM dummy_rast WHERE rid=2;"
msgstr ""
#. Tag: para
#: reference_raster.xml:6181
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_GDALDrivers\"/>, <xref linkend=\"RT_ST_AsGDALRaster"
"\"/>, <xref linkend=\"RT_ST_AsPNG\"/>, <xref linkend=\"RT_ST_AsTIFF\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:6187
#, no-c-format
msgid "ST_AsPNG"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:6188
#, no-c-format
msgid ""
"Return the raster tile selected bands as a single portable network graphics "
"(PNG) image (byte array). If 1, 3, or 4 bands in raster and no bands are "
"specified, then all bands are used. If more 2 or more than 4 bands and no "
"bands specified, then only band 1 is used. Bands are mapped to RGB or RGBA "
"space."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:6192
#, no-c-format
msgid ""
"<funcprototype> <funcdef>bytea <function>ST_AsPNG</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bytea "
"<function>ST_AsPNG</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>nband</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>compression</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>bytea <function>ST_AsPNG</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bytea "
"<function>ST_AsPNG</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef><type>integer[] </type> "
"<parameter>nbands</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>compression</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>bytea <function>ST_AsPNG</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer[] </type> <parameter>nbands</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</"
"parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:6228
#, no-c-format
msgid ""
"Returns the selected bands of the raster as a single Portable Network "
"Graphics Image (PNG). Use <xref linkend=\"RT_ST_AsGDALRaster\"/> if you need "
"to export as less common raster types. If no band is specified, then the "
"first 3 bands are exported. There are many variants of the function with "
"many options. If no <varname>srid</varname> is specified then then srid of "
"the raster is used. These are itemized below:"
msgstr ""
#. Tag: para
#: reference_raster.xml:6236
#, no-c-format
msgid ""
"<varname>nbands</varname> is an array of bands to export (note that max is 4 "
"for PNG) and the order of the bands is RGBA. e.g ARRAY[3,2,1] means map band "
"3 to Red, band 2 to green and band 1 to blue"
msgstr ""
#. Tag: para
#: reference_raster.xml:6241
#, no-c-format
msgid ""
"<varname>compression</varname> number from 1 to 9. The higher the number the "
"greater the compression."
msgstr ""
#. Tag: para
#: reference_raster.xml:6246
#, no-c-format
msgid ""
"<varname>options</varname> text Array of GDAL options as defined for PNG "
"(look at create_options for PNG of <xref linkend=\"RT_ST_GDALDrivers\"/>). "
"For PNG valid one is only ZLEVEL (amount of time to spend on compression -- "
"default 6) e.g. ARRAY['ZLEVEL=9']. WORLDFILE is not allowed since the "
"function would have to output two outputs. Refer to <ulink url=\"http://www."
"gdal.org/frmt_various.html\">GDAL Raster format options</ulink> for more "
"details."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:6265
#, no-c-format
msgid ""
"SELECT ST_AsPNG(rast) As rastpng\n"
"FROM dummy_rast WHERE rid=2;\n"
"\n"
"-- export the first 3 bands and map band 3 to Red, band 1 to Green, band 2 "
"to blue\n"
"SELECT ST_AsPNG(rast, ARRAY[3,1,2]) As rastpng\n"
"FROM dummy_rast WHERE rid=2;"
msgstr ""
#. Tag: para
#: reference_raster.xml:6272
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_ColorMap\"/>, <xref linkend=\"RT_ST_GDALDrivers\"/>, "
"<xref linkend=\"RT_Raster_Applications\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:6278
#, no-c-format
msgid "ST_AsTIFF"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:6279
#, no-c-format
msgid ""
"Return the raster selected bands as a single TIFF image (byte array). If no "
"band is specified or any of specified bands does not exist in the raster, "
"then will try to use all bands."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:6283
#, no-c-format
msgid ""
"<funcprototype> <funcdef>bytea <function>ST_AsTIFF</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=''</"
"parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>srid=sameassource</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>bytea <function>ST_AsTIFF</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>text </type> <parameter>compression=''</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> "
"<parameter>srid=sameassource</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>bytea <function>ST_AsTIFF</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer[] </type> <parameter>nbands</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>text </type> <parameter>compression=''</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> "
"<parameter>srid=sameassource</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>bytea <function>ST_AsTIFF</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer[] </type> <parameter>nbands</parameter></paramdef> "
"<paramdef><type>text[] </type> <parameter>options</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>srid=sameassource</parameter></"
"paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:6316
#, no-c-format
msgid ""
"Returns the selected bands of the raster as a single Tagged Image File "
"Format (TIFF). If no band is specified, will try to use all bands. This is a "
"wrapper around <xref linkend=\"RT_ST_AsGDALRaster\"/>. Use <xref linkend="
"\"RT_ST_AsGDALRaster\"/> if you need to export as less common raster types. "
"There are many variants of the function with many options. If no spatial "
"reference SRS text is present, the spatial reference of the raster is used. "
"These are itemized below:"
msgstr ""
#. Tag: para
#: reference_raster.xml:6319
#, no-c-format
msgid ""
"<varname>nbands</varname> is an array of bands to export (note that max is 3 "
"for PNG) and the order of the bands is RGB. e.g ARRAY[3,2,1] means map band "
"3 to Red, band 2 to green and band 1 to blue"
msgstr ""
#. Tag: para
#: reference_raster.xml:6324
#, no-c-format
msgid ""
"<varname>compression</varname> Compression expression -- JPEG90 (or some "
"other percent), LZW, JPEG, DEFLATE9."
msgstr ""
#. Tag: para
#: reference_raster.xml:6329
#, no-c-format
msgid ""
"<varname>options</varname> text Array of GDAL create options as defined for "
"GTiff (look at create_options for GTiff of <xref linkend=\"RT_ST_GDALDrivers"
"\"/>). or refer to <ulink url=\"http://www.gdal.org/frmt_various.html\">GDAL "
"Raster format options</ulink> for more details."
msgstr ""
#. Tag: para
#: reference_raster.xml:6334
#, no-c-format
msgid ""
"<varname>srid</varname> srid of spatial_ref_sys of the raster. This is used "
"to populate the georeference information"
msgstr ""
#. Tag: title
#: reference_raster.xml:6343
#, no-c-format
msgid "Examples: Use jpeg compression 90%"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:6345
#, no-c-format
msgid ""
"SELECT ST_AsTIFF(rast, 'JPEG90') As rasttiff\n"
"FROM dummy_rast WHERE rid=2;"
msgstr ""
#. Tag: para
#: reference_raster.xml:6352
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_AsGDALRaster\"/>, <xref linkend=\"RT_ST_SRID\"/>"
msgstr ""
#. Tag: title
#: reference_raster.xml:6358
#, no-c-format
msgid "Raster Processing"
msgstr ""
#. Tag: title
#: reference_raster.xml:6361
#, no-c-format
msgid "Map Algebra"
msgstr ""
#. Tag: refname
#: reference_raster.xml:6365
#, no-c-format
msgid "ST_Clip"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:6366
#, no-c-format
msgid ""
"Returns the raster clipped by the input geometry. If band number not is "
"specified, all bands are processed. If <varname>crop</varname> is not "
"specified or TRUE, the output raster is cropped."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:6370
#, no-c-format
msgid ""
"<funcprototype> <funcdef>raster <function>ST_Clip</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer[] </type> <parameter>nband</parameter></paramdef> "
"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>double precision[] </type> "
"<parameter>nodataval=NULL</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>boolean </type> <parameter>crop=TRUE</parameter></paramdef> </"
"funcprototype> <funcprototype> <funcdef>raster <function>ST_Clip</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> <paramdef><type>integer </type> <parameter>nband</parameter></"
"paramdef> <paramdef><type>geometry </type> <parameter>geom</parameter></"
"paramdef> <paramdef><type>double precision </type> <parameter>nodataval</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>crop=TRUE</parameter></paramdef> </funcprototype> <funcprototype> "
"<funcdef>raster <function>ST_Clip</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> "
"<paramdef><type>boolean </type> <parameter>crop</parameter></paramdef> </"
"funcprototype> <funcprototype> <funcdef>raster <function>ST_Clip</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> <paramdef><type>geometry </type> <parameter>geom</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>double precision[] </type> "
"<parameter>nodataval=NULL</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>boolean </type> <parameter>crop=TRUE</parameter></paramdef> </"
"funcprototype> <funcprototype> <funcdef>raster <function>ST_Clip</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> <paramdef><type>geometry </type> <parameter>geom</parameter></"
"paramdef> <paramdef><type>double precision </type> <parameter>nodataval</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>crop=TRUE</parameter></paramdef> </funcprototype> <funcprototype> "
"<funcdef>raster <function>ST_Clip</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> "
"<paramdef><type>boolean </type> <parameter>crop</parameter></paramdef> </"
"funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:6427
#, no-c-format
msgid ""
"Returns a raster that is clipped by the input geometry <varname>geom</"
"varname>. If band index is not specified, all bands are processed."
msgstr ""
#. Tag: para
#: reference_raster.xml:6431
#, no-c-format
msgid ""
"Rasters resulting from ST_Clip must have a nodata value assigned for areas "
"clipped, one for each band. If none are provided and the input raster do not "
"have a nodata value defined, nodata values of the resulting raster are set "
"to ST_MinPossibleValue(ST_BandPixelType(rast, band)). When the number of "
"nodata value in the array is smaller than the number of band, the last one "
"in the array is used for the remaining bands. If the number of nodata value "
"is greater than the number of band, the extra nodata values are ignored. All "
"variants accepting an array of nodata values also accept a single value "
"which will be assigned to each band."
msgstr ""
#. Tag: para
#: reference_raster.xml:6435
#, no-c-format
msgid ""
"If <varname>crop</varname> is not specified, true is assumed meaning the "
"output raster is cropped to the intersection of the <varname>geom</"
"varname>and <varname>rast</varname> extents. If <varname>crop</varname> is "
"set to false, the new raster gets the same extent as <varname>rast</varname>."
msgstr ""
#. Tag: para
#: reference_raster.xml:6441
#, no-c-format
msgid "Enhanced: 2.1.0 Rewritten in C"
msgstr ""
#. Tag: para
#: reference_raster.xml:6443
#, no-c-format
msgid ""
"Examples here use Massachusetts aerial data available on MassGIS site <ulink "
"url=\"http://www.mass.gov/mgis/colororthos2008.htm\">MassGIS Aerial Orthos</"
"ulink>. Coordinates are in Massachusetts State Plane Meters."
msgstr ""
#. Tag: title
#: reference_raster.xml:6449
#, no-c-format
msgid "Examples: 1 band clipping"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:6451
#, no-c-format
msgid ""
"-- Clip the first band of an aerial tile by a 20 meter buffer.\n"
"SELECT ST_Clip(rast, 1,\n"
" ST_Buffer(ST_Centroid(ST_Envelope(rast)),20)\n"
" ) from aerials.boston\n"
"WHERE rid = 4;"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:6453
#, no-c-format
msgid ""
"-- Demonstrate effect of crop on final dimensions of raster\n"
"-- Note how final extent is clipped to that of the geometry\n"
"-- if crop = true\n"
"SELECT ST_XMax(ST_Envelope(ST_Clip(rast, 1, clipper, true))) As "
"xmax_w_trim,\n"
" ST_XMax(clipper) As xmax_clipper,\n"
" ST_XMax(ST_Envelope(ST_Clip(rast, 1, clipper, false))) As "
"xmax_wo_trim,\n"
" ST_XMax(ST_Envelope(rast)) As xmax_rast_orig\n"
"FROM (SELECT rast, ST_Buffer(ST_Centroid(ST_Envelope(rast)),6) As clipper\n"
" FROM aerials.boston\n"
"WHERE rid = 6) As foo;\n"
"\n"
" xmax_w_trim | xmax_clipper | xmax_wo_trim | xmax_rast_orig\n"
"------------------+------------------+------------------+------------------\n"
" 230657.436173996 | 230657.436173996 | 230666.436173996 | 230666.436173996"
msgstr ""
#. Tag: para
#: reference_raster.xml:6467 reference_raster.xml:6510
#: reference_raster.xml:6553
#, no-c-format
msgid "Full raster tile before clipping"
msgstr ""
#. Tag: para
#: reference_raster.xml:6481 reference_raster.xml:6567
#, no-c-format
msgid "After Clipping"
msgstr ""
#. Tag: title
#: reference_raster.xml:6494
#, no-c-format
msgid ""
"Examples: 1 band clipping with no crop and add back other bands unchanged"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:6496
#, no-c-format
msgid ""
"-- Same example as before, but we need to set crop to false to be able to "
"use ST_AddBand\n"
"-- because ST_AddBand requires all bands be the same Width and height\n"
"SELECT ST_AddBand(ST_Clip(rast, 1,\n"
" ST_Buffer(ST_Centroid(ST_Envelope(rast)),20),false\n"
" ), ARRAY[ST_Band(rast,2),ST_Band(rast,3)] ) from aerials.boston\n"
"WHERE rid = 6;"
msgstr ""
#. Tag: para
#: reference_raster.xml:6524
#, no-c-format
msgid "After Clipping - surreal"
msgstr ""
#. Tag: title
#: reference_raster.xml:6537
#, no-c-format
msgid "Examples: Clip all bands"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:6539
#, no-c-format
msgid ""
"-- Clip all bands of an aerial tile by a 20 meter buffer.\n"
"-- Only difference is we don't specify a specific band to clip\n"
"-- so all bands are clipped\n"
"SELECT ST_Clip(rast,\n"
" ST_Buffer(ST_Centroid(ST_Envelope(rast)), 20),\n"
" false\n"
" ) from aerials.boston\n"
"WHERE rid = 4;"
msgstr ""
#. Tag: para
#: reference_raster.xml:6582
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Intersection\"/"
">"
msgstr ""
#. Tag: refname
#: reference_raster.xml:6592
#, no-c-format
msgid "ST_ColorMap"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:6593
#, no-c-format
msgid ""
"Creates a new raster of up to four 8BUI bands (grayscale, RGB, RGBA) from "
"the source raster and a specified band. Band 1 is assumed if not specified."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:6598
#, no-c-format
msgid ""
"<funcdef>raster <function>ST_ColorMap</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
"<parameter>colormap=grayscale</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>text </type> <parameter>method=INTERPOLATE</parameter></paramdef>"
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:6608
#, no-c-format
msgid ""
"<funcdef>raster <function>ST_ColorMap</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>text </type> <parameter>colormap</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>text </type> <parameter>method=INTERPOLATE</"
"parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:6620
#, no-c-format
msgid ""
"Apply a <varname>colormap</varname> to the band at <varname>nband</varname> "
"of <varname>rast</varname> resulting a new raster comprised of up to four "
"8BUI bands. The number of 8BUI bands in the new raster is determined by the "
"number of color components defined in <varname>colormap</varname>."
msgstr ""
#. Tag: para
#: reference_raster.xml:6624
#, no-c-format
msgid "If <varname>nband</varname> is not specified, then band 1 is assumed."
msgstr ""
#. Tag: para
#: reference_raster.xml:6626
#, no-c-format
msgid ""
"<varname>colormap</varname> can be a keyword of a pre-defined colormap or a "
"set of lines defining the value and the color components."
msgstr ""
#. Tag: para
#: reference_raster.xml:6630
#, no-c-format
msgid "Valid pre-defined <varname>colormap</varname> keyword:"
msgstr ""
#. Tag: para
#: reference_raster.xml:6636
#, no-c-format
msgid ""
"<varname>grayscale</varname> or <varname>greyscale</varname> for a one 8BUI "
"band raster of shades of gray."
msgstr ""
#. Tag: para
#: reference_raster.xml:6641
#, no-c-format
msgid ""
"<varname>pseudocolor</varname> for a four 8BUI (RGBA) band raster with "
"colors going from blue to green to red."
msgstr ""
#. Tag: para
#: reference_raster.xml:6646
#, no-c-format
msgid ""
"<varname>fire</varname> for a four 8BUI (RGBA) band raster with colors going "
"from black to red to pale yellow."
msgstr ""
#. Tag: para
#: reference_raster.xml:6651
#, no-c-format
msgid ""
"<varname>bluered</varname> for a four 8BUI (RGBA) band raster with colors "
"going from blue to pale white to red."
msgstr ""
#. Tag: para
#: reference_raster.xml:6657
#, no-c-format
msgid ""
"Users can pass a set of entries (one per line) to <varname>colormap</"
"varname> to specify custom colormaps. Each entry generally consists of five "
"values: the pixel value and corresponding Red, Green, Blue, Alpha components "
"(color components between 0 and 255). Percent values can be used instead of "
"pixel values where 0% and 100% are the minimum and maximum values found in "
"the raster band. Values can be separated with commas (','), tabs, colons "
"(':') and/or spaces. The pixel value can be set to <emphasis>nv</emphasis>, "
"<emphasis>null</emphasis> or <emphasis>nodata</emphasis> for the NODATA "
"value. An example is provided below."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:6661
#, no-c-format
msgid ""
"5 0 0 0 255\n"
"4 100:50 55 255\n"
"1 150,100 150 255\n"
"0% 255 255 255 255\n"
"nv 0 0 0 0"
msgstr ""
#. Tag: para
#: reference_raster.xml:6663
#, no-c-format
msgid ""
"The syntax of <varname>colormap</varname> is similar to that of the color-"
"relief mode of GDAL <ulink url=\"http://www.gdal.org/gdaldem."
"html#gdaldem_color_relief\">gdaldem</ulink>."
msgstr ""
#. Tag: para
#: reference_raster.xml:6667
#, no-c-format
msgid "Valid keywords for <varname>method</varname>:"
msgstr ""
#. Tag: para
#: reference_raster.xml:6673
#, no-c-format
msgid ""
"<varname>INTERPOLATE</varname> to use linear interpolation to smoothly blend "
"the colors between the given pixel values"
msgstr ""
#. Tag: para
#: reference_raster.xml:6678
#, no-c-format
msgid ""
"<varname>EXACT</varname> to strictly match only those pixels values found in "
"the colormap. Pixels whose value does not match a colormap entry will be set "
"to 0 0 0 0 (RGBA)"
msgstr ""
#. Tag: para
#: reference_raster.xml:6683
#, no-c-format
msgid ""
"<varname>NEAREST</varname> to use the colormap entry whose value is closest "
"to the pixel value"
msgstr ""
#. Tag: para
#: reference_raster.xml:6690
#, no-c-format
msgid ""
"A great reference for colormaps is <ulink url=\"http://www.colorbrewer2.org"
"\">ColorBrewer</ulink>."
msgstr ""
#. Tag: para
#: reference_raster.xml:6695
#, no-c-format
msgid ""
"The resulting bands of new raster will have no NODATA value set. Use <xref "
"linkend=\"RT_ST_SetBandNoDataValue\"/> to set a NODATA value if one is "
"needed."
msgstr ""
#. Tag: para
#: reference_raster.xml:6705
#, no-c-format
msgid "This is a junk table to play with"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:6707
#, no-c-format
msgid ""
"-- setup test raster table --\n"
"DROP TABLE IF EXISTS funky_shapes;\n"
"CREATE TABLE funky_shapes(rast raster);\n"
"\n"
"INSERT INTO funky_shapes(rast)\n"
"WITH ref AS (\n"
" SELECT ST_MakeEmptyRaster( 200, 200, 0, 200, 1, -1, 0, 0) AS rast\n"
")\n"
"SELECT\n"
" ST_Union(rast)\n"
"FROM (\n"
" SELECT\n"
" ST_AsRaster(\n"
" ST_Rotate(\n"
" ST_Buffer(\n"
" ST_GeomFromText('LINESTRING(0 2,50 "
"50,150 150,125 50)'),\n"
" i*2\n"
" ),\n"
" pi() * i * 0.125, ST_Point(50,50)\n"
" ),\n"
" ref.rast, '8BUI'::text, i * 5\n"
" ) AS rast\n"
" FROM ref\n"
" CROSS JOIN generate_series(1, 10, 3) AS i\n"
") AS shapes;"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:6709
#, no-c-format
msgid ""
"SELECT\n"
" ST_NumBands(rast) As n_orig,\n"
" ST_NumBands(ST_ColorMap(rast,1, 'greyscale')) As ngrey,\n"
" ST_NumBands(ST_ColorMap(rast,1, 'pseudocolor')) As npseudo,\n"
" ST_NumBands(ST_ColorMap(rast,1, 'fire')) As nfire,\n"
" ST_NumBands(ST_ColorMap(rast,1, 'bluered')) As nbluered,\n"
" ST_NumBands(ST_ColorMap(rast,1, '\n"
"100% 255 0 0\n"
" 80% 160 0 0\n"
" 50% 130 0 0\n"
" 30% 30 0 0\n"
" 20% 60 0 0\n"
" 0% 0 0 0\n"
" nv 255 255 255\n"
" ')) As nred\n"
"FROM funky_shapes;"
msgstr ""
#. Tag: screen
#: reference_raster.xml:6711
#, no-c-format
msgid ""
"n_orig | ngrey | npseudo | nfire | nbluered | nred\n"
"--------+-------+---------+-------+----------+------\n"
" 1 | 1 | 4 | 4 | 4 | 3"
msgstr ""
#. Tag: title
#: reference_raster.xml:6715
#, no-c-format
msgid "Examples: Compare different color map looks using ST_AsPNG"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:6716
#, no-c-format
msgid ""
"SELECT\n"
" ST_AsPNG(rast) As orig_png,\n"
" ST_AsPNG(ST_ColorMap(rast,1,'greyscale')) As grey_png,\n"
" ST_AsPNG(ST_ColorMap(rast,1, 'pseudocolor')) As pseudo_png,\n"
" ST_AsPNG(ST_ColorMap(rast,1, 'nfire')) As fire_png,\n"
" ST_AsPNG(ST_ColorMap(rast,1, 'bluered')) As bluered_png,\n"
" ST_AsPNG(ST_ColorMap(rast,1, '\n"
"100% 255 0 0\n"
" 80% 160 0 0\n"
" 50% 130 0 0\n"
" 30% 30 0 0\n"
" 20% 60 0 0\n"
" 0% 0 0 0\n"
" nv 255 255 255\n"
" ')) As red_png\n"
"FROM funky_shapes;"
msgstr ""
#. Tag: para
#: reference_raster.xml:6730
#, no-c-format
msgid "orig_png"
msgstr ""
#. Tag: para
#: reference_raster.xml:6744
#, no-c-format
msgid "grey_png"
msgstr ""
#. Tag: para
#: reference_raster.xml:6758
#, no-c-format
msgid "pseudo_png"
msgstr ""
#. Tag: para
#: reference_raster.xml:6774
#, no-c-format
msgid "fire_png"
msgstr ""
#. Tag: para
#: reference_raster.xml:6788
#, no-c-format
msgid "bluered_png"
msgstr ""
#. Tag: para
#: reference_raster.xml:6802
#, no-c-format
msgid "red_png"
msgstr ""
#. Tag: para
#: reference_raster.xml:6816
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_AsRaster\"/> <xref linkend=\"RT_ST_MapAlgebra\"/>, "
"<xref linkend=\"RT_ST_Grayscale\"/> <xref linkend=\"RT_ST_NumBands\"/>, "
"<xref linkend=\"RT_ST_Reclass\"/>, <xref linkend=\"RT_ST_SetBandNoDataValue"
"\"/>, <xref linkend=\"RT_ST_Union\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:6831
#, no-c-format
msgid "ST_Grayscale"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:6832
#, no-c-format
msgid ""
"Creates a new one-8BUI band raster from the source raster and specified "
"bands representing Red, Green and Blue"
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:6837
#, no-c-format
msgid ""
"<funcdef>(1) raster <function>ST_Grayscale</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>integer </type> <parameter>redband=1</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> "
"<parameter>greenband=2</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>integer </type> <parameter>blueband=3</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>text </type> "
"<parameter>extenttype=INTERSECTION</parameter></paramdef>"
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:6848
#, no-c-format
msgid ""
"<funcdef>(2) raster <function>ST_Grayscale</function></funcdef> "
"<paramdef><type>rastbandarg[] </type> <parameter>rastbandargset</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>text </type> "
"<parameter>extenttype=INTERSECTION</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:6859
#, no-c-format
msgid ""
"Create a raster with one 8BUI band given three input bands (from one or more "
"rasters). Any input band whose pixel type is not 8BUI will be reclassified "
"using <xref linkend=\"RT_ST_Reclass\"/>."
msgstr ""
#. Tag: para
#: reference_raster.xml:6864
#, no-c-format
msgid ""
"This function is not like <xref linkend=\"RT_ST_ColorMap\"/> with the "
"<varname>grayscale</varname> keyword as ST_ColorMap operates on only one "
"band while this function expects three bands for RGB. This function applies "
"the following equation for converting RGB to Grayscale: 0.2989 * RED + "
"0.5870 * GREEN + 0.1140 * BLUE"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:6876
#, no-c-format
msgid ""
"SET postgis.gdal_enabled_drivers = 'ENABLE_ALL';\n"
"SET postgis.enable_outdb_rasters = True;\n"
"\n"
"WITH apple AS (\n"
" SELECT ST_AddBand(\n"
" ST_MakeEmptyRaster(350, 246, 0, 0, 1, -1, 0, 0, 0),\n"
" '/tmp/apple.png'::text,\n"
" NULL::int[]\n"
" ) AS rast\n"
")\n"
"SELECT\n"
" ST_AsPNG(rast) AS original_png,\n"
" ST_AsPNG(ST_Grayscale(rast)) AS grayscale_png\n"
"FROM apple;"
msgstr ""
#. Tag: para
#: reference_raster.xml:6890
#, no-c-format
msgid "original_png"
msgstr ""
#. Tag: para
#: reference_raster.xml:6904
#, no-c-format
msgid "grayscale_png"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:6920
#, no-c-format
msgid ""
"SET postgis.gdal_enabled_drivers = 'ENABLE_ALL';\n"
"SET postgis.enable_outdb_rasters = True;\n"
"\n"
"WITH apple AS (\n"
" SELECT ST_AddBand(\n"
" ST_MakeEmptyRaster(350, 246, 0, 0, 1, -1, 0, 0, 0),\n"
" '/tmp/apple.png'::text,\n"
" NULL::int[]\n"
" ) AS rast\n"
")\n"
"SELECT\n"
" ST_AsPNG(rast) AS original_png,\n"
" ST_AsPNG(ST_Grayscale(\n"
" ARRAY[\n"
" ROW(rast, 1)::rastbandarg, -- red\n"
" ROW(rast, 2)::rastbandarg, -- green\n"
" ROW(rast, 3)::rastbandarg, -- blue\n"
" ]::rastbandarg[]\n"
" )) AS grayscale_png\n"
"FROM apple;"
msgstr ""
#. Tag: para
#: reference_raster.xml:6925
#, no-c-format
msgid ", <xref linkend=\"RT_ST_Reclass\"/>, <xref linkend=\"RT_ST_ColorMap\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:6936
#, no-c-format
msgid "ST_Intersection"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:6937
#, no-c-format
msgid ""
"<refpurpose>Returns a raster or a set of geometry-pixelvalue pairs "
"representing the shared portion of two rasters or the geometrical "
"intersection of a vectorization of the raster and a geometry.</refpurpose>"
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:6941
#, no-c-format
msgid ""
"<funcprototype> <funcdef>setof geomval <function>ST_Intersection</function></"
"funcdef> <paramdef><type>geometry </type> <parameter>geom</parameter></"
"paramdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>integer </type> "
"<parameter>band_num=1</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>setof geomval <function>ST_Intersection</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> <paramdef><type>geometry </type> <parameter>geom</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>setof geomval "
"<function>ST_Intersection</function></funcdef> <paramdef><type>raster </"
"type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>band</parameter></paramdef> <paramdef><type>geometry </type> "
"<parameter>geomin</parameter></paramdef> </funcprototype> <funcprototype> "
"<funcdef>raster <function>ST_Intersection</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast1</parameter></paramdef> "
"<paramdef><type>raster </type> <parameter>rast2</parameter></paramdef> "
"<paramdef><type>double precision[] </type> <parameter>nodataval</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>ST_Intersection</function></funcdef> <paramdef><type>raster </"
"type> <parameter>rast1</parameter></paramdef> <paramdef><type>raster </type> "
"<parameter>rast2</parameter></paramdef> <paramdef choice=\"opt\"><type>text "
"</type> <parameter>returnband</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision[] </type> <parameter>nodataval</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>ST_Intersection</function></funcdef> <paramdef><type>raster </"
"type> <parameter>rast1</parameter></paramdef> <paramdef><type>integer </"
"type> <parameter>band1</parameter></paramdef> <paramdef><type>raster </type> "
"<parameter>rast2</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>band2</parameter></paramdef> <paramdef><type>double precision[] </"
"type> <parameter>nodataval</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>raster <function>ST_Intersection</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast1</parameter></"
"paramdef> <paramdef><type>integer </type> <parameter>band1</parameter></"
"paramdef> <paramdef><type>raster </type> <parameter>rast2</parameter></"
"paramdef> <paramdef><type>integer </type> <parameter>band2</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>text </type> <parameter>returnband</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </"
"type> <parameter>nodataval</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:7001
#, no-c-format
msgid ""
"<para>Returns a raster or a set of geometry-pixelvalue pairs representing "
"the shared portion of two rasters or the geometrical intersection of a "
"vectorization of the raster and a geometry.</para>"
msgstr ""
#. Tag: para
#: reference_raster.xml:7005
#, no-c-format
msgid ""
"The first three variants, returning a setof geomval, works in vector space. "
"The raster is first vectorized (using ST_DumpAsPolygon) into a set of "
"geomval rows and those rows are then intersected with the geometry using the "
"ST_Intersection(geometry, geometry) PostGIS function. Geometries "
"intersecting only with a nodata value area of a raster returns an empty "
"geometry. They are normally excluded from the results by the proper usage of "
"ST_Intersect in the WHERE clause."
msgstr ""
#. Tag: para
#: reference_raster.xml:7009
#, no-c-format
msgid ""
"You can access the geometry and the value parts of the resulting set of "
"geomval by surrounding them with parenthesis and adding '.geom' or '.val' at "
"the end of the expression. e.g. (ST_Intersection(rast, geom)).geom"
msgstr ""
#. Tag: para
#: reference_raster.xml:7013
#, no-c-format
msgid ""
"The other variants, returning a raster, works in raster space. They are "
"using the two rasters version of ST_MapAlgebraExpr to perform the "
"intersection."
msgstr ""
#. Tag: para
#: reference_raster.xml:7017
#, no-c-format
msgid ""
"The extent of the resulting raster corresponds to the geometrical "
"intersection of the two raster extents. The resulting raster includes "
"'BAND1', 'BAND2' or 'BOTH' bands, following what is passed as the "
"<varname>returnband</varname> parameter. Nodata value areas present in any "
"band results in nodata value areas in every bands of the result. In other "
"words, any pixel intersecting with a nodata value pixel becomes a nodata "
"value pixel in the result."
msgstr ""
#. Tag: para
#: reference_raster.xml:7021
#, no-c-format
msgid ""
"Rasters resulting from ST_Intersection must have a nodata value assigned for "
"areas not intersecting. You can define or replace the nodata value for any "
"resulting band by providing a <varname>nodataval[]</varname> array of one or "
"two nodata values depending if you request 'BAND1', 'BAND2' or 'BOTH' bands. "
"The first value in the array replace the nodata value in the first band and "
"the second value replace the nodata value in the second band. If one input "
"band do not have a nodata value defined and none are provided as an array, "
"one is chosen using the ST_MinPossibleValue function. All variant accepting "
"an array of nodata value can also accept a single value which will be "
"assigned to each requested band."
msgstr ""
#. Tag: para
#: reference_raster.xml:7025
#, no-c-format
msgid ""
"In all variants, if no band number is specified band 1 is assumed. If you "
"need an intersection between a raster and geometry that returns a raster, "
"refer to <xref linkend=\"RT_ST_Clip\"/>."
msgstr ""
#. Tag: para
#: reference_raster.xml:7030
#, no-c-format
msgid ""
"To get more control on the resulting extent or on what to return when "
"encountering a nodata value, use the two rasters version of <xref linkend="
"\"RT_ST_MapAlgebraExpr2\"/>."
msgstr ""
#. Tag: para
#: reference_raster.xml:7036
#, no-c-format
msgid ""
"To compute the intersection of a raster band with a geometry in raster "
"space, use <xref linkend=\"RT_ST_Clip\"/>. ST_Clip works on multiple bands "
"rasters and does not return a band corresponding to the rasterized geometry."
msgstr ""
#. Tag: para
#: reference_raster.xml:7042
#, no-c-format
msgid ""
"ST_Intersection should be used in conjunction with ST_Intersects and an "
"index on the raster column and/or the geometry column."
msgstr ""
#. Tag: para
#: reference_raster.xml:7047
#, no-c-format
msgid ""
"Enhanced: 2.0.0 - Intersection in the raster space was introduced. In "
"earlier pre-2.0.0 versions, only intersection performed in vector space were "
"supported."
msgstr ""
#. Tag: title
#: reference_raster.xml:7053
#, no-c-format
msgid "Examples: Geometry, Raster -- resulting in geometry vals"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:7055
#, no-c-format
msgid ""
"SELECT\n"
" foo.rid,\n"
" foo.gid,\n"
" ST_AsText((foo.geomval).geom) As geomwkt,\n"
" (foo.geomval).val\n"
"FROM (\n"
" SELECT\n"
" A.rid,\n"
" g.gid,\n"
" ST_Intersection(A.rast, g.geom) As geomval\n"
" FROM dummy_rast AS A\n"
" CROSS JOIN (\n"
" VALUES\n"
" (1, ST_Point(3427928, 5793243.85) ),\n"
" (2, ST_GeomFromText('LINESTRING(3427927.85 "
"5793243.75,3427927.8 5793243.75,3427927.8 5793243.8)')),\n"
" (3, ST_GeomFromText('LINESTRING(1 2, 3 4)'))\n"
" ) As g(gid,geom)\n"
" WHERE A.rid = 2\n"
") As foo;\n"
"\n"
" rid | gid | "
"geomwkt "
"| val\n"
"-----+-----"
"+---------------------------------------------------------------------------------------------\n"
" 2 | 1 | POINT(3427928 "
"5793243.85) "
"| 249\n"
" 2 | 1 | POINT(3427928 "
"5793243.85) "
"| 253\n"
" 2 | 2 | POINT(3427927.85 "
"5793243.75) | "
"254\n"
" 2 | 2 | POINT(3427927.8 "
"5793243.8) "
"| 251\n"
" 2 | 2 | POINT(3427927.8 "
"5793243.8) "
"| 253\n"
" 2 | 2 | LINESTRING(3427927.8 5793243.75,3427927.8 5793243.8) | "
"252\n"
" 2 | 2 | MULTILINESTRING((3427927.8 5793243.8,3427927.8 5793243.75),...) "
"| 250\n"
" 2 | 3 | GEOMETRYCOLLECTION EMPTY"
msgstr ""
#. Tag: para
#: reference_raster.xml:7060
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_Intersects\"/>, <xref linkend="
"\"RT_ST_MapAlgebraExpr2\"/>, <xref linkend=\"RT_ST_Clip\"/>, <xref linkend="
"\"ST_AsText\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:7072
#, no-c-format
msgid "ST_MapAlgebra (callback function version)"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:7073
#, no-c-format
msgid ""
"Callback function version - Returns a one-band raster given one or more "
"input rasters, band indexes and one user-specified callback function."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:7079
#, no-c-format
msgid ""
"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> "
"<paramdef><type>rastbandarg[] </type> <parameter>rastbandargset</parameter></"
"paramdef> <paramdef><type>regprocedure </type> <parameter>callbackfunc</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
"<parameter>pixeltype=NULL</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>text </type> <parameter>extenttype=INTERSECTION</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>raster </type> "
"<parameter>customextent=NULL</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>integer </type> <parameter>distancex=0</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>integer </type> <parameter>distancey=0</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>text[] </type> "
"<parameter>VARIADIC userargs=NULL</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer[] </type> <parameter>nband</parameter></paramdef> "
"<paramdef><type>regprocedure </type> <parameter>callbackfunc</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>text </type> "
"<parameter>pixeltype=NULL</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>text </type> <parameter>extenttype=FIRST</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>raster </type> <parameter>customextent=NULL</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> "
"<parameter>distancex=0</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>integer </type> <parameter>distancey=0</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>text[] </type> <parameter>VARIADIC "
"userargs=NULL</parameter></paramdef> </funcprototype> <funcprototype> "
"<funcdef>raster <function>ST_MapAlgebra</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
"<paramdef><type>regprocedure </type> <parameter>callbackfunc</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>text </type> "
"<parameter>pixeltype=NULL</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>text </type> <parameter>extenttype=FIRST</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>raster </type> <parameter>customextent=NULL</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> "
"<parameter>distancex=0</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>integer </type> <parameter>distancey=0</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>text[] </type> <parameter>VARIADIC "
"userargs=NULL</parameter></paramdef> </funcprototype> <funcprototype> "
"<funcdef>raster <function>ST_MapAlgebra</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast1</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>nband1</parameter></paramdef> "
"<paramdef><type>raster </type> <parameter>rast2</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>nband2</parameter></paramdef> "
"<paramdef><type>regprocedure </type> <parameter>callbackfunc</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>text </type> "
"<parameter>pixeltype=NULL</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>text </type> <parameter>extenttype=INTERSECTION</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>raster </type> "
"<parameter>customextent=NULL</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>integer </type> <parameter>distancex=0</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>integer </type> <parameter>distancey=0</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>text[] </type> "
"<parameter>VARIADIC userargs=NULL</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> "
"<paramdef><type>nband</type> <parameter>integer</parameter></paramdef> "
"<paramdef><type>regprocedure </type> <parameter>callbackfunc</parameter></"
"paramdef> <paramdef><type>float8[] </type> <parameter>mask</parameter></"
"paramdef> <paramdef><type>boolean </type> <parameter>weighted</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>text </type> "
"<parameter>pixeltype=NULL</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>text </type> <parameter>extenttype=INTERSECTION</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>raster </type> "
"<parameter>customextent=NULL</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>text[] </type> <parameter>VARIADIC userargs=NULL</parameter></"
"paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:7151
#, no-c-format
msgid ""
"Returns a one-band raster given one or more input rasters, band indexes and "
"one user-specified callback function."
msgstr ""
#. Tag: term
#: reference_raster.xml:7157
#, no-c-format
msgid "rast,rast1,rast2, rastbandargset"
msgstr ""
#. Tag: para
#: reference_raster.xml:7159
#, no-c-format
msgid "Rasters on which the map algebra process is evaluated."
msgstr ""
#. Tag: para
#: reference_raster.xml:7160
#, no-c-format
msgid ""
"<varname>rastbandargset</varname> allows the use of a map algebra operation "
"on many rasters and/or many bands. See example Variant 1."
msgstr ""
#. Tag: term
#: reference_raster.xml:7165
#, no-c-format
msgid "nband, nband1, nband2"
msgstr ""
#. Tag: para
#: reference_raster.xml:7167
#, no-c-format
msgid ""
"Band numbers of the raster to be evaluated. nband can be an integer or "
"integer[] denoting the bands. nband1 is band on rast1 and nband2 is band on "
"rast2 for hte 2 raster/2band case."
msgstr ""
#. Tag: term
#: reference_raster.xml:7173
#, no-c-format
msgid "callbackfunc"
msgstr ""
#. Tag: para
#: reference_raster.xml:7175
#, no-c-format
msgid ""
"The <varname>callbackfunc</varname> parameter must be the name and signature "
"of an SQL or PL/pgSQL function, cast to a regprocedure. An example PL/pgSQL "
"function example is: <programlisting>\n"
"CREATE OR REPLACE FUNCTION sample_callbackfunc(value double precision[][][], "
"position integer[][], VARIADIC userargs text[])\n"
" RETURNS double precision\n"
" AS $$\n"
" BEGIN\n"
" RETURN 0;\n"
" END;\n"
" $$ LANGUAGE 'plpgsql' IMMUTABLE;\n"
" </"
"programlisting> The <varname>callbackfunc</varname> must have three "
"arguments: a 3-dimension double precision array, a 2-dimension integer array "
"and a variadic 1-dimension text array. The first argument <varname>value</"
"varname> is the set of values (as double precision) from all input rasters. "
"The three dimensions (where indexes are 1-based) are: raster #, row y, "
"column x. The second argument <varname>position</varname> is the set of "
"pixel positions from the output raster and input rasters. The outer "
"dimension (where indexes are 0-based) is the raster #. The position at outer "
"dimension index 0 is the output raster's pixel position. For each outer "
"dimension, there are two elements in the inner dimension for X and Y. The "
"third argument <varname>userargs</varname> is for passing through any user-"
"specified arguments."
msgstr ""
#. Tag: para
#: reference_raster.xml:7182
#, no-c-format
msgid ""
"Passing a <type>regprocedure</type> argument to a SQL function requires the "
"full function signature to be passed, then cast to a <type>regprocedure</"
"type> type. To pass the above example PL/pgSQL function as an argument, the "
"SQL for the argument is: <programlisting>\n"
"'sample_callbackfunc(double precision[], integer[], text[])'::regprocedure\n"
" </"
"programlisting> Note that the argument contains the name of the function, "
"the types of the function arguments, quotes around the name and argument "
"types, and a cast to a <type>regprocedure</type>."
msgstr ""
#. Tag: term
#: reference_raster.xml:7194
#, no-c-format
msgid "mask"
msgstr ""
#. Tag: para
#: reference_raster.xml:7196
#, no-c-format
msgid ""
"An n-dimensional array (matrix) of numbers used to filter what cells get "
"passed to map algebra call-back function. 0 means a neighbor cell value "
"should be treated as no-data and 1 means value should be treated as data. If "
"weight is set to true, then the values, are used as multipliers to multiple "
"the pixel value of that value in the neighborhood position."
msgstr ""
#. Tag: term
#: reference_raster.xml:7203
#, no-c-format
msgid "weighted"
msgstr ""
#. Tag: para
#: reference_raster.xml:7205
#, no-c-format
msgid ""
"boolean (true/false) to denote if a mask value should be weighted "
"(multiplied by original value) or not (only applies to proto that takes a "
"mask)."
msgstr ""
#. Tag: term
#: reference_raster.xml:7212 reference_raster.xml:7537
#: reference_raster.xml:7832 reference_raster.xml:8386
#, no-c-format
msgid "pixeltype"
msgstr ""
#. Tag: para
#: reference_raster.xml:7214
#, no-c-format
msgid ""
"If <varname>pixeltype</varname> is passed in, the one band of the new raster "
"will be of that pixeltype. If pixeltype is passed NULL or left out, the new "
"raster band will have the same pixeltype as the specified band of the first "
"raster (for extent types: INTERSECTION, UNION, FIRST, CUSTOM) or the "
"specified band of the appropriate raster (for extent types: SECOND, LAST). "
"If in doubt, always specify <varname>pixeltype</varname>."
msgstr ""
#. Tag: para
#: reference_raster.xml:7217
#, no-c-format
msgid ""
"The resulting pixel type of the output raster must be one listed in <xref "
"linkend=\"RT_ST_BandPixelType\"/> or left out or set to NULL."
msgstr ""
#. Tag: term
#: reference_raster.xml:7224 reference_raster.xml:7545
#: reference_raster.xml:7841
#, no-c-format
msgid "extenttype"
msgstr ""
#. Tag: para
#: reference_raster.xml:7226
#, no-c-format
msgid ""
"Possible values are INTERSECTION (default), UNION, FIRST (default for one "
"raster variants), SECOND, LAST, CUSTOM."
msgstr ""
#. Tag: term
#: reference_raster.xml:7233
#, no-c-format
msgid "customextent"
msgstr ""
#. Tag: para
#: reference_raster.xml:7235
#, no-c-format
msgid ""
"If <varname>extentype</varname> is CUSTOM, a raster must be provided for "
"<varname>customextent</varname>. See example 4 of Variant 1."
msgstr ""
#. Tag: term
#: reference_raster.xml:7242
#, no-c-format
msgid "distancex"
msgstr ""
#. Tag: para
#: reference_raster.xml:7244
#, no-c-format
msgid ""
"The distance in pixels from the reference cell in x direction. So width of "
"resulting matrix would be <code>2*distancex + 1</code>.If not specified only "
"the reference cell is considered (neighborhood of 0)."
msgstr ""
#. Tag: term
#: reference_raster.xml:7251
#, no-c-format
msgid "distancey"
msgstr ""
#. Tag: para
#: reference_raster.xml:7253
#, no-c-format
msgid ""
"The distance in pixels from reference cell in y direction. Height of "
"resulting matrix would be <code>2*distancey + 1</code> .If not specified "
"only the reference cell is considered (neighborhood of 0)."
msgstr ""
#. Tag: term
#: reference_raster.xml:7260
#, no-c-format
msgid "userargs"
msgstr ""
#. Tag: para
#: reference_raster.xml:7262
#, no-c-format
msgid ""
"The third argument to the <varname>callbackfunc</varname> is a "
"<type>variadic text</type> array. All trailing text arguments are passed "
"through to the specified <varname>callbackfunc</varname>, and are contained "
"in the <varname>userargs</varname> argument."
msgstr ""
#. Tag: para
#: reference_raster.xml:7270 reference_raster.xml:8161
#: reference_raster.xml:8280
#, no-c-format
msgid ""
"For more information about the VARIADIC keyword, please refer to the "
"PostgreSQL documentation and the \"SQL Functions with Variable Numbers of "
"Arguments\" section of <ulink url=\"http://www.postgresql.org/docs/current/"
"static/xfunc-sql.html\">Query Language (SQL) Functions</ulink>."
msgstr ""
#. Tag: para
#: reference_raster.xml:7276
#, no-c-format
msgid ""
"The <type>text[]</type> argument to the <varname>callbackfunc</varname> is "
"required, regardless of whether you choose to pass any arguments to the "
"callback function for processing or not."
msgstr ""
#. Tag: para
#: reference_raster.xml:7281
#, no-c-format
msgid ""
"Variant 1 accepts an array of <varname>rastbandarg</varname> allowing the "
"use of a map algebra operation on many rasters and/or many bands. See "
"example Variant 1."
msgstr ""
#. Tag: para
#: reference_raster.xml:7285
#, no-c-format
msgid ""
"Variants 2 and 3 operate upon one or more bands of one raster. See example "
"Variant 2 and 3."
msgstr ""
#. Tag: para
#: reference_raster.xml:7289
#, no-c-format
msgid ""
"Variant 4 operate upon two rasters with one band per raster. See example "
"Variant 4."
msgstr ""
#. Tag: para
#: reference_raster.xml:7293
#, no-c-format
msgid "Availability: 2.2.0: Ability to add a mask"
msgstr ""
#. Tag: para
#: reference_raster.xml:7301 reference_raster.xml:7323
#, no-c-format
msgid "One raster, one band"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:7302
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT 1 AS rid, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, "
"0, 0), 1, '16BUI', 1, 0) AS rast\n"
")\n"
"SELECT\n"
" ST_MapAlgebra(\n"
" ARRAY[ROW(rast, 1)]::rastbandarg[],\n"
" 'sample_callbackfunc(double precision[], int[], text[])'::"
"regprocedure\n"
" ) AS rast\n"
"FROM foo"
msgstr ""
#. Tag: para
#: reference_raster.xml:7304 reference_raster.xml:7320
#, no-c-format
msgid "One raster, several bands"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:7305
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT 1 AS rid, "
"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, "
"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI', 100, 0) AS rast\n"
")\n"
"SELECT\n"
" ST_MapAlgebra(\n"
" ARRAY[ROW(rast, 3), ROW(rast, 1), ROW(rast, 3), ROW(rast, "
"2)]::rastbandarg[],\n"
" 'sample_callbackfunc(double precision[], int[], text[])'::"
"regprocedure\n"
" ) AS rast\n"
"FROM foo"
msgstr ""
#. Tag: para
#: reference_raster.xml:7307
#, no-c-format
msgid "Several rasters, several bands"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:7308
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT 1 AS rid, "
"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, "
"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI', 100, 0) AS rast UNION "
"ALL\n"
" SELECT 2 AS rid, "
"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 1, 1, -1, 0, 0, "
"0), 1, '16BUI', 2, 0), 2, '8BUI', 20, 0), 3, '32BUI', 300, 0) AS rast\n"
")\n"
"SELECT\n"
" ST_MapAlgebra(\n"
" ARRAY[ROW(t1.rast, 3), ROW(t2.rast, 1), ROW(t2.rast, 3), "
"ROW(t1.rast, 2)]::rastbandarg[],\n"
" 'sample_callbackfunc(double precision[], int[], text[])'::"
"regprocedure\n"
" ) AS rast\n"
"FROM foo t1\n"
"CROSS JOIN foo t2\n"
"WHERE t1.rid = 1\n"
" AND t2.rid = 2"
msgstr ""
#. Tag: para
#: reference_raster.xml:7310
#, no-c-format
msgid ""
"Complete example of tiles of a coverage with neighborhood. This query only "
"works with PostgreSQL 9.1 or higher."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:7311
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT 0 AS rid, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, "
"0, 0), 1, '16BUI', 1, 0) AS rast UNION ALL\n"
" SELECT 1, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, 0, 1, -1, 0, 0, 0), "
"1, '16BUI', 2, 0) AS rast UNION ALL\n"
" SELECT 2, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, 0, 1, -1, 0, 0, 0), "
"1, '16BUI', 3, 0) AS rast UNION ALL\n"
"\n"
" SELECT 3, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, -2, 1, -1, 0, 0, "
"0), 1, '16BUI', 10, 0) AS rast UNION ALL\n"
" SELECT 4, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, -2, 1, -1, 0, 0, "
"0), 1, '16BUI', 20, 0) AS rast UNION ALL\n"
" SELECT 5, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, -2, 1, -1, 0, 0, "
"0), 1, '16BUI', 30, 0) AS rast UNION ALL\n"
"\n"
" SELECT 6, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, -4, 1, -1, 0, 0, "
"0), 1, '16BUI', 100, 0) AS rast UNION ALL\n"
" SELECT 7, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, -4, 1, -1, 0, 0, "
"0), 1, '16BUI', 200, 0) AS rast UNION ALL\n"
" SELECT 8, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, -4, 1, -1, 0, 0, "
"0), 1, '16BUI', 300, 0) AS rast\n"
")\n"
"SELECT\n"
" t1.rid,\n"
" ST_MapAlgebra(\n"
" ARRAY[ROW(ST_Union(t2.rast), 1)]::rastbandarg[],\n"
" 'sample_callbackfunc(double precision[], int[], text[])'::"
"regprocedure,\n"
" '32BUI',\n"
" 'CUSTOM', t1.rast,\n"
" 1, 1\n"
" ) AS rast\n"
"FROM foo t1\n"
"CROSS JOIN foo t2\n"
"WHERE t1.rid = 4\n"
" AND t2.rid BETWEEN 0 AND 8\n"
" AND ST_Intersects(t1.rast, t2.rast)\n"
"GROUP BY t1.rid, t1.rast"
msgstr ""
#. Tag: para
#: reference_raster.xml:7313
#, no-c-format
msgid ""
"Example like the prior one for tiles of a coverage with neighborhood but "
"works with PostgreSQL 9.0."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:7314
#, no-c-format
msgid ""
"WITH src AS (\n"
" SELECT 0 AS rid, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, "
"0, 0), 1, '16BUI', 1, 0) AS rast UNION ALL\n"
" SELECT 1, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, 0, 1, -1, 0, 0, 0), "
"1, '16BUI', 2, 0) AS rast UNION ALL\n"
" SELECT 2, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, 0, 1, -1, 0, 0, 0), "
"1, '16BUI', 3, 0) AS rast UNION ALL\n"
"\n"
" SELECT 3, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, -2, 1, -1, 0, 0, "
"0), 1, '16BUI', 10, 0) AS rast UNION ALL\n"
" SELECT 4, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, -2, 1, -1, 0, 0, "
"0), 1, '16BUI', 20, 0) AS rast UNION ALL\n"
" SELECT 5, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, -2, 1, -1, 0, 0, "
"0), 1, '16BUI', 30, 0) AS rast UNION ALL\n"
"\n"
" SELECT 6, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, -4, 1, -1, 0, 0, "
"0), 1, '16BUI', 100, 0) AS rast UNION ALL\n"
" SELECT 7, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, -4, 1, -1, 0, 0, "
"0), 1, '16BUI', 200, 0) AS rast UNION ALL\n"
" SELECT 8, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, -4, 1, -1, 0, 0, "
"0), 1, '16BUI', 300, 0) AS rast\n"
")\n"
"WITH foo AS (\n"
" SELECT\n"
" t1.rid,\n"
" ST_Union(t2.rast) AS rast\n"
" FROM src t1\n"
" JOIN src t2\n"
" ON ST_Intersects(t1.rast, t2.rast)\n"
" AND t2.rid BETWEEN 0 AND 8\n"
" WHERE t1.rid = 4\n"
" GROUP BY t1.rid\n"
"), bar AS (\n"
" SELECT\n"
" t1.rid,\n"
" ST_MapAlgebra(\n"
" ARRAY[ROW(t2.rast, 1)]::rastbandarg[],\n"
" 'raster_nmapalgebra_test(double precision[], int[], "
"text[])'::regprocedure,\n"
" '32BUI',\n"
" 'CUSTOM', t1.rast,\n"
" 1, 1\n"
" ) AS rast\n"
" FROM src t1\n"
" JOIN foo t2\n"
" ON t1.rid = t2.rid\n"
")\n"
"SELECT\n"
" rid,\n"
" (ST_Metadata(rast)),\n"
" (ST_BandMetadata(rast, 1)),\n"
" ST_Value(rast, 1, 1, 1)\n"
"FROM bar;"
msgstr ""
#. Tag: title
#: reference_raster.xml:7318
#, no-c-format
msgid "Examples: Variants 2 and 3"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:7321
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT 1 AS rid, "
"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, "
"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI', 100, 0) AS rast\n"
")\n"
"SELECT\n"
" ST_MapAlgebra(\n"
" rast, ARRAY[3, 1, 3, 2]::integer[],\n"
" 'sample_callbackfunc(double precision[], int[], text[])'::"
"regprocedure\n"
" ) AS rast\n"
"FROM foo"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:7324
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT 1 AS rid, "
"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, "
"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI', 100, 0) AS rast\n"
")\n"
"SELECT\n"
" ST_MapAlgebra(\n"
" rast, 2,\n"
" 'sample_callbackfunc(double precision[], int[], text[])'::"
"regprocedure\n"
" ) AS rast\n"
"FROM foo"
msgstr ""
#. Tag: title
#: reference_raster.xml:7328
#, no-c-format
msgid "Examples: Variant 4"
msgstr ""
#. Tag: para
#: reference_raster.xml:7330
#, no-c-format
msgid "Two rasters, two bands"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:7331
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT 1 AS rid, "
"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, "
"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI', 100, 0) AS rast UNION "
"ALL\n"
" SELECT 2 AS rid, "
"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 1, 1, -1, 0, 0, "
"0), 1, '16BUI', 2, 0), 2, '8BUI', 20, 0), 3, '32BUI', 300, 0) AS rast\n"
")\n"
"SELECT\n"
" ST_MapAlgebra(\n"
" t1.rast, 2,\n"
" t2.rast, 1,\n"
" 'sample_callbackfunc(double precision[], int[], text[])'::"
"regprocedure\n"
" ) AS rast\n"
"FROM foo t1\n"
"CROSS JOIN foo t2\n"
"WHERE t1.rid = 1\n"
" AND t2.rid = 2"
msgstr ""
#. Tag: title
#: reference_raster.xml:7336
#, no-c-format
msgid "Examples: Using Masks"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:7337
#, no-c-format
msgid ""
"WITH foo AS (SELECT\n"
" ST_SetBandNoDataValue(\n"
"ST_SetValue(ST_SetValue(ST_AsRaster(\n"
" ST_Buffer(\n"
" ST_GeomFromText('LINESTRING(50 50,100 90,100 50)'), "
"5,'join=bevel'),\n"
" 200,200,ARRAY['8BUI'], ARRAY[100], ARRAY[0]), "
"ST_Buffer('POINT(70 70)'::geometry,10,'quad_segs=1') ,50),\n"
" 'LINESTRING(20 20, 100 100, 150 98)'::geometry,1),0) AS rast )\n"
"SELECT 'original' AS title, rast\n"
"FROM foo\n"
"UNION ALL\n"
"SELECT 'no mask mean value' AS title, "
"ST_MapAlgebra(rast,1,'ST_mean4ma(double precision[], int[], text[])'::"
"regprocedure) AS rast\n"
"FROM foo\n"
"UNION ALL\n"
"SELECT 'mask only consider neighbors, exclude center' AS title, "
"ST_MapAlgebra(rast,1,'ST_mean4ma(double precision[], int[], text[])'::"
"regprocedure,\n"
" '{{1,1,1}, {1,0,1}, {1,1,1}}'::double precision[], false) As rast\n"
"FROM foo\n"
"\n"
"UNION ALL\n"
"SELECT 'mask weighted only consider neighbors, exclude center multi otehr "
"pixel values by 2' AS title, ST_MapAlgebra(rast,1,'ST_mean4ma(double "
"precision[], int[], text[])'::regprocedure,\n"
" '{{2,2,2}, {2,0,2}, {2,2,2}}'::double precision[], true) As rast\n"
"FROM foo;"
msgstr ""
#. Tag: para
#: reference_raster.xml:7351
#, no-c-format
msgid "original"
msgstr ""
#. Tag: para
#: reference_raster.xml:7365
#, no-c-format
msgid "no mask mean value (same as having all 1s in mask matrix)"
msgstr ""
#. Tag: para
#: reference_raster.xml:7381
#, no-c-format
msgid "mask only consider neighbors, exclude center"
msgstr ""
#. Tag: para
#: reference_raster.xml:7395
#, no-c-format
msgid ""
"mask weighted only consider neighbors, exclude center multi other pixel "
"values by 2"
msgstr ""
#. Tag: para
#: reference_raster.xml:7412
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_Union\"/>, <xref linkend=\"RT_ST_MapAlgebra_expr\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:7423
#, no-c-format
msgid "ST_MapAlgebra (expression version)"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:7424
#, no-c-format
msgid ""
"<refpurpose>Expression version - Returns a one-band raster given one or two "
"input rasters, band indexes and one or more user-specified SQL expressions.</"
"refpurpose>"
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:7430
#, no-c-format
msgid ""
"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> "
"<paramdef><type>text </type> <parameter>expression</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> "
"<paramdef><type>text </type> <parameter>expression</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast1</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>nband1</parameter></paramdef> "
"<paramdef><type>raster </type> <parameter>rast2</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>nband2</parameter></paramdef> "
"<paramdef><type>text </type> <parameter>expression</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>text </type> <parameter>pixeltype=NULL</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
"<parameter>extenttype=INTERSECTION</parameter></paramdef> <paramdef choice="
"\"opt\"><type>text </type> <parameter>nodata1expr=NULL</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>text </type> "
"<parameter>nodata2expr=NULL</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>nodatanodataval=NULL</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>ST_MapAlgebra</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast1</parameter></paramdef> <paramdef><type>raster </type> "
"<parameter>rast2</parameter></paramdef> <paramdef><type>text </type> "
"<parameter>expression</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>text </type> <parameter>pixeltype=NULL</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>text </type> "
"<parameter>extenttype=INTERSECTION</parameter></paramdef> <paramdef choice="
"\"opt\"><type>text </type> <parameter>nodata1expr=NULL</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>text </type> "
"<parameter>nodata2expr=NULL</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>nodatanodataval=NULL</"
"parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:7481
#, no-c-format
msgid ""
"<para>Expression version - Returns a one-band raster given one or two input "
"rasters, band indexes and one or more user-specified SQL expressions.</para>"
msgstr ""
#. Tag: title
#: reference_raster.xml:7489
#, no-c-format
msgid "Description: Variants 1 and 2 (one raster)"
msgstr ""
#. Tag: para
#: reference_raster.xml:7491
#, no-c-format
msgid ""
"Creates a new one band raster formed by applying a valid PostgreSQL "
"algebraic operation defined by the <varname>expression</varname> on the "
"input raster (<varname>rast</varname>). If <varname>nband</varname> is not "
"provided, band 1 is assumed. The new raster will have the same georeference, "
"width, and height as the original raster but will only have one band."
msgstr ""
#. Tag: para
#: reference_raster.xml:7495 reference_raster.xml:7697
#: reference_raster.xml:8145
#, no-c-format
msgid ""
"If <varname>pixeltype</varname> is passed in, then the new raster will have "
"a band of that pixeltype. If pixeltype is passed NULL, then the new raster "
"band will have the same pixeltype as the input <varname>rast</varname> band."
msgstr ""
#. Tag: para
#: reference_raster.xml:7500
#, no-c-format
msgid "Keywords permitted for <varname>expression</varname>"
msgstr ""
#. Tag: para
#: reference_raster.xml:7503
#, no-c-format
msgid "<varname>[rast]</varname> - Pixel value of the pixel of interest"
msgstr ""
#. Tag: para
#: reference_raster.xml:7506
#, no-c-format
msgid "<varname>[rast.val]</varname> - Pixel value of the pixel of interest"
msgstr ""
#. Tag: para
#: reference_raster.xml:7509
#, no-c-format
msgid ""
"<varname>[rast.x]</varname> - 1-based pixel column of the pixel of interest"
msgstr ""
#. Tag: para
#: reference_raster.xml:7512
#, no-c-format
msgid ""
"<varname>[rast.y]</varname> - 1-based pixel row of the pixel of interest"
msgstr ""
#. Tag: title
#: reference_raster.xml:7521
#, no-c-format
msgid "Description: Variants 3 and 4 (two raster)"
msgstr ""
#. Tag: para
#: reference_raster.xml:7523 reference_raster.xml:7817
#, no-c-format
msgid ""
"Creates a new one band raster formed by applying a valid PostgreSQL "
"algebraic operation to the two bands defined by the <varname>expression</"
"varname> on the two input raster bands <varname>rast1</varname>, "
"(<varname>rast2</varname>). If no <varname>band1</varname>, <varname>band2</"
"varname> is specified band 1 is assumed. The resulting raster will be "
"aligned (scale, skew and pixel corners) on the grid defined by the first "
"raster. The resulting raster will have the extent defined by the "
"<varname>extenttype</varname> parameter."
msgstr ""
#. Tag: term
#: reference_raster.xml:7529 reference_raster.xml:7823
#, no-c-format
msgid "expression"
msgstr ""
#. Tag: para
#: reference_raster.xml:7531 reference_raster.xml:7825
#, no-c-format
msgid ""
"A PostgreSQL algebraic expression involving the two rasters and PostgreSQL "
"defined functions/operators that will define the pixel value when pixels "
"intersect. e.g. (([rast1] + [rast2])/2.0)::integer"
msgstr ""
#. Tag: para
#: reference_raster.xml:7539 reference_raster.xml:7834
#, no-c-format
msgid ""
"The resulting pixel type of the output raster. Must be one listed in <xref "
"linkend=\"RT_ST_BandPixelType\"/>, left out or set to NULL. If not passed in "
"or set to NULL, will default to the pixeltype of the first raster."
msgstr ""
#. Tag: para
#: reference_raster.xml:7547 reference_raster.xml:7843
#, no-c-format
msgid "Controls the extent of resulting raster"
msgstr ""
#. Tag: para
#: reference_raster.xml:7553 reference_raster.xml:7846
#, no-c-format
msgid ""
"<varname>INTERSECTION</varname> - The extent of the new raster is the "
"intersection of the two rasters. This is the default."
msgstr ""
#. Tag: para
#: reference_raster.xml:7558 reference_raster.xml:7851
#, no-c-format
msgid ""
"<varname>UNION</varname> - The extent of the new raster is the union of the "
"two rasters."
msgstr ""
#. Tag: para
#: reference_raster.xml:7563 reference_raster.xml:7856
#, no-c-format
msgid ""
"<varname>FIRST</varname> - The extent of the new raster is the same as the "
"one of the first raster."
msgstr ""
#. Tag: para
#: reference_raster.xml:7568 reference_raster.xml:7861
#, no-c-format
msgid ""
"<varname>SECOND</varname> - The extent of the new raster is the same as the "
"one of the second raster."
msgstr ""
#. Tag: term
#: reference_raster.xml:7576 reference_raster.xml:7870
#, no-c-format
msgid "nodata1expr"
msgstr ""
#. Tag: para
#: reference_raster.xml:7578 reference_raster.xml:7872
#, no-c-format
msgid ""
"An algebraic expression involving only <varname>rast2</varname> or a "
"constant that defines what to return when pixels of <varname>rast1</varname> "
"are nodata values and spatially corresponding rast2 pixels have values."
msgstr ""
#. Tag: term
#: reference_raster.xml:7584 reference_raster.xml:7879
#, no-c-format
msgid "nodata2expr"
msgstr ""
#. Tag: para
#: reference_raster.xml:7586 reference_raster.xml:7881
#, no-c-format
msgid ""
"An algebraic expression involving only <varname>rast1</varname> or a "
"constant that defines what to return when pixels of <varname>rast2</varname> "
"are nodata values and spatially corresponding rast1 pixels have values."
msgstr ""
#. Tag: term
#: reference_raster.xml:7592 reference_raster.xml:7888
#, no-c-format
msgid "nodatanodataval"
msgstr ""
#. Tag: para
#: reference_raster.xml:7594 reference_raster.xml:7890
#, no-c-format
msgid ""
"A numeric constant to return when spatially corresponding rast1 and rast2 "
"pixels are both nodata values."
msgstr ""
#. Tag: para
#: reference_raster.xml:7602
#, no-c-format
msgid ""
"Keywords permitted in <varname>expression</varname>, <varname>nodata1expr</"
"varname> and <varname>nodata2expr</varname>"
msgstr ""
#. Tag: para
#: reference_raster.xml:7605
#, no-c-format
msgid ""
"<varname>[rast1]</varname> - Pixel value of the pixel of interest from "
"<varname>rast1</varname>"
msgstr ""
#. Tag: para
#: reference_raster.xml:7608
#, no-c-format
msgid ""
"<varname>[rast1.val]</varname> - Pixel value of the pixel of interest from "
"<varname>rast1</varname>"
msgstr ""
#. Tag: para
#: reference_raster.xml:7611
#, no-c-format
msgid ""
"<varname>[rast1.x]</varname> - 1-based pixel column of the pixel of interest "
"from <varname>rast1</varname>"
msgstr ""
#. Tag: para
#: reference_raster.xml:7614
#, no-c-format
msgid ""
"<varname>[rast1.y]</varname> - 1-based pixel row of the pixel of interest "
"from <varname>rast1</varname>"
msgstr ""
#. Tag: para
#: reference_raster.xml:7617
#, no-c-format
msgid ""
"<varname>[rast2]</varname> - Pixel value of the pixel of interest from "
"<varname>rast2</varname>"
msgstr ""
#. Tag: para
#: reference_raster.xml:7620
#, no-c-format
msgid ""
"<varname>[rast2.val]</varname> - Pixel value of the pixel of interest from "
"<varname>rast2</varname>"
msgstr ""
#. Tag: para
#: reference_raster.xml:7623
#, no-c-format
msgid ""
"<varname>[rast2.x]</varname> - 1-based pixel column of the pixel of interest "
"from <varname>rast2</varname>"
msgstr ""
#. Tag: para
#: reference_raster.xml:7626
#, no-c-format
msgid ""
"<varname>[rast2.y]</varname> - 1-based pixel row of the pixel of interest "
"from <varname>rast2</varname>"
msgstr ""
#. Tag: title
#: reference_raster.xml:7634
#, no-c-format
msgid "Examples: Variants 1 and 2"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:7636
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT ST_AddBand(ST_MakeEmptyRaster(10, 10, 0, 0, 1, 1, 0, 0, 0), "
"'32BF'::text, 1, -1) AS rast\n"
")\n"
"SELECT\n"
" ST_MapAlgebra(rast, 1, NULL, 'ceil([rast]*[rast.x]/[rast.y]+[rast."
"val])')\n"
"FROM foo;"
msgstr ""
#. Tag: title
#: reference_raster.xml:7640
#, no-c-format
msgid "Examples: Variant 3 and 4"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:7642
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT 1 AS rid, "
"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, "
"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI'::text, 100, 0) AS rast "
"UNION ALL\n"
" SELECT 2 AS rid, "
"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 1, 1, -1, 0, 0, "
"0), 1, '16BUI', 2, 0), 2, '8BUI', 20, 0), 3, '32BUI'::text, 300, 0) AS rast\n"
")\n"
"SELECT\n"
" ST_MapAlgebra(\n"
" t1.rast, 2,\n"
" t2.rast, 1,\n"
" '([rast2] + [rast1.val]) / 2'\n"
" ) AS rast\n"
"FROM foo t1\n"
"CROSS JOIN foo t2\n"
"WHERE t1.rid = 1\n"
" AND t2.rid = 2;"
msgstr ""
#. Tag: para
#: reference_raster.xml:7648
#, no-c-format
msgid ", <xref linkend=\"RT_ST_Union\"/>, <xref linkend=\"RT_ST_MapAlgebra\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:7658 reference_raster.xml:7772
#, no-c-format
msgid "ST_MapAlgebraExpr"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:7659
#, no-c-format
msgid ""
"1 raster band version: Creates a new one band raster formed by applying a "
"valid PostgreSQL algebraic operation on the input raster band and of "
"pixeltype provided. Band 1 is assumed if no band is specified."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:7663
#, no-c-format
msgid ""
"<funcprototype> <funcdef>raster <function>ST_MapAlgebraExpr</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> <paramdef><type>integer </type> <parameter>band</parameter></"
"paramdef> <paramdef><type>text </type> <parameter>pixeltype</parameter></"
"paramdef> <paramdef><type>text </type> <parameter>expression</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>raster <function>ST_MapAlgebraExpr</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
"paramdef> <paramdef><type>text </type> <parameter>pixeltype</parameter></"
"paramdef> <paramdef><type>text </type> <parameter>expression</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:7688 reference_raster.xml:7812
#, no-c-format
msgid ""
"is deprecated as of 2.1.0. Use <xref linkend=\"RT_ST_MapAlgebra_expr\"/> "
"instead."
msgstr ""
#. Tag: para
#: reference_raster.xml:7693
#, no-c-format
msgid ""
"Creates a new one band raster formed by applying a valid PostgreSQL "
"algebraic operation defined by the <varname>expression</varname> on the "
"input raster (<varname>rast</varname>). If no <varname>band</varname> is "
"specified band 1 is assumed. The new raster will have the same georeference, "
"width, and height as the original raster but will only have one band."
msgstr ""
#. Tag: para
#: reference_raster.xml:7701
#, no-c-format
msgid ""
"In the expression you can use the term <varname>[rast]</varname> to refer to "
"the pixel value of the original band, <varname>[rast.x]</varname> to refer "
"to the 1-based pixel column index, <varname>[rast.y]</varname> to refer to "
"the 1-based pixel row index."
msgstr ""
#. Tag: para
#: reference_raster.xml:7711 reference_raster.xml:7910
#: reference_raster.xml:8174
#, no-c-format
msgid ""
"Create a new 1 band raster from our original that is a function of modulo 2 "
"of the original raster band."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:7712
#, no-c-format
msgid ""
"ALTER TABLE dummy_rast ADD COLUMN map_rast raster;\n"
"UPDATE dummy_rast SET map_rast = ST_MapAlgebraExpr(rast,NULL,'mod([rast]::"
"numeric,2)') WHERE rid = 2;\n"
"\n"
"SELECT\n"
" ST_Value(rast,1,i,j) As origval,\n"
" ST_Value(map_rast, 1, i, j) As mapval\n"
"FROM dummy_rast\n"
"CROSS JOIN generate_series(1, 3) AS i\n"
"CROSS JOIN generate_series(1,3) AS j\n"
"WHERE rid = 2;\n"
"\n"
" origval | mapval\n"
"---------+--------\n"
" 253 | 1\n"
" 254 | 0\n"
" 253 | 1\n"
" 253 | 1\n"
" 254 | 0\n"
" 254 | 0\n"
" 250 | 0\n"
" 254 | 0\n"
" 254 | 0"
msgstr ""
#. Tag: para
#: reference_raster.xml:7714
#, no-c-format
msgid ""
"Create a new 1 band raster of pixel-type 2BUI from our original that is "
"reclassified and set the nodata value to be 0."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:7715
#, no-c-format
msgid ""
"ALTER TABLE dummy_rast ADD COLUMN map_rast2 raster;\n"
"UPDATE dummy_rast SET\n"
" map_rast2 = ST_MapAlgebraExpr(rast,'2BUI'::text,'CASE WHEN [rast] "
"BETWEEN 100 and 250 THEN 1 WHEN [rast] = 252 THEN 2 WHEN [rast] BETWEEN 253 "
"and 254 THEN 3 ELSE 0 END'::text, '0')\n"
"WHERE rid = 2;\n"
"\n"
"SELECT DISTINCT\n"
" ST_Value(rast,1,i,j) As origval,\n"
" ST_Value(map_rast2, 1, i, j) As mapval\n"
"FROM dummy_rast\n"
"CROSS JOIN generate_series(1, 5) AS i\n"
"CROSS JOIN generate_series(1,5) AS j\n"
"WHERE rid = 2;\n"
"\n"
" origval | mapval\n"
"---------+--------\n"
" 249 | 1\n"
" 250 | 1\n"
" 251 |\n"
" 252 | 2\n"
" 253 | 3\n"
" 254 | 3\n"
"\n"
"SELECT\n"
" ST_BandPixelType(map_rast2) As b1pixtyp\n"
"FROM dummy_rast\n"
"WHERE rid = 2;\n"
"\n"
" b1pixtyp\n"
"----------\n"
" 2BUI"
msgstr ""
#. Tag: para
#: reference_raster.xml:7729
#, no-c-format
msgid "original (column rast_view)"
msgstr ""
#. Tag: para
#: reference_raster.xml:7743 reference_raster.xml:8197
#, no-c-format
msgid "rast_view_ma"
msgstr ""
#. Tag: para
#: reference_raster.xml:7754 reference_raster.xml:8205
#, no-c-format
msgid ""
"Create a new 3 band raster same pixel type from our original 3 band raster "
"with first band altered by map algebra and remaining 2 bands unaltered."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:7755
#, no-c-format
msgid ""
"SELECT\n"
" ST_AddBand(\n"
" ST_AddBand(\n"
" ST_AddBand(\n"
" ST_MakeEmptyRaster(rast_view),\n"
" ST_MapAlgebraExpr(rast_view,1,"
"NULL,'tan([rast])*[rast]')\n"
" ),\n"
" ST_Band(rast_view,2)\n"
" ),\n"
" ST_Band(rast_view, 3)\n"
" ) As rast_view_ma\n"
"FROM wind\n"
"WHERE rid=167;"
msgstr ""
#. Tag: para
#: reference_raster.xml:7760
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_MapAlgebraFct\"/>, <xref linkend="
"\"RT_ST_BandPixelType\"/>, <xref linkend=\"RT_ST_GeoReference\"/>, <xref "
"linkend=\"RT_ST_Value\"/>"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:7773
#, no-c-format
msgid ""
"2 raster band version: Creates a new one band raster formed by applying a "
"valid PostgreSQL algebraic operation on the two input raster bands and of "
"pixeltype provided. band 1 of each raster is assumed if no band numbers are "
"specified. The resulting raster will be aligned (scale, skew and pixel "
"corners) on the grid defined by the first raster and have its extent defined "
"by the \"extenttype\" parameter. Values for \"extenttype\" can be: "
"INTERSECTION, UNION, FIRST, SECOND."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:7779
#, no-c-format
msgid ""
"<funcprototype> <funcdef>raster <function>ST_MapAlgebraExpr</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast1</parameter></"
"paramdef> <paramdef><type>raster </type> <parameter>rast2</parameter></"
"paramdef> <paramdef><type>text </type> <parameter>expression</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>text </type> "
"<parameter>pixeltype=same_as_rast1_band</parameter></paramdef> <paramdef "
"choice=\"opt\"><type>text </type> <parameter>extenttype=INTERSECTION</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
"<parameter>nodata1expr=NULL</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>text </type> <parameter>nodata2expr=NULL</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>nodatanodataval=NULL</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>raster <function>ST_MapAlgebraExpr</function></"
"funcdef> <paramdef><type>raster </type> <parameter>rast1</parameter></"
"paramdef> <paramdef><type>integer </type> <parameter>band1</parameter></"
"paramdef> <paramdef><type>raster </type> <parameter>rast2</parameter></"
"paramdef> <paramdef><type>integer </type> <parameter>band2</parameter></"
"paramdef> <paramdef><type>text </type> <parameter>expression</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>text </type> "
"<parameter>pixeltype=same_as_rast1_band</parameter></paramdef> <paramdef "
"choice=\"opt\"><type>text </type> <parameter>extenttype=INTERSECTION</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
"<parameter>nodata1expr=NULL</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>text </type> <parameter>nodata2expr=NULL</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>nodatanodataval=NULL</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:7897
#, no-c-format
msgid ""
"If <varname>pixeltype</varname> is passed in, then the new raster will have "
"a band of that pixeltype. If pixeltype is passed NULL or no pixel type "
"specified, then the new raster band will have the same pixeltype as the "
"input <varname>rast1</varname> band."
msgstr ""
#. Tag: para
#: reference_raster.xml:7900
#, no-c-format
msgid ""
"Use the term <varname>[rast1.val]</varname> <varname>[rast2.val]</varname> "
"to refer to the pixel value of the original raster bands and <varname>[rast1."
"x]</varname>, <varname>[rast1.y]</varname> etc. to refer to the column / row "
"positions of the pixels."
msgstr ""
#. Tag: title
#: reference_raster.xml:7908
#, no-c-format
msgid "Example: 2 Band Intersection and Union"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:7911
#, no-c-format
msgid ""
"--Create a cool set of rasters --\n"
"DROP TABLE IF EXISTS fun_shapes;\n"
"CREATE TABLE fun_shapes(rid serial PRIMARY KEY, fun_name text, rast "
"raster);\n"
"\n"
"-- Insert some cool shapes around Boston in Massachusetts state plane meters "
"--\n"
"INSERT INTO fun_shapes(fun_name, rast)\n"
"VALUES ('ref', ST_AsRaster(ST_MakeEnvelope(235229, 899970, 237229, "
"901930,26986),200,200,'8BUI',0,0));\n"
"\n"
"INSERT INTO fun_shapes(fun_name,rast)\n"
"WITH ref(rast) AS (SELECT rast FROM fun_shapes WHERE fun_name = 'ref' )\n"
"SELECT 'area' AS fun_name, ST_AsRaster(ST_Buffer(ST_SetSRID(ST_Point(236229, "
"900930),26986), 1000),\n"
" ref.rast,'8BUI', 10, 0) As rast\n"
"FROM ref\n"
"UNION ALL\n"
"SELECT 'rand bubbles',\n"
" ST_AsRaster(\n"
" (SELECT ST_Collect(geom)\n"
" FROM (SELECT ST_Buffer(ST_SetSRID(ST_Point(236229 + i*random()*100, "
"900930 + j*random()*100),26986), random()*20) As geom\n"
" FROM generate_series(1,10) As i, "
"generate_series(1,10) As j\n"
" ) As foo ), ref.rast,'8BUI', 200, 0)\n"
"FROM ref;\n"
"\n"
"--map them -\n"
"SELECT ST_MapAlgebraExpr(\n"
" area.rast, bub.rast, '[rast2.val]', '8BUI', 'INTERSECTION', "
"'[rast2.val]', '[rast1.val]') As interrast,\n"
" ST_MapAlgebraExpr(\n"
" area.rast, bub.rast, '[rast2.val]', '8BUI', 'UNION', "
"'[rast2.val]', '[rast1.val]') As unionrast\n"
"FROM\n"
" (SELECT rast FROM fun_shapes WHERE\n"
" fun_name = 'area') As area\n"
"CROSS JOIN (SELECT rast\n"
"FROM fun_shapes WHERE\n"
" fun_name = 'rand bubbles') As bub"
msgstr ""
#. Tag: para
#: reference_raster.xml:7925
#, no-c-format
msgid "mapalgebra intersection"
msgstr ""
#. Tag: para
#: reference_raster.xml:7939
#, no-c-format
msgid "map algebra union"
msgstr ""
#. Tag: title
#: reference_raster.xml:7952 reference_raster.xml:8291
#, no-c-format
msgid "Example: Overlaying rasters on a canvas as separate bands"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:7953
#, no-c-format
msgid ""
"-- we use ST_AsPNG to render the image so all single band ones look grey --\n"
"WITH mygeoms\n"
" AS ( SELECT 2 As bnum, ST_Buffer(ST_Point(1,5),10) As geom\n"
" UNION ALL\n"
" SELECT 3 AS bnum,\n"
" ST_Buffer(ST_GeomFromText('LINESTRING(50 50,150 150,150 "
"50)'), 10,'join=bevel') As geom\n"
" UNION ALL\n"
" SELECT 1 As bnum,\n"
" ST_Buffer(ST_GeomFromText('LINESTRING(60 50,150 150,150 "
"50)'), 5,'join=bevel') As geom\n"
" ),\n"
" -- define our canvas to be 1 to 1 pixel to geometry\n"
" canvas\n"
" AS (SELECT ST_AddBand(ST_MakeEmptyRaster(200,\n"
" 200,\n"
" ST_XMin(e)::integer, ST_YMax(e)::integer, 1, -1, 0, 0) , '8BUI'::"
"text,0) As rast\n"
" FROM (SELECT ST_Extent(geom) As e,\n"
" Max(ST_SRID(geom)) As srid\n"
" from mygeoms\n"
" ) As foo\n"
" ),\n"
" rbands AS (SELECT ARRAY(SELECT ST_MapAlgebraExpr(canvas.rast, "
"ST_AsRaster(m.geom, canvas.rast, '8BUI', 100),\n"
" '[rast2.val]', '8BUI', 'FIRST', '[rast2.val]', '[rast1."
"val]') As rast\n"
" FROM mygeoms AS m CROSS JOIN canvas\n"
" ORDER BY m.bnum) As rasts\n"
" )\n"
" SELECT rasts[1] As rast1 , rasts[2] As rast2, rasts[3] As rast3, "
"ST_AddBand(\n"
" ST_AddBand(rasts[1],rasts[2]), rasts[3]) As final_rast\n"
" FROM rbands;"
msgstr ""
#. Tag: para
#: reference_raster.xml:7966
#, no-c-format
msgid "rast1"
msgstr ""
#. Tag: para
#: reference_raster.xml:7979
#, no-c-format
msgid "rast2"
msgstr ""
#. Tag: para
#: reference_raster.xml:7995
#, no-c-format
msgid "rast3"
msgstr ""
#. Tag: para
#: reference_raster.xml:8009
#, no-c-format
msgid "final_rast"
msgstr ""
#. Tag: title
#: reference_raster.xml:8022
#, no-c-format
msgid ""
"Example: Overlay 2 meter boundary of select parcels over an aerial imagery"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:8024
#, no-c-format
msgid ""
"-- Create new 3 band raster composed of first 2 clipped bands, and overlay "
"of 3rd band with our geometry\n"
"-- This query took 3.6 seconds on PostGIS windows 64-bit install\n"
"WITH pr AS\n"
"-- Note the order of operation: we clip all the rasters to dimensions of our "
"region\n"
"(SELECT ST_Clip(rast,ST_Expand(geom,50) ) As rast, g.geom\n"
" FROM aerials.o_2_boston AS r INNER JOIN\n"
"-- union our parcels of interest so they form a single geometry we can later "
"intersect with\n"
" (SELECT ST_Union(ST_Transform(the_geom,26986)) AS geom\n"
" FROM landparcels WHERE pid IN('0303890000', '0303900000')) "
"As g\n"
" ON ST_Intersects(rast::geometry, ST_Expand(g.geom,50))\n"
"),\n"
"-- we then union the raster shards together\n"
"-- ST_Union on raster is kinda of slow but much faster the smaller you can "
"get the rasters\n"
"-- therefore we want to clip first and then union\n"
"prunion AS\n"
"(SELECT ST_AddBand(NULL, ARRAY[ST_Union(rast,1),ST_Union(rast,2),"
"ST_Union(rast,3)] ) As clipped,geom\n"
"FROM pr\n"
"GROUP BY geom)\n"
"-- return our final raster which is the unioned shard with\n"
"-- with the overlay of our parcel boundaries\n"
"-- add first 2 bands, then mapalgebra of 3rd band + geometry\n"
"SELECT ST_AddBand(ST_Band(clipped,ARRAY[1,2])\n"
" , ST_MapAlgebraExpr(ST_Band(clipped,3), "
"ST_AsRaster(ST_Buffer(ST_Boundary(geom),2),clipped, '8BUI',250),\n"
" '[rast2.val]', '8BUI', 'FIRST', '[rast2.val]', '[rast1.val]') ) As "
"rast\n"
"FROM prunion;"
msgstr ""
#. Tag: para
#: reference_raster.xml:8038
#, no-c-format
msgid "The blue lines are the boundaries of select parcels"
msgstr ""
#. Tag: para
#: reference_raster.xml:8052
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_AddBand\"/>, <xref linkend=\"RT_ST_AsPNG\"/>, <xref "
"linkend=\"RT_ST_AsRaster\"/>, <xref linkend=\"RT_ST_MapAlgebraFct\"/>, <xref "
"linkend=\"RT_ST_BandPixelType\"/>, <xref linkend=\"RT_ST_GeoReference\"/>, "
"<xref linkend=\"RT_ST_Value\"/>, <xref linkend=\"RT_ST_Union\"/>, <xref "
"linkend=\"ST_Union\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:8069 reference_raster.xml:8222
#, no-c-format
msgid "ST_MapAlgebraFct"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:8070
#, no-c-format
msgid ""
"1 band version - Creates a new one band raster formed by applying a valid "
"PostgreSQL function on the input raster band and of pixeltype prodived. Band "
"1 is assumed if no band is specified."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:8074
#, no-c-format
msgid ""
"<funcprototype> <funcdef>raster <function>ST_MapAlgebraFct</function></"
"funcdef> <paramdef><type>raster</type> <parameter>rast</parameter></"
"paramdef> <paramdef><type>regprocedure</type> <parameter>onerasteruserfunc</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>ST_MapAlgebraFct</function></funcdef> <paramdef><type>raster</"
"type> <parameter>rast</parameter></paramdef> <paramdef><type>regprocedure</"
"type> <parameter>onerasteruserfunc</parameter></paramdef> "
"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>ST_MapAlgebraFct</function></funcdef> <paramdef><type>raster</"
"type> <parameter>rast</parameter></paramdef> <paramdef><type>text</type> "
"<parameter>pixeltype</parameter></paramdef> <paramdef><type>regprocedure</"
"type> <parameter>onerasteruserfunc</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>raster <function>ST_MapAlgebraFct</function></"
"funcdef> <paramdef><type>raster</type> <parameter>rast</parameter></"
"paramdef> <paramdef><type>text</type> <parameter>pixeltype</parameter></"
"paramdef> <paramdef><type>regprocedure</type> <parameter>onerasteruserfunc</"
"parameter></paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC "
"args</parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>ST_MapAlgebraFct</function></funcdef> <paramdef><type>raster</"
"type> <parameter>rast</parameter></paramdef> <paramdef><type>integer</type> "
"<parameter>band</parameter></paramdef> <paramdef><type>regprocedure</type> "
"<parameter>onerasteruserfunc</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>raster <function>ST_MapAlgebraFct</function></"
"funcdef> <paramdef><type>raster</type> <parameter>rast</parameter></"
"paramdef> <paramdef><type>integer</type> <parameter>band</parameter></"
"paramdef> <paramdef><type>regprocedure</type> <parameter>onerasteruserfunc</"
"parameter></paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC "
"args</parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>ST_MapAlgebraFct</function></funcdef> <paramdef><type>raster</"
"type> <parameter>rast</parameter></paramdef> <paramdef><type>integer</type> "
"<parameter>band</parameter></paramdef> <paramdef><type>text</type> "
"<parameter>pixeltype</parameter></paramdef> <paramdef><type>regprocedure</"
"type> <parameter>onerasteruserfunc</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>raster <function>ST_MapAlgebraFct</function></"
"funcdef> <paramdef><type>raster</type> <parameter>rast</parameter></"
"paramdef> <paramdef><type>integer</type> <parameter>band</parameter></"
"paramdef> <paramdef><type>text</type> <parameter>pixeltype</parameter></"
"paramdef> <paramdef><type>regprocedure</type> <parameter>onerasteruserfunc</"
"parameter></paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC "
"args</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:8138 reference_raster.xml:8256
#: reference_raster.xml:8369
#, no-c-format
msgid ""
"is deprecated as of 2.1.0. Use <xref linkend=\"RT_ST_MapAlgebra\"/> instead."
msgstr ""
#. Tag: para
#: reference_raster.xml:8143
#, no-c-format
msgid ""
"Creates a new one band raster formed by applying a valid PostgreSQL function "
"specified by the <varname>onerasteruserfunc</varname> on the input raster "
"(<varname>rast</varname>). If no <varname>band</varname> is specified, band "
"1 is assumed. The new raster will have the same georeference, width, and "
"height as the original raster but will only have one band."
msgstr ""
#. Tag: para
#: reference_raster.xml:8147
#, no-c-format
msgid ""
"The <varname>onerasteruserfunc</varname> parameter must be the name and "
"signature of a SQL or PL/pgSQL function, cast to a regprocedure. A very "
"simple and quite useless PL/pgSQL function example is: "
"<programlisting>CREATE OR REPLACE FUNCTION simple_function(pixel FLOAT, pos "
"INTEGER[], VARIADIC args TEXT[])\n"
" RETURNS FLOAT\n"
" AS $$ BEGIN\n"
" RETURN 0.0;\n"
" END; $$\n"
" LANGUAGE 'plpgsql' IMMUTABLE;</programlisting> The "
"<varname>userfunction</varname> may accept two or three arguments: a float "
"value, an optional integer array, and a variadic text array. The first "
"argument is the value of an individual raster cell (regardless of the raster "
"datatype). The second argument is the position of the current processing "
"cell in the form '{x,y}'. The third argument indicates that all remaining "
"parameters to <xref linkend=\"RT_ST_MapAlgebraFct\"/> shall be passed "
"through to the <varname>userfunction</varname>."
msgstr ""
#. Tag: para
#: reference_raster.xml:8152
#, no-c-format
msgid ""
"Passing a <type>regprodedure</type> argument to a SQL function requires the "
"full function signature to be passed, then cast to a <type>regprocedure</"
"type> type. To pass the above example PL/pgSQL function as an argument, the "
"SQL for the argument is:<programlisting>'simple_function(float,integer[],"
"text[])'::regprocedure</programlisting>Note that the argument contains the "
"name of the function, the types of the function arguments, quotes around the "
"name and argument types, and a cast to a <type>regprocedure</type>."
msgstr ""
#. Tag: para
#: reference_raster.xml:8156
#, no-c-format
msgid ""
"The third argument to the <varname>userfunction</varname> is a "
"<type>variadic text</type> array. All trailing text arguments to any <xref "
"linkend=\"RT_ST_MapAlgebraFct\"/> call are passed through to the specified "
"<varname>userfunction</varname>, and are contained in the <varname>args</"
"varname> argument."
msgstr ""
#. Tag: para
#: reference_raster.xml:8165
#, no-c-format
msgid ""
"The <type>text[]</type> argument to the <varname>userfunction</varname> is "
"required, regardless of whether you choose to pass any arguments to your "
"user function for processing or not."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:8175
#, no-c-format
msgid ""
"ALTER TABLE dummy_rast ADD COLUMN map_rast raster;\n"
"CREATE FUNCTION mod_fct(pixel float, pos integer[], variadic args text[])\n"
"RETURNS float\n"
"AS $$\n"
"BEGIN\n"
" RETURN pixel::integer % 2;\n"
"END;\n"
"$$\n"
"LANGUAGE 'plpgsql' IMMUTABLE;\n"
"\n"
"UPDATE dummy_rast SET map_rast = ST_MapAlgebraFct(rast,NULL,'mod_fct(float,"
"integer[],text[])'::regprocedure) WHERE rid = 2;\n"
"\n"
"SELECT ST_Value(rast,1,i,j) As origval, ST_Value(map_rast, 1, i, j) As "
"mapval\n"
"FROM dummy_rast CROSS JOIN generate_series(1, 3) AS i CROSS JOIN "
"generate_series(1,3) AS j\n"
"WHERE rid = 2;\n"
"\n"
" origval | mapval\n"
"---------+--------\n"
" 253 | 1\n"
" 254 | 0\n"
" 253 | 1\n"
" 253 | 1\n"
" 254 | 0\n"
" 254 | 0\n"
" 250 | 0\n"
" 254 | 0\n"
" 254 | 0"
msgstr ""
#. Tag: para
#: reference_raster.xml:8177
#, no-c-format
msgid ""
"Create a new 1 band raster of pixel-type 2BUI from our original that is "
"reclassified and set the nodata value to a passed parameter to the user "
"function (0)."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:8178
#, no-c-format
msgid ""
"ALTER TABLE dummy_rast ADD COLUMN map_rast2 raster;\n"
"CREATE FUNCTION classify_fct(pixel float, pos integer[], variadic args "
"text[])\n"
"RETURNS float\n"
"AS\n"
"$$\n"
"DECLARE\n"
" nodata float := 0;\n"
"BEGIN\n"
" IF NOT args[1] IS NULL THEN\n"
" nodata := args[1];\n"
" END IF;\n"
" IF pixel < 251 THEN\n"
" RETURN 1;\n"
" ELSIF pixel = 252 THEN\n"
" RETURN 2;\n"
" ELSIF pixel > 252 THEN\n"
" RETURN 3;\n"
" ELSE\n"
" RETURN nodata;\n"
" END IF;\n"
"END;\n"
"$$\n"
"LANGUAGE 'plpgsql';\n"
"UPDATE dummy_rast SET map_rast2 = "
"ST_MapAlgebraFct(rast,'2BUI','classify_fct(float,integer[],text[])'::"
"regprocedure, '0') WHERE rid = 2;\n"
"\n"
"SELECT DISTINCT ST_Value(rast,1,i,j) As origval, ST_Value(map_rast2, 1, i, "
"j) As mapval\n"
"FROM dummy_rast CROSS JOIN generate_series(1, 5) AS i CROSS JOIN "
"generate_series(1,5) AS j\n"
"WHERE rid = 2;\n"
"\n"
" origval | mapval\n"
"---------+--------\n"
" 249 | 1\n"
" 250 | 1\n"
" 251 |\n"
" 252 | 2\n"
" 253 | 3\n"
" 254 | 3\n"
"\n"
"SELECT ST_BandPixelType(map_rast2) As b1pixtyp\n"
"FROM dummy_rast WHERE rid = 2;\n"
"\n"
" b1pixtyp\n"
"----------\n"
" 2BUI"
msgstr ""
#. Tag: para
#: reference_raster.xml:8189
#, no-c-format
msgid "original (column rast-view)"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:8206
#, no-c-format
msgid ""
"CREATE FUNCTION rast_plus_tan(pixel float, pos integer[], variadic args "
"text[])\n"
"RETURNS float\n"
"AS\n"
"$$\n"
"BEGIN\n"
" RETURN tan(pixel) * pixel;\n"
"END;\n"
"$$\n"
"LANGUAGE 'plpgsql';\n"
"\n"
"SELECT ST_AddBand(\n"
" ST_AddBand(\n"
" ST_AddBand(\n"
" ST_MakeEmptyRaster(rast_view),\n"
" ST_MapAlgebraFct(rast_view,1,"
"NULL,'rast_plus_tan(float,integer[],text[])'::regprocedure)\n"
" ),\n"
" ST_Band(rast_view,2)\n"
" ),\n"
" ST_Band(rast_view, 3) As rast_view_ma\n"
")\n"
"FROM wind\n"
"WHERE rid=167;"
msgstr ""
#. Tag: para
#: reference_raster.xml:8211 reference_raster.xml:8334
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_BandPixelType\"/>, <xref linkend=\"RT_ST_GeoReference"
"\"/>, <xref linkend=\"RT_ST_SetValue\"/>"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:8223
#, no-c-format
msgid ""
"2 band version - Creates a new one band raster formed by applying a valid "
"PostgreSQL function on the 2 input raster bands and of pixeltype prodived. "
"Band 1 is assumed if no band is specified. Extent type defaults to "
"INTERSECTION if not specified."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:8227
#, no-c-format
msgid ""
"<funcprototype> <funcdef>raster <function>ST_MapAlgebraFct</function></"
"funcdef> <paramdef><type>raster</type> <parameter>rast1</parameter></"
"paramdef> <paramdef><type>raster</type> <parameter>rast2</parameter></"
"paramdef> <paramdef><type>regprocedure</type> <parameter>tworastuserfunc</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>text</type> "
"<parameter>pixeltype=same_as_rast1</parameter></paramdef> <paramdef choice="
"\"opt\"><type>text</type> <parameter>extenttype=INTERSECTION</parameter></"
"paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC userargs</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>ST_MapAlgebraFct</function></funcdef> <paramdef><type>raster</"
"type> <parameter>rast1</parameter></paramdef> <paramdef><type>integer</type> "
"<parameter>band1</parameter></paramdef> <paramdef><type>raster</type> "
"<parameter>rast2</parameter></paramdef> <paramdef><type>integer</type> "
"<parameter>band2</parameter></paramdef> <paramdef><type>regprocedure</type> "
"<parameter>tworastuserfunc</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>text</type> <parameter>pixeltype=same_as_rast1</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>text</type> "
"<parameter>extenttype=INTERSECTION</parameter></paramdef> "
"<paramdef><type>text[]</type> <parameter>VARIADIC userargs</parameter></"
"paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:8261
#, no-c-format
msgid ""
"Creates a new one band raster formed by applying a valid PostgreSQL function "
"specified by the <varname>tworastuserfunc</varname> on the input raster "
"<varname>rast1</varname>, <varname>rast2</varname>. If no <varname>band1</"
"varname> or <varname>band2</varname> is specified, band 1 is assumed. The "
"new raster will have the same georeference, width, and height as the "
"original rasters but will only have one band."
msgstr ""
#. Tag: para
#: reference_raster.xml:8264
#, no-c-format
msgid ""
"If <varname>pixeltype</varname> is passed in, then the new raster will have "
"a band of that pixeltype. If pixeltype is passed NULL or left out, then the "
"new raster band will have the same pixeltype as the input <varname>rast1</"
"varname> band."
msgstr ""
#. Tag: para
#: reference_raster.xml:8267
#, no-c-format
msgid ""
"The <varname>tworastuserfunc</varname> parameter must be the name and "
"signature of an SQL or PL/pgSQL function, cast to a regprocedure. An example "
"PL/pgSQL function example is: <programlisting>CREATE OR REPLACE FUNCTION "
"simple_function_for_two_rasters(pixel1 FLOAT, pixel2 FLOAT, pos INTEGER[], "
"VARIADIC args TEXT[])\n"
" RETURNS FLOAT\n"
" AS $$ BEGIN\n"
" RETURN 0.0;\n"
" END; $$\n"
" LANGUAGE 'plpgsql' IMMUTABLE;</programlisting> The "
"<varname>tworastuserfunc</varname> may accept three or four arguments: a "
"double precision value, a double precision value, an optional integer array, "
"and a variadic text array. The first argument is the value of an individual "
"raster cell in <varname>rast1</varname> (regardless of the raster datatype). "
"The second argument is an individual raster cell value in <varname>rast2</"
"varname>. The third argument is the position of the current processing cell "
"in the form '{x,y}'. The fourth argument indicates that all remaining "
"parameters to <xref linkend=\"RT_ST_MapAlgebraFct2\"/> shall be passed "
"through to the <varname>tworastuserfunc</varname>."
msgstr ""
#. Tag: para
#: reference_raster.xml:8273
#, no-c-format
msgid ""
"Passing a <type>regprodedure</type> argument to a SQL function requires the "
"full function signature to be passed, then cast to a <type>regprocedure</"
"type> type. To pass the above example PL/pgSQL function as an argument, the "
"SQL for the argument is:<programlisting>'simple_function(double precision, "
"double precision, integer[], text[])'::regprocedure</programlisting>Note "
"that the argument contains the name of the function, the types of the "
"function arguments, quotes around the name and argument types, and a cast to "
"a <type>regprocedure</type>."
msgstr ""
#. Tag: para
#: reference_raster.xml:8276
#, no-c-format
msgid ""
"The fourth argument to the <varname>tworastuserfunc</varname> is a "
"<type>variadic text</type> array. All trailing text arguments to any <xref "
"linkend=\"RT_ST_MapAlgebraFct2\"/> call are passed through to the specified "
"<varname>tworastuserfunc</varname>, and are contained in the "
"<varname>userargs</varname> argument."
msgstr ""
#. Tag: para
#: reference_raster.xml:8284
#, no-c-format
msgid ""
"The <type>text[]</type> argument to the <varname>tworastuserfunc</varname> "
"is required, regardless of whether you choose to pass any arguments to your "
"user function for processing or not."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:8292
#, no-c-format
msgid ""
"-- define our user defined function --\n"
"CREATE OR REPLACE FUNCTION raster_mapalgebra_union(\n"
" rast1 double precision,\n"
" rast2 double precision,\n"
" pos integer[],\n"
" VARIADIC userargs text[]\n"
")\n"
" RETURNS double precision\n"
" AS $$\n"
" DECLARE\n"
" BEGIN\n"
" CASE\n"
" WHEN rast1 IS NOT NULL AND rast2 IS NOT NULL THEN\n"
" RETURN ((rast1 + rast2)/2.);\n"
" WHEN rast1 IS NULL AND rast2 IS NULL THEN\n"
" RETURN NULL;\n"
" WHEN rast1 IS NULL THEN\n"
" RETURN rast2;\n"
" ELSE\n"
" RETURN rast1;\n"
" END CASE;\n"
"\n"
" RETURN NULL;\n"
" END;\n"
" $$ LANGUAGE 'plpgsql' IMMUTABLE COST 1000;\n"
"\n"
"-- prep our test table of rasters\n"
"DROP TABLE IF EXISTS map_shapes;\n"
"CREATE TABLE map_shapes(rid serial PRIMARY KEY, rast raster, bnum integer, "
"descrip text);\n"
"INSERT INTO map_shapes(rast,bnum, descrip)\n"
"WITH mygeoms\n"
" AS ( SELECT 2 As bnum, ST_Buffer(ST_Point(90,90),30) As geom, 'circle' "
"As descrip\n"
" UNION ALL\n"
" SELECT 3 AS bnum,\n"
" ST_Buffer(ST_GeomFromText('LINESTRING(50 50,150 150,150 "
"50)'), 15) As geom, 'big road' As descrip\n"
" UNION ALL\n"
" SELECT 1 As bnum,\n"
" ST_Translate(ST_Buffer(ST_GeomFromText('LINESTRING(60 50,150 "
"150,150 50)'), 8,'join=bevel'), 10,-6) As geom, 'small road' As descrip\n"
" ),\n"
" -- define our canvas to be 1 to 1 pixel to geometry\n"
" canvas\n"
" AS ( SELECT ST_AddBand(ST_MakeEmptyRaster(250,\n"
" 250,\n"
" ST_XMin(e)::integer, ST_YMax(e)::integer, 1, -1, 0, 0 ) , '8BUI'::"
"text,0) As rast\n"
" FROM (SELECT ST_Extent(geom) As e,\n"
" Max(ST_SRID(geom)) As srid\n"
" from mygeoms\n"
" ) As foo\n"
" )\n"
"-- return our rasters aligned with our canvas\n"
"SELECT ST_AsRaster(m.geom, canvas.rast, '8BUI', 240) As rast, bnum, descrip\n"
" FROM mygeoms AS m CROSS JOIN canvas\n"
"UNION ALL\n"
"SELECT canvas.rast, 4, 'canvas'\n"
"FROM canvas;\n"
"\n"
"-- Map algebra on single band rasters and then collect with ST_AddBand\n"
"INSERT INTO map_shapes(rast,bnum,descrip)\n"
"SELECT ST_AddBand(ST_AddBand(rasts[1], rasts[2]),rasts[3]), 4, 'map bands "
"overlay fct union (canvas)'\n"
" FROM (SELECT ARRAY(SELECT ST_MapAlgebraFct(m1.rast, m2.rast,\n"
" 'raster_mapalgebra_union(double precision, double "
"precision, integer[], text[])'::regprocedure, '8BUI', 'FIRST')\n"
" FROM map_shapes As m1 CROSS JOIN map_shapes As m2\n"
" WHERE m1.descrip = 'canvas' AND m2.descrip <> 'canvas' ORDER "
"BY m2.bnum) As rasts) As foo;"
msgstr ""
#. Tag: para
#: reference_raster.xml:8305
#, no-c-format
msgid "map bands overlay (canvas) (R: small road, G: circle, B: big road)"
msgstr ""
#. Tag: title
#: reference_raster.xml:8317
#, no-c-format
msgid "User Defined function that takes extra args"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:8318
#, no-c-format
msgid ""
"CREATE OR REPLACE FUNCTION raster_mapalgebra_userargs(\n"
" rast1 double precision,\n"
" rast2 double precision,\n"
" pos integer[],\n"
" VARIADIC userargs text[]\n"
")\n"
" RETURNS double precision\n"
" AS $$\n"
" DECLARE\n"
" BEGIN\n"
" CASE\n"
" WHEN rast1 IS NOT NULL AND rast2 IS NOT NULL THEN\n"
" RETURN least(userargs[1]::integer,(rast1 + "
"rast2)/2.);\n"
" WHEN rast1 IS NULL AND rast2 IS NULL THEN\n"
" RETURN userargs[2]::integer;\n"
" WHEN rast1 IS NULL THEN\n"
" RETURN greatest(rast2,random()*userargs[3]::"
"integer)::integer;\n"
" ELSE\n"
" RETURN greatest(rast1, random()*userargs[4]::"
"integer)::integer;\n"
" END CASE;\n"
"\n"
" RETURN NULL;\n"
" END;\n"
" $$ LANGUAGE 'plpgsql' VOLATILE COST 1000;\n"
"\n"
"SELECT ST_MapAlgebraFct(m1.rast, 1, m1.rast, 3,\n"
" 'raster_mapalgebra_userargs(double precision, double "
"precision, integer[], text[])'::regprocedure,\n"
" '8BUI', 'INTERSECT', '100','200','200','0')\n"
" FROM map_shapes As m1\n"
" WHERE m1.descrip = 'map bands overlay fct union (canvas)';"
msgstr ""
#. Tag: para
#: reference_raster.xml:8326
#, no-c-format
msgid "user defined with extra args and different bands from same raster"
msgstr ""
#. Tag: refname
#: reference_raster.xml:8345
#, no-c-format
msgid "ST_MapAlgebraFctNgb"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:8346
#, no-c-format
msgid ""
"1-band version: Map Algebra Nearest Neighbor using user-defined PostgreSQL "
"function. Return a raster which values are the result of a PLPGSQL user "
"function involving a neighborhood of values from the input raster band."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:8351
#, no-c-format
msgid ""
"<funcdef>raster <function>ST_MapAlgebraFctNgb</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>band</parameter></paramdef> "
"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>ngbwidth</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>ngbheight</parameter></paramdef> "
"<paramdef><type>regprocedure </type> <parameter>onerastngbuserfunc</"
"parameter></paramdef> <paramdef><type>text </type> <parameter>nodatamode</"
"parameter></paramdef> <paramdef><type>text[] </type> <parameter>VARIADIC "
"args</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:8374
#, no-c-format
msgid ""
"(one raster version) Return a raster which values are the result of a "
"PLPGSQL user function involving a neighborhood of values from the input "
"raster band. The user function takes the neighborhood of pixel values as an "
"array of numbers, for each pixel, returns the result from the user function, "
"replacing pixel value of currently inspected pixel with the function result."
msgstr ""
#. Tag: term
#: reference_raster.xml:8378
#, no-c-format
msgid "rast"
msgstr ""
#. Tag: para
#: reference_raster.xml:8379
#, no-c-format
msgid "Raster on which the user function is evaluated."
msgstr ""
#. Tag: term
#: reference_raster.xml:8382
#, no-c-format
msgid "band"
msgstr ""
#. Tag: para
#: reference_raster.xml:8383
#, no-c-format
msgid "Band number of the raster to be evaluated. Default to 1."
msgstr ""
#. Tag: para
#: reference_raster.xml:8387
#, no-c-format
msgid ""
"The resulting pixel type of the output raster. Must be one listed in <xref "
"linkend=\"RT_ST_BandPixelType\"/> or left out or set to NULL. If not passed "
"in or set to NULL, will default to the pixeltype of the <varname>rast</"
"varname>. Results are truncated if they are larger than what is allowed for "
"the pixeltype."
msgstr ""
#. Tag: term
#: reference_raster.xml:8390
#, no-c-format
msgid "ngbwidth"
msgstr ""
#. Tag: para
#: reference_raster.xml:8391
#, no-c-format
msgid "The width of the neighborhood, in cells."
msgstr ""
#. Tag: term
#: reference_raster.xml:8394
#, no-c-format
msgid "ngbheight"
msgstr ""
#. Tag: para
#: reference_raster.xml:8395
#, no-c-format
msgid "The height of the neighborhood, in cells."
msgstr ""
#. Tag: term
#: reference_raster.xml:8398
#, no-c-format
msgid "onerastngbuserfunc"
msgstr ""
#. Tag: para
#: reference_raster.xml:8399
#, no-c-format
msgid ""
"PLPGSQL/psql user function to apply to neighborhood pixels of a single band "
"of a raster. The first element is a 2-dimensional array of numbers "
"representing the rectangular pixel neighborhood"
msgstr ""
#. Tag: term
#: reference_raster.xml:8402
#, no-c-format
msgid "nodatamode"
msgstr ""
#. Tag: para
#: reference_raster.xml:8404
#, no-c-format
msgid ""
"Defines what value to pass to the function for a neighborhood pixel that is "
"nodata or NULL"
msgstr ""
#. Tag: para
#: reference_raster.xml:8405
#, no-c-format
msgid ""
"'ignore': any NODATA values encountered in the neighborhood are ignored by "
"the computation -- this flag must be sent to the user callback function, and "
"the user function decides how to ignore it."
msgstr ""
#. Tag: para
#: reference_raster.xml:8406
#, no-c-format
msgid ""
"'NULL': any NODATA values encountered in the neighborhood will cause the "
"resulting pixel to be NULL -- the user callback function is skipped in this "
"case."
msgstr ""
#. Tag: para
#: reference_raster.xml:8407
#, no-c-format
msgid ""
"'value': any NODATA values encountered in the neighborhood are replaced by "
"the reference pixel (the one in the center of the neighborhood). Note that "
"if this value is NODATA, the behavior is the same as 'NULL' (for the "
"affected neighborhood)"
msgstr ""
#. Tag: term
#: reference_raster.xml:8411
#, no-c-format
msgid "args"
msgstr ""
#. Tag: para
#: reference_raster.xml:8412
#, no-c-format
msgid "Arguments to pass into the user function."
msgstr ""
#. Tag: para
#: reference_raster.xml:8422
#, no-c-format
msgid ""
"Examples utilize the katrina raster loaded as a single tile described in "
"<ulink url=\"http://trac.osgeo.org/gdal/wiki/frmts_wtkraster.html\">http://"
"trac.osgeo.org/gdal/wiki/frmts_wtkraster.html</ulink> and then prepared in "
"the <xref linkend=\"RT_ST_Rescale\"/> examples"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:8424
#, no-c-format
msgid ""
"--\n"
"-- A simple 'callback' user function that averages up all the values in a "
"neighborhood.\n"
"--\n"
"CREATE OR REPLACE FUNCTION rast_avg(matrix float[][], nodatamode text, "
"variadic args text[])\n"
" RETURNS float AS\n"
" $$\n"
" DECLARE\n"
" _matrix float[][];\n"
" x1 integer;\n"
" x2 integer;\n"
" y1 integer;\n"
" y2 integer;\n"
" sum float;\n"
" BEGIN\n"
" _matrix := matrix;\n"
" sum := 0;\n"
" FOR x in array_lower(matrix, 1)..array_upper(matrix, 1) LOOP\n"
" FOR y in array_lower(matrix, 2)..array_upper(matrix, 2) LOOP\n"
" sum := sum + _matrix[x][y];\n"
" END LOOP;\n"
" END LOOP;\n"
" RETURN (sum*1.0/(array_upper(matrix,1)*array_upper(matrix,2) ))::"
"integer ;\n"
" END;\n"
" $$\n"
"LANGUAGE 'plpgsql' IMMUTABLE COST 1000;\n"
"\n"
"-- now we apply to our raster averaging pixels within 2 pixels of each other "
"in X and Y direction --\n"
"SELECT ST_MapAlgebraFctNgb(rast, 1, '8BUI', 4,4,\n"
" 'rast_avg(float[][], text, text[])'::regprocedure, 'NULL', "
"NULL) As nn_with_border\n"
" FROM katrinas_rescaled\n"
" limit 1;"
msgstr ""
#. Tag: para
#: reference_raster.xml:8438
#, no-c-format
msgid "First band of our raster"
msgstr ""
#. Tag: para
#: reference_raster.xml:8452
#, no-c-format
msgid "new raster after averaging pixels withing 4x4 pixels of each other"
msgstr ""
#. Tag: para
#: reference_raster.xml:8467
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_MapAlgebraExpr\"/>, <xref linkend=\"RT_ST_Rescale\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:8477
#, no-c-format
msgid "ST_Reclass"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:8478
#, no-c-format
msgid ""
"Creates a new raster composed of band types reclassified from original. The "
"nband is the band to be changed. If nband is not specified assumed to be 1. "
"All other bands are returned unchanged. Use case: convert a 16BUI band to a "
"8BUI and so forth for simpler rendering as viewable formats."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:8482
#, no-c-format
msgid ""
"<funcprototype> <funcdef>raster <function>ST_Reclass</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
"<paramdef><type>text </type> <parameter>reclassexpr</parameter></paramdef> "
"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>raster <function>ST_Reclass</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>reclassarg[] </type> <parameter>VARIADIC reclassargset</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>ST_Reclass</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef><type>text </type> "
"<parameter>reclassexpr</parameter></paramdef> <paramdef><type>text </type> "
"<parameter>pixeltype</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:8510
#, no-c-format
msgid ""
"Creates a new raster formed by applying a valid PostgreSQL algebraic "
"operation defined by the <varname>reclassexpr</varname> on the input raster "
"(<varname>rast</varname>). If no <varname>band</varname> is specified band 1 "
"is assumed. The new raster will have the same georeference, width, and "
"height as the original raster. Bands not designated will come back "
"unchanged. Refer to <xref linkend=\"reclassarg\"/> for description of valid "
"reclassification expressions."
msgstr ""
#. Tag: para
#: reference_raster.xml:8512
#, no-c-format
msgid ""
"The bands of the new raster will have pixel type of <varname>pixeltype</"
"varname>. If <varname>reclassargset</varname> is passed in then each "
"reclassarg defines behavior of each band generated."
msgstr ""
#. Tag: para
#: reference_raster.xml:8519
#, no-c-format
msgid ""
"Create a new raster from the original where band 2 is converted from 8BUI to "
"4BUI and all values from 101-254 are set to nodata value."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:8520
#, no-c-format
msgid ""
"ALTER TABLE dummy_rast ADD COLUMN reclass_rast raster;\n"
"UPDATE dummy_rast SET reclass_rast = ST_Reclass(rast,2,'0-87:1-10, "
"88-100:11-15, 101-254:0-0', '4BUI',0) WHERE rid = 2;\n"
"\n"
"SELECT i as col, j as row, ST_Value(rast,2,i,j) As origval,\n"
" ST_Value(reclass_rast, 2, i, j) As reclassval,\n"
" ST_Value(reclass_rast, 2, i, j, false) As reclassval_include_nodata\n"
"FROM dummy_rast CROSS JOIN generate_series(1, 3) AS i CROSS JOIN "
"generate_series(1,3) AS j\n"
"WHERE rid = 2;\n"
"\n"
" col | row | origval | reclassval | reclassval_include_nodata\n"
"-----+-----+---------+------------+---------------------------\n"
" 1 | 1 | 78 | 9 | 9\n"
" 2 | 1 | 98 | 14 | 14\n"
" 3 | 1 | 122 | | 0\n"
" 1 | 2 | 96 | 14 | 14\n"
" 2 | 2 | 118 | | 0\n"
" 3 | 2 | 180 | | 0\n"
" 1 | 3 | 99 | 15 | 15\n"
" 2 | 3 | 112 | | 0\n"
" 3 | 3 | 169 | | 0"
msgstr ""
#. Tag: title
#: reference_raster.xml:8524
#, no-c-format
msgid "Example: Advanced using multiple reclassargs"
msgstr ""
#. Tag: para
#: reference_raster.xml:8526
#, no-c-format
msgid ""
"Create a new raster from the original where band 1,2,3 is converted to "
"1BB,4BUI, 4BUI respectively and reclassified. Note this uses the variadic "
"<varname>reclassarg</varname> argument which can take as input an indefinite "
"number of reclassargs (theoretically as many bands as you have)"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:8527
#, no-c-format
msgid ""
"UPDATE dummy_rast SET reclass_rast =\n"
" ST_Reclass(rast,\n"
" ROW(2,'0-87]:1-10, (87-100]:11-15, (101-254]:0-0', '4BUI',NULL)::"
"reclassarg,\n"
" ROW(1,'0-253]:1, 254:0', '1BB', NULL)::reclassarg,\n"
" ROW(3,'0-70]:1, (70-86:2, [86-150):3, [150-255:4', '4BUI', NULL)::"
"reclassarg\n"
" ) WHERE rid = 2;\n"
"\n"
"SELECT i as col, j as row,ST_Value(rast,1,i,j) As ov1, "
"ST_Value(reclass_rast, 1, i, j) As rv1,\n"
" ST_Value(rast,2,i,j) As ov2, ST_Value(reclass_rast, 2, i, j) As rv2,\n"
" ST_Value(rast,3,i,j) As ov3, ST_Value(reclass_rast, 3, i, j) As rv3\n"
"FROM dummy_rast CROSS JOIN generate_series(1, 3) AS i CROSS JOIN "
"generate_series(1,3) AS j\n"
"WHERE rid = 2;\n"
"\n"
"col | row | ov1 | rv1 | ov2 | rv2 | ov3 | rv3\n"
"----+-----+-----+-----+-----+-----+-----+-----\n"
" 1 | 1 | 253 | 1 | 78 | 9 | 70 | 1\n"
" 2 | 1 | 254 | 0 | 98 | 14 | 86 | 3\n"
" 3 | 1 | 253 | 1 | 122 | 0 | 100 | 3\n"
" 1 | 2 | 253 | 1 | 96 | 14 | 80 | 2\n"
" 2 | 2 | 254 | 0 | 118 | 0 | 108 | 3\n"
" 3 | 2 | 254 | 0 | 180 | 0 | 162 | 4\n"
" 1 | 3 | 250 | 1 | 99 | 15 | 90 | 3\n"
" 2 | 3 | 254 | 0 | 112 | 0 | 108 | 3\n"
" 3 | 3 | 254 | 0 | 169 | 0 | 175 | 4"
msgstr ""
#. Tag: title
#: reference_raster.xml:8531
#, no-c-format
msgid ""
"Example: Advanced Map a single band 32BF raster to multiple viewable bands"
msgstr ""
#. Tag: para
#: reference_raster.xml:8532
#, no-c-format
msgid ""
"Create a new 3 band (8BUI,8BUI,8BUI viewable raster) from a raster that has "
"only one 32bf band"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:8533
#, no-c-format
msgid ""
"ALTER TABLE wind ADD COLUMN rast_view raster;\n"
"UPDATE wind\n"
" set rast_view = ST_AddBand( NULL,\n"
" ARRAY[\n"
" ST_Reclass(rast, 1,'0.1-10]:1-10,9-10]:11,(11-33:0'::text, '8BUI'::"
"text,0),\n"
" ST_Reclass(rast,1, '11-33):0-255,[0-32:0,(34-1000:0'::text, '8BUI'::"
"text,0),\n"
" ST_Reclass(rast,1,'0-32]:0,(32-100:100-255'::text, '8BUI'::text,0)\n"
" ]\n"
" );"
msgstr ""
#. Tag: para
#: reference_raster.xml:8538
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_Band\"/>, <xref linkend=\"RT_ST_BandPixelType\"/>, "
"<xref linkend=\"RT_ST_MakeEmptyRaster\"/>, <xref linkend=\"reclassarg\"/>, "
"<xref linkend=\"RT_ST_Value\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:8551
#, no-c-format
msgid "ST_Union"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:8552
#, no-c-format
msgid ""
"Returns the union of a set of raster tiles into a single raster composed of "
"1 or more bands."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:8557
#, no-c-format
msgid ""
"<funcdef>raster <function>ST_Union</function></funcdef> "
"<paramdef><type>setof raster </type> <parameter>rast</parameter></paramdef>"
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:8563
#, no-c-format
msgid ""
"<funcdef>raster <function>ST_Union</function></funcdef> "
"<paramdef><type>setof raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>unionarg[] </type> <parameter>unionargset</parameter></"
"paramdef>"
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:8570
#, no-c-format
msgid ""
"<funcdef>raster <function>ST_Union</function></funcdef> "
"<paramdef><type>setof raster</type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer</type> <parameter>nband</parameter></paramdef>"
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:8577
#, no-c-format
msgid ""
"<funcdef>raster <function>ST_Union</function></funcdef> "
"<paramdef><type>setof raster</type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>text</type> <parameter>uniontype</parameter></paramdef>"
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:8584
#, no-c-format
msgid ""
"<funcdef>raster <function>ST_Union</function></funcdef> "
"<paramdef><type>setof raster</type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer</type> <parameter>nband</parameter></paramdef> "
"<paramdef><type>text</type> <parameter>uniontype</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:8596
#, no-c-format
msgid ""
"Returns the union of a set of raster tiles into a single raster composed of "
"at least one band. The resulting raster's extent is the extent of the whole "
"set. In the case of intersection, the resulting value is defined by "
"<varname>uniontype</varname> which is one of the following: LAST (default), "
"FIRST, MIN, MAX, COUNT, SUM, MEAN, RANGE."
msgstr ""
#. Tag: para
#: reference_raster.xml:8599
#, no-c-format
msgid ""
"In order for rasters to be unioned, they must all have the same alignment. "
"Use <xref linkend=\"RT_ST_SameAlignment\"/> and <xref linkend="
"\"RT_ST_NotSameAlignmentReason\"/> for more details and help. One way to fix "
"alignment issues is to use <xref linkend=\"RT_ST_Resample\"/> and use the "
"same reference raster for alignment."
msgstr ""
#. Tag: para
#: reference_raster.xml:8603
#, no-c-format
msgid "Enhanced: 2.1.0 Improved Speed (fully C-Based)."
msgstr ""
#. Tag: para
#: reference_raster.xml:8604
#, no-c-format
msgid "Availability: 2.1.0 ST_Union(rast, unionarg) variant was introduced."
msgstr ""
#. Tag: para
#: reference_raster.xml:8605
#, no-c-format
msgid ""
"Enhanced: 2.1.0 ST_Union(rast) (variant 1) unions all bands of all input "
"rasters. Prior versions of PostGIS assumed the first band."
msgstr ""
#. Tag: para
#: reference_raster.xml:8606
#, no-c-format
msgid ""
"Enhanced: 2.1.0 ST_Union(rast, uniontype) (variant 4) unions all bands of "
"all input rasters."
msgstr ""
#. Tag: title
#: reference_raster.xml:8609
#, no-c-format
msgid "Examples: Reconstitute a single band chunked raster tile"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:8610
#, no-c-format
msgid ""
"-- this creates a single band from first band of raster tiles\n"
"-- that form the original file system tile\n"
"SELECT filename, ST_Union(rast,1) As file_rast\n"
"FROM sometable WHERE filename IN('dem01', 'dem02') GROUP BY filename;"
msgstr ""
#. Tag: title
#: reference_raster.xml:8614 reference_raster.xml:8618
#, no-c-format
msgid ""
"Examples: Return a multi-band raster that is the union of tiles intersecting "
"geometry"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:8615
#, no-c-format
msgid ""
"-- this creates a multi band raster collecting all the tiles that intersect "
"a line\n"
"-- Note: In 2.0, this would have just returned a single band raster\n"
"-- , new union works on all bands by default\n"
"-- this is equivalent to unionarg: ARRAY[ROW(1, 'LAST'), ROW(2, 'LAST'), "
"ROW(3, 'LAST')]::unionarg[]\n"
"SELECT ST_Union(rast)\n"
"FROM aerials.boston\n"
"WHERE ST_Intersects(rast, ST_GeomFromText('LINESTRING(230486 887771, 230500 "
"88772)',26986) );"
msgstr ""
#. Tag: para
#: reference_raster.xml:8619
#, no-c-format
msgid ""
"Here we use the longer syntax if we only wanted a subset of bands or we want "
"to change order of bands"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:8620
#, no-c-format
msgid ""
"-- this creates a multi band raster collecting all the tiles that intersect "
"a line\n"
"SELECT ST_Union(rast,ARRAY[ROW(2, 'LAST'), ROW(1, 'LAST'), ROW(3, 'LAST')]::"
"unionarg[])\n"
"FROM aerials.boston\n"
"WHERE ST_Intersects(rast, ST_GeomFromText('LINESTRING(230486 887771, 230500 "
"88772)',26986) );"
msgstr ""
#. Tag: para
#: reference_raster.xml:8626
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_Envelope\"/>, <xref linkend=\"RT_ST_ConvexHull\"/>, "
"<xref linkend=\"RT_ST_Clip\"/>, <xref linkend=\"ST_Union\"/>"
msgstr ""
#. Tag: title
#: reference_raster.xml:8639
#, no-c-format
msgid "Built-in Map Algebra Callback Functions"
msgstr ""
#. Tag: refname
#: reference_raster.xml:8643
#, no-c-format
msgid "ST_Distinct4ma"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:8644
#, no-c-format
msgid ""
"Raster processing function that calculates the number of unique pixel values "
"in a neighborhood."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:8648
#, no-c-format
msgid ""
"<funcprototype> <funcdef>float8 <function>ST_Distinct4ma</function></"
"funcdef> <paramdef><type>float8[][]</type> <parameter>matrix</parameter></"
"paramdef> <paramdef><type>text</type> <parameter>nodatamode</parameter></"
"paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC args</"
"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>double "
"precision <function>ST_Distinct4ma</function></funcdef> "
"<paramdef><type>double precision[][][]</type> <parameter>value</parameter></"
"paramdef> <paramdef><type>integer[][] </type> <parameter>pos</parameter></"
"paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC userargs</"
"parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:8668
#, no-c-format
msgid ""
"Calculate the number of unique pixel values in a neighborhood of pixels."
msgstr ""
#. Tag: para
#: reference_raster.xml:8671 reference_raster.xml:8810
#: reference_raster.xml:8885 reference_raster.xml:8970
#: reference_raster.xml:9095 reference_raster.xml:9166
#: reference_raster.xml:9241
#, no-c-format
msgid ""
"Variant 1 is a specialized callback function for use as a callback parameter "
"to <xref linkend=\"RT_ST_MapAlgebraFctNgb\"/>."
msgstr ""
#. Tag: para
#: reference_raster.xml:8675 reference_raster.xml:8814
#: reference_raster.xml:8889 reference_raster.xml:8976
#: reference_raster.xml:9099 reference_raster.xml:9170
#: reference_raster.xml:9245
#, no-c-format
msgid ""
"Variant 2 is a specialized callback function for use as a callback parameter "
"to <xref linkend=\"RT_ST_MapAlgebra\"/>."
msgstr ""
#. Tag: para
#: reference_raster.xml:8681 reference_raster.xml:8820
#: reference_raster.xml:8895 reference_raster.xml:8982
#: reference_raster.xml:9105 reference_raster.xml:9176
#: reference_raster.xml:9251
#, no-c-format
msgid ""
"Use of Variant 1 is discouraged since <xref linkend=\"RT_ST_MapAlgebraFctNgb"
"\"/> has been deprecated as of 2.1.0."
msgstr ""
#. Tag: para
#: reference_raster.xml:8687 reference_raster.xml:8826
#: reference_raster.xml:8901 reference_raster.xml:8988
#: reference_raster.xml:9111 reference_raster.xml:9182
#: reference_raster.xml:9257
#, no-c-format
msgid "Enhanced: 2.1.0 Addition of Variant 2"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:8693
#, no-c-format
msgid ""
"SELECT\n"
" rid,\n"
" st_value(\n"
" st_mapalgebrafctngb(rast, 1, NULL, 1, 1, 'st_distinct4ma(float[][],"
"text,text[])'::regprocedure, 'ignore', NULL), 2, 2\n"
" )\n"
"FROM dummy_rast\n"
"WHERE rid = 2;\n"
" rid | st_value\n"
"-----+----------\n"
" 2 | 3\n"
"(1 row)"
msgstr ""
#. Tag: para
#: reference_raster.xml:8699 reference_raster.xml:9123
#: reference_raster.xml:9194
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Min4ma\"/>, "
"<xref linkend=\"RT_ST_Max4ma\"/>, <xref linkend=\"RT_ST_Sum4ma\"/>, <xref "
"linkend=\"RT_ST_Mean4ma\"/>, <xref linkend=\"RT_ST_Distinct4ma\"/>, <xref "
"linkend=\"RT_ST_StdDev4ma\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:8714
#, no-c-format
msgid "ST_InvDistWeight4ma"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:8715
#, no-c-format
msgid ""
"Raster processing function that interpolates a pixel's value from the "
"pixel's neighborhood."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:8720
#, no-c-format
msgid ""
"<funcdef>double precision <function>ST_InvDistWeight4ma</function></funcdef> "
"<paramdef><type>double precision[][][]</type> <parameter>value</parameter></"
"paramdef> <paramdef><type>integer[][]</type> <parameter>pos</parameter></"
"paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC userargs</"
"parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:8732
#, no-c-format
msgid ""
"Calculate an interpolated value for a pixel using the Inverse Distance "
"Weighted method."
msgstr ""
#. Tag: para
#: reference_raster.xml:8734
#, no-c-format
msgid ""
"There are two optional parameters that can be passed through "
"<varname>userargs</varname>. The first parameter is the power factor "
"(variable k in the equation below) between 0 and 1 used in the Inverse "
"Distance Weighted equation. If not specified, default value is 1. The second "
"parameter is the weight percentage applied only when the value of the pixel "
"of interest is included with the interpolated value from the neighborhood. "
"If not specified and the pixel of interest has a value, that value is "
"returned."
msgstr ""
#. Tag: para
#: reference_raster.xml:8738
#, no-c-format
msgid "The basic inverse distance weight equation is:"
msgstr ""
#. Tag: para
#: reference_raster.xml:8747
#, no-c-format
msgid "k = power factor, a real number between 0 and 1"
msgstr ""
#. Tag: para
#: reference_raster.xml:8756 reference_raster.xml:9041
#, no-c-format
msgid ""
"This function is a specialized callback function for use as a callback "
"parameter to <xref linkend=\"RT_ST_MapAlgebra\"/>."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:8764 reference_raster.xml:9049
#, no-c-format
msgid "-- NEEDS EXAMPLE"
msgstr ""
#. Tag: para
#: reference_raster.xml:8769
#, no-c-format
msgid ", <xref linkend=\"RT_ST_MinDist4ma\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:8778
#, no-c-format
msgid "ST_Max4ma"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:8779
#, no-c-format
msgid ""
"Raster processing function that calculates the maximum pixel value in a "
"neighborhood."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:8783
#, no-c-format
msgid ""
"<funcprototype> <funcdef>float8 <function>ST_Max4ma</function></funcdef> "
"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> "
"<paramdef><type>text</type> <parameter>nodatamode</parameter></paramdef> "
"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>double precision "
"<function>ST_Max4ma</function></funcdef> <paramdef><type>double precision[][]"
"[]</type> <parameter>value</parameter></paramdef> <paramdef><type>integer[]"
"[] </type> <parameter>pos</parameter></paramdef> <paramdef><type>text[]</"
"type> <parameter>VARIADIC userargs</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:8803
#, no-c-format
msgid "Calculate the maximum pixel value in a neighborhood of pixels."
msgstr ""
#. Tag: para
#: reference_raster.xml:8805 reference_raster.xml:8880
#: reference_raster.xml:8965 reference_raster.xml:9090
#: reference_raster.xml:9236
#, no-c-format
msgid ""
"For Variant 2, a substitution value for NODATA pixels can be specified by "
"passing that value to userargs."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:8832
#, no-c-format
msgid ""
"SELECT\n"
" rid,\n"
" st_value(\n"
" st_mapalgebrafctngb(rast, 1, NULL, 1, 1, 'st_max4ma(float[][],text,"
"text[])'::regprocedure, 'ignore', NULL), 2, 2\n"
" )\n"
"FROM dummy_rast\n"
"WHERE rid = 2;\n"
" rid | st_value\n"
"-----+----------\n"
" 2 | 254\n"
"(1 row)"
msgstr ""
#. Tag: para
#: reference_raster.xml:8838
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Min4ma\"/>, "
"<xref linkend=\"RT_ST_Sum4ma\"/>, <xref linkend=\"RT_ST_Mean4ma\"/>, <xref "
"linkend=\"RT_ST_Range4ma\"/>, <xref linkend=\"RT_ST_Distinct4ma\"/>, <xref "
"linkend=\"RT_ST_StdDev4ma\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:8853
#, no-c-format
msgid "ST_Mean4ma"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:8854
#, no-c-format
msgid ""
"Raster processing function that calculates the mean pixel value in a "
"neighborhood."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:8858
#, no-c-format
msgid ""
"<funcprototype> <funcdef>float8 <function>ST_Mean4ma</function></funcdef> "
"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> "
"<paramdef><type>text</type> <parameter>nodatamode</parameter></paramdef> "
"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>double precision "
"<function>ST_Mean4ma</function></funcdef> <paramdef><type>double precision[]"
"[][]</type> <parameter>value</parameter></paramdef> <paramdef><type>integer[]"
"[] </type> <parameter>pos</parameter></paramdef> <paramdef><type>text[]</"
"type> <parameter>VARIADIC userargs</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:8878
#, no-c-format
msgid "Calculate the mean pixel value in a neighborhood of pixels."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:8907
#, no-c-format
msgid ""
"SELECT\n"
" rid,\n"
" st_value(\n"
" st_mapalgebrafctngb(rast, 1, '32BF', 1, 1, 'st_mean4ma(float[][],"
"text,text[])'::regprocedure, 'ignore', NULL), 2, 2\n"
" )\n"
"FROM dummy_rast\n"
"WHERE rid = 2;\n"
" rid | st_value\n"
"-----+------------------\n"
" 2 | 253.222229003906\n"
"(1 row)"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:8914
#, no-c-format
msgid ""
"SELECT\n"
" rid,\n"
" st_value(\n"
" ST_MapAlgebra(rast, 1, 'st_mean4ma(double precision[][][], "
"integer[][], text[])'::regprocedure,'32BF', 'FIRST', NULL, 1, 1)\n"
" , 2, 2)\n"
" FROM dummy_rast\n"
" WHERE rid = 2;\n"
" rid | st_value\n"
"-----+------------------\n"
" 2 | 253.222229003906\n"
"(1 row)"
msgstr ""
#. Tag: para
#: reference_raster.xml:8920
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Min4ma\"/>, "
"<xref linkend=\"RT_ST_Max4ma\"/>, <xref linkend=\"RT_ST_Sum4ma\"/>, <xref "
"linkend=\"RT_ST_Range4ma\"/>, <xref linkend=\"RT_ST_StdDev4ma\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:8934
#, no-c-format
msgid "ST_Min4ma"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:8935
#, no-c-format
msgid ""
"Raster processing function that calculates the minimum pixel value in a "
"neighborhood."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:8941
#, no-c-format
msgid ""
"<funcprototype> <funcdef>float8 <function>ST_Min4ma</function></funcdef> "
"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> "
"<paramdef><type>text </type> <parameter>nodatamode</parameter></paramdef> "
"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>double precision "
"<function>ST_Min4ma</function></funcdef> <paramdef><type>double precision[][]"
"[]</type> <parameter>value</parameter></paramdef> <paramdef><type>integer[]"
"[] </type> <parameter>pos</parameter></paramdef> <paramdef><type>text[]</"
"type> <parameter>VARIADIC userargs</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:8961
#, no-c-format
msgid "Calculate the minimum pixel value in a neighborhood of pixels."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:8994
#, no-c-format
msgid ""
"SELECT\n"
" rid,\n"
" st_value(\n"
" st_mapalgebrafctngb(rast, 1, NULL, 1, 1, 'st_min4ma(float[][],text,"
"text[])'::regprocedure, 'ignore', NULL), 2, 2\n"
" )\n"
"FROM dummy_rast\n"
"WHERE rid = 2;\n"
" rid | st_value\n"
"-----+----------\n"
" 2 | 250\n"
"(1 row)"
msgstr ""
#. Tag: para
#: reference_raster.xml:8999
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Max4ma\"/>, "
"<xref linkend=\"RT_ST_Sum4ma\"/>, <xref linkend=\"RT_ST_Mean4ma\"/>, <xref "
"linkend=\"RT_ST_Range4ma\"/>, <xref linkend=\"RT_ST_Distinct4ma\"/>, <xref "
"linkend=\"RT_ST_StdDev4ma\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:9014
#, no-c-format
msgid "ST_MinDist4ma"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:9015
#, no-c-format
msgid ""
"Raster processing function that returns the minimum distance (in number of "
"pixels) between the pixel of interest and a neighboring pixel with value."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:9020
#, no-c-format
msgid ""
"<funcdef>double precision <function>ST_MinDist4ma</function></funcdef> "
"<paramdef><type>double precision[][][]</type> <parameter>value</parameter></"
"paramdef> <paramdef><type>integer[][]</type> <parameter>pos</parameter></"
"paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC userargs</"
"parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:9032
#, no-c-format
msgid ""
"Return the shortest distance (in number of pixels) between the pixel of "
"interest and the closest pixel with value in the neighborhood."
msgstr ""
#. Tag: para
#: reference_raster.xml:9035
#, no-c-format
msgid ""
"The intent of this function is to provide an informative data point that "
"helps infer the usefulness of the pixel of interest's interpolated value "
"from <xref linkend=\"RT_ST_InvDistWeight4ma\"/>. This function is "
"particularly useful when the neighborhood is sparsely populated."
msgstr ""
#. Tag: para
#: reference_raster.xml:9054
#, no-c-format
msgid ", <xref linkend=\"RT_ST_InvDistWeight4ma\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:9063
#, no-c-format
msgid "ST_Range4ma"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:9064
#, no-c-format
msgid ""
"Raster processing function that calculates the range of pixel values in a "
"neighborhood."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:9068
#, no-c-format
msgid ""
"<funcprototype> <funcdef>float8 <function>ST_Range4ma</function></funcdef> "
"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> "
"<paramdef><type>text</type> <parameter>nodatamode</parameter></paramdef> "
"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>double precision "
"<function>ST_Range4ma</function></funcdef> <paramdef><type>double precision[]"
"[][]</type> <parameter>value</parameter></paramdef> <paramdef><type>integer[]"
"[] </type> <parameter>pos</parameter></paramdef> <paramdef><type>text[]</"
"type> <parameter>VARIADIC userargs</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:9088
#, no-c-format
msgid "Calculate the range of pixel values in a neighborhood of pixels."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:9117
#, no-c-format
msgid ""
"SELECT\n"
" rid,\n"
" st_value(\n"
" st_mapalgebrafctngb(rast, 1, NULL, 1, 1, 'st_range4ma(float[][],text,"
"text[])'::regprocedure, 'ignore', NULL), 2, 2\n"
" )\n"
"FROM dummy_rast\n"
"WHERE rid = 2;\n"
" rid | st_value\n"
"-----+----------\n"
" 2 | 4\n"
"(1 row)"
msgstr ""
#. Tag: refname
#: reference_raster.xml:9138
#, no-c-format
msgid "ST_StdDev4ma"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:9139
#, no-c-format
msgid ""
"Raster processing function that calculates the standard deviation of pixel "
"values in a neighborhood."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:9143
#, no-c-format
msgid ""
"<funcprototype> <funcdef>float8 <function>ST_StdDev4ma</function></funcdef> "
"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> "
"<paramdef><type>text </type> <parameter>nodatamode</parameter></paramdef> "
"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>double precision "
"<function>ST_StdDev4ma</function></funcdef> <paramdef><type>double "
"precision[][][]</type> <parameter>value</parameter></paramdef> "
"<paramdef><type>integer[][] </type> <parameter>pos</parameter></paramdef> "
"<paramdef><type>text[]</type> <parameter>VARIADIC userargs</parameter></"
"paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:9163
#, no-c-format
msgid ""
"Calculate the standard deviation of pixel values in a neighborhood of pixels."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:9188
#, no-c-format
msgid ""
"SELECT\n"
" rid,\n"
" st_value(\n"
" st_mapalgebrafctngb(rast, 1, '32BF', 1, 1, 'st_stddev4ma(float[][],"
"text,text[])'::regprocedure, 'ignore', NULL), 2, 2\n"
" )\n"
"FROM dummy_rast\n"
"WHERE rid = 2;\n"
" rid | st_value\n"
"-----+------------------\n"
" 2 | 1.30170822143555\n"
"(1 row)"
msgstr ""
#. Tag: refname
#: reference_raster.xml:9209
#, no-c-format
msgid "ST_Sum4ma"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:9210
#, no-c-format
msgid ""
"Raster processing function that calculates the sum of all pixel values in a "
"neighborhood."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:9214
#, no-c-format
msgid ""
"<funcprototype> <funcdef>float8 <function>ST_Sum4ma</function></funcdef> "
"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> "
"<paramdef><type>text</type> <parameter>nodatamode</parameter></paramdef> "
"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>double precision "
"<function>ST_Sum4ma</function></funcdef> <paramdef><type>double precision[][]"
"[]</type> <parameter>value</parameter></paramdef> <paramdef><type>integer[]"
"[] </type> <parameter>pos</parameter></paramdef> <paramdef><type>text[]</"
"type> <parameter>VARIADIC userargs</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:9234
#, no-c-format
msgid "Calculate the sum of all pixel values in a neighborhood of pixels."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:9263
#, no-c-format
msgid ""
"SELECT\n"
" rid,\n"
" st_value(\n"
" st_mapalgebrafctngb(rast, 1, '32BF', 1, 1, 'st_sum4ma(float[][],text,"
"text[])'::regprocedure, 'ignore', NULL), 2, 2\n"
" )\n"
"FROM dummy_rast\n"
"WHERE rid = 2;\n"
" rid | st_value\n"
"-----+----------\n"
" 2 | 2279\n"
"(1 row)"
msgstr ""
#. Tag: para
#: reference_raster.xml:9269
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Min4ma\"/>, "
"<xref linkend=\"RT_ST_Max4ma\"/>, <xref linkend=\"RT_ST_Mean4ma\"/>, <xref "
"linkend=\"RT_ST_Range4ma\"/>, <xref linkend=\"RT_ST_Distinct4ma\"/>, <xref "
"linkend=\"RT_ST_StdDev4ma\"/>"
msgstr ""
#. Tag: title
#: reference_raster.xml:9285
#, no-c-format
msgid "DEM (Elevation)"
msgstr ""
#. Tag: refname
#: reference_raster.xml:9289
#, no-c-format
msgid "ST_Aspect"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:9290
#, no-c-format
msgid ""
"Returns the aspect (in degrees by default) of an elevation raster band. "
"Useful for analyzing terrain."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:9293
#, no-c-format
msgid ""
"<funcprototype> <funcdef>raster <function>ST_Aspect</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>integer </type> <parameter>band=1</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
"<parameter>pixeltype=32BF</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>text </type> <parameter>units=DEGREES</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>interpolate_nodata=FALSE</parameter></paramdef> </funcprototype> "
"<funcprototype> <funcdef>raster <function>ST_Aspect</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>band</parameter></paramdef> "
"<paramdef><type>raster </type> <parameter>customextent</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>text </type> "
"<parameter>pixeltype=32BF</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>text </type> <parameter>units=DEGREES</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>interpolate_nodata=FALSE</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:9318
#, no-c-format
msgid ""
"Returns the aspect (in degrees by default) of an elevation raster band. "
"Utilizes map algebra and applies the aspect equation to neighboring pixels."
msgstr ""
#. Tag: para
#: reference_raster.xml:9320
#, no-c-format
msgid ""
"<varname>units</varname> indicates the units of the aspect. Possible values "
"are: RADIANS, DEGREES (default)."
msgstr ""
#. Tag: para
#: reference_raster.xml:9324
#, no-c-format
msgid ""
"When <varname>units</varname> = RADIANS, values are between 0 and 2 * pi "
"radians measured clockwise from North."
msgstr ""
#. Tag: para
#: reference_raster.xml:9328
#, no-c-format
msgid ""
"When <varname>units</varname> = DEGREES, values are between 0 and 360 "
"degrees measured clockwise from North."
msgstr ""
#. Tag: para
#: reference_raster.xml:9332
#, no-c-format
msgid "If slope of pixel is zero, aspect of pixel is -1."
msgstr ""
#. Tag: para
#: reference_raster.xml:9337
#, no-c-format
msgid ""
"For more information about Slope, Aspect and Hillshade, please refer to "
"<ulink url=\"http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?"
"TopicName=How%20Hillshade%20works\">ESRI - How hillshade works</ulink> and "
"<ulink url=\"http://e2b.erdas.com/fieldguide/wwhelp/wwhimpl/common/html/"
"wwhelp.htm?context=FieldGuide&file=Aspect_Images.html\">ERDAS Field "
"Guide - Aspect Images</ulink>."
msgstr ""
#. Tag: para
#: reference_raster.xml:9343 reference_raster.xml:9439
#, no-c-format
msgid ""
"Enhanced: 2.1.0 Uses ST_MapAlgebra() and added optional "
"<varname>interpolate_nodata</varname> function parameter"
msgstr ""
#. Tag: para
#: reference_raster.xml:9344 reference_raster.xml:9568
#, no-c-format
msgid ""
"Changed: 2.1.0 In prior versions, return values were in radians. Now, return "
"values default to degrees"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:9349
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT ST_SetValues(\n"
" ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, 0, 0), "
"1, '32BF', 0, -9999),\n"
" 1, 1, 1, ARRAY[\n"
" [1, 1, 1, 1, 1],\n"
" [1, 2, 2, 2, 1],\n"
" [1, 2, 3, 2, 1],\n"
" [1, 2, 2, 2, 1],\n"
" [1, 1, 1, 1, 1]\n"
" ]::double precision[][]\n"
" ) AS rast\n"
")\n"
"SELECT\n"
" ST_DumpValues(ST_Aspect(rast, 1, '32BF'))\n"
"FROM foo\n"
"\n"
" st_dumpvalues\n"
"\n"
"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n"
"----------------------------------\n"
" (1,\"{{315,341.565063476562,0,18.4349479675293,45},"
"{288.434936523438,315,0,45,71.5650482177734},{270,270,-1,90,90},"
"{251.565048217773,225,180,135,108.434951782227},{225,198.43495178\n"
"2227,180,161.565048217773,135}}\")\n"
"(1 row)"
msgstr ""
#. Tag: para
#: reference_raster.xml:9355 reference_raster.xml:9452
#: reference_raster.xml:9580
#, no-c-format
msgid ""
"Complete example of tiles of a coverage. This query only works with "
"PostgreSQL 9.1 or higher."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:9357
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT ST_Tile(\n"
" ST_SetValues(\n"
" ST_AddBand(\n"
" ST_MakeEmptyRaster(6, 6, 0, 0, 1, -1, 0, 0, "
"0),\n"
" 1, '32BF', 0, -9999\n"
" ),\n"
" 1, 1, 1, ARRAY[\n"
" [1, 1, 1, 1, 1, 1],\n"
" [1, 1, 1, 1, 2, 1],\n"
" [1, 2, 2, 3, 3, 1],\n"
" [1, 1, 3, 2, 1, 1],\n"
" [1, 2, 2, 1, 2, 1],\n"
" [1, 1, 1, 1, 1, 1]\n"
" ]::double precision[]\n"
" ),\n"
" 2, 2\n"
" ) AS rast\n"
")\n"
"SELECT\n"
" t1.rast,\n"
" ST_Aspect(ST_Union(t2.rast), 1, t1.rast)\n"
"FROM foo t1\n"
"CROSS JOIN foo t2\n"
"WHERE ST_Intersects(t1.rast, t2.rast)\n"
"GROUP BY t1.rast;"
msgstr ""
#. Tag: para
#: reference_raster.xml:9362
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_TRI\"/>, <xref linkend=\"RT_ST_TPI\"/>, <xref "
"linkend=\"RT_ST_Roughness\"/>, <xref linkend=\"RT_ST_HillShade\"/>, <xref "
"linkend=\"RT_ST_Slope\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:9375
#, no-c-format
msgid "ST_HillShade"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:9376
#, no-c-format
msgid ""
"Returns the hypothetical illumination of an elevation raster band using "
"provided azimuth, altitude, brightness and scale inputs."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:9379
#, no-c-format
msgid ""
"<funcprototype> <funcdef>raster <function>ST_HillShade</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>integer </type> <parameter>band=1</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
"<parameter>pixeltype=32BF</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>azimuth=315</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>altitude=45</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>max_bright=255</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>scale=1.0</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>boolean </type> <parameter>interpolate_nodata=FALSE</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>ST_HillShade</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>band</parameter></paramdef> <paramdef><type>raster </type> "
"<parameter>customextent</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>text </type> <parameter>pixeltype=32BF</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>azimuth=315</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>altitude=45</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>max_bright=255</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>double precision </type> <parameter>scale=1.0</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>interpolate_nodata=FALSE</parameter></paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:9410
#, no-c-format
msgid ""
"Returns the hypothetical illumination of an elevation raster band using the "
"azimuth, altitude, brightness, and scale inputs. Utilizes map algebra and "
"applies the hill shade equation to neighboring pixels. Return pixel values "
"are between 0 and 255."
msgstr ""
#. Tag: para
#: reference_raster.xml:9412
#, no-c-format
msgid ""
"<varname>azimuth</varname> is a value between 0 and 360 degrees measured "
"clockwise from North."
msgstr ""
#. Tag: para
#: reference_raster.xml:9416
#, no-c-format
msgid ""
"<varname>altitude</varname> is a value between 0 and 90 degrees where 0 "
"degrees is at the horizon and 90 degrees is directly overhead."
msgstr ""
#. Tag: para
#: reference_raster.xml:9420
#, no-c-format
msgid ""
"<varname>max_bright</varname> is a value between 0 and 255 with 0 as no "
"brightness and 255 as max brightness."
msgstr ""
#. Tag: para
#: reference_raster.xml:9424 reference_raster.xml:9552
#, no-c-format
msgid ""
"<varname>scale</varname> is the ratio of vertical units to horizontal. For "
"Feet:LatLon use scale=370400, for Meters:LatLon use scale=111120."
msgstr ""
#. Tag: para
#: reference_raster.xml:9428
#, no-c-format
msgid ""
"If <varname>interpolate_nodata</varname> is TRUE, values for NODATA pixels "
"from the input raster will be interpolated using <xref linkend="
"\"RT_ST_InvDistWeight4ma\"/> before computing the hillshade illumination."
msgstr ""
#. Tag: para
#: reference_raster.xml:9433
#, no-c-format
msgid ""
"For more information about Hillshade, please refer to <ulink url=\"http://"
"webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=How%20Hillshade"
"%20works\">How hillshade works</ulink>."
msgstr ""
#. Tag: para
#: reference_raster.xml:9440
#, no-c-format
msgid ""
"Changed: 2.1.0 In prior versions, azimuth and altitude were expressed in "
"radians. Now, azimuth and altitude are expressed in degrees"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:9446
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT ST_SetValues(\n"
" ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, 0, 0), "
"1, '32BF', 0, -9999),\n"
" 1, 1, 1, ARRAY[\n"
" [1, 1, 1, 1, 1],\n"
" [1, 2, 2, 2, 1],\n"
" [1, 2, 3, 2, 1],\n"
" [1, 2, 2, 2, 1],\n"
" [1, 1, 1, 1, 1]\n"
" ]::double precision[][]\n"
" ) AS rast\n"
")\n"
"SELECT\n"
" ST_DumpValues(ST_Hillshade(rast, 1, '32BF'))\n"
"FROM foo\n"
"\n"
" st_dumpvalues\n"
"\n"
"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n"
"-----------------------------------------------------------------------\n"
" (1,\"{{NULL,NULL,NULL,NULL,NULL},"
"{NULL,251.32763671875,220.749786376953,147.224319458008,NULL},"
"{NULL,220.749786376953,180.312225341797,67.7497863769531,NULL},"
"{NULL,147.224319458008\n"
",67.7497863769531,43.1210060119629,NULL},{NULL,NULL,NULL,NULL,NULL}}\")\n"
"(1 row)"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:9454
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT ST_Tile(\n"
" ST_SetValues(\n"
" ST_AddBand(\n"
" ST_MakeEmptyRaster(6, 6, 0, 0, 1, -1, 0, 0, "
"0),\n"
" 1, '32BF', 0, -9999\n"
" ),\n"
" 1, 1, 1, ARRAY[\n"
" [1, 1, 1, 1, 1, 1],\n"
" [1, 1, 1, 1, 2, 1],\n"
" [1, 2, 2, 3, 3, 1],\n"
" [1, 1, 3, 2, 1, 1],\n"
" [1, 2, 2, 1, 2, 1],\n"
" [1, 1, 1, 1, 1, 1]\n"
" ]::double precision[]\n"
" ),\n"
" 2, 2\n"
" ) AS rast\n"
")\n"
"SELECT\n"
" t1.rast,\n"
" ST_Hillshade(ST_Union(t2.rast), 1, t1.rast)\n"
"FROM foo t1\n"
"CROSS JOIN foo t2\n"
"WHERE ST_Intersects(t1.rast, t2.rast)\n"
"GROUP BY t1.rast;"
msgstr ""
#. Tag: para
#: reference_raster.xml:9459
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_TRI\"/>, <xref linkend=\"RT_ST_TPI\"/>, <xref "
"linkend=\"RT_ST_Roughness\"/>, <xref linkend=\"RT_ST_Aspect\"/>, <xref "
"linkend=\"RT_ST_Slope\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:9472
#, no-c-format
msgid "ST_Roughness"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:9473
#, no-c-format
msgid "Returns a raster with the calculated \"roughness\" of a DEM."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:9478
#, no-c-format
msgid ""
"<funcdef>raster <function>ST_Roughness</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
"<paramdef><type>raster </type> <parameter>customextent</parameter></"
"paramdef> <paramdef choice=\"opt\"><type>text </type> <parameter>pixeltype="
"\"32BF\"</parameter> </paramdef> <paramdef choice=\"opt\"><type>boolean </"
"type> <parameter> interpolate_nodata=FALSE </parameter> </paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:9491
#, no-c-format
msgid ""
"Calculates the \"roughness\" of a DEM, by subtracting the maximum from the "
"minimum for a given area."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:9497 reference_raster.xml:9630
#: reference_raster.xml:9681
#, no-c-format
msgid "-- needs examples"
msgstr ""
#. Tag: para
#: reference_raster.xml:9502
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_TRI\"/>, <xref linkend=\"RT_ST_TPI\"/>, <xref "
"linkend=\"RT_ST_Slope\"/>, <xref linkend=\"RT_ST_HillShade\"/>, <xref "
"linkend=\"RT_ST_Aspect\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:9515
#, no-c-format
msgid "ST_Slope"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:9516
#, no-c-format
msgid ""
"Returns the slope (in degrees by default) of an elevation raster band. "
"Useful for analyzing terrain."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:9519
#, no-c-format
msgid ""
"<funcprototype> <funcdef>raster <function>ST_Slope</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
"<parameter>pixeltype=32BF</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>text </type> <parameter>units=DEGREES</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>double precision </type> "
"<parameter>scale=1.0</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>boolean </type> <parameter>interpolate_nodata=FALSE</parameter></"
"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
"<function>ST_Slope</function></funcdef> <paramdef><type>raster </type> "
"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
"<parameter>nband</parameter></paramdef> <paramdef><type>raster </type> "
"<parameter>customextent</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>text </type> <parameter>pixeltype=32BF</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>text </type> <parameter>units=DEGREES</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
"type> <parameter>scale=1.0</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>boolean </type> <parameter>interpolate_nodata=FALSE</parameter></"
"paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:9546
#, no-c-format
msgid ""
"Returns the slope (in degrees by default) of an elevation raster band. "
"Utilizes map algebra and applies the slope equation to neighboring pixels."
msgstr ""
#. Tag: para
#: reference_raster.xml:9548
#, no-c-format
msgid ""
"<varname>units</varname> indicates the units of the slope. Possible values "
"are: RADIANS, DEGREES (default), PERCENT."
msgstr ""
#. Tag: para
#: reference_raster.xml:9556
#, no-c-format
msgid ""
"If <varname>interpolate_nodata</varname> is TRUE, values for NODATA pixels "
"from the input raster will be interpolated using <xref linkend="
"\"RT_ST_InvDistWeight4ma\"/> before computing the surface slope."
msgstr ""
#. Tag: para
#: reference_raster.xml:9561
#, no-c-format
msgid ""
"For more information about Slope, Aspect and Hillshade, please refer to "
"<ulink url=\"http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?"
"TopicName=How%20Hillshade%20works\">ESRI - How hillshade works</ulink> and "
"<ulink url=\"http://e2b.erdas.com/fieldguide/wwhelp/wwhimpl/common/html/"
"wwhelp.htm?context=FieldGuide&file=Slope_Images.html\">ERDAS Field Guide "
"- Slope Images</ulink>."
msgstr ""
#. Tag: para
#: reference_raster.xml:9567
#, no-c-format
msgid ""
"Enhanced: 2.1.0 Uses ST_MapAlgebra() and added optional <varname>units</"
"varname>, <varname>scale</varname>, <varname>interpolate_nodata</varname> "
"function parameters"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:9574
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT ST_SetValues(\n"
" ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, 0, 0), "
"1, '32BF', 0, -9999),\n"
" 1, 1, 1, ARRAY[\n"
" [1, 1, 1, 1, 1],\n"
" [1, 2, 2, 2, 1],\n"
" [1, 2, 3, 2, 1],\n"
" [1, 2, 2, 2, 1],\n"
" [1, 1, 1, 1, 1]\n"
" ]::double precision[][]\n"
" ) AS rast\n"
")\n"
"SELECT\n"
" ST_DumpValues(ST_Slope(rast, 1, '32BF'))\n"
"FROM foo\n"
"\n"
" st_dumpvalues\n"
"\n"
"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n"
"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n"
"---------------------------------------------------------------------\n"
" (1,"
"\"{{10.0249881744385,21.5681285858154,26.5650520324707,21.5681285858154,10.0249881744385},"
"{21.5681285858154,35.2643890380859,36.8698959350586,35.2643890380859,21.5681285858154},\n"
"{26.5650520324707,36.8698959350586,0,36.8698959350586,26.5650520324707},"
"{21.5681285858154,35.2643890380859,36.8698959350586,35.2643890380859,21.5681285858154},"
"{10.0249881744385,21.\n"
"5681285858154,26.5650520324707,21.5681285858154,10.0249881744385}}\")\n"
"(1 row)"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:9582
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT ST_Tile(\n"
" ST_SetValues(\n"
" ST_AddBand(\n"
" ST_MakeEmptyRaster(6, 6, 0, 0, 1, -1, 0, 0, "
"0),\n"
" 1, '32BF', 0, -9999\n"
" ),\n"
" 1, 1, 1, ARRAY[\n"
" [1, 1, 1, 1, 1, 1],\n"
" [1, 1, 1, 1, 2, 1],\n"
" [1, 2, 2, 3, 3, 1],\n"
" [1, 1, 3, 2, 1, 1],\n"
" [1, 2, 2, 1, 2, 1],\n"
" [1, 1, 1, 1, 1, 1]\n"
" ]::double precision[]\n"
" ),\n"
" 2, 2\n"
" ) AS rast\n"
")\n"
"SELECT\n"
" t1.rast,\n"
" ST_Slope(ST_Union(t2.rast), 1, t1.rast)\n"
"FROM foo t1\n"
"CROSS JOIN foo t2\n"
"WHERE ST_Intersects(t1.rast, t2.rast)\n"
"GROUP BY t1.rast;"
msgstr ""
#. Tag: para
#: reference_raster.xml:9587
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_TRI\"/>, <xref linkend=\"RT_ST_TPI\"/>, <xref "
"linkend=\"RT_ST_Roughness\"/>, <xref linkend=\"RT_ST_HillShade\"/>, <xref "
"linkend=\"RT_ST_Aspect\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:9600
#, no-c-format
msgid "ST_TPI"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:9601
#, no-c-format
msgid "Returns a raster with the calculated Topographic Position Index."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:9606
#, no-c-format
msgid ""
"<funcdef>raster <function>ST_TPI</function></funcdef> <paramdef><type>raster "
"</type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </"
"type> <parameter>nband</parameter></paramdef> <paramdef><type>raster </type> "
"<parameter>customextent</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>text </type> <parameter>pixeltype=\"32BF\"</parameter> </paramdef> "
"<paramdef choice=\"opt\"><type>boolean </type> <parameter> "
"interpolate_nodata=FALSE </parameter> </paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:9620
#, no-c-format
msgid ""
"Calculates the Topographic Position Index, which is defined as the focal "
"mean with radius of one minus the center cell."
msgstr ""
#. Tag: para
#: reference_raster.xml:9623 reference_raster.xml:9673
#, no-c-format
msgid "This function only supports a focalmean radius of one."
msgstr ""
#. Tag: para
#: reference_raster.xml:9635
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_TRI\"/>, <xref linkend=\"RT_ST_Roughness\"/>, <xref "
"linkend=\"RT_ST_Slope\"/>, <xref linkend=\"RT_ST_HillShade\"/>, <xref "
"linkend=\"RT_ST_Aspect\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:9648
#, no-c-format
msgid "ST_TRI"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:9649
#, no-c-format
msgid "Returns a raster with the calculated Terrain Ruggedness Index."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:9654
#, no-c-format
msgid ""
"<funcdef>raster <function>ST_TRI</function></funcdef> <paramdef><type>raster "
"</type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </"
"type> <parameter>nband</parameter></paramdef> <paramdef><type>raster </type> "
"<parameter>customextent</parameter></paramdef> <paramdef choice=\"opt"
"\"><type>text </type> <parameter>pixeltype=\"32BF\"</parameter> </paramdef> "
"<paramdef choice=\"opt\"><type>boolean </type> <parameter> "
"interpolate_nodata=FALSE </parameter> </paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:9668
#, no-c-format
msgid ""
"Terrain Ruggedness Index is calculated by comparing a central pixel with its "
"neighbors, taking the absolute values of the differences, and averaging the "
"result."
msgstr ""
#. Tag: para
#: reference_raster.xml:9686
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_Roughness\"/>, <xref linkend=\"RT_ST_TPI\"/>, <xref "
"linkend=\"RT_ST_Slope\"/>, <xref linkend=\"RT_ST_HillShade\"/>, <xref "
"linkend=\"RT_ST_Aspect\"/>"
msgstr ""
#. Tag: title
#: reference_raster.xml:9700
#, no-c-format
msgid "Raster to Geometry"
msgstr ""
#. Tag: refname
#: reference_raster.xml:9704
#, no-c-format
msgid "Box3D"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:9705
#, no-c-format
msgid "Returns the box 3d representation of the enclosing box of the raster."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:9710
#, no-c-format
msgid ""
"<funcdef>box3d <function>Box3D</function></funcdef> <paramdef><type>raster </"
"type> <parameter>rast</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:9720
#, no-c-format
msgid "Returns the box representing the extent of the raster."
msgstr ""
#. Tag: para
#: reference_raster.xml:9721
#, no-c-format
msgid ""
"The polygon is defined by the corner points of the bounding box "
"((<varname>MINX</varname>, <varname>MINY</varname>), (<varname>MAXX</"
"varname>, <varname>MAXY</varname>))"
msgstr ""
#. Tag: para
#: reference_raster.xml:9725
#, no-c-format
msgid ""
"Changed: 2.0.0 In pre-2.0 versions, there used to be a box2d instead of "
"box3d. Since box2d is a deprecated type, this was changed to box3d."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:9731
#, no-c-format
msgid ""
"SELECT\n"
" rid,\n"
" Box3D(rast) AS rastbox\n"
"FROM dummy_rast;\n"
"\n"
"rid | rastbox\n"
"----+-------------------------------------------------\n"
"1 | BOX3D(0.5 0.5 0,20.5 60.5 0)\n"
"2 | BOX3D(3427927.75 5793243.5 0,3427928 5793244 0)"
msgstr ""
#. Tag: refname
#: reference_raster.xml:9744
#, no-c-format
msgid "ST_ConvexHull"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:9745
#, no-c-format
msgid ""
"Return the convex hull geometry of the raster including pixel values equal "
"to BandNoDataValue. For regular shaped and non-skewed rasters, this gives "
"the same result as ST_Envelope so only useful for irregularly shaped or "
"skewed rasters."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:9752
#, no-c-format
msgid ""
"<funcdef>geometry <function>ST_ConvexHull</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:9762
#, no-c-format
msgid ""
"Return the convex hull geometry of the raster including the NoDataBandValue "
"band pixels. For regular shaped and non-skewed rasters, this gives more or "
"less the same result as ST_Envelope so only useful for irregularly shaped or "
"skewed rasters."
msgstr ""
#. Tag: para
#: reference_raster.xml:9766
#, no-c-format
msgid ""
"ST_Envelope floors the coordinates and hence add a little buffer around the "
"raster so the answer is subtly different from ST_ConvexHull which does not "
"floor."
msgstr ""
#. Tag: para
#: reference_raster.xml:9773
#, no-c-format
msgid ""
"Refer to <ulink url=\"http://trac.osgeo.org/postgis/wiki/WKTRaster/"
"SpecificationWorking01\">PostGIS Raster Specification</ulink> for a diagram "
"of this."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:9774
#, no-c-format
msgid ""
"-- Note envelope and convexhull are more or less the same\n"
"SELECT ST_AsText(ST_ConvexHull(rast)) As convhull,\n"
" ST_AsText(ST_Envelope(rast)) As env\n"
"FROM dummy_rast WHERE rid=1;\n"
"\n"
" convhull | "
"env\n"
"--------------------------------------------------------"
"+------------------------------------\n"
" POLYGON((0.5 0.5,20.5 0.5,20.5 60.5,0.5 60.5,0.5 0.5)) | POLYGON((0 0,20 "
"0,20 60,0 60,0 0))"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:9775
#, no-c-format
msgid ""
"-- now we skew the raster\n"
"-- note how the convex hull and envelope are now different\n"
"SELECT ST_AsText(ST_ConvexHull(rast)) As convhull,\n"
" ST_AsText(ST_Envelope(rast)) As env\n"
"FROM (SELECT ST_SetRotation(rast, 0.1, 0.1) As rast\n"
" FROM dummy_rast WHERE rid=1) As foo;\n"
"\n"
" convhull | "
"env\n"
"--------------------------------------------------------"
"+------------------------------------\n"
" POLYGON((0.5 0.5,20.5 1.5,22.5 61.5,2.5 60.5,0.5 0.5)) | POLYGON((0 0,22 "
"0,22 61,0 61,0 0))"
msgstr ""
#. Tag: para
#: reference_raster.xml:9781
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_MinConvexHull\"/>, <xref linkend=\"ST_ConvexHull\"/"
">, <xref linkend=\"ST_AsText\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:9792
#, no-c-format
msgid "ST_DumpAsPolygons"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:9793
#, no-c-format
msgid ""
"Returns a set of geomval (geom,val) rows, from a given raster band. If no "
"band number is specified, band num defaults to 1."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:9798
#, no-c-format
msgid ""
"<funcdef>setof geomval <function>ST_DumpAsPolygons</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>integer </type> <parameter>band_num=1</"
"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
"<parameter>exclude_nodata_value=TRUE</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:9809
#, no-c-format
msgid ""
"This is a set-returning function (SRF). It returns a set of geomval rows, "
"formed by a geometry (geom) and a pixel band value (val). Each polygon is "
"the union of all pixels for that band that have the same pixel value denoted "
"by val."
msgstr ""
#. Tag: para
#: reference_raster.xml:9813
#, no-c-format
msgid ""
"ST_DumpAsPolygon is useful for polygonizing rasters. It is the reverse of a "
"GROUP BY in that it creates new rows. For example it can be used to expand a "
"single raster into multiple POLYGONS/MULTIPOLYGONS."
msgstr ""
#. Tag: para
#: reference_raster.xml:9817
#, no-c-format
msgid "Availability: Requires GDAL 1.7 or higher."
msgstr ""
#. Tag: para
#: reference_raster.xml:9818
#, no-c-format
msgid ""
"If there is a no data value set for a band, pixels with that value will not "
"be returned except in the case of exclude_nodata_value=false."
msgstr ""
#. Tag: para
#: reference_raster.xml:9819
#, no-c-format
msgid ""
"If you only care about count of pixels with a given value in a raster, it is "
"faster to use <xref linkend=\"RT_ST_ValueCount\"/>."
msgstr ""
#. Tag: para
#: reference_raster.xml:9821
#, no-c-format
msgid ""
"This is different than ST_PixelAsPolygons where one geometry is returned for "
"each pixel regardless of pixel value."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:9829
#, no-c-format
msgid ""
"-- this syntax requires PostgreSQL 9.3+\n"
"SELECT val, ST_AsText(geom) As geomwkt\n"
"FROM (\n"
"SELECT dp.*\n"
"FROM dummy_rast, LATERAL ST_DumpAsPolygons(rast) AS dp\n"
"WHERE rid = 2\n"
") As foo\n"
"WHERE val BETWEEN 249 and 251\n"
"ORDER BY val;\n"
"\n"
" val | geomwkt\n"
"-----"
"+--------------------------------------------------------------------------\n"
" 249 | POLYGON((3427927.95 5793243.95,3427927.95 5793243.85,3427928 "
"5793243.85,\n"
" 3427928 5793243.95,3427927.95 5793243.95))\n"
" 250 | POLYGON((3427927.75 5793243.9,3427927.75 5793243.85,3427927.8 "
"5793243.85,\n"
" 3427927.8 5793243.9,3427927.75 5793243.9))\n"
" 250 | POLYGON((3427927.8 5793243.8,3427927.8 5793243.75,3427927.85 "
"5793243.75,\n"
" 3427927.85 5793243.8, 3427927.8 5793243.8))\n"
" 251 | POLYGON((3427927.75 5793243.85,3427927.75 5793243.8,3427927.8 "
"5793243.8,\n"
" 3427927.8 5793243.85,3427927.75 5793243.85))"
msgstr ""
#. Tag: para
#: reference_raster.xml:9834
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_Value\"/>, <xref linkend=\"RT_ST_Polygon\"/>, <xref "
"linkend=\"RT_ST_ValueCount\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:9845
#, no-c-format
msgid "ST_Envelope"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:9846
#, no-c-format
msgid "Returns the polygon representation of the extent of the raster."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:9851
#, no-c-format
msgid ""
"<funcdef>geometry <function>ST_Envelope</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:9861
#, no-c-format
msgid ""
"Returns the polygon representation of the extent of the raster in spatial "
"coordinate units defined by srid. It is a float8 minimum bounding box "
"represented as a polygon."
msgstr ""
#. Tag: para
#: reference_raster.xml:9863
#, no-c-format
msgid ""
"The polygon is defined by the corner points of the bounding box "
"((<varname>MINX</varname>, <varname>MINY</varname>), (<varname>MINX</"
"varname>, <varname>MAXY</varname>), (<varname>MAXX</varname>, <varname>MAXY</"
"varname>), (<varname>MAXX</varname>, <varname>MINY</varname>), "
"(<varname>MINX</varname>, <varname>MINY</varname>))"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:9875
#, no-c-format
msgid ""
"SELECT rid, ST_AsText(ST_Envelope(rast)) As envgeomwkt\n"
"FROM dummy_rast;\n"
"\n"
" rid | envgeomwkt\n"
"-----+--------------------------------------------------------------------\n"
" 1 | POLYGON((0 0,20 0,20 60,0 60,0 0))\n"
" 2 | POLYGON((3427927 5793243,3427928 5793243,\n"
" 3427928 5793244,3427927 5793244, 3427927 5793243))"
msgstr ""
#. Tag: para
#: reference_raster.xml:9880
#, no-c-format
msgid ", <xref linkend=\"ST_AsText\"/>, <xref linkend=\"RT_ST_SRID\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:9890
#, no-c-format
msgid "ST_MinConvexHull"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:9891
#, no-c-format
msgid "Return the convex hull geometry of the raster excluding NODATA pixels."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:9898
#, no-c-format
msgid ""
"<funcdef>geometry <function>ST_MinConvexHull</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>integer </type> <parameter>nband=NULL</"
"parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:9909
#, no-c-format
msgid ""
"Return the convex hull geometry of the raster excluding NODATA pixels. If "
"<varname>nband</varname> is NULL, all bands of the raster are considered."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:9918
#, no-c-format
msgid ""
"WITH foo AS (\n"
" SELECT\n"
" ST_SetValues(\n"
" ST_SetValues(\n"
" ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(9, "
"9, 0, 0, 1, -1, 0, 0, 0), 1, '8BUI', 0, 0), 2, '8BUI', 1, 0),\n"
" 1, 1, 1,\n"
" ARRAY[\n"
" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
" [0, 0, 0, 1, 0, 0, 0, 0, 1],\n"
" [0, 0, 0, 1, 1, 0, 0, 0, 0],\n"
" [0, 0, 0, 1, 0, 0, 0, 0, 0],\n"
" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
" [0, 0, 0, 0, 0, 0, 0, 0, 0]\n"
" ]::double precision[][]\n"
" ),\n"
" 2, 1, 1,\n"
" ARRAY[\n"
" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
" [1, 0, 0, 0, 0, 1, 0, 0, 0],\n"
" [0, 0, 0, 0, 1, 1, 0, 0, 0],\n"
" [0, 0, 0, 0, 0, 1, 0, 0, 0],\n"
" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
" [0, 0, 1, 0, 0, 0, 0, 0, 0]\n"
" ]::double precision[][]\n"
" ) AS rast\n"
")\n"
"SELECT\n"
" ST_AsText(ST_ConvexHull(rast)) AS hull,\n"
" ST_AsText(ST_MinConvexHull(rast)) AS mhull,\n"
" ST_AsText(ST_MinConvexHull(rast, 1)) AS mhull_1,\n"
" ST_AsText(ST_MinConvexHull(rast, 2)) AS mhull_2\n"
"FROM foo\n"
"\n"
" hull | mhull "
"| mhull_1 | mhull_2\n"
"----------------------------------+-------------------------------------"
"+-------------------------------------"
"+-------------------------------------\n"
" POLYGON((0 0,9 0,9 -9,0 -9,0 0)) | POLYGON((0 -3,9 -3,9 -9,0 -9,0 -3)) | "
"POLYGON((3 -3,9 -3,9 -6,3 -6,3 -3)) | POLYGON((0 -3,6 -3,6 -9,0 -9,0 -3))"
msgstr ""
#. Tag: para
#: reference_raster.xml:9923
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_ConvexHull\"/>, <xref linkend=\"ST_ConvexHull\"/>, "
"<xref linkend=\"ST_AsText\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:9934
#, no-c-format
msgid "ST_Polygon"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:9935
#, no-c-format
msgid ""
"Returns a multipolygon geometry formed by the union of pixels that have a "
"pixel value that is not no data value. If no band number is specified, band "
"num defaults to 1."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:9940
#, no-c-format
msgid ""
"<funcdef>geometry <function>ST_Polygon</function></funcdef> "
"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
"<paramdef choice=\"opt\"><type>integer </type> <parameter>band_num=1</"
"parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:9950
#, no-c-format
msgid "Availability: 0.1.6 Requires GDAL 1.7 or higher."
msgstr ""
#. Tag: para
#: reference_raster.xml:9951
#, no-c-format
msgid ""
"Enhanced: 2.1.0 Improved Speed (fully C-Based) and the returning "
"multipolygon is ensured to be valid."
msgstr ""
#. Tag: para
#: reference_raster.xml:9952
#, no-c-format
msgid ""
"Changed: 2.1.0 In prior versions would sometimes return a polygon, changed "
"to always return multipolygon."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:9957
#, no-c-format
msgid ""
"-- by default no data band value is 0 or not set, so polygon will return a "
"square polygon\n"
"SELECT ST_AsText(ST_Polygon(rast)) As geomwkt\n"
"FROM dummy_rast\n"
"WHERE rid = 2;\n"
"\n"
"geomwkt\n"
"--------------------------------------------\n"
"MULTIPOLYGON(((3427927.75 5793244,3427928 5793244,3427928 "
"5793243.75,3427927.75 5793243.75,3427927.75 5793244)))\n"
"\n"
"\n"
"-- now we change the no data value of first band\n"
"UPDATE dummy_rast SET rast = ST_SetBandNoDataValue(rast,1,254)\n"
"WHERE rid = 2;\n"
"SELECt rid, ST_BandNoDataValue(rast)\n"
"from dummy_rast where rid = 2;\n"
"\n"
"-- ST_Polygon excludes the pixel value 254 and returns a multipolygon\n"
"SELECT ST_AsText(ST_Polygon(rast)) As geomwkt\n"
"FROM dummy_rast\n"
"WHERE rid = 2;\n"
"\n"
"geomwkt\n"
"---------------------------------------------------------\n"
"MULTIPOLYGON(((3427927.9 5793243.95,3427927.85 5793243.95,3427927.85 "
"5793244,3427927.9 5793244,3427927.9 5793243.95)),((3427928 "
"5793243.85,3427928 5793243.8,3427927.95 5793243.8,3427927.95 "
"5793243.85,3427927.9 5793243.85,3427927.9 5793243.9,3427927.9 "
"5793243.95,3427927.95 5793243.95,3427928 5793243.95,3427928 5793243.85)),"
"((3427927.8 5793243.75,3427927.75 5793243.75,3427927.75 5793243.8,3427927.75 "
"5793243.85,3427927.75 5793243.9,3427927.75 5793244,3427927.8 "
"5793244,3427927.8 5793243.9,3427927.8 5793243.85,3427927.85 "
"5793243.85,3427927.85 5793243.8,3427927.85 5793243.75,3427927.8 "
"5793243.75)))\n"
"\n"
"-- Or if you want the no data value different for just one time\n"
"\n"
"SELECT ST_AsText(\n"
" ST_Polygon(\n"
" ST_SetBandNoDataValue(rast,1,252)\n"
" )\n"
" ) As geomwkt\n"
"FROM dummy_rast\n"
"WHERE rid =2;\n"
"\n"
"geomwkt\n"
"---------------------------------\n"
"MULTIPOLYGON(((3427928 5793243.85,3427928 5793243.8,3427928 "
"5793243.75,3427927.85 5793243.75,3427927.8 5793243.75,3427927.8 "
"5793243.8,3427927.75 5793243.8,3427927.75 5793243.85,3427927.75 "
"5793243.9,3427927.75 5793244,3427927.8 5793244,3427927.85 5793244,3427927.9 "
"5793244,3427928 5793244,3427928 5793243.95,3427928 5793243.85),(3427927.9 "
"5793243.9,3427927.9 5793243.85,3427927.95 5793243.85,3427927.95 "
"5793243.9,3427927.9 5793243.9)))"
msgstr ""
#. Tag: title
#: reference_raster.xml:9974
#, no-c-format
msgid "Raster Operators"
msgstr ""
#. Tag: refname
#: reference_raster.xml:9977
#, no-c-format
msgid "&&"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:9979
#, no-c-format
msgid ""
"Returns <varname>TRUE</varname> if A's bounding box intersects B's bounding "
"box."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:9983
#, no-c-format
msgid ""
"<funcprototype> <funcdef>boolean <function>&&</function></funcdef> "
"<paramdef> <type>raster </type> <parameter>A</parameter> </paramdef> "
"<paramdef> <type>raster </type> <parameter>B</parameter> </paramdef> </"
"funcprototype> <funcprototype> <funcdef>boolean <function>&&</"
"function></funcdef> <paramdef> <type>raster </type> <parameter>A</parameter> "
"</paramdef> <paramdef> <type>geometry </type> <parameter>B</parameter> </"
"paramdef> </funcprototype> <funcprototype> <funcdef>boolean <function>&"
"&</function></funcdef> <paramdef> <type>geometry </type> <parameter>B</"
"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>A</"
"parameter> </paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:10025
#, no-c-format
msgid ""
"The <varname>&&</varname> operator returns <varname>TRUE</varname> "
"if the bounding box of raster/geometr A intersects the bounding box of "
"raster/geometr B."
msgstr ""
#. Tag: para
#: reference_raster.xml:10027 reference_raster.xml:10074
#: reference_raster.xml:10278 reference_raster.xml:11288
#: reference_raster.xml:11389 reference_raster.xml:11482
#, no-c-format
msgid ""
"This operand will make use of any indexes that may be available on the "
"rasters."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:10036
#, no-c-format
msgid ""
"SELECT A.rid As a_rid, B.rid As b_rid, A.rast && B.rast As "
"intersect\n"
" FROM dummy_rast AS A CROSS JOIN dummy_rast AS B LIMIT 3;\n"
"\n"
" a_rid | b_rid | intersect\n"
"-------+-------+---------\n"
" 2 | 2 | t\n"
" 2 | 3 | f\n"
" 2 | 1 | f"
msgstr ""
#. Tag: refname
#: reference_raster.xml:10042
#, no-c-format
msgid "&<"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:10044
#, no-c-format
msgid ""
"Returns <varname>TRUE</varname> if A's bounding box is to the left of B's."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:10049
#, no-c-format
msgid ""
"<funcdef>boolean <function>&<</function></funcdef> <paramdef> "
"<type>raster </type> <parameter>A</parameter> </paramdef> <paramdef> "
"<type>raster </type> <parameter>B</parameter> </paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:10070
#, no-c-format
msgid ""
"The <varname>&<</varname> operator returns <varname>TRUE</varname> if "
"the bounding box of raster A overlaps or is to the left of the bounding box "
"of raster B, or more accurately, overlaps or is NOT to the right of the "
"bounding box of raster B."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:10080
#, no-c-format
msgid ""
"SELECT A.rid As a_rid, B.rid As b_rid, A.rast &< B.rast As overleft\n"
" FROM dummy_rast AS A CROSS JOIN dummy_rast AS B;\n"
"\n"
"a_rid | b_rid | overleft\n"
"------+-------+----------\n"
" 2 | 2 | t\n"
" 2 | 3 | f\n"
" 2 | 1 | f\n"
" 3 | 2 | t\n"
" 3 | 3 | t\n"
" 3 | 1 | f\n"
" 1 | 2 | t\n"
" 1 | 3 | t\n"
" 1 | 1 | t"
msgstr ""
#. Tag: refname
#: reference_raster.xml:10086
#, no-c-format
msgid "&>"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:10088
#, no-c-format
msgid ""
"Returns <varname>TRUE</varname> if A's bounding box is to the right of B's."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:10093
#, no-c-format
msgid ""
"<funcdef>boolean <function>&></function></funcdef> <paramdef> "
"<type>raster </type> <parameter>A</parameter> </paramdef> <paramdef> "
"<type>raster </type> <parameter>B</parameter> </paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:10114
#, no-c-format
msgid ""
"The <varname>&></varname> operator returns <varname>TRUE</varname> if "
"the bounding box of raster A overlaps or is to the right of the bounding box "
"of raster B, or more accurately, overlaps or is NOT to the left of the "
"bounding box of raster B."
msgstr ""
#. Tag: para
#: reference_raster.xml:10118
#, no-c-format
msgid ""
"This operand will make use of any indexes that may be available on the "
"geometries."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:10125
#, no-c-format
msgid ""
"SELECT A.rid As a_rid, B.rid As b_rid, A.rast &> B.rast As overright\n"
" FROM dummy_rast AS A CROSS JOIN dummy_rast AS B;\n"
"\n"
" a_rid | b_rid | overright\n"
"-------+-------+----------\n"
" 2 | 2 | t\n"
" 2 | 3 | t\n"
" 2 | 1 | t\n"
" 3 | 2 | f\n"
" 3 | 3 | t\n"
" 3 | 1 | f\n"
" 1 | 2 | f\n"
" 1 | 3 | t\n"
" 1 | 1 | t"
msgstr ""
#. Tag: refname
#: reference_raster.xml:10131
#, no-c-format
msgid "="
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:10133
#, no-c-format
msgid ""
"Returns <varname>TRUE</varname> if A's bounding box is the same as B's. Uses "
"double precision bounding box."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:10138
#, no-c-format
msgid ""
"<funcdef>boolean <function>=</function></funcdef> <paramdef> "
"<type>raster </type> <parameter>A</parameter> </paramdef> <paramdef> "
"<type>raster </type> <parameter>B</parameter> </paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:10159
#, no-c-format
msgid ""
"The <varname>=</varname> operator returns <varname>TRUE</varname> if the "
"bounding box of raster A is the same as the bounding box of raster B. "
"PostgreSQL uses the =, <, and > operators defined for rasters to "
"perform internal orderings and comparison of rasters (ie. in a GROUP BY or "
"ORDER BY clause)."
msgstr ""
#. Tag: para
#: reference_raster.xml:10163
#, no-c-format
msgid ""
"This operand will NOT make use of any indexes that may be available on the "
"rasters. Use <xref linkend=\"RT_Raster_Same\"/> instead. This operator "
"exists mostly so one can group by the raster column."
msgstr ""
#. Tag: refname
#: reference_raster.xml:10179
#, no-c-format
msgid "<refname>@</refname>"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:10181
#, no-c-format
msgid ""
"Returns <varname>TRUE</varname> if A's bounding box is contained by B's. "
"Uses double precision bounding box."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:10185
#, no-c-format
msgid ""
"<funcprototype> <funcdef>boolean <function>@</function></funcdef> <paramdef> "
"<type>raster </type> <parameter>A</parameter> </paramdef> <paramdef> "
"<type>raster </type> <parameter>B</parameter> </paramdef> </funcprototype> "
"<funcprototype> <funcdef>boolean <function>@</function></funcdef> <paramdef> "
"<type>geometry </type> <parameter>A</parameter> </paramdef> <paramdef> "
"<type>raster </type> <parameter>B</parameter> </paramdef> </funcprototype> "
"<funcprototype> <funcdef>boolean <function>@</function></funcdef> <paramdef> "
"<type>raster </type> <parameter>B</parameter> </paramdef> <paramdef> "
"<type>geometry </type> <parameter>A</parameter> </paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:10228
#, no-c-format
msgid ""
"The <varname>@</varname> operator returns <varname>TRUE</varname> if the "
"bounding box of raster/geometry A is contained by bounding box of raster/"
"geometr B."
msgstr ""
#. Tag: para
#: reference_raster.xml:10231 reference_raster.xml:10351
#, no-c-format
msgid "This operand will use spatial indexes on the rasters."
msgstr ""
#. Tag: para
#: reference_raster.xml:10233
#, no-c-format
msgid "Availability: 2.0.0 raster @ raster, raster @ geometry introduced"
msgstr ""
#. Tag: para
#: reference_raster.xml:10234
#, no-c-format
msgid "Availability: 2.0.5 geometry @ raster introduced"
msgstr ""
#. Tag: refname
#: reference_raster.xml:10247
#, no-c-format
msgid "<refname>~=</refname>"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:10249
#, no-c-format
msgid "Returns <varname>TRUE</varname> if A's bounding box is the same as B's."
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:10254
#, no-c-format
msgid ""
"<funcdef>boolean <function>~=</function></funcdef> <paramdef> <type>raster </"
"type> <parameter>A</parameter> </paramdef> <paramdef> <type>raster </type> "
"<parameter>B</parameter> </paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:10275
#, no-c-format
msgid ""
"The <varname>~=</varname> operator returns <varname>TRUE</varname> if the "
"bounding box of raster A is the same as the bounding box of raster B."
msgstr ""
#. Tag: para
#: reference_raster.xml:10287
#, no-c-format
msgid ""
"Very useful usecase is for taking two sets of single band rasters that are "
"of the same chunk but represent different themes and creating a multi-band "
"raster"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:10288
#, no-c-format
msgid ""
"SELECT ST_AddBand(prec.rast, alt.rast) As new_rast\n"
" FROM prec INNER JOIN alt ON (prec.rast ~= alt.rast);"
msgstr ""
#. Tag: para
#: reference_raster.xml:10293
#, no-c-format
msgid ", <xref linkend=\"RT_Raster_EQ\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:10299
#, no-c-format
msgid "<refname>~</refname>"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:10301
#, no-c-format
msgid ""
"Returns <varname>TRUE</varname> if A's bounding box is contains B's. Uses "
"double precision bounding box."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:10305
#, no-c-format
msgid ""
"<funcprototype> <funcdef>boolean <function>~</function></funcdef> <paramdef> "
"<type>raster </type> <parameter>A</parameter> </paramdef> <paramdef> "
"<type>raster </type> <parameter>B</parameter> </paramdef> </funcprototype> "
"<funcprototype> <funcdef>boolean <function>~</function></funcdef> <paramdef> "
"<type>geometry </type> <parameter>A</parameter> </paramdef> <paramdef> "
"<type>raster </type> <parameter>B</parameter> </paramdef> </funcprototype> "
"<funcprototype> <funcdef>boolean <function>~</function></funcdef> <paramdef> "
"<type>raster </type> <parameter>B</parameter> </paramdef> <paramdef> "
"<type>geometry </type> <parameter>A</parameter> </paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:10348
#, no-c-format
msgid ""
"The <varname>~</varname> operator returns <varname>TRUE</varname> if the "
"bounding box of raster/geometry A is contains bounding box of raster/geometr "
"B."
msgstr ""
#. Tag: title
#: reference_raster.xml:10366
#, no-c-format
msgid "Raster and Raster Band Spatial Relationships"
msgstr ""
#. Tag: refname
#: reference_raster.xml:10370
#, no-c-format
msgid "ST_Contains"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:10371
#, no-c-format
msgid ""
"Return true if no points of raster rastB lie in the exterior of raster rastA "
"and at least one point of the interior of rastB lies in the interior of "
"rastA."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:10377
#, no-c-format
msgid ""
"<funcprototype> <funcdef>boolean <function>ST_Contains</function></funcdef> "
"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> "
"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> "
"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> "
"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </"
"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Contains</"
"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</"
"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</"
"parameter> </paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:10416
#, no-c-format
msgid ""
"Raster rastA contains rastB if and only if no points of rastB lie in the "
"exterior of rastA and at least one point of the interior of rastB lies in "
"the interior of rastA. If the band number is not provided (or set to NULL), "
"only the convex hull of the raster is considered in the test. If the band "
"number is provided, only those pixels with value (not NODATA) are considered "
"in the test."
msgstr ""
#. Tag: para
#: reference_raster.xml:10421 reference_raster.xml:10514
#: reference_raster.xml:10595 reference_raster.xml:10676
#: reference_raster.xml:10886 reference_raster.xml:10970
#: reference_raster.xml:11050
#, no-c-format
msgid ""
"This function will make use of any indexes that may be available on the "
"rasters."
msgstr ""
#. Tag: para
#: reference_raster.xml:10427
#, no-c-format
msgid ""
"To test the spatial relationship of a raster and a geometry, use ST_Polygon "
"on the raster, e.g. ST_Contains(ST_Polygon(raster), geometry) or "
"ST_Contains(geometry, ST_Polygon(raster))."
msgstr ""
#. Tag: para
#: reference_raster.xml:10433
#, no-c-format
msgid ""
"ST_Contains() is the inverse of ST_Within(). So, ST_Contains(rastA, rastB) "
"implies ST_Within(rastB, rastA)."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:10444
#, no-c-format
msgid ""
"-- specified band numbers\n"
"SELECT r1.rid, r2.rid, ST_Contains(r1.rast, 1, r2.rast, 1) FROM dummy_rast "
"r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 1;\n"
"\n"
"NOTICE: The first raster provided has no bands\n"
" rid | rid | st_contains\n"
"-----+-----+-------------\n"
" 1 | 1 |\n"
" 1 | 2 | f"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:10446
#, no-c-format
msgid ""
"-- no band numbers specified\n"
"SELECT r1.rid, r2.rid, ST_Contains(r1.rast, r2.rast) FROM dummy_rast r1 "
"CROSS JOIN dummy_rast r2 WHERE r1.rid = 1;\n"
" rid | rid | st_contains\n"
"-----+-----+-------------\n"
" 1 | 1 | t\n"
" 1 | 2 | f"
msgstr ""
#. Tag: para
#: reference_raster.xml:10450
#, no-c-format
msgid ", <xref linkend=\"RT_ST_Within\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:10459
#, no-c-format
msgid "ST_ContainsProperly"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:10460
#, no-c-format
msgid ""
"Return true if rastB intersects the interior of rastA but not the boundary "
"or exterior of rastA."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:10466
#, no-c-format
msgid ""
"<funcprototype> <funcdef>boolean <function>ST_ContainsProperly</function></"
"funcdef> <paramdef> <type>raster </type> <parameter>rastA</parameter> </"
"paramdef> <paramdef> <type>integer </type> <parameter>nbandA</parameter> </"
"paramdef> <paramdef> <type>raster </type> <parameter>rastB</parameter> </"
"paramdef> <paramdef> <type>integer </type> <parameter>nbandB</parameter> </"
"paramdef> </funcprototype> <funcprototype> <funcdef>boolean "
"<function>ST_ContainsProperly</function></funcdef> <paramdef> <type>raster </"
"type> <parameter>rastA</parameter> </paramdef> <paramdef> <type>raster </"
"type> <parameter>rastB</parameter> </paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:10505
#, no-c-format
msgid ""
"Raster rastA contains properly rastB if rastB intersects the interior of "
"rastA but not the boundary or exterior of rastA. If the band number is not "
"provided (or set to NULL), only the convex hull of the raster is considered "
"in the test. If the band number is provided, only those pixels with value "
"(not NODATA) are considered in the test."
msgstr ""
#. Tag: para
#: reference_raster.xml:10509
#, no-c-format
msgid "Raster rastA does not contain properly itself but does contain itself."
msgstr ""
#. Tag: para
#: reference_raster.xml:10520
#, no-c-format
msgid ""
"To test the spatial relationship of a raster and a geometry, use ST_Polygon "
"on the raster, e.g. ST_ContainsProperly(ST_Polygon(raster), geometry) or "
"ST_ContainsProperly(geometry, ST_Polygon(raster))."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:10531
#, no-c-format
msgid ""
"SELECT r1.rid, r2.rid, ST_ContainsProperly(r1.rast, 1, r2.rast, 1) FROM "
"dummy_rast r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n"
"\n"
" rid | rid | st_containsproperly\n"
"-----+-----+---------------------\n"
" 2 | 1 | f\n"
" 2 | 2 | f"
msgstr ""
#. Tag: para
#: reference_raster.xml:10535
#, no-c-format
msgid ", <xref linkend=\"RT_ST_Contains\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:10544
#, no-c-format
msgid "ST_Covers"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:10545
#, no-c-format
msgid "Return true if no points of raster rastB lie outside raster rastA."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:10551
#, no-c-format
msgid ""
"<funcprototype> <funcdef>boolean <function>ST_Covers</function></funcdef> "
"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> "
"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> "
"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> "
"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </"
"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Covers</"
"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</"
"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</"
"parameter> </paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:10590
#, no-c-format
msgid ""
"Raster rastA covers rastB if and only if no points of rastB lie in the "
"exterior of rastA. If the band number is not provided (or set to NULL), only "
"the convex hull of the raster is considered in the test. If the band number "
"is provided, only those pixels with value (not NODATA) are considered in the "
"test."
msgstr ""
#. Tag: para
#: reference_raster.xml:10601
#, no-c-format
msgid ""
"To test the spatial relationship of a raster and a geometry, use ST_Polygon "
"on the raster, e.g. ST_Covers(ST_Polygon(raster), geometry) or "
"ST_Covers(geometry, ST_Polygon(raster))."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:10612
#, no-c-format
msgid ""
"SELECT r1.rid, r2.rid, ST_Covers(r1.rast, 1, r2.rast, 1) FROM dummy_rast r1 "
"CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n"
"\n"
" rid | rid | st_covers\n"
"-----+-----+-----------\n"
" 2 | 1 | f\n"
" 2 | 2 | t"
msgstr ""
#. Tag: para
#: reference_raster.xml:10616
#, no-c-format
msgid ", <xref linkend=\"RT_ST_CoveredBy\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:10625
#, no-c-format
msgid "ST_CoveredBy"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:10626
#, no-c-format
msgid "Return true if no points of raster rastA lie outside raster rastB."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:10632
#, no-c-format
msgid ""
"<funcprototype> <funcdef>boolean <function>ST_CoveredBy</function></funcdef> "
"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> "
"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> "
"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> "
"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </"
"funcprototype> <funcprototype> <funcdef>boolean <function>ST_CoveredBy</"
"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</"
"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</"
"parameter> </paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:10671
#, no-c-format
msgid ""
"Raster rastA is covered by rastB if and only if no points of rastA lie in "
"the exterior of rastB. If the band number is not provided (or set to NULL), "
"only the convex hull of the raster is considered in the test. If the band "
"number is provided, only those pixels with value (not NODATA) are considered "
"in the test."
msgstr ""
#. Tag: para
#: reference_raster.xml:10682
#, no-c-format
msgid ""
"To test the spatial relationship of a raster and a geometry, use ST_Polygon "
"on the raster, e.g. ST_CoveredBy(ST_Polygon(raster), geometry) or "
"ST_CoveredBy(geometry, ST_Polygon(raster))."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:10693
#, no-c-format
msgid ""
"SELECT r1.rid, r2.rid, ST_CoveredBy(r1.rast, 1, r2.rast, 1) FROM dummy_rast "
"r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n"
"\n"
" rid | rid | st_coveredby\n"
"-----+-----+--------------\n"
" 2 | 1 | f\n"
" 2 | 2 | t"
msgstr ""
#. Tag: para
#: reference_raster.xml:10697
#, no-c-format
msgid ", <xref linkend=\"RT_ST_Covers\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:10706
#, no-c-format
msgid "ST_Disjoint"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:10707
#, no-c-format
msgid "Return true if raster rastA does not spatially intersect rastB."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:10713
#, no-c-format
msgid ""
"<funcprototype> <funcdef>boolean <function>ST_Disjoint</function></funcdef> "
"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> "
"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> "
"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> "
"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </"
"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Disjoint</"
"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</"
"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</"
"parameter> </paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:10752
#, no-c-format
msgid ""
"Raster rastA and rastB are disjointed if they do not share any space "
"together. If the band number is not provided (or set to NULL), only the "
"convex hull of the raster is considered in the test. If the band number is "
"provided, only those pixels with value (not NODATA) are considered in the "
"test."
msgstr ""
#. Tag: para
#: reference_raster.xml:10757
#, no-c-format
msgid "This function does NOT use any indexes."
msgstr ""
#. Tag: para
#: reference_raster.xml:10763
#, no-c-format
msgid ""
"To test the spatial relationship of a raster and a geometry, use ST_Polygon "
"on the raster, e.g. ST_Disjoint(ST_Polygon(raster), geometry)."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:10774
#, no-c-format
msgid ""
"-- rid = 1 has no bands, hence the NOTICE and the NULL value for "
"st_disjoint\n"
"SELECT r1.rid, r2.rid, ST_Disjoint(r1.rast, 1, r2.rast, 1) FROM dummy_rast "
"r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n"
"\n"
"NOTICE: The second raster provided has no bands\n"
" rid | rid | st_disjoint\n"
"-----+-----+-------------\n"
" 2 | 1 |\n"
" 2 | 2 | f"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:10776
#, no-c-format
msgid ""
"-- this time, without specifying band numbers\n"
"SELECT r1.rid, r2.rid, ST_Disjoint(r1.rast, r2.rast) FROM dummy_rast r1 "
"CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n"
"\n"
" rid | rid | st_disjoint\n"
"-----+-----+-------------\n"
" 2 | 1 | t\n"
" 2 | 2 | f"
msgstr ""
#. Tag: refname
#: reference_raster.xml:10789
#, no-c-format
msgid "ST_Intersects"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:10790
#, no-c-format
msgid "Return true if raster rastA spatially intersects raster rastB."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:10794
#, no-c-format
msgid ""
"<funcprototype> <funcdef>boolean <function>ST_Intersects</function></"
"funcdef> <paramdef> <type>raster </type> <parameter>rastA</parameter> </"
"paramdef> <paramdef> <type>integer </type> <parameter>nbandA</parameter> </"
"paramdef> <paramdef> <type>raster </type> <parameter>rastB</parameter> </"
"paramdef> <paramdef> <type>integer </type> <parameter>nbandB</parameter> </"
"paramdef> </funcprototype> <funcprototype> <funcdef>boolean "
"<function>ST_Intersects</function></funcdef> <paramdef> <type>raster </type> "
"<parameter>rastA</parameter> </paramdef> <paramdef> <type>raster </type> "
"<parameter>rastB</parameter> </paramdef> </funcprototype> <funcprototype> "
"<funcdef>boolean <function>ST_Intersects</function></funcdef> <paramdef> "
"<type>raster </type> <parameter>rast</parameter> </paramdef> <paramdef> "
"<type>integer </type> <parameter>nband</parameter> </paramdef> <paramdef> "
"<type>geometry </type> <parameter>geommin</parameter> </paramdef> </"
"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Intersects</"
"function></funcdef> <paramdef> <type>raster </type> <parameter>rast</"
"parameter> </paramdef> <paramdef> <type>geometry </type> <parameter>geommin</"
"parameter> </paramdef> <paramdef choice=\"opt\"> <type>integer </type> "
"<parameter>nband=NULL</parameter> </paramdef> </funcprototype> "
"<funcprototype> <funcdef>boolean <function>ST_Intersects</function></"
"funcdef> <paramdef> <type>geometry </type> <parameter>geommin</parameter> </"
"paramdef> <paramdef> <type>raster </type> <parameter>rast</parameter> </"
"paramdef> <paramdef choice=\"opt\"> <type>integer </type> "
"<parameter>nband=NULL</parameter> </paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:10881
#, no-c-format
msgid ""
"Return true if raster rastA spatially intersects raster rastB. If the band "
"number is not provided (or set to NULL), only the convex hull of the raster "
"is considered in the test. If the band number is provided, only those pixels "
"with value (not NODATA) are considered in the test."
msgstr ""
#. Tag: para
#: reference_raster.xml:10891
#, no-c-format
msgid "Enhanced: 2.0.0 support raster/raster intersects was introduced."
msgstr ""
#. Tag: para
#: reference_raster.xml:10896
#, no-c-format
msgid ""
"Changed: 2.1.0 The behavior of the ST_Intersects(raster, geometry) variants "
"changed to match that of ST_Intersects(geometry, raster)."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:10905
#, no-c-format
msgid ""
"-- different bands of same raster\n"
"SELECT ST_Intersects(rast, 2, rast, 3) FROM dummy_rast WHERE rid = 2;\n"
"\n"
" st_intersects\n"
"---------------\n"
" t"
msgstr ""
#. Tag: para
#: reference_raster.xml:10910
#, no-c-format
msgid ", <xref linkend=\"RT_ST_Disjoint\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:10919
#, no-c-format
msgid "ST_Overlaps"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:10920
#, no-c-format
msgid ""
"Return true if raster rastA and rastB intersect but one does not completely "
"contain the other."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:10926
#, no-c-format
msgid ""
"<funcprototype> <funcdef>boolean <function>ST_Overlaps</function></funcdef> "
"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> "
"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> "
"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> "
"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </"
"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Overlaps</"
"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</"
"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</"
"parameter> </paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:10965
#, no-c-format
msgid ""
"Return true if raster rastA spatially overlaps raster rastB. This means that "
"rastA and rastB intersect but one does not completely contain the other. If "
"the band number is not provided (or set to NULL), only the convex hull of "
"the raster is considered in the test. If the band number is provided, only "
"those pixels with value (not NODATA) are considered in the test."
msgstr ""
#. Tag: para
#: reference_raster.xml:10976
#, no-c-format
msgid ""
"To test the spatial relationship of a raster and a geometry, use ST_Polygon "
"on the raster, e.g. ST_Overlaps(ST_Polygon(raster), geometry)."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:10987
#, no-c-format
msgid ""
"-- comparing different bands of same raster\n"
"SELECT ST_Overlaps(rast, 1, rast, 2) FROM dummy_rast WHERE rid = 2;\n"
"\n"
" st_overlaps\n"
"-------------\n"
" f"
msgstr ""
#. Tag: refname
#: reference_raster.xml:10999
#, no-c-format
msgid "ST_Touches"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:11000
#, no-c-format
msgid ""
"Return true if raster rastA and rastB have at least one point in common but "
"their interiors do not intersect."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:11006
#, no-c-format
msgid ""
"<funcprototype> <funcdef>boolean <function>ST_Touches</function></funcdef> "
"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> "
"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> "
"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> "
"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </"
"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Touches</"
"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</"
"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</"
"parameter> </paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:11045
#, no-c-format
msgid ""
"Return true if raster rastA spatially touches raster rastB. This means that "
"rastA and rastB have at least one point in common but their interiors do not "
"intersect. If the band number is not provided (or set to NULL), only the "
"convex hull of the raster is considered in the test. If the band number is "
"provided, only those pixels with value (not NODATA) are considered in the "
"test."
msgstr ""
#. Tag: para
#: reference_raster.xml:11056
#, no-c-format
msgid ""
"To test the spatial relationship of a raster and a geometry, use ST_Polygon "
"on the raster, e.g. ST_Touches(ST_Polygon(raster), geometry)."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:11067
#, no-c-format
msgid ""
"SELECT r1.rid, r2.rid, ST_Touches(r1.rast, 1, r2.rast, 1) FROM dummy_rast r1 "
"CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n"
"\n"
" rid | rid | st_touches\n"
"-----+-----+------------\n"
" 2 | 1 | f\n"
" 2 | 2 | f"
msgstr ""
#. Tag: refname
#: reference_raster.xml:11079
#, no-c-format
msgid "ST_SameAlignment"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:11081
#, no-c-format
msgid ""
"Returns true if rasters have same skew, scale, spatial ref, and offset "
"(pixels can be put on same grid without cutting into pixels) and false if "
"they don't with notice detailing issue."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:11085
#, no-c-format
msgid ""
"<funcprototype> <funcdef>boolean <function>ST_SameAlignment</function></"
"funcdef> <paramdef> <type>raster </type> <parameter>rastA</parameter> </"
"paramdef> <paramdef> <type>raster </type> <parameter>rastB</parameter> </"
"paramdef> </funcprototype> <funcprototype> <funcdef>boolean "
"<function>ST_SameAlignment</function></funcdef> <paramdef> <type>double "
"precision </type> <parameter>ulx1</parameter> </paramdef> <paramdef> "
"<type>double precision </type> <parameter>uly1</parameter> </paramdef> "
"<paramdef> <type>double precision </type> <parameter>scalex1</parameter> </"
"paramdef> <paramdef> <type>double precision </type> <parameter>scaley1</"
"parameter> </paramdef> <paramdef> <type>double precision </type> "
"<parameter>skewx1</parameter> </paramdef> <paramdef> <type>double precision "
"</type> <parameter>skewy1</parameter> </paramdef> <paramdef> <type>double "
"precision </type> <parameter>ulx2</parameter> </paramdef> <paramdef> "
"<type>double precision </type> <parameter>uly2</parameter> </paramdef> "
"<paramdef> <type>double precision </type> <parameter>scalex2</parameter> </"
"paramdef> <paramdef> <type>double precision </type> <parameter>scaley2</"
"parameter> </paramdef> <paramdef> <type>double precision </type> "
"<parameter>skewx2</parameter> </paramdef> <paramdef> <type>double precision "
"</type> <parameter>skewy2</parameter> </paramdef> </funcprototype> "
"<funcprototype> <funcdef>boolean <function>ST_SameAlignment</function></"
"funcdef> <paramdef> <type>raster set </type> <parameter>rastfield</"
"parameter> </paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:11164
#, no-c-format
msgid ""
"Non-Aggregate version (Variants 1 and 2): Returns true if the two rasters "
"(either provided directly or made using the values for upperleft, scale, "
"skew and srid) have the same scale, skew, srid and at least one of any of "
"the four corners of any pixel of one raster falls on any corner of the grid "
"of the other raster. Returns false if they don't and a NOTICE detailing the "
"alignment issue."
msgstr ""
#. Tag: para
#: reference_raster.xml:11168
#, no-c-format
msgid ""
"Aggregate version (Variant 3): From a set of rasters, returns true if all "
"rasters in the set are aligned. The ST_SameAlignment() function is an "
"\"aggregate\" function in the terminology of PostgreSQL. That means that it "
"operates on rows of data, in the same way the SUM() and AVG() functions do."
msgstr ""
#. Tag: para
#: reference_raster.xml:11173
#, no-c-format
msgid "Enhanced: 2.1.0 addition of Aggegrate variant"
msgstr ""
#. Tag: title
#: reference_raster.xml:11177
#, no-c-format
msgid "Examples: Rasters"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:11179
#, no-c-format
msgid ""
"SELECT ST_SameAlignment(\n"
" ST_MakeEmptyRaster(1, 1, 0, 0, 1, 1, 0, 0),\n"
" ST_MakeEmptyRaster(1, 1, 0, 0, 1, 1, 0, 0)\n"
") as sm;\n"
"\n"
"sm\n"
"----\n"
"t"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:11180
#, no-c-format
msgid ""
"SELECT ST_SameAlignment(A.rast,b.rast)\n"
" FROM dummy_rast AS A CROSS JOIN dummy_rast AS B;\n"
"\n"
" NOTICE: The two rasters provided have different SRIDs\n"
"NOTICE: The two rasters provided have different SRIDs\n"
" st_samealignment\n"
"------------------\n"
" t\n"
" f\n"
" f\n"
" f"
msgstr ""
#. Tag: para
#: reference_raster.xml:11184
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_NotSameAlignmentReason\"/>, <xref linkend="
"\"RT_ST_MakeEmptyRaster\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:11194
#, no-c-format
msgid "ST_NotSameAlignmentReason"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:11195
#, no-c-format
msgid ""
"<refpurpose>Returns text stating if rasters are aligned and if not aligned, "
"a reason why.</refpurpose>"
msgstr ""
#. Tag: funcprototype
#: reference_raster.xml:11200
#, no-c-format
msgid ""
"<funcdef>text <function>ST_NotSameAlignmentReason</function></funcdef> "
"<paramdef><type>raster </type><parameter>rastA</parameter></paramdef> "
"<paramdef><type>raster </type><parameter>rastB</parameter></paramdef>"
msgstr ""
#. Tag: para
#: reference_raster.xml:11210
#, no-c-format
msgid ""
"<para>Returns text stating if rasters are aligned and if not aligned, a "
"reason why.</para>"
msgstr ""
#. Tag: para
#: reference_raster.xml:11213
#, no-c-format
msgid ""
"If there are several reasons why the rasters are not aligned, only one "
"reason (the first test to fail) will be returned."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:11223
#, no-c-format
msgid ""
"SELECT\n"
" ST_SameAlignment(\n"
" ST_MakeEmptyRaster(1, 1, 0, 0, 1, 1, 0, 0),\n"
" ST_MakeEmptyRaster(1, 1, 0, 0, 1.1, 1.1, 0, 0)\n"
" ),\n"
" ST_NotSameAlignmentReason(\n"
" ST_MakeEmptyRaster(1, 1, 0, 0, 1, 1, 0, 0),\n"
" ST_MakeEmptyRaster(1, 1, 0, 0, 1.1, 1.1, 0, 0)\n"
" )\n"
";\n"
"\n"
" st_samealignment | st_notsamealignmentreason\n"
"------------------+-------------------------------------------------\n"
" f | The rasters have different scales on the X axis\n"
"(1 row)"
msgstr ""
#. Tag: para
#: reference_raster.xml:11228
#, no-c-format
msgid ", <xref linkend=\"RT_ST_SameAlignment\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:11237
#, no-c-format
msgid "ST_Within"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:11238
#, no-c-format
msgid ""
"Return true if no points of raster rastA lie in the exterior of raster rastB "
"and at least one point of the interior of rastA lies in the interior of "
"rastB."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:11244
#, no-c-format
msgid ""
"<funcprototype> <funcdef>boolean <function>ST_Within</function></funcdef> "
"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> "
"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> "
"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> "
"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </"
"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Within</"
"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</"
"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</"
"parameter> </paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:11283
#, no-c-format
msgid ""
"Raster rastA is within rastB if and only if no points of rastA lie in the "
"exterior of rastB and at least one point of the interior of rastA lies in "
"the interior of rastB. If the band number is not provided (or set to NULL), "
"only the convex hull of the raster is considered in the test. If the band "
"number is provided, only those pixels with value (not NODATA) are considered "
"in the test."
msgstr ""
#. Tag: para
#: reference_raster.xml:11294
#, no-c-format
msgid ""
"To test the spatial relationship of a raster and a geometry, use ST_Polygon "
"on the raster, e.g. ST_Within(ST_Polygon(raster), geometry) or "
"ST_Within(geometry, ST_Polygon(raster))."
msgstr ""
#. Tag: para
#: reference_raster.xml:11300
#, no-c-format
msgid ""
"ST_Within() is the inverse of ST_Contains(). So, ST_Within(rastA, rastB) "
"implies ST_Contains(rastB, rastA)."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:11311
#, no-c-format
msgid ""
"SELECT r1.rid, r2.rid, ST_Within(r1.rast, 1, r2.rast, 1) FROM dummy_rast r1 "
"CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n"
"\n"
" rid | rid | st_within\n"
"-----+-----+-----------\n"
" 2 | 1 | f\n"
" 2 | 2 | t"
msgstr ""
#. Tag: para
#: reference_raster.xml:11315
#, no-c-format
msgid ""
", <xref linkend=\"RT_ST_Contains\"/>, <xref linkend=\"RT_ST_DWithin\"/>, "
"<xref linkend=\"RT_ST_DFullyWithin\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:11326
#, no-c-format
msgid "ST_DWithin"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:11327
#, no-c-format
msgid ""
"Return true if rasters rastA and rastB are within the specified distance of "
"each other."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:11333
#, no-c-format
msgid ""
"<funcprototype> <funcdef>boolean <function>ST_DWithin</function></funcdef> "
"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> "
"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> "
"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> "
"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> "
"<paramdef> <type>double precision </type> <parameter>distance_of_srid</"
"parameter> </paramdef> </funcprototype> <funcprototype> <funcdef>boolean "
"<function>ST_DWithin</function></funcdef> <paramdef> <type>raster </type> "
"<parameter>rastA</parameter> </paramdef> <paramdef> <type>raster </type> "
"<parameter>rastB</parameter> </paramdef> <paramdef> <type>double precision </"
"type> <parameter>distance_of_srid</parameter> </paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:11380
#, no-c-format
msgid ""
"Return true if rasters rastA and rastB are within the specified distance of "
"each other. If the band number is not provided (or set to NULL), only the "
"convex hull of the raster is considered in the test. If the band number is "
"provided, only those pixels with value (not NODATA) are considered in the "
"test."
msgstr ""
#. Tag: para
#: reference_raster.xml:11384 reference_raster.xml:11477
#, no-c-format
msgid ""
"The distance is specified in units defined by the spatial reference system "
"of the rasters. For this function to make sense, the source rasters must "
"both be of the same coordinate projection, having the same SRID."
msgstr ""
#. Tag: para
#: reference_raster.xml:11395
#, no-c-format
msgid ""
"To test the spatial relationship of a raster and a geometry, use ST_Polygon "
"on the raster, e.g. ST_DWithin(ST_Polygon(raster), geometry)."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:11406
#, no-c-format
msgid ""
"SELECT r1.rid, r2.rid, ST_DWithin(r1.rast, 1, r2.rast, 1, 3.14) FROM "
"dummy_rast r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n"
"\n"
" rid | rid | st_dwithin\n"
"-----+-----+------------\n"
" 2 | 1 | f\n"
" 2 | 2 | t"
msgstr ""
#. Tag: para
#: reference_raster.xml:11410
#, no-c-format
msgid ", <xref linkend=\"RT_ST_DFullyWithin\"/>"
msgstr ""
#. Tag: refname
#: reference_raster.xml:11419
#, no-c-format
msgid "ST_DFullyWithin"
msgstr ""
#. Tag: refpurpose
#: reference_raster.xml:11420
#, no-c-format
msgid ""
"Return true if rasters rastA and rastB are fully within the specified "
"distance of each other."
msgstr ""
#. Tag: funcsynopsis
#: reference_raster.xml:11426
#, no-c-format
msgid ""
"<funcprototype> <funcdef>boolean <function>ST_DFullyWithin</function></"
"funcdef> <paramdef> <type>raster </type> <parameter>rastA</parameter> </"
"paramdef> <paramdef> <type>integer </type> <parameter>nbandA</parameter> </"
"paramdef> <paramdef> <type>raster </type> <parameter>rastB</parameter> </"
"paramdef> <paramdef> <type>integer </type> <parameter>nbandB</parameter> </"
"paramdef> <paramdef> <type>double precision </type> "
"<parameter>distance_of_srid</parameter> </paramdef> </funcprototype> "
"<funcprototype> <funcdef>boolean <function>ST_DFullyWithin</function></"
"funcdef> <paramdef> <type>raster </type> <parameter>rastA</parameter> </"
"paramdef> <paramdef> <type>raster </type> <parameter>rastB</parameter> </"
"paramdef> <paramdef> <type>double precision </type> "
"<parameter>distance_of_srid</parameter> </paramdef> </funcprototype>"
msgstr ""
#. Tag: para
#: reference_raster.xml:11473
#, no-c-format
msgid ""
"Return true if rasters rastA and rastB are fully within the specified "
"distance of each other. If the band number is not provided (or set to NULL), "
"only the convex hull of the raster is considered in the test. If the band "
"number is provided, only those pixels with value (not NODATA) are considered "
"in the test."
msgstr ""
#. Tag: para
#: reference_raster.xml:11488
#, no-c-format
msgid ""
"To test the spatial relationship of a raster and a geometry, use ST_Polygon "
"on the raster, e.g. ST_DFullyWithin(ST_Polygon(raster), geometry)."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:11499
#, no-c-format
msgid ""
"SELECT r1.rid, r2.rid, ST_DFullyWithin(r1.rast, 1, r2.rast, 1, 3.14) FROM "
"dummy_rast r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n"
"\n"
" rid | rid | st_dfullywithin\n"
"-----+-----+-----------------\n"
" 2 | 1 | f\n"
" 2 | 2 | t"
msgstr ""
#. Tag: para
#: reference_raster.xml:11503
#, no-c-format
msgid ", <xref linkend=\"RT_ST_DWithin\"/>"
msgstr ""
#. Tag: para
#: reference_raster.xml:11515
#, no-c-format
msgid ""
"This section documents various gotchas and tips related to PostGIS Raster."
msgstr ""
#. Tag: title
#: reference_raster.xml:11518
#, no-c-format
msgid "Raster Tips"
msgstr ""
#. Tag: title
#: reference_raster.xml:11521
#, no-c-format
msgid "Out-DB Rasters"
msgstr ""
#. Tag: title
#: reference_raster.xml:11524
#, no-c-format
msgid "Directory containing many files"
msgstr ""
#. Tag: para
#: reference_raster.xml:11525
#, no-c-format
msgid ""
"When GDAL opens a file, GDAL eagerly scans the directory of that file to "
"build a catalog of other files. If this directory contains many files (e.g. "
"thousands, millions), opening that file becomes extremely slow (especially "
"if that file happens to be on a network drive such as NFS)."
msgstr ""
#. Tag: para
#: reference_raster.xml:11528
#, no-c-format
msgid ""
"To control this behavior, GDAL provides the following environment variable: "
"<ulink url=\"https://trac.osgeo.org/gdal/wiki/"
"ConfigOptions#GDAL_DISABLE_READDIR_ON_OPEN\">GDAL_DISABLE_READDIR_ON_OPEN</"
"ulink>. Set <varname>GDAL_DISABLE_READDIR_ON_OPEN</varname> to "
"<varname>TRUE</varname> to disable directory scanning."
msgstr ""
#. Tag: para
#: reference_raster.xml:11532
#, no-c-format
msgid ""
"In Ubuntu (and assuming you are using PostgreSQL's packages for Ubuntu), "
"<varname>GDAL_DISABLE_READDIR_ON_OPEN</varname> can be set in <emphasis>/etc/"
"postgresql/POSTGRESQL_VERSION/CLUSTER_NAME/environment</emphasis> (where "
"POSTGRESQL_VERSION is the version of PostgreSQL, e.g. 9.6 and CLUSTER_NAME "
"is the name of the cluster, e.g. maindb). You can also set PostGIS "
"environment variables here as well."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:11535
#, no-c-format
msgid ""
"# environment variables for postmaster process\n"
"# This file has the same syntax as postgresql.conf:\n"
"# VARIABLE = simple_value\n"
"# VARIABLE2 = 'any value!'\n"
"# I. e. you need to enclose any value which does not only consist of "
"letters,\n"
"# numbers, and '-', '_', '.' in single quotes. Shell commands are not\n"
"# evaluated.\n"
"POSTGIS_GDAL_ENABLED_DRIVERS = 'ENABLE_ALL'\n"
"\n"
"POSTGIS_ENABLE_OUTDB_RASTERS = 1\n"
"\n"
"<emphasis role=\"strong\">GDAL_DISABLE_READDIR_ON_OPEN = 'TRUE'</emphasis>"
msgstr ""
#. Tag: title
#: reference_raster.xml:11541
#, no-c-format
msgid "Maximum Number of Open Files"
msgstr ""
#. Tag: para
#: reference_raster.xml:11543
#, no-c-format
msgid ""
"The maximum number of open files permitted by Linux and PostgreSQL are "
"typically conservative (typically 1024 open files per process) given the "
"assumption that the system is consumed by human users. For Out-DB Rasters, a "
"single valid query can easily exceed this limit (e.g. a dataset of 10 year's "
"worth of rasters with one raster for each day containing minimum and maximum "
"temperatures and we want to know the absolute min and max value for a pixel "
"in that dataset)."
msgstr ""
#. Tag: para
#: reference_raster.xml:11547
#, no-c-format
msgid ""
"The easiest change to make is the following PostgreSQL setting: <ulink url="
"\"https://www.postgresql.org/docs/current/static/runtime-config-resource."
"html#GUC-MAX-FILES-PER-PROCESS\">max_files_per_process</ulink>. The default "
"is set to 1000, which is far too low for Out-DB Rasters. A safe starting "
"value could be 65536 but this really depends on your datasets and the "
"queries run against those datasets. This setting can only be made on server "
"start and probably only in the PostgreSQL configuration file (e.g. "
"<emphasis>/etc/postgresql/POSTGRESQL_VERSION/CLUSTER_NAME/postgresql.conf</"
"emphasis> in Ubuntu environments)."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:11550
#, no-c-format
msgid ""
"...\n"
"# - Kernel Resource Usage -\n"
"\n"
"<emphasis role=\"strong\">max_files_per_process = 65536</emphasis> "
"# min 25\n"
" # (change requires restart)\n"
"..."
msgstr ""
#. Tag: para
#: reference_raster.xml:11553
#, no-c-format
msgid ""
"The major change to make is the Linux kernel's open files limits. There are "
"two parts to this:"
msgstr ""
#. Tag: para
#: reference_raster.xml:11557
#, no-c-format
msgid "<para>Maximum number of open files for the entire system</para>"
msgstr ""
#. Tag: para
#: reference_raster.xml:11560
#, no-c-format
msgid "<para>Maximum number of open files per process</para>"
msgstr ""
#. Tag: title
#: reference_raster.xml:11566
#, no-c-format
msgid "<title>Maximum number of open files for the entire system</title>"
msgstr ""
#. Tag: para
#: reference_raster.xml:11568
#, no-c-format
msgid ""
"You can inspect the current maximum number of open files for the entire "
"system with the following example:"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:11572
#, no-c-format
msgid ""
"$ sysctl -a | grep fs.file-max\n"
"fs.file-max = 131072"
msgstr ""
#. Tag: para
#: reference_raster.xml:11574
#, no-c-format
msgid ""
"If the value returned is not large enough, add a file to <emphasis>/etc/"
"sysctl.d/</emphasis> as per the following example:"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:11578
#, no-c-format
msgid ""
"$ echo \"fs.file-max = 6145324\" >> /etc/sysctl.d/fs.conf\n"
"\n"
"$ cat /etc/sysctl.d/fs.conf\n"
"fs.file-max = 6145324\n"
"\n"
"$ sysctl -p --system\n"
"* Applying /etc/sysctl.d/fs.conf ...\n"
"fs.file-max = 2097152\n"
"* Applying /etc/sysctl.conf ...\n"
"\n"
"$ sysctl -a | grep fs.file-max\n"
"fs.file-max = 6145324"
msgstr ""
#. Tag: title
#: reference_raster.xml:11582
#, no-c-format
msgid "<title>Maximum number of open files per process</title>"
msgstr ""
#. Tag: para
#: reference_raster.xml:11584
#, no-c-format
msgid ""
"We need to increase the maximum number of open files per process for the "
"PostgreSQL server processes."
msgstr ""
#. Tag: para
#: reference_raster.xml:11588
#, no-c-format
msgid ""
"To see what the current PostgreSQL service processes are using for maximum "
"number of open files, do as per the following example (make sure to have "
"PostgreSQL running):"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:11592
#, no-c-format
msgid ""
"$ ps aux | grep postgres\n"
"postgres 31713 0.0 0.4 179012 17564 pts/0 S Dec26 0:03 /home/"
"dustymugs/devel/postgresql/sandbox/10/usr/local/bin/postgres -D /home/"
"dustymugs/devel/postgresql/sandbox/10/pgdata\n"
"postgres 31716 0.0 0.8 179776 33632 ? Ss Dec26 0:01 postgres: "
"checkpointer process\n"
"postgres 31717 0.0 0.2 179144 9416 ? Ss Dec26 0:05 postgres: "
"writer process\n"
"postgres 31718 0.0 0.2 179012 8708 ? Ss Dec26 0:06 postgres: "
"wal writer process\n"
"postgres 31719 0.0 0.1 179568 7252 ? Ss Dec26 0:03 postgres: "
"autovacuum launcher process\n"
"postgres 31720 0.0 0.1 34228 4124 ? Ss Dec26 0:09 postgres: "
"stats collector process\n"
"postgres 31721 0.0 0.1 179308 6052 ? Ss Dec26 0:00 postgres: "
"bgworker: logical replication launcher\n"
"\n"
"$ cat /proc/31718/limits\n"
"Limit Soft Limit Hard Limit Units\n"
"Max cpu time unlimited unlimited seconds\n"
"Max file size unlimited unlimited bytes\n"
"Max data size unlimited unlimited bytes\n"
"Max stack size 8388608 unlimited bytes\n"
"Max core file size 0 unlimited bytes\n"
"Max resident set unlimited unlimited bytes\n"
"Max processes 15738 15738 "
"processes\n"
"<emphasis role=\"strong\">Max open files 1024 "
"4096 files</emphasis>\n"
"Max locked memory 65536 65536 bytes\n"
"Max address space unlimited unlimited bytes\n"
"Max file locks unlimited unlimited locks\n"
"Max pending signals 15738 15738 signals\n"
"Max msgqueue size 819200 819200 bytes\n"
"Max nice priority 0 0\n"
"Max realtime priority 0 0\n"
"Max realtime timeout unlimited unlimited us"
msgstr ""
#. Tag: para
#: reference_raster.xml:11594
#, no-c-format
msgid ""
"In the example above, we inspected the open files limit for Process 31718. "
"It doesn't matter which PostgreSQL process, any of them will do. The "
"response we are interested in is <emphasis>Max open files</emphasis>."
msgstr ""
#. Tag: para
#: reference_raster.xml:11598
#, no-c-format
msgid ""
"We want to increase <emphasis>Soft Limit</emphasis> and <emphasis>Hard "
"Limit</emphasis> of <emphasis>Max open files</emphasis> to be greater than "
"the value we specified for the PostgreSQL setting "
"<varname>max_files_per_process</varname>. In our example, we set "
"<varname>max_files_per_process</varname> to 65536."
msgstr ""
#. Tag: para
#: reference_raster.xml:11602
#, no-c-format
msgid ""
"In Ubuntu (and assuming you are using PostgreSQL's packages for Ubuntu), the "
"easiest way to change the <emphasis>Soft Limit</emphasis> and <emphasis>Hard "
"Limit</emphasis> is to edit <emphasis role=\"strong\">/etc/init.d/"
"postgresql</emphasis> (SysV) or <emphasis role=\"strong\">/lib/systemd/"
"system/postgresql*.service</emphasis> (systemd)."
msgstr ""
#. Tag: para
#: reference_raster.xml:11606
#, no-c-format
msgid ""
"Let's first address the SysV Ubuntu case where we add <emphasis role=\"strong"
"\">ulimit -H -n 262144</emphasis> and <emphasis role=\"strong\">ulimit -n "
"131072</emphasis> to <emphasis role=\"strong\">/etc/init.d/postgresql</"
"emphasis>."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:11610
#, no-c-format
msgid ""
"...\n"
"case \"$1\" in\n"
" start|stop|restart|reload)\n"
" if [ \"$1\" = \"start\" ]; then\n"
" create_socket_directory\n"
" fi\n"
" if [ -z \"`pg_lsclusters -h`\" ]; then\n"
" log_warning_msg 'No PostgreSQL clusters exist; see \"man "
"pg_createcluster\"'\n"
" exit 0\n"
" fi\n"
"<emphasis role=\"strong\">\n"
" ulimit -H -n 262144\n"
" ulimit -n 131072\n"
"</emphasis>\n"
" for v in $versions; do\n"
" $1 $v || EXIT=$?\n"
" done\n"
" exit ${EXIT:-0}\n"
" ;;\n"
" status)\n"
"..."
msgstr ""
#. Tag: para
#: reference_raster.xml:11612
#, no-c-format
msgid ""
"Now to address the systemd Ubuntu case. We will add <emphasis role=\"strong"
"\">LimitNOFILE=131072</emphasis> to every <emphasis role=\"strong\">/lib/"
"systemd/system/postgresql*.service</emphasis> file in the <emphasis role="
"\"strong\">[Service]</emphasis> section."
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:11616
#, no-c-format
msgid ""
"...\n"
"[Service]\n"
"<emphasis role=\"strong\">\n"
"LimitNOFILE=131072\n"
"</emphasis>\n"
"...\n"
"\n"
"[Install]\n"
"WantedBy=multi-user.target\n"
"..."
msgstr ""
#. Tag: para
#: reference_raster.xml:11618
#, no-c-format
msgid ""
"After making the necessary systemd changes, make sure to reload the daemon"
msgstr ""
#. Tag: programlisting
#: reference_raster.xml:11622
#, no-c-format
msgid "systemctl daemon-reload"
msgstr ""
|