[postgis-devel] Raster: ST_HasNoBand

Jorge Arévalo jorge.arevalo at deimos-space.com
Mon Jan 31 01:25:16 PST 2011


On Sun, Jan 30, 2011 at 6:36 PM, Paragon Corporation <lr at pcorp.us> wrote:
> Okay guys this might be a dumb question, but I see we have a function with 2
> protos which is not documented BTW:
>
> ST_HasNoBand(raster), ST_HasNoBand(raster, bandnum?)
>
>  The second proto seems a bit silly to me. Hmm what is the utility of
> knowing that a band  has no band?   I can't even fathom what that means.
>
> Thanks,
> Regina
>
>
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
>

Hi Regina,

These functions only tells if a raster has (or not) a band. The first
prototype takes 1 as default band number. The second one checks if the
raster has the given band number. The functions are used in
MapAlgebra.

Best regards,

-- 
Jorge Arévalo
Internet & Mobilty Division, DEIMOS
jorge.arevalo at deimos-space.com
http://es.linkedin.com/in/jorgearevalo80
http://mobility.grupodeimos.com/
http://gis4free.wordpress.com
http://geohash.org/ezjqgrgzz0g



More information about the postgis-devel mailing list