comparison flys-backend/contrib/shpimporter/importer.py @ 4951:23a090b41543 dami

Importer: Check lowercase pathname and handle utf-8 conversion
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 01 Feb 2013 09:12:33 +0100
parents c0a58558b817
children 174fbaa3d344
comparison
equal deleted inserted replaced
4936:3dbe89cbf0c1 4951:23a090b41543
185 geomType = geom.GetGeometryType() 185 geomType = geom.GetGeometryType()
186 186
187 if self.isGeometryValid(geomType): 187 if self.isGeometryValid(geomType):
188 newFeat = self.createNewFeature(featureDef, 188 newFeat = self.createNewFeature(featureDef,
189 feat, 189 feat,
190 name=name, 190 name=utils.getUTF8(name),
191 path=path) 191 path=path)
192 192
193 if newFeat is not None: 193 if newFeat is not None:
194 newFeat.SetField("path", utils.getUTF8Path(path)) 194 newFeat.SetField("path", utils.getUTF8Path(path))
195 newFeat = self.transform(newFeat) 195 newFeat = self.transform(newFeat)

http://dive4elements.wald.intevation.org