[PATCH] Geo-Importer: import axes 2D to avoid problems with invalid z-coordinates

Wald Commits scm-commit at wald.intevation.org
Wed Aug 21 12:40:55 CEST 2013


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1377081642 -7200
# Branch double-precision
# Node ID f1aeb6a60380f9dabe7b783bb4d81a7ca3e44277
# Parent  5ce6a3d7d63200e8fa9d1ed31f12a9d9be8d5bbc
Geo-Importer: import axes 2D to avoid problems with invalid z-coordinates

diff -r 5ce6a3d7d632 -r f1aeb6a60380 backend/contrib/shpimporter/axis.py
--- 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'])
 


More information about the Dive4elements-commits mailing list