Mercurial > dive4elements > river
comparison flys-backend/contrib/shpimporter/boundaries.py @ 5777:e95427ed80e5
Merged
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sun, 21 Apr 2013 10:46:59 +0200 |
parents | 148365ff484d |
children |
comparison
equal
deleted
inserted
replaced
5776:1126b9e00378 | 5777:e95427ed80e5 |
---|---|
57 newFeat.SetGeometry(geometry) | 57 newFeat.SetGeometry(geometry) |
58 newFeat.SetField("name", args['name']) | 58 newFeat.SetField("name", args['name']) |
59 newFeat.SetField("kind", kind) | 59 newFeat.SetField("kind", kind) |
60 if self.IsFieldSet(feat, "SECTIE"): | 60 if self.IsFieldSet(feat, "SECTIE"): |
61 newFeat.SetField("sectie", feat.GetField("SECTIE")) | 61 newFeat.SetField("sectie", feat.GetField("SECTIE")) |
62 else: | |
63 newFeat.SetField("sectie", 0) | |
64 | 62 |
65 if self.IsFieldSet(feat, "SOBEK"): | 63 if self.IsFieldSet(feat, "STROVOER"): |
66 newFeat.SetField("sobek", feat.GetField("SOBEK")) | 64 newFeat.SetField("sobek", feat.GetField("STROVOER")) |
67 else: | |
68 newFeat.SetField("sobek", 0) | |
69 | 65 |
70 if self.IsFieldSet(feat, "river_id"): | 66 if self.IsFieldSet(feat, "river_id"): |
71 newFeat.SetField("river_id", feat.GetField("river_id")) | 67 newFeat.SetField("river_id", feat.GetField("river_id")) |
72 else: | 68 else: |
73 newFeat.SetField("river_id", self.river_id) | 69 newFeat.SetField("river_id", self.river_id) |
104 newFeat.SetField("name", args['name']) | 100 newFeat.SetField("name", args['name']) |
105 newFeat.SetField("kind", kind) | 101 newFeat.SetField("kind", kind) |
106 | 102 |
107 if self.IsFieldSet(feat, "SECTIE"): | 103 if self.IsFieldSet(feat, "SECTIE"): |
108 newFeat.SetField("sectie", feat.GetField("SECTIE")) | 104 newFeat.SetField("sectie", feat.GetField("SECTIE")) |
109 else: | |
110 newFeat.SetField("sectie", 0) | |
111 | 105 |
112 if self.IsFieldSet(feat, "SOBEK"): | 106 if self.IsFieldSet(feat, "SOBEK"): |
113 newFeat.SetField("sobek", feat.GetField("SOBEK")) | 107 newFeat.SetField("sobek", feat.GetField("SOBEK")) |
114 else: | |
115 newFeat.SetField("sobek", 0) | |
116 | 108 |
117 if self.IsFieldSet(feat, "river_id"): | 109 if self.IsFieldSet(feat, "river_id"): |
118 newFeat.SetField("river_id", feat.GetField("river_id")) | 110 newFeat.SetField("river_id", feat.GetField("river_id")) |
119 else: | 111 else: |
120 newFeat.SetField("river_id", self.river_id) | 112 newFeat.SetField("river_id", self.river_id) |