Changes between Version 104 and Version 105 of WKTRasterTutorial01


Ignore:
Timestamp:
Jan 17, 2011, 12:05:33 PM (13 years ago)
Author:
pracine
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • WKTRasterTutorial01

    v104 v105  
    179179        (ST_DumpAsPolygons(rast)).val
    180180 FROM srtm_tiled
    181  WHERE rid=3278;
     181 WHERE rid=1869;
    182182}}}
    183183
     
    207207         (ST_DumpAsPolygons(ST_SetBandHasNodataValue(rast, FALSE))).val
    208208 FROM srtm_tiled
    209  WHERE rid=3278;
     209 WHERE rid=1869;
     210}}}
     211
     212NOTE: 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
     220and
     221
     222{{{
     223SELECT 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;
    210228}}}
    211229