예제 #1
0
파일: test.py 프로젝트: HankDaly/arch
def foo3():
    '二元: 层高, 栋数; 占地面积'
    # 所有建筑类型建筑面积
    tot_arch_type_area_lst = [330, 420]
    # 地块总面积
    tot_block_area = 300
    # 已经存在地块建筑面积
    tot_exist_block_area = None
    # 已经存在地块占地面积
    tot_exist_block_building_area = None
    # 建筑类型
    arch_type_lst = [0, 1]
    # 容积率
    plot_ratio = None
    # 覆盖率
    building_ratio = None
    # 层高
    arch_floor_lst = [2, 3]
    # 栋数
    arch_num_lst = [3, 2]
    # 底平面面积
    arch_plane_area_lst = None
    # 各类型建筑面积
    arch_type_area_lst = None
    # 各类型占地面积
    arch_type_building_area_lst = [200, 30.2]
    # 面积比例
    scale_lst = None
    rst = blockArrange.arrange(
        tot_arch_type_area_lst, tot_block_area, tot_exist_block_area,
        tot_exist_block_building_area, arch_type_lst, plot_ratio,
        building_ratio, arch_floor_lst, arch_num_lst, arch_plane_area_lst,
        arch_type_area_lst, arch_type_building_area_lst, scale_lst)
    return rst
예제 #2
0
파일: test.py 프로젝트: HankDaly/arch
def foo1():
    '直接给层数, 栋数, 底面积'
    # 所有建筑类型建筑面积
    tot_arch_type_area_lst = [3000, 5000, 6000]
    # 地块总面积
    tot_block_area = 4000.20
    # 已经存在地块建筑面积
    tot_exist_block_area = None
    # 已经存在地块占地面积
    tot_exist_block_building_area = None
    # 建筑类型
    arch_type_lst = [0, 3, 8]
    # 容积率
    plot_ratio = None
    # 覆盖率
    building_ratio = None
    # 层高
    arch_floor_lst = [2, 1, 3]
    # 栋数
    arch_num_lst = [1, 1, 1]
    # 底平面面积
    arch_plane_area_lst = [230.2, 300.5, 180.0]
    # 各类型建筑面积
    arch_type_area_lst = None
    # 各类型占地面积
    arch_type_building_area_lst = None
    # 面积比例
    scale_lst = None
    rst = blockArrange.arrange(
        tot_arch_type_area_lst, tot_block_area, tot_exist_block_area,
        tot_exist_block_building_area, arch_type_lst, plot_ratio,
        building_ratio, arch_floor_lst, arch_num_lst, arch_plane_area_lst,
        arch_type_area_lst, arch_type_building_area_lst, scale_lst)
    return rst
예제 #3
0
파일: test.py 프로젝트: HankDaly/arch
def foo9():
    '二元; 覆盖率; 比例'
    # 所有建筑类型建筑面积
    tot_arch_type_area_lst = [500, 420]
    # 地块总面积
    tot_block_area = 4000
    # 已经存在地块建筑面积
    tot_exist_block_area = None
    # 已经存在地块占地面积
    tot_exist_block_building_area = None
    # 建筑类型
    arch_type_lst = [0, 1]
    # 容积率
    plot_ratio = None
    # 覆盖率
    building_ratio = 0.5
    # 层高
    arch_floor_lst = [2, 3]
    # 栋数
    arch_num_lst = [1, 3]
    # 底平面面积
    arch_plane_area_lst = None
    # 各类型建筑面积
    arch_type_area_lst = None
    # 各类型占地面积
    arch_type_building_area_lst = None
    # 面积比例
    scale_lst = [5, 5]
    rst = blockArrange.arrange(
        tot_arch_type_area_lst, tot_block_area, tot_exist_block_area,
        tot_exist_block_building_area, arch_type_lst, plot_ratio,
        building_ratio, arch_floor_lst, arch_num_lst, arch_plane_area_lst,
        arch_type_area_lst, arch_type_building_area_lst, scale_lst)
    return rst
예제 #4
0
파일: test.py 프로젝트: HankDaly/arch
def foo10():
    '三元; 已存在建筑面积, 已存在占地面积'
    # 所有建筑类型建筑面积
    tot_arch_type_area_lst = [500, 420]
    # 地块总面积
    tot_block_area = 4000
    # 已经存在地块建筑面积
    tot_exist_block_area = 500.0
    # 已经存在地块占地面积
    tot_exist_block_building_area = 880.0
    # 建筑类型
    arch_type_lst = [0, 1]
    # 容积率
    plot_ratio = None
    # 覆盖率
    building_ratio = None
    # 层高
    arch_floor_lst = [2, 3]
    # 栋数
    arch_num_lst = [1, 3]
    # 底平面面积
    arch_plane_area_lst = [120.2, 50.8]
    # 各类型建筑面积
    arch_type_area_lst = None
    # 各类型占地面积
    arch_type_building_area_lst = None
    # 面积比例
    scale_lst = [5, 5]
    rst = blockArrange.arrange(
        tot_arch_type_area_lst, tot_block_area, tot_exist_block_area,
        tot_exist_block_building_area, arch_type_lst, plot_ratio,
        building_ratio, arch_floor_lst, arch_num_lst, arch_plane_area_lst,
        arch_type_area_lst, arch_type_building_area_lst, scale_lst)
    return rst
예제 #5
0
파일: test.py 프로젝트: HankDaly/arch
def foo6():
    '换个二元: 各类型建筑面积'
    # 所有建筑类型建筑面积
    tot_arch_type_area_lst = [330, 420]
    # 地块总面积
    tot_block_area = 4000
    # 已经存在地块建筑面积
    tot_exist_block_area = None
    # 已经存在地块占地面积
    tot_exist_block_building_area = None
    # 建筑类型
    arch_type_lst = [0, 1]
    # 容积率
    plot_ratio = None
    # 覆盖率
    building_ratio = None
    # 层高
    arch_floor_lst = None
    # 栋数
    arch_num_lst = [1, 1]
    # 底平面面积
    arch_plane_area_lst = [100, 23]
    # 各类型建筑面积
    arch_type_area_lst = [240.5, 100.0]
    # 各类型占地面积
    arch_type_building_area_lst = None
    # 面积比例
    scale_lst = None
    rst = blockArrange.arrange(
        tot_arch_type_area_lst, tot_block_area, tot_exist_block_area,
        tot_exist_block_building_area, arch_type_lst, plot_ratio,
        building_ratio, arch_floor_lst, arch_num_lst, arch_plane_area_lst,
        arch_type_area_lst, arch_type_building_area_lst, scale_lst)
    return rst