Mercurial > dive4elements > river
changeset 6886:f1aeb6a60380 double-precision
Geo-Importer: import axes 2D to avoid problems with invalid z-coordinates
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 21 Aug 2013 12:40:42 +0200 |
parents | 5ce6a3d7d632 |
children | 8ca5d0e3c438 |
files | backend/contrib/shpimporter/axis.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/backend/contrib/shpimporter/axis.py Mon Aug 19 17:29:52 2013 +0200 +++ b/backend/contrib/shpimporter/axis.py Wed Aug 21 12:40:42 2013 +0200 @@ -38,7 +38,7 @@ def createNewFeature(self, featureDef, feat, **args): newFeat = ogr.Feature(featureDef) geometry = feat.GetGeometryRef() - geometry.SetCoordinateDimension(3) + geometry.SetCoordinateDimension(2) newFeat.SetGeometry(geometry) newFeat.SetField("name", args['name'])