comparison flys-backend/contrib/shpimporter/buildings.py @ 5556:b91cc44312b7

Fix skipping of buhnen.shp
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 04 Apr 2013 14:58:18 +0200
parents ff11b178f152
children
comparison
equal deleted inserted replaced
5555:1951eb4b0716 5556:b91cc44312b7
44 def isGeometryValid(self, geomType): 44 def isGeometryValid(self, geomType):
45 return geomType == 2 45 return geomType == 2
46 46
47 47
48 def isShapeRelevant(self, name, path): 48 def isShapeRelevant(self, name, path):
49 return "buhnen.shp" not in name.lower() 49 return "buhnen.shp" not in path.lower()
50 50
51 def getKind(self, feat, path): 51 def getKind(self, feat, path):
52 # First try to resolve it with the filename 52 # First try to resolve it with the filename
53 for fname in ["brücke.shp", "bruecke.shp", 53 for fname in ["brücke.shp", "bruecke.shp",
54 "brücken.shp", "bruecken.shp"]: 54 "brücken.shp", "bruecken.shp"]:

http://dive4elements.wald.intevation.org