Mercurial > dive4elements > river
diff flys-backend/contrib/shpimporter/shpimporter.py @ 5028:a5f438895a38 dami
SCHEMA CHANGE: removed catchements from schema and geo-importer (obsolete)
author | Tom Gottfried <tom.gottfried@intevation.de> |
---|---|
date | Tue, 19 Feb 2013 19:24:36 +0100 |
parents | a79f6a085ab6 |
children | d6860fca89e4 |
line wrap: on
line diff
--- a/flys-backend/contrib/shpimporter/shpimporter.py Tue Feb 19 14:59:44 2013 +0100 +++ b/flys-backend/contrib/shpimporter/shpimporter.py Tue Feb 19 19:24:36 2013 +0100 @@ -18,7 +18,6 @@ from boundaries import HydrBoundary, HydrBoundaryPoly from hws import HWSLines, HWSPoints from gauges import GaugeLocation -from catchments import Catchment from dgm import insertRiverDgm logger = logging.getLogger("shpimporter") @@ -45,7 +44,6 @@ HWSLines(river_id, dbconn, dry_run), HWSPoints(river_id, dbconn, dry_run), GaugeLocation(river_id, dbconn, dry_run), - Catchment(river_id, dbconn, dry_run), UESG(river_id, dbconn, dry_run) ] @@ -70,7 +68,6 @@ parser.add_option("--skip_hws_lines", type="int") parser.add_option("--skip_hws_points", type="int") parser.add_option("--skip_gauge_locations", type="int") - parser.add_option("--skip_catchments", type="int") parser.add_option("--skip_kms", type="int") parser.add_option("--skip_uesgs", type="int") parser.add_option("--skip_dgm", type="int") @@ -122,8 +119,6 @@ return True elif config.skip_gauge_locations == 1 and isinstance(importer, GaugeLocation): return True - elif config.skip_catchments == 1 and isinstance(importer, Catchment): - return True elif config.skip_kms == 1 and isinstance(importer, KM): return True elif config.skip_uesgs == 1 and isinstance(importer, UESG):