[PATCH] Geo-Importer: Don not import misc. floodplains as hydraulic boundary

Wald Commits scm-commit at wald.intevation.org
Thu Aug 1 10:02:44 CEST 2013


# HG changeset patch
# User Tom Gottfried <tom.gottfried at intevation.de>
# Date 1375344156 -7200
# Branch double-precision
# Node ID baae6cbc1086ee921d5c16e992b6577a38d765fd
# Parent  839f1a889c4a7a4dfb4145f9987445ea6a75288c
Geo-Importer: Don not import misc. floodplains as hydraulic boundary.

diff -r 839f1a889c4a -r baae6cbc1086 backend/contrib/shpimporter/boundaries.py
--- a/backend/contrib/shpimporter/boundaries.py	Wed Jul 31 14:29:12 2013 +0200
+++ b/backend/contrib/shpimporter/boundaries.py	Thu Aug 01 10:02:36 2013 +0200
@@ -84,7 +84,7 @@
     def isShapeRelevant(self, name, path):
         shp = ogr.Open(path)
         if self.isGeometryValid(shp.GetLayerByName(name).GetGeomType()) and \
-                self.getKind(path) > 0:
+                self.getKind(path) > 0 and not "talaue" in path.lower():
             return True
         else:
             return False


More information about the Dive4elements-commits mailing list