[postgis-users] How can i interchange(swap) the values of a band in postgis raster
Pierre Racine
Pierre.Racine at sbf.ulaval.ca
Wed Feb 15 13:52:30 PST 2012
Actually just ST_Band(rast, 2,1) would do the job...
> -----Original Message-----
> From: postgis-users-bounces at postgis.refractions.net [mailto:postgis-users-
> bounces at postgis.refractions.net] On Behalf Of Pierre Racine
> Sent: Wednesday, February 15, 2012 9:34 AM
> To: PostGIS Users Discussion
> Subject: Re: [postgis-users] How can i interchange(swap) the values of a band in
> postgis raster
>
> Try something like ST_AddBand(ST_Band(rast, 2), rast, 1)
>
> and have a look at the documentation:
>
> http://postgis.refractions.net/documentation/manual-svn/RT_reference.html
>
> > -----Original Message-----
> > From: postgis-users-bounces at postgis.refractions.net
> > [mailto:postgis-users- bounces at postgis.refractions.net] On Behalf Of
> > Zelio Fernandes
> > Sent: Wednesday, February 15, 2012 4:34 AM
> > To: postgis-users at postgis.refractions.net
> > Subject: [postgis-users] How can i interchange(swap) the values of a
> > band in postgis raster
> >
> > How can i interchange(swap) the values of a band in postgis raster.
> >
> > for example if there are 4 raster bands in the raster table and
> > suppose if if i want to interchange the value of band1 with band2, how
> > do i do it ....i did not find any such specific function in postgis
> > 2.0 .......can it be done using ST_SetValue???????
> >
> > --
> > View this message in context:
> > http://postgis.17.n6.nabble.com/How-can-i-
> > interchange-swap-the-values-of-a-band-in-postgis-raster-
> > tp4471437p4471437.html
> > Sent from the PostGIS - User mailing list archive at Nabble.com.
> > _______________________________________________
> > postgis-users mailing list
> > postgis-users at postgis.refractions.net
> > http://postgis.refractions.net/mailman/listinfo/postgis-users
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
More information about the postgis-users
mailing list