comparison backend/contrib/shpimporter/floodplains.py @ 7440:e10bfd2d2a5d

Geoimporter: be case-insensitive when looking for floodplains.
author Tom Gottfried <tom@intevation.de>
date Fri, 25 Oct 2013 15:39:59 +0200
parents 5aa05a7a34b7
children
comparison
equal deleted inserted replaced
7439:f3b2aeb27e4b 7440:e10bfd2d2a5d
27 def isGeometryValid(self, geomType): 27 def isGeometryValid(self, geomType):
28 return geomType == 3 or geomType == 6 28 return geomType == 3 or geomType == 6
29 29
30 30
31 def isShapeRelevant(self, name, path): 31 def isShapeRelevant(self, name, path):
32 return name.find("talaue") >= 0 32 return name.lower().find("talaue") >= 0
33 33
34 34
35 def createNewFeature(self, featureDef, feat, **args): 35 def createNewFeature(self, featureDef, feat, **args):
36 newFeat = ogr.Feature(featureDef) 36 newFeat = ogr.Feature(featureDef)
37 geometry = feat.GetGeometryRef() 37 geometry = feat.GetGeometryRef()

http://dive4elements.wald.intevation.org