diff flys-backend/contrib/shpimporter/importer.py @ 3677:c37effda3655

Added 'path' attribute to each geo relation; adapted the shape importer to set the path for each feature. flys-backend/trunk@5309 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 30 Aug 2012 09:51:04 +0000
parents 8654e4480fc6
children 2cd2657b3d60
line wrap: on
line diff
--- a/flys-backend/contrib/shpimporter/importer.py	Thu Aug 30 08:59:50 2012 +0000
+++ b/flys-backend/contrib/shpimporter/importer.py	Thu Aug 30 09:51:04 2012 +0000
@@ -120,6 +120,7 @@
                                                 path=path)
 
                 if newFeat is not None:
+		    newFeat.SetField("path", path)
                     newFeat = self.transform(newFeat)
                     res = destLayer.CreateFeature(newFeat)
                     if res is None or res > 0:

http://dive4elements.wald.intevation.org