Mercurial > dive4elements > river
comparison flys-backend/contrib/shpimporter/boundaries.py @ 5511:4e166c514940
Do not import floodplains as hydr boundaries again
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Thu, 28 Mar 2013 15:28:05 +0100 |
parents | 71a24278322c |
children | b91ffd97edc8 |
comparison
equal
deleted
inserted
replaced
5510:d4bee6d5c866 | 5511:4e166c514940 |
---|---|
30 ogr.wkbMultiLineString] | 30 ogr.wkbMultiLineString] |
31 | 31 |
32 def isShapeRelevant(self, name, path): | 32 def isShapeRelevant(self, name, path): |
33 shp = ogr.Open(path) | 33 shp = ogr.Open(path) |
34 if self.isGeometryValid(shp.GetLayerByName(name).GetGeomType()) and \ | 34 if self.isGeometryValid(shp.GetLayerByName(name).GetGeomType()) and \ |
35 self.getKind(path) > 0: | 35 self.getKind(path) > 0 and not "talaue" in path.lower(): |
36 return True | 36 return True |
37 else: | 37 else: |
38 return False | 38 return False |
39 | 39 |
40 def getKind(self, path): | 40 def getKind(self, path): |