[PATCH] Geo importer: also accept 25D-points from km.shp

Wald Commits scm-commit at wald.intevation.org
Mon Jul 22 13:06:15 CEST 2013


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1374491172 -7200
# Branch double-precision
# Node ID 5f48541cd54425d9566e93011f4b7f290366bced
# Parent  62d6e1d5da478aae9329a3f1c7420325f514b7c2
Geo importer: also accept 25D-points from km.shp

diff -r 62d6e1d5da47 -r 5f48541cd544 backend/contrib/shpimporter/km.py
--- a/backend/contrib/shpimporter/km.py	Mon Jul 22 13:03:42 2013 +0200
+++ b/backend/contrib/shpimporter/km.py	Mon Jul 22 13:06:12 2013 +0200
@@ -25,7 +25,7 @@
 
 
     def isGeometryValid(self, geomType):
-        return geomType == 1
+        return geomType == ogr.wkbPoint or geomType == ogr.wkbPoint25D
 
 
     def isShapeRelevant(self, name, path):


More information about the Dive4elements-commits mailing list