Hi Paolo

Because there is no unary minus in the raster calc grammar yet
(%left UMINUS  // fictitious symbol (for unary minus)  ).

As a workaround, (diff@1)* (0-1) should be ok.

Please fill a bug.

Regards,
Marco

Am Mittwoch, 16. März 2011, um 14.21:10 schrieb Paolo Cavallini:
> Hi all.
> Why are these expressions invalid?
> 
> (diff@1)*-1
> (diff@1)*(-1)
> 
> All the best.


-- 
Dr. Marco Hugentobler
Sourcepole -  Linux & Open Source Solutions
Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland
[email protected] http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to