# HG changeset patch # User Andre Heinecke # Date 1364203368 -3600 # Node ID 95050a944d81646359fdcc2ec75b4eea15b902eb # Parent e65fee5ea98a1401a2a6d03bcd3f0ef9ac14dddf Importer default official = False for hws diff -r e65fee5ea98a -r 95050a944d81 flys-backend/contrib/shpimporter/hws.py --- 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"):