Ticket #1576 (closed defect: fixed)
[raster] ST_Clip should accept an array of nodata value
|Reported by:||pracine||Owned by:||pracine|
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.