comparison 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
comparison
equal deleted inserted replaced
2860:2f874d14ac68 2861:b0132e1b9719
53 if self.IsFieldSet(feat, "river_id"): 53 if self.IsFieldSet(feat, "river_id"):
54 riverId = feat.GetField(feat) 54 riverId = feat.GetField(feat)
55 else: 55 else:
56 riverId = self.river_id 56 riverId = self.river_id
57 57
58 if feat.IsFieldSet("diff"): 58 if self.IsFieldSet(feat, "diff"):
59 diff = feat.GetFieldAsDouble("diff") 59 diff = feat.GetFieldAsDouble("diff")
60 else: 60 else:
61 diff = 0 61 diff = 0
62 62
63 if feat.IsFieldSet("count"): 63 if self.IsFieldSet(feat, "count"):
64 count = feat.GetFieldAsInteger("count") 64 count = feat.GetFieldAsInteger("count")
65 else: 65 else:
66 count = 0 66 count = 0
67 67
68 if feat.IsFieldSet("area"): 68 if self.IsFieldSet(feat, "area"):
69 area = feat.GetFieldAsDouble("area") 69 area = feat.GetFieldAsDouble("area")
70 else: 70 else:
71 area = 0 71 area = 0
72 72
73 if feat.IsFieldSet("perimeter"): 73 if self.IsFieldSet(feat, "perimeter"):
74 perimeter = feat.GetFieldAsDouble("perimeter") 74 perimeter = feat.GetFieldAsDouble("perimeter")
75 else: 75 else:
76 perimeter = 0 76 perimeter = 0
77 77
78 groupId = 2 78 groupId = 2

http://dive4elements.wald.intevation.org