[Greater-commits] r3710 - branches/3.0.0-all-models/GREAT-ER/Greater/UI
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Jul 27 12:57:06 CEST 2011
Author: aheinecke
Date: 2011-07-27 12:57:05 +0200 (Wed, 27 Jul 2011)
New Revision: 3710
Modified:
branches/3.0.0-all-models/GREAT-ER/Greater/UI/session.py
Log:
Switch classification setting for lakes to use new Thubans classifications
Modified: branches/3.0.0-all-models/GREAT-ER/Greater/UI/session.py
===================================================================
--- branches/3.0.0-all-models/GREAT-ER/Greater/UI/session.py 2011-07-27 10:07:43 UTC (rev 3709)
+++ branches/3.0.0-all-models/GREAT-ER/Greater/UI/session.py 2011-07-27 10:57:05 UTC (rev 3710)
@@ -196,14 +196,15 @@
lake_props = ClassGroupProperties()
lake_props.SetLineWidth(10)
lake_props.SetLineColor(Color(0.55, 0.75, 0.88))
- lakes = ClassGroupRange(6,11,lake_props,"Lakes")
+ lakes = ClassGroupRange((6, 11),lake_props,"Lakes")
- clazz = Classification(layer, "type")
+ clazz = Classification()
dg = clazz.GetDefaultGroup()
dg.GetProperties().SetLineColor(Color(0,0,1))
dg.SetVisible(1)
clazz.AppendGroup(lakes)
+ layer.SetClassification(clazz)
#
# now care about the various results layers
#
More information about the Greater-commits
mailing list