[Greater-commits] r313 - trunk/GREAT-ER/Greater/Modules
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Jun 30 11:25:35 CEST 2011
Author: aheinecke
Date: 2011-06-30 11:25:34 +0200 (Thu, 30 Jun 2011)
New Revision: 313
Modified:
trunk/GREAT-ER/Greater/Modules/analysis.py
Log:
setField no longer exists for a classification it is now stored
directly at the layer and can be accessed as ClassificationColumn
Modified: trunk/GREAT-ER/Greater/Modules/analysis.py
===================================================================
--- trunk/GREAT-ER/Greater/Modules/analysis.py 2011-06-30 09:21:51 UTC (rev 312)
+++ trunk/GREAT-ER/Greater/Modules/analysis.py 2011-06-30 09:25:34 UTC (rev 313)
@@ -268,8 +268,7 @@
context.session.AddShapeStore(store)
# update the classification
- clazz = layer.GetClassification()
- clazz.SetField(colname)
+ layer.SetClassificationColumn(colname)
finally:
wxEndBusyCursor()
@@ -370,8 +369,7 @@
layer.SetTitle(layer_title)
# update the classification
- clazz = layer.GetClassification()
- clazz.SetField(colname)
+ layer.SetClassificationColumn(colname)
finally:
wxEndBusyCursor()
@@ -491,8 +489,7 @@
context.session.AddShapeStore(store)
# update the classification
- clazz = layer.GetClassification()
- clazz.SetField('combined_class')
+ layer.SetClassificationColumn('combined_class')
finally:
wxEndBusyCursor()
@@ -862,8 +859,7 @@
context.session.AddShapeStore(store)
# update the classification
- clazz = layer.GetClassification()
- clazz.SetField('CSIMINFLUENT_MEAN')
+ layer.SetClassificationColumn('CSIMINFLUENT_MEAN')
finally:
wxEndBusyCursor()
@@ -930,8 +926,7 @@
context.session.AddShapeStore(store)
# update the classification
- clazz = layer.GetClassification()
- clazz.SetField('CSIMEFFLUENT_MEAN')
+ layer.SetClassificationColumn('CSIMEFFLUENT_MEAN')
finally:
wxEndBusyCursor()
@@ -1018,8 +1013,7 @@
context.session.AddShapeStore(store)
# update the classification
- clazz = layer.GetClassification()
- clazz.SetField('RISK')
+ layer.SetClassificationColumn('RISK')
finally:
wxEndBusyCursor()
More information about the Greater-commits
mailing list