[postgis-users] How can i interchange(swap) the values of a band in postgis raster

Zelio Fernandes zelio.fern at gmail.com
Wed Feb 15 23:20:40 PST 2012

SELECT ST_AddBand(ST_Band(rast, 2), rast ,1) from image2tiff;   ------the
query runs but does does interchange bandvalues not it add the new band , i
verified this by this query
SELECT distinct ST_Value(rast, 1,1,1) As b1pval,ST_Value(rast, 2,1,1) As
b2pval, ST_Value(rast, 3,1,1) As b3pval,ST_Value(rast, 4,1,1) As b4pval
FROM image2tiff;

View this message in context: http://postgis.17.n6.nabble.com/How-can-i-interchange-swap-the-values-of-a-raster-bands-in-postgis-raster-tp4471437p4474993.html
Sent from the PostGIS - User mailing list archive at Nabble.com.

More information about the postgis-users mailing list