Opened 13 years ago
Closed 13 years ago
#1576 closed defect (fixed)
[raster] ST_Clip should accept an array of nodata value
Reported by: | pracine | Owned by: | pracine |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.0.0 |
Component: | raster | Version: | master |
Keywords: | Cc: |
Description
Only one nodata value can be passed right now for when the provided raster do not have one defined. Since ST_Clip works on multiband rasters, we should be able to pass as many nodata values as there are bands in the raster to clip. We can accept a float8[].
If the number of nodata values provided in the array is smaller than the number of band, the last value is reused for the remaining bands.
If the number of nodata value provided is greater than the number of band the extra values are ignored.
This ticket is very similar to #1536. In general, we must have a way to provide nodata values to any function potentially creating new nodata value pixels with raster not having a nodata value defined.
Change History (3)
comment:1 by , 13 years ago
Status: | new → assigned |
---|
comment:2 by , 13 years ago
comment:3 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed in r9195. Doc modified.