341 | | - LAST: 'rast2', 'rast2', 'rast1', NULL |
342 | | |
343 | | - FIRST: 'rast1', 'rast2', 'rast1', NULL |
344 | | |
345 | | - MIN: 'LEAST(rast1, rast2)', 'rast2', 'rast1', NULL |
346 | | |
347 | | - MAX: 'GREATEST(rast1, rast2)', 'rast2', 'rast1', NULL |
348 | | |
349 | | - COUNT: 'rast1 + 1', '1', 'rast1', '0' |
350 | | |
351 | | - SUM: 'rast1 + rast2', 'rast2', 'rast1', NULL |
| 341 | - LAST: 'rast2', 'rast2', 'rast1', NULL |
| 342 | |
| 343 | -FIRST: 'rast1', 'rast2', 'rast1', NULL |
| 344 | |
| 345 | -MIN: 'LEAST(rast1, rast2)', 'rast2', 'rast1', NULL |
| 346 | |
| 347 | -MAX: 'GREATEST(rast1, rast2)', 'rast2', 'rast1', NULL |
| 348 | |
| 349 | -COUNT: 'rast1 + 1', '1', 'rast1', '0' |
| 350 | |
| 351 | -SUM: 'rast1 + rast2', 'rast2', 'rast1', NULL |
353 | | - RANGE: |
354 | | - p_expressions = 'LEAST(rast1, rast2)', 'rast2', 'rast1', NULL |
355 | | - t_expressions = 'GREATEST(rast1, rast2)', 'rast2', 'rast1', NULL |
356 | | - f_expressions = 'rast1 - rast2', NULL, NULL, NULL |
| 353 | -RANGE:[[BR]] |
| 354 | -p_expressions = 'LEAST(rast1, rast2)', 'rast2', 'rast1', NULL[[BR]] |
| 355 | -t_expressions = 'GREATEST(rast1, rast2)', 'rast2', 'rast1', NULL[[BR]] |
| 356 | -f_expressions = 'rast1 - rast2', NULL, NULL, NULL |
358 | | - MEAN: |
359 | | - p_expressions = 'rast1 + rast2', 'rast2', 'rast1', NULL //sum |
360 | | - t_expressions = 'rast1 + 1', '1', 'rast1', '0' //count |
361 | | - f_expressions = 'CASE WHEN rast2 > 0 THEN rast1 / rast2::float8 ELSE NULL END', NULL, NULL, NULL //sum/count |
| 358 | -MEAN:[[BR]] |
| 359 | -p_expressions = 'rast1 + rast2', 'rast2', 'rast1', NULL //sum[[BR]] |
| 360 | -t_expressions = 'rast1 + 1', '1', 'rast1', '0' //count[[BR]] |
| 361 | -f_expressions = 'CASE WHEN rast2 > 0 THEN rast1 / rast2::float8 ELSE NULL END', NULL, NULL, NULL //sum/count |
365 | | - MAX_LENGTH, MAX_AREA or MAX_ANYTHING (require MapAlgebra being able to reference other bans than 1): |
366 | | - p_expressions = 'CASE WHEN rast1[2] > rast2[t] THEN rast1[1] ELSE rast2[1] END', 'rast2[1]', 'rast1[1]', NULL |
367 | | - t_expressions = 'CASE WHEN rast1[2] > rast2[2] THEN rast1[2] ELSE rast2[2] END', 'rast2[2]', 'rast1[2]', NULL |
368 | | - f_expressions = 'rast1', NULL, NULL, NULL |
369 | | |
| 365 | -MAX_LENGTH, MAX_AREA or MAX_ANYTHING (require MapAlgebra being able to reference other bans than 1):[[BR]] |
| 366 | -p_expressions = 'CASE WHEN rast1[2] > rast2[t] THEN rast1[1] ELSE rast2[1] END', 'rast2[1]', 'rast1[1]', NULL[[BR]] |
| 367 | -t_expressions = 'CASE WHEN rast1[2] > rast2[2] THEN rast1[2] ELSE rast2[2] END', 'rast2[2]', 'rast1[2]', NULL[[BR]] |
| 368 | -f_expressions = 'rast1', NULL, NULL, NULL |