Mercurial > dive4elements > river
comparison flys-backend/contrib/shpimporter/buildings.py @ 5559:bf016afe92f5
Merged
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 04 Apr 2013 15:29:18 +0200 |
parents | b91cc44312b7 |
children |
comparison
equal
deleted
inserted
replaced
5558:b223be96758c | 5559:bf016afe92f5 |
---|---|
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"]: |