22 | | '''ST_Intersects(raster, raster)'''[[BR]] |
23 | | '''Changes to ST_Intersection or use ST_MapAlgebra''' |
24 | | |
| 23 | '''ST_Intersection(geometry, raster, band) -> raster''' |
| 24 | |
| 25 | Rasterize the geometry as a new raster (ST_AsRaster(geometry, pixeltype, val, nodataval, raster)) and then copy only pixels for which both raster bands have a value. Optionally trim the raster to withvalue extent. |
| 26 | |
| 27 | Variants |
| 28 | |
| 29 | ST_Intersection(geometry, val, raster, band) -> raster with the same metadatada as the provided raster. Non intersecting pixels are filled with nodata values. |
| 30 | |
| 31 | ST_Intersection(geometry, val, raster, band, “TRIM”) -> raster with the same metadatada as the provided raster but the extent is reduced to the geometry extent. Non intersecting pixels are filled with nodata values. |
| 32 | |