Mercurial > dive4elements > river
changeset 5171:f52bb7178eda
Always set axis geometry dimension to be 3d
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 04 Mar 2013 17:46:03 +0100 |
parents | c1b60f8c3390 |
children | a51515056c45 |
files | flys-backend/contrib/shpimporter/axis.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-backend/contrib/shpimporter/axis.py Mon Mar 04 17:11:31 2013 +0100 +++ b/flys-backend/contrib/shpimporter/axis.py Mon Mar 04 17:46:03 2013 +0100 @@ -37,7 +37,9 @@ def createNewFeature(self, featureDef, feat, **args): newFeat = ogr.Feature(featureDef) - newFeat.SetGeometry(feat.GetGeometryRef()) + geometry = feat.GetGeometryRef() + geometry.SetCoordinateDimension(3) + newFeat.SetGeometry(geometry) newFeat.SetField("name", args['name']) if self.IsFieldSet(feat, "river_id"):