comparison flys-backend/contrib/shpimporter/importer.py @ 3950:82e931f88137

Adapted postgresql spatial schema and fixed a bug in the geo importer. flys-backend/trunk@5587 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 24 Sep 2012 10:02:36 +0000
parents 2cd2657b3d60
children 890eaa0a5162
comparison
equal deleted inserted replaced
3949:145b87bcb10a 3950:82e931f88137
122 if newFeat is not None: 122 if newFeat is not None:
123 newFeat.SetField("path", path) 123 newFeat.SetField("path", path)
124 newFeat = self.transform(newFeat) 124 newFeat = self.transform(newFeat)
125 res = destLayer.CreateFeature(newFeat) 125 res = destLayer.CreateFeature(newFeat)
126 if res is None or res > 0: 126 if res is None or res > 0:
127 shpimporter.Error("Unable to insert feature: %r" % res) 127 shpimporter.ERROR("Unable to insert feature: %r" % res)
128 else: 128 else:
129 success = success + 1 129 success = success + 1
130 else: 130 else:
131 creationFailed = creationFailed + 1 131 creationFailed = creationFailed + 1
132 else: 132 else:

http://dive4elements.wald.intevation.org