changeset 6629:5f48541cd544 double-precision

Geo importer: also accept 25D-points from km.shp
author Tom Gottfried <tom@intevation.de>
date Mon, 22 Jul 2013 13:06:12 +0200
parents 62d6e1d5da47
children 92c8cc7e064b
files backend/contrib/shpimporter/km.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):

http://dive4elements.wald.intevation.org