Mercurial > dive4elements > river
comparison backend/contrib/shpimporter/boundaries.py @ 6738:baae6cbc1086 double-precision
Geo-Importer: Don not import misc. floodplains as hydraulic boundary.
author | Tom Gottfried <tom.gottfried@intevation.de> |
---|---|
date | Thu, 01 Aug 2013 10:02:36 +0200 |
parents | d5e95f926d13 |
children |
comparison
equal
deleted
inserted
replaced
6735:839f1a889c4a | 6738:baae6cbc1086 |
---|---|
82 return geomType == ogr.wkbPolygon or geomType == ogr.wkbMultiPolygon | 82 return geomType == ogr.wkbPolygon or geomType == ogr.wkbMultiPolygon |
83 | 83 |
84 def isShapeRelevant(self, name, path): | 84 def isShapeRelevant(self, name, path): |
85 shp = ogr.Open(path) | 85 shp = ogr.Open(path) |
86 if self.isGeometryValid(shp.GetLayerByName(name).GetGeomType()) and \ | 86 if self.isGeometryValid(shp.GetLayerByName(name).GetGeomType()) and \ |
87 self.getKind(path) > 0: | 87 self.getKind(path) > 0 and not "talaue" in path.lower(): |
88 return True | 88 return True |
89 else: | 89 else: |
90 return False | 90 return False |
91 | 91 |
92 def createNewFeature(self, featureDef, feat, **args): | 92 def createNewFeature(self, featureDef, feat, **args): |