diff flys-backend/contrib/shpimporter/gauges.py @ 2869:e29781310140

Added new model class GaugeLocation for storing locations of gauges. flys-backend/trunk@4384 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 10 May 2012 11:52:37 +0000
parents 998f1a7dcfde
children 59ca5dab2782
line wrap: on
line diff
--- a/flys-backend/contrib/shpimporter/gauges.py	Thu May 10 11:05:25 2012 +0000
+++ b/flys-backend/contrib/shpimporter/gauges.py	Thu May 10 11:52:37 2012 +0000
@@ -38,6 +38,8 @@
 
         if self.IsFieldSet(feat, "Name"):
             newFeat.SetField("name", feat.GetField("name"))
+        elif self.IsFieldSet(feat, "MPNAAM"):
+            newFeat.SetField("name", feat.GetField("MPNAAM"))
         else:
             newFeat.SetField("name", args['name'])
 

http://dive4elements.wald.intevation.org