Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#602 closed enhancement (fixed)

[raster] Make sure ST_BandNoDataValue return NULL when ST_HasNoDataValue is false

Reported by: pracine Owned by: jorgearevalo
Priority: medium Milestone: PostGIS 2.0.0
Component: raster Version: master
Keywords: Cc:

Description


Change History (5)

comment:1 Changed 9 years ago by pracine

Status: newassigned

comment:2 Changed 9 years ago by pracine

Owner: changed from pracine to jorgearevalo
Status: assignednew

Also:

-Make sure ST_SetBandNodataValue accept NULL as input -Get rid of ST_SetBandHasNodataValue -Get rid of ST_BandHasNodataValue and all dependencies. It should be replaced in plpgsql by (ST_BandNodataValue(rast, band) IS NULL)

Note that, ST_BandNoDataValue in order to know if the nodata value is significant, still need the flag added when implementing ST_SetBandHasNodataValue. The difference is that now ST_SetBandNodataValue controls the flag.

comment:3 Changed 9 years ago by jorgearevalo

Status: newassigned

comment:4 Changed 9 years ago by jorgearevalo

Resolution: fixed
Status: assignedclosed

Solved in r6621.

comment:5 Changed 9 years ago by pracine

So Robe,

following this change ST_SetBandHasNodataValue & ST_BandHasNodataValue do not exist anymore. They are respectively replaced by

ST_SetBandNodataValue(rast, NULL) & NOT ST_BandNodatavalue(rast) IS NULL

Note: See TracTickets for help on using tickets.