changeset 5392:95050a944d81

Importer default official = False for hws
author Andre Heinecke <aheinecke@intevation.de>
date Mon, 25 Mar 2013 10:22:48 +0100
parents e65fee5ea98a
children 4319b1289592
files flys-backend/contrib/shpimporter/hws.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-backend/contrib/shpimporter/hws.py	Mon Mar 25 10:12:42 2013 +0100
+++ b/flys-backend/contrib/shpimporter/hws.py	Mon Mar 25 10:22:48 2013 +0100
@@ -168,12 +168,12 @@
             offiziell = feat.GetField(fname)
             if offiziell == "1" or offiziell == 1:
                 newFeat.SetField("official", True)
-            else:
-                newFeat.SetField("official", False)
         # Set the official value based on the file name as a fallback
         elif args.get("name", "").lower() == "rohre_und_sperren" or \
                 args.get("name", "").lower() == "rohre-und-sperren":
              newFeat.SetField("official", True)
+        else:
+            newFeat.SetField("official", False)
 
         if self.IsFieldSet(newFeat, "z") and \
             self.IsFieldSet(newFeat, "rated_level"):

http://dive4elements.wald.intevation.org