209 | | WHERE rid=3278; |
| 209 | WHERE rid=1869; |
| 210 | }}} |
| 211 | |
| 212 | NOTE: In PostGIS 2.0 the "ST_BandNodataValue(rast)" and "ST_SetBandNodataValue(rast, nodatavalue)" support the NULL value so that the "ST_BandHasNodataValue(rast)" and the "ST_SetBandHasNodataValue(rast, bool)" functions are now respectively replaced by "NOT ST_BandNodataValue(rast) IS NULL" and "ST_SetBandNodataValue(rast, NULL)". The two previous queries in PostGIS 2.0 would be: |
| 213 | |
| 214 | {{{ |
| 215 | SELECT NOT ST_BandNodataValue(rast) IS NULL, ST_BandNodataValue(rast) |
| 216 | FROM srtm_tiled |
| 217 | LIMIT 1; |
| 218 | }}} |
| 219 | |
| 220 | and |
| 221 | |
| 222 | {{{ |
| 223 | SELECT ST_AsBinary( |
| 224 | (ST_DumpAsPolygons(ST_SetBandNodataValue(rast, NULL))).geom), |
| 225 | (ST_DumpAsPolygons(ST_SetBandNodataValue(rast, NULL))).val |
| 226 | FROM srtm_tiled |
| 227 | WHERE rid=1869; |