[Dive4elements-commits] [PATCH] Geoimporter: do not force default 0 for sectie and sobek
Wald Commits
scm-commit at wald.intevation.org
Wed Apr 17 19:41:16 CEST 2013
# HG changeset patch
# User Tom Gottfried <tom.gottfried at intevation.de>
# Date 1366220472 -7200
# Node ID 2cd8fcec3f007ac44d9f0449865a3e497bb4a38d
# Parent b5553164fabf32313882f69dec21b775445956f7
Geoimporter: do not force default 0 for sectie and sobek
diff -r b5553164fabf -r 2cd8fcec3f00 flys-backend/contrib/shpimporter/boundaries.py
--- 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"))
More information about the Dive4elements-commits
mailing list