def _Do(self): from component.default.dictionary import comp_dictionary dictionary = comp_dictionary() dictionary.set_language_code() self._make_hwy_poi_name_group() self._make_node_facil() self._make_hwy_exit_poi_name() return 0
def _Do(self): # 创建语言种别的中间表 # self._InsertLanguages() # 设置语言code from component.default.dictionary import comp_dictionary dictionary = comp_dictionary() dictionary.set_language_code() self._make_hwy_path_name()
def _Do(self): # 创建语言种别的中间表 # self._InsertLanguages() # 设置语言code from component.default.dictionary import comp_dictionary dictionary = comp_dictionary() dictionary.set_language_code() # 道路名称 self._make_hwy_exit_name() self._make_node_facil() # 点和设施的关系表 return 0
def _Do(self): from component.default.dictionary import comp_dictionary dictionary = comp_dictionary() dictionary.set_language_code() self._group_poi_trans_name() # POI 关联 Link self._make_hwy_poi_link() # 道路名称 self._make_hwy_sapa_name() self._make_hwy_sapa_store_info() return 0
def _Do(self): self.initialize() from component.default.dictionary import comp_dictionary dictionary = comp_dictionary() dictionary.set_language_code() # ## 原link id ==> Middle link id if self.link_id_mapping: self.link_id_mapping.Make() # ORG Link_id ==> Middle Link_id del self.link_id_mapping self.link_id_mapping = None # ## 设施名称 if self.hwy_facil_name: self.hwy_facil_name.Make() del self.hwy_facil_name self.hwy_facil_name = None # ## 合理Org设施,转化设施的inlinkid和outlinkid到新的linkId. if self.hwy_juntion: self.hwy_juntion.Make() # ## 高速线路名称 if self.hwy_line_name: self.hwy_line_name.Make() del self.hwy_line_name self.hwy_line_name = None if self.sapa_info: self.sapa_info.Make() if self.data_mng: self.data_mng.Make() # load Highway Main Link. self.data_mng.load_hwy_main_link() self.data_mng.load_hwy_ic_link() self.data_mng.load_first_ics_link() self.data_mng.load_hwy_path_id() else: self.log.error('Higway Data Manager is None.') return 0 # ## 高速路线 self._make_hwy_route() if self.hwy_parallel: self.hwy_parallel.Make() if self.data_mng: # 加载高速road_code self.data_mng.load_hwy_road_code() self.data_mng.load_hwy_regulation() self.data_mng.load_tollgate() self.data_mng.load_hwy_ic_link() self.data_mng.load_hwy_inout_link() self.data_mng.load_hwy_path_id() # 加载专用数据设施番号 self.data_mng.load_org_facil_id() # 制作高速线路及设施(原始设施情报) self._make_hwy_facil() # 收费站情报 if self.hwy_toll: self.hwy_toll.Make() # ## 道路情报 self._make_road_no() # 道路番号 self._make_road_info() # 道路情报 # ## 设置ic_no if self.data_mng: self.data_mng.load_hwy_node_facilcls() # 加载设施种别 if self._make_ic_no(): # ic_no self._make_facility_id() # 设施ID # Mapping if self.hwy_mapping: self.hwy_mapping.Make() # 设施情报 if self.data_mng: self._make_ic_info() # 附加情报(最终) if self.node_addinfo: self.node_addinfo.Make() # 服务情报(For SAPA) if self.service_info: self.service_info.Make() # 店铺情报(For SAPA) if self.store: self.store.Make()
def _Do(self): from component.default.dictionary import comp_dictionary dictionary = comp_dictionary() dictionary.set_language_code() self._make_exit_sapa_name() return 0
def _Do(self): self.initialize() from component.default.dictionary import comp_dictionary dictionary = comp_dictionary() dictionary.set_language_code() if self.link_id_mapping: self.link_id_mapping.Make() # ORG Link_id ==> Middle Link_id if self.hwy_exit_poi: # 来源POI self.hwy_exit_poi.Make() if self.hwy_exit: # 来源道路名称 self.hwy_exit.Make() # 出口番号/交叉点名称 if self.sapa_info: self.sapa_info.Make() # SAPA情报 if self.data_mng: self.data_mng.Make() # load Highway Main Link. self.data_mng.load_hwy_main_link() # 加载元数据的设施号 self.data_mng.load_org_facil_id() else: self.log.error('Higway Data Manager is None.') return 0 # ## 高速路线 self._make_hwy_route() if self.data_mng: # 加载高速road_code self.data_mng.load_hwy_road_code() self.data_mng.load_hwy_ic_link() self.data_mng.load_junction_name() self.data_mng.load_hwy_inout_link() self.data_mng.load_hwy_regulation() self.data_mng.load_signpost() # Temp self.data_mng.load_exit_name() self.data_mng.load_tollgate() self.data_mng.load_exit_poi_name() # 制作高速线路及设施(原始设施情报) self._make_hwy_facil() # 收费站情报 if self.hwy_toll: self.hwy_toll.Make() # ## 道路情报 self._make_road_no() # 道路番号 self._make_road_info() # 道路情报 # ## 设置ic_no if self.data_mng: self.data_mng.load_hwy_node_facilcls() # 加载设施种别 if self._make_ic_no(): # ic_no self._make_facility_id() # 设施ID # Mapping if self.hwy_mapping: self.hwy_mapping.Make() # 设施情报 if self.data_mng: self._make_ic_info() # 附加情报(最终) if self.node_addinfo: self.node_addinfo.Make() # 服务情报(For SAPA) if self.service_info: self.service_info.Make() # 店铺情报(For SAPA) if self.store: self.store.Make()
def CreateOneComponent(self, comp_name): if comp_name == 'Ramp_RoadTypeFC': from component.default import ramp_roadtype return ramp_roadtype.comp_ramp_roadtype() if comp_name == 'Ramp_DisplayClass': from component.default import ramp_dispclass return ramp_dispclass.comp_ramp_dispclass() if comp_name == 'Link_Split': from component.default import link_split return link_split.comp_link_split() if comp_name == 'Link_Merge': from component.default import link_merge return link_merge.comp_link_merge() if comp_name == 'Node_Move': from component.default import node_move return node_move.comp_node_move() if comp_name == 'GuidePoint_Adjust': from component.default import guideinfo_point_adjust return guideinfo_point_adjust.comp_guideinfo_point_adjust() if comp_name == 'Link_overlay_or_circle': from component.default import link_overlay_or_circle return link_overlay_or_circle.comp_link_dupli_or_circle() if comp_name == 'MainNode': from component.default import mainnode return mainnode.comp_mainnode() if comp_name == 'Highway_Prepare': from component.default import highway return highway.comp_hwy_prepare() if comp_name == 'Highway': from component.default import highway return highway.comp_highway() if comp_name == 'ImportCSV': from component.default import import_sidefiles return import_sidefiles.import_csv_data() if comp_name == 'Dictionary': from component.default import dictionary return dictionary.comp_dictionary() if comp_name == 'Guideinfo_NaturalGuidence': from component.default import guideinfo_natural_guidence return guideinfo_natural_guidence.comp_natural_guidence() if comp_name == 'Guideinfo_Safety_Zone': from component.default.guideinfo_safety_zone import comp_guideinfo_safety_zone return comp_guideinfo_safety_zone() if comp_name == 'Guideinfo_Safety_Alert': from component.default.guideinfo_safety_alert import comp_guideinfo_safety_alert return comp_guideinfo_safety_alert() if comp_name == 'guideinfo_signpost_uc': from component.default import guideinfo_signpost_uc return guideinfo_signpost_uc.comp_guideinfo_signpost_uc() if comp_name == 'Guideinfo_TowardName': from component.default import guideinfo_towardname return guideinfo_towardname.comp_guideinfo_towardname() if comp_name == 'Guideinfo_SpotGuide': from component.default import guideinfo_spotguide return guideinfo_spotguide.comp_guideinfo_spotguide() if comp_name == 'Guideinfo_SignPost': from component.default import guideinfo_signpost return guideinfo_signpost.comp_guideinfo_signpost() if comp_name == 'CrossName': from component.default import guideinfo_crossname return guideinfo_crossname.comp_guideinfo_crossname() if comp_name == 'Guideinfo_building': from component.default import guideinfo_building return guideinfo_building.comp_guideinfo_building() if comp_name == 'Guideinfo_ForceGuide': from component.default import guideinfo_forceguide return guideinfo_forceguide.com_guideinfo_forceguide() if comp_name == 'Guideinfo_Caution': from component.default import guideinfo_caution return guideinfo_caution.comp_guideinfo_caution() if comp_name == 'Tmc': from component.default import vics return vics.comp_vics() if comp_name == 'park': from component.default import park return park.comp_park() if comp_name == 'slope': from component.default import slope return slope.comp_slope() if comp_name == 'height': from component.default import height return height.comp_height() if comp_name == 'hook_turn': from component.default import hook_turn return hook_turn.comp_hook_turn() if comp_name == 'stopsign': from component.default import stopsign return stopsign.comp_stopsign() if comp_name == 'Update_sapa_link': from component.default import update_sapa_link return update_sapa_link.comp_update_sapa_link() if comp_name == 'Detele_regulation': from component.default import delete_regulation return delete_regulation.comp_detele_regulation() if comp_name == 'Update_link_type': from component.default import update_link_type_sapa_jct return update_link_type_sapa_jct.comp_update_link_type_sapa_jct() return None