diff flys-backend/contrib/shpimporter/boundaries.py @ 5749:2cd8fcec3f00

Geoimporter: do not force default 0 for sectie and sobek
author Tom Gottfried <tom.gottfried@intevation.de>
date Wed, 17 Apr 2013 19:41:12 +0200
parents b91ffd97edc8
children 148365ff484d
line wrap: on
line diff
--- a/flys-backend/contrib/shpimporter/boundaries.py	Wed Apr 17 19:30:10 2013 +0200
+++ b/flys-backend/contrib/shpimporter/boundaries.py	Wed Apr 17 19:41:12 2013 +0200
@@ -59,13 +59,9 @@
         newFeat.SetField("kind", kind)
         if self.IsFieldSet(feat, "SECTIE"):
             newFeat.SetField("sectie", feat.GetField("SECTIE"))
-        else:
-            newFeat.SetField("sectie", 0)
 
         if self.IsFieldSet(feat, "SOBEK"):
             newFeat.SetField("sobek", feat.GetField("SOBEK"))
-        else:
-            newFeat.SetField("sobek", 0)
 
         if self.IsFieldSet(feat, "river_id"):
             newFeat.SetField("river_id", feat.GetField("river_id"))
@@ -106,13 +102,9 @@
 
         if self.IsFieldSet(feat, "SECTIE"):
             newFeat.SetField("sectie", feat.GetField("SECTIE"))
-        else:
-            newFeat.SetField("sectie", 0)
 
         if self.IsFieldSet(feat, "SOBEK"):
             newFeat.SetField("sobek", feat.GetField("SOBEK"))
-        else:
-            newFeat.SetField("sobek", 0)
 
         if self.IsFieldSet(feat, "river_id"):
             newFeat.SetField("river_id", feat.GetField("river_id"))

http://dive4elements.wald.intevation.org