Opened 13 years ago
Last modified 7 years ago
#1119 closed enhancement
[raster] Modify ST_MapAlgebra so that expressions can refer to any band — at Version 3
Reported by: | pracine | Owned by: | pracine |
---|---|---|---|
Priority: | low | Milestone: | PostGIS Fund Me |
Component: | raster | Version: | master |
Keywords: | Cc: |
Description (last modified by )
This could be useful for:
-Writing expressions (like 'average') involving any band of the raster
-Refer to weighted information created by ST_AsRaster() (the length or the area of the geometry intersecting with the pixel
In the one raster version of MapAlgebra one could refer to the second band like this: 'rast[2]'.
In the two rasters version of MapAlgebra one could refer to the second band like this: 'rast1[2] + rast2[2]'.
'rast', 'rast1' and 'rast2' should by default refer to the value of the first band.
Out of bound band references should be clamped to the existing band range.
This change means that we MUST remove the function's band parameters since they are not useful anymore.
Change History (3)
comment:1 by , 13 years ago
Description: | modified (diff) |
---|
comment:2 by , 13 years ago
Summary: | [raster] Modify ST_Mapalgebra so that the expression can refer to any band → [raster] Modify ST_MapAlgebra so that expressions can refer to any band |
---|
comment:3 by , 13 years ago
Description: | modified (diff) |
---|