Ticket #1576 (closed defect: fixed)

Opened 15 months ago

Last modified 15 months ago

[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: trunk
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

Changed 15 months ago by pracine

  • status changed from new to assigned

Changed 15 months ago by pracine

Fixed in r9195. Doc modified.

Changed 15 months ago by pracine

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.