diff flys-backend/contrib/shpimporter/uesg.py @ 2861:b0132e1b9719

Added further shape importers and added the option to reproject shapes during the import process. flys-backend/trunk@4342 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 03 May 2012 14:19:52 +0000
parents bd9e76e0b55d
children 59ca5dab2782
line wrap: on
line diff
--- a/flys-backend/contrib/shpimporter/uesg.py	Wed May 02 08:49:57 2012 +0000
+++ b/flys-backend/contrib/shpimporter/uesg.py	Thu May 03 14:19:52 2012 +0000
@@ -55,22 +55,22 @@
         else:
             riverId = self.river_id
 
-        if feat.IsFieldSet("diff"):
+        if self.IsFieldSet(feat, "diff"):
             diff = feat.GetFieldAsDouble("diff")
         else:
             diff = 0
 
-        if feat.IsFieldSet("count"):
+        if self.IsFieldSet(feat, "count"):
             count = feat.GetFieldAsInteger("count")
         else:
             count = 0
 
-        if feat.IsFieldSet("area"):
+        if self.IsFieldSet(feat, "area"):
             area = feat.GetFieldAsDouble("area")
         else:
             area = 0
 
-        if feat.IsFieldSet("perimeter"):
+        if self.IsFieldSet(feat, "perimeter"):
             perimeter = feat.GetFieldAsDouble("perimeter")
         else:
             perimeter = 0

http://dive4elements.wald.intevation.org