Mercurial > dive4elements > river
comparison backend/contrib/shpimporter/shpimporter.py @ 6815:e68e414dceb2 double-precision
Geo-importer: remove leftovers of catchment and gauge location importers
author | Tom Gottfried <tom.gottfried@intevation.de> |
---|---|
date | Mon, 12 Aug 2013 08:16:13 +0200 |
parents | 5aa05a7a34b7 |
children | e331a5ad2554 |
comparison
equal
deleted
inserted
replaced
6814:e41059fb4073 | 6815:e68e414dceb2 |
---|---|
15 from buildings import Building | 15 from buildings import Building |
16 from crosssectiontracks import CrosssectionTrack | 16 from crosssectiontracks import CrosssectionTrack |
17 from floodplains import Floodplain | 17 from floodplains import Floodplain |
18 from boundaries import HydrBoundary, HydrBoundaryPoly | 18 from boundaries import HydrBoundary, HydrBoundaryPoly |
19 from hws import HWSLines, HWSPoints | 19 from hws import HWSLines, HWSPoints |
20 from gauges import GaugeLocation | |
21 from jetties import Jetties | 20 from jetties import Jetties |
22 from dgm import insertRiverDgm | 21 from dgm import insertRiverDgm |
23 from floodmarks import Floodmark | 22 from floodmarks import Floodmark |
24 | 23 |
25 logger = logging.getLogger("shpimporter") | 24 logger = logging.getLogger("shpimporter") |
45 Floodplain(river_id, dbconn, dry_run), | 44 Floodplain(river_id, dbconn, dry_run), |
46 HydrBoundary(river_id, dbconn, dry_run), | 45 HydrBoundary(river_id, dbconn, dry_run), |
47 HydrBoundaryPoly(river_id, dbconn, dry_run), | 46 HydrBoundaryPoly(river_id, dbconn, dry_run), |
48 HWSLines(river_id, dbconn, dry_run), | 47 HWSLines(river_id, dbconn, dry_run), |
49 HWSPoints(river_id, dbconn, dry_run), | 48 HWSPoints(river_id, dbconn, dry_run), |
50 GaugeLocation(river_id, dbconn, dry_run), | |
51 Jetties(river_id, dbconn, dry_run), | 49 Jetties(river_id, dbconn, dry_run), |
52 Floodmark(river_id, dbconn, dry_run), | 50 Floodmark(river_id, dbconn, dry_run), |
53 UESG(river_id, dbconn, dry_run) | 51 UESG(river_id, dbconn, dry_run) |
54 ] | 52 ] |
55 | 53 |
71 parser.add_option("--skip_crosssections", type="int") | 69 parser.add_option("--skip_crosssections", type="int") |
72 parser.add_option("--skip_fixpoints", type="int") | 70 parser.add_option("--skip_fixpoints", type="int") |
73 parser.add_option("--skip_floodplains", type="int") | 71 parser.add_option("--skip_floodplains", type="int") |
74 parser.add_option("--skip_hws_lines", type="int") | 72 parser.add_option("--skip_hws_lines", type="int") |
75 parser.add_option("--skip_hws_points", type="int") | 73 parser.add_option("--skip_hws_points", type="int") |
76 parser.add_option("--skip_gauge_locations", type="int") | |
77 parser.add_option("--skip_kms", type="int") | 74 parser.add_option("--skip_kms", type="int") |
78 parser.add_option("--skip_uesgs", type="int") | 75 parser.add_option("--skip_uesgs", type="int") |
79 parser.add_option("--skip_dgm", type="int") | 76 parser.add_option("--skip_dgm", type="int") |
80 parser.add_option("--skip_jetties", type="int") | 77 parser.add_option("--skip_jetties", type="int") |
81 parser.add_option("--skip_floodmarks", type="int") | 78 parser.add_option("--skip_floodmarks", type="int") |
123 elif config.skip_hws_lines == 1 and isinstance(importer, HWSLines): | 120 elif config.skip_hws_lines == 1 and isinstance(importer, HWSLines): |
124 return True | 121 return True |
125 elif config.skip_hws_points == 1 and isinstance(importer, HWSPoints) and \ | 122 elif config.skip_hws_points == 1 and isinstance(importer, HWSPoints) and \ |
126 not isinstance(importer, HWSLines): | 123 not isinstance(importer, HWSLines): |
127 return True | 124 return True |
128 elif config.skip_gauge_locations == 1 and isinstance(importer, GaugeLocation): | |
129 return True | |
130 elif config.skip_jetties == 1 and isinstance(importer, Jetties): | 125 elif config.skip_jetties == 1 and isinstance(importer, Jetties): |
131 return True | 126 return True |
132 elif config.skip_kms == 1 and isinstance(importer, KM): | 127 elif config.skip_kms == 1 and isinstance(importer, KM): |
133 return True | 128 return True |
134 elif config.skip_uesgs == 1 and isinstance(importer, UESG): | 129 elif config.skip_uesgs == 1 and isinstance(importer, UESG): |