def build_geometries(self): # store the geometries based on type geoms = {} input_file = self.sim_input # build catchments catchments = swmm_geom.build_catchments(input_file) # build rivers streams = swmm_geom.build_links(input_file) # build nodes nodes = swmm_geom.build_nodes(input_file) # store the geoms by their type geoms['subcatchment'] = catchments geoms['link'] = streams geoms['node'] = nodes # populate geometry attributes lookup table for k,v in dict(catchments.items() + streams.items() + nodes.items()).iteritems(): self.__geom_atts[k] = v return geoms
def build_geometries(self): # store the geometries based on type geoms = {} input_file = self.sim_input # build catchments catchments = swmm_geom.build_catchments(input_file) # build rivers streams = swmm_geom.build_links(input_file) # build nodes nodes = swmm_geom.build_nodes(input_file) # store the geoms by their type geoms['subcatchment'] = catchments geoms['link'] = streams geoms['node'] = nodes return geoms