[QGIS-trac] [Quantum GIS] #3627: Raster calculator: -1 invalid
expression
Quantum GIS
qgis at qgis.org
Wed Mar 16 11:15:31 EDT 2011
#3627: Raster calculator: -1 invalid expression
------------------------------------------------+---------------------------
Reporter: pcav | Owner: mhugent
Type: bug | Status: new
Priority: major: does not work as expected | Milestone: Version 1.7.0
Component: Rasters | Version:
Keywords: | Platform_version:
Platform: All | Must_fix: No
Status_info: 0 |
------------------------------------------------+---------------------------
Currently these expressions are invalid:
{{{
(diff at 1)*-1
(diff at 1)*(-1)
}}}
because there is no unary minus in the raster calc grammar yet
(%left UMINUS // fictitious symbol (for unary minus) ).
As a workaround, (diff at 1)* (0-1) is ok
--
Ticket URL: <https://trac.osgeo.org/qgis/ticket/3627>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats
More information about the QGIS-trac
mailing list