Mercurial > dive4elements > river
diff flys-backend/contrib/shpimporter/shpimporter.py @ 5353:d086ce6c13d3
Add jetties importer
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 20 Mar 2013 17:55:53 +0100 |
parents | aa043641d9c8 |
children | ed149d5d7fb7 |
line wrap: on
line diff
--- a/flys-backend/contrib/shpimporter/shpimporter.py Wed Mar 20 17:20:19 2013 +0100 +++ b/flys-backend/contrib/shpimporter/shpimporter.py Wed Mar 20 17:55:53 2013 +0100 @@ -18,6 +18,7 @@ from boundaries import HydrBoundary, HydrBoundaryPoly from hws import HWSLines, HWSPoints from gauges import GaugeLocation +from jetties import Jetties from dgm import insertRiverDgm logger = logging.getLogger("shpimporter") @@ -46,6 +47,7 @@ HWSLines(river_id, dbconn, dry_run), HWSPoints(river_id, dbconn, dry_run), GaugeLocation(river_id, dbconn, dry_run), + Jetties(river_id, dbconn, dry_run), UESG(river_id, dbconn, dry_run) ] @@ -73,6 +75,7 @@ parser.add_option("--skip_kms", type="int") parser.add_option("--skip_uesgs", type="int") parser.add_option("--skip_dgm", type="int") + parser.add_option("--skip_jetties", type="int") (config, args) = parser.parse_args() if config.verbose > 1: @@ -121,6 +124,8 @@ return True elif config.skip_gauge_locations == 1 and isinstance(importer, GaugeLocation): return True + elif config.skip_jetties == 1 and isinstance(importer, Jetties): + return True elif config.skip_kms == 1 and isinstance(importer, KM): return True elif config.skip_uesgs == 1 and isinstance(importer, UESG):