[QGIS-trac] [Quantum GIS] #3183: rasterlang
Quantum GIS
qgis at qgis.org
Wed Nov 3 01:28:35 EDT 2010
#3183: rasterlang
---------------------------------------------------------+------------------
Reporter: tsw | Owner: nobody
Type: bug | Status: new
Priority: critical: causes crash or data corruption | Milestone: Version 1.6.0
Component: Rasters | Version:
Keywords: rasterlang, possible patch | Platform_version:
Platform: All | Must_fix: No
Status_info: 0 |
---------------------------------------------------------+------------------
the equality operator does not work. In ops.py the current code exists:
def eq(*args):
debug.msg(1,"eq test ",args)
for i in range(1,len(args)):
if args[0]!=args[i]:
return False
return True
the comparison between args[0] nad args[i] generates a bug suggesting
calls to a.all() or a.any().
There is no need for a special eq operator. So replacing the line
'=': Op('=',eq,2,99,"test equality"),
with
'=': Op('=',operator.eq,2,2,"test equality"),
in ops.py produces a basic functioning equality operation for this plugin.
--
Ticket URL: <https://trac.osgeo.org/qgis/ticket/3183>
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