| 14 | ---- |
| 15 | == '''Objective B03a - Being able to intersect two raster to get a raster.''' == |
| 16 | |
| 17 | '''ST_Intersection(raster, integer, raster, integer) -> raster''' - Returns a two bands raster with values only in the intersecting areas of both rasters. Integer parameters are the band number of the raster. |
| 18 | |
| 19 | '''Variants''' |
| 20 | |
| 21 | 1) ST_Intersection(raster, integer, raster, integer) -> raster -- the integer parameters are the band number of the rasters[[BR]] |
| 22 | 2) ST_Intersection(raster, raster, integer) -> raster -- default first raster to band # 1[[BR]] |
| 23 | 3) ST_Intersection(raster, integer, raster) -> raster -- default second raster to band # 1[[BR]] |
| 24 | 4) ST_Intersection(raster, raster) -> raster -- default both rasters to band # 1 |
| 25 | |
| 26 | == '''Objective B03a - Being able to intersect two raster to get a geometry.''' == |
| 27 | |
| 28 | '''ST_Intersection(raster, integer, raster, integer, 'geometry') -> geometry''' - Returns a two bands raster with values only in the intersecting areas of both rasters. Integer parameters are the band number of the raster. |
| 29 | |
| 30 | |
| 31 | '''Variants''' |
| 32 | |
| 33 | 1) ST_Intersection(raster, integer, raster, integer, 'geometry') -> geometry[[BR]] |
| 34 | 2) ST_Intersection(raster, raster, integer, 'geometry') -> geometry -- default first raster to band # 1[[BR]] |
| 35 | 3) ST_Intersection(raster, integer, raster, 'geometry') -> geometry -- default second raster to band # 1[[BR]] |
| 36 | 4) ST_Intersection(raster, raster, 'geometry') -> geometry -- default both raster to band # 1 |
| 37 | |