comparison flys-backend/contrib/shpimporter/shpimporter.py @ 4996:d19c07c10986 dami

Remove lines
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 15 Feb 2013 11:54:11 +0100
parents f4d61ac84b76
children ab5d8f73a982
comparison
equal deleted inserted replaced
4995:998b29c8d2fd 4996:d19c07c10986
8 import os 8 import os
9 9
10 from uesg import UESG 10 from uesg import UESG
11 from axis import Axis 11 from axis import Axis
12 from km import KM 12 from km import KM
13 from lines import Line
14 from fixpoints import Fixpoint 13 from fixpoints import Fixpoint
15 from buildings import Building 14 from buildings import Building
16 from crosssectiontracks import CrosssectionTrack 15 from crosssectiontracks import CrosssectionTrack
17 from floodplains import Floodplain 16 from floodplains import Floodplain
18 from boundaries import HydrBoundary, HydrBoundaryPoly 17 from boundaries import HydrBoundary, HydrBoundaryPoly
73 parser.add_option("--ogr_connection", type="string") 72 parser.add_option("--ogr_connection", type="string")
74 parser.add_option("--skip_axis", type="int") 73 parser.add_option("--skip_axis", type="int")
75 parser.add_option("--skip_hydr_boundaries", type="int") 74 parser.add_option("--skip_hydr_boundaries", type="int")
76 parser.add_option("--skip_buildings", type="int") 75 parser.add_option("--skip_buildings", type="int")
77 parser.add_option("--skip_crosssections", type="int") 76 parser.add_option("--skip_crosssections", type="int")
78 parser.add_option("--skip_lines", type="int")
79 parser.add_option("--skip_fixpoints", type="int") 77 parser.add_option("--skip_fixpoints", type="int")
80 parser.add_option("--skip_floodplains", type="int") 78 parser.add_option("--skip_floodplains", type="int")
81 parser.add_option("--skip_hws_lines", type="int") 79 parser.add_option("--skip_hws_lines", type="int")
82 parser.add_option("--skip_hws_points", type="int") 80 parser.add_option("--skip_hws_points", type="int")
83 parser.add_option("--skip_gauge_locations", type="int") 81 parser.add_option("--skip_gauge_locations", type="int")
113 return True 111 return True
114 elif config.skip_buildings == 1 and isinstance(importer, Building): 112 elif config.skip_buildings == 1 and isinstance(importer, Building):
115 return True 113 return True
116 elif config.skip_crosssections == 1 and isinstance(importer, CrosssectionTrack): 114 elif config.skip_crosssections == 1 and isinstance(importer, CrosssectionTrack):
117 return True 115 return True
118 elif config.skip_lines == 1 and isinstance(importer, Line):
119 return True
120 elif config.skip_fixpoints == 1 and isinstance(importer, Fixpoint): 116 elif config.skip_fixpoints == 1 and isinstance(importer, Fixpoint):
121 return True 117 return True
122 elif config.skip_floodplains == 1 and isinstance(importer, Floodplain): 118 elif config.skip_floodplains == 1 and isinstance(importer, Floodplain):
123 return True 119 return True
124 elif config.skip_hws_lines == 1 and isinstance(importer, HWSLines): 120 elif config.skip_hws_lines == 1 and isinstance(importer, HWSLines):

http://dive4elements.wald.intevation.org