On Mon, Oct 19, 2015 at 5:18 PM, G. Allegri <gioha...@gmail.com> wrote:

> Doing a logical operation with a DCELL raster within an if(x,a) statement
> produces an error: "Incorrect argument types to function bitand()".
> This doesn't seem to be described inside the docs, is it?
>

That sounds like a bug to me. I just tried it out and it runs fine (using
GRASS 7.1). What GRASS version are you using?


>
> When the if() function is described it only states its behaviour in case
> of NULL, 0 or "otherwise" values.
> It works correctly if the maps are CELL (i.e. e value not eqaul 0 is
> treated correctly whatever it is) and it's quite confusing for users having
> a different behaviour, and sepcifically an error, in case of floating point
> rasters, don't you think?
>
> Regards,
> giovanni
>
> --
> Giovanni Allegri
> http://about.me/giovanniallegri
> Gis3W - http://gis3w.it
> Ikare - http://ikare.it
> Twitter: https://twitter.com/_giohappy_
> blog: http://blog.spaziogis.it
> GEO+ geomatica in Italia http://bit.ly/GEOplus
>
> _______________________________________________
> grass-user mailing list
> grass-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to