diff backend/contrib/shpimporter/boundaries.py @ 5851:d5e95f926d13

use correct attribute name STROVOER also for polygon boundaries
author Tom Gottfried <tom.gottfried@intevation.de>
date Fri, 26 Apr 2013 13:12:29 +0200
parents 5aa05a7a34b7
children baae6cbc1086
line wrap: on
line diff
--- a/backend/contrib/shpimporter/boundaries.py	Fri Apr 26 08:52:18 2013 +0200
+++ b/backend/contrib/shpimporter/boundaries.py	Fri Apr 26 13:12:29 2013 +0200
@@ -103,8 +103,8 @@
         if self.IsFieldSet(feat, "SECTIE"):
             newFeat.SetField("sectie", feat.GetField("SECTIE"))
 
-        if self.IsFieldSet(feat, "SOBEK"):
-            newFeat.SetField("sobek", feat.GetField("SOBEK"))
+        if self.IsFieldSet(feat, "STROVOER"):
+            newFeat.SetField("sobek", feat.GetField("STROVOER"))
 
         if self.IsFieldSet(feat, "river_id"):
             newFeat.SetField("river_id", feat.GetField("river_id"))

http://dive4elements.wald.intevation.org