changeset 5011:514948fdae54 dami

Do not skip hws_lines when skip hws_points is true
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 19 Feb 2013 09:52:49 +0100
parents ee52faa6b7ac
children a79f6a085ab6
files flys-backend/contrib/shpimporter/shpimporter.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-backend/contrib/shpimporter/shpimporter.py	Tue Feb 19 09:44:38 2013 +0100
+++ b/flys-backend/contrib/shpimporter/shpimporter.py	Tue Feb 19 09:52:49 2013 +0100
@@ -117,7 +117,8 @@
         return True
     elif config.skip_hws_lines == 1 and isinstance(importer, HWSLines):
         return True
-    elif config.skip_hws_points == 1 and isinstance(importer, HWSPoints):
+    elif config.skip_hws_points == 1 and isinstance(importer, HWSPoints) and \
+            not isinstance(importer, HWSLines):
         return True
     elif config.skip_gauge_locations == 1 and isinstance(importer, GaugeLocation):
         return True

http://dive4elements.wald.intevation.org