예제 #1
0
def step4_extract_china_line():
    # 1. 获取港口
    port_service = PortService(Config.port_name)

    Utils.extract_country_trajectories(
        port_service, Config.trajectory_output_file,
        Config.china_trajectory_output_file,
        Config.trajectory_output_header + ['inputOrOutput'], Const.CHINA_NAME)
예제 #2
0
def extract_country_relation_trajectory(port_shp_file, source_trajectory_file,
                                        country_trajectory_file,
                                        trajectory_header, country_name):
    Utils.check_file_path(country_trajectory_file)

    # 1. 获取港口
    port_service = PortService(port_shp_file)

    Utils.extract_country_trajectories(port_service, source_trajectory_file,
                                       country_trajectory_file,
                                       trajectory_header, country_name)