comparison flys-backend/contrib/shpimporter/axis.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 23a090b41543
comparison
equal deleted inserted replaced
3676:ae16bd95879e 3677:c37effda3655
25 def isGeometryValid(self, geomType): 25 def isGeometryValid(self, geomType):
26 return geomType == 2 26 return geomType == 2
27 27
28 28
29 def isShapeRelevant(self, name, path): 29 def isShapeRelevant(self, name, path):
30 return name == "achse" 30 return name == "achse" or name.find("achse") >= 0
31 31
32 32
33 def createNewFeature(self, featureDef, feat, **args): 33 def createNewFeature(self, featureDef, feat, **args):
34 newFeat = ogr.Feature(featureDef) 34 newFeat = ogr.Feature(featureDef)
35 newFeat.SetGeometry(feat.GetGeometryRef()) 35 newFeat.SetGeometry(feat.GetGeometryRef())

http://dive4elements.wald.intevation.org