[Greater-commits] r312 - trunk/GREAT-ER/Greater/UI
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Jun 30 11:21:52 CEST 2011
Author: aheinecke
Date: 2011-06-30 11:21:51 +0200 (Thu, 30 Jun 2011)
New Revision: 312
Modified:
trunk/GREAT-ER/Greater/UI/session.py
Log:
- Do not use a green to red ramp instance but hand over a reference to the class
- Use the new setclassificationcolumn function instead of setfield
Modified: trunk/GREAT-ER/Greater/UI/session.py
===================================================================
--- trunk/GREAT-ER/Greater/UI/session.py 2011-06-29 15:18:56 UTC (rev 311)
+++ trunk/GREAT-ER/Greater/UI/session.py 2011-06-30 09:21:51 UTC (rev 312)
@@ -266,7 +266,7 @@
_list.sort()
quantiles, clazz = generate_quantiles(_list,
[ 0.25, 0.50, 0.75, 1.0 ],
- green_to_red_ramp(),
+ green_to_red_ramp,
Range(']0;oo['))
dg = clazz.GetDefaultGroup()
dg.GetProperties().SetLineColor(Color(0,0,1))
@@ -299,8 +299,7 @@
self.AddShapeStore(store)
# update the classification
- clazz = layer.GetClassification()
- clazz.SetField('CSIMINTERN_MEAN')
+ layer.SetClassificationColumn('CSIMINTERN_MEAN')
finally:
wxEndBusyCursor()
More information about the Greater-commits
mailing list