comparison flys-backend/contrib/shpimporter/importer.py @ 3679:2cd2657b3d60

Fixed broken method call in geo importer. flys-backend/trunk@5311 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 30 Aug 2012 09:59:56 +0000
parents c37effda3655
children 82e931f88137
comparison
equal deleted inserted replaced
3678:6185c15efccf 3679:2cd2657b3d60
71 def transform(self, feat): 71 def transform(self, feat):
72 geometry = feat.GetGeometryRef() 72 geometry = feat.GetGeometryRef()
73 src_srs = geometry.GetSpatialReference() 73 src_srs = geometry.GetSpatialReference()
74 74
75 if src_srs is None: 75 if src_srs is None:
76 shpimporter.Error("No source SRS given! No transformation possible!") 76 shpimporter.ERROR("No source SRS given! No transformation possible!")
77 return feat 77 return feat
78 78
79 transformer = osr.CoordinateTransformation(src_srs, self.dest_srs) 79 transformer = osr.CoordinateTransformation(src_srs, self.dest_srs)
80 geometry.Transform(transformer) 80 geometry.Transform(transformer)
81 81

http://dive4elements.wald.intevation.org