diff flys-backend/contrib/shpimporter/shpimporter.py @ 4955:7323847fa7df dami

Importer: Add HWS lines stub. Needs some example data to finish especially the setting of additional geometry values
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 01 Feb 2013 11:42:34 +0100
parents 63f82bdd45f8
children 1469066cc7d9
line wrap: on
line diff
--- a/flys-backend/contrib/shpimporter/shpimporter.py	Fri Feb 01 10:43:19 2013 +0100
+++ b/flys-backend/contrib/shpimporter/shpimporter.py	Fri Feb 01 11:42:34 2013 +0100
@@ -121,7 +121,8 @@
     elif config.skip_floodplains == 1 and isinstance(importer, Floodplain):
         return True
     elif config.skip_hws_points == 1 and isinstance(importer, HWSPoints):
-        return True
+        if not isinstance(importer, HWSLines):
+            return True
     elif config.skip_hws_lines == 1 and isinstance(importer, HWSLines):
         return True
     elif config.skip_gauge_locations == 1 and isinstance(importer, GaugeLocation):

http://dive4elements.wald.intevation.org