示例#1
0
def bc_topo(bbox: BBOX, run_id: str) -> List[ProjectLayer]:
    return [
        ProjectLayer(
            path=file,
            style_class="bc-topo-20000",
            crs_code=bc_topo_crs_code,
            type=bc_topo_output_type,
        ) for file in bc_topo_20000_provisioner(bbox, run_id)
    ]
示例#2
0
def bc_rec_sites(bbox: BBOX, run_id: str) -> List[ProjectLayer]:
    return [
        ProjectLayer(
            path=bc_rec_sites_provisioner(bbox, run_id)[0],
            style_class="rec-sites",
            crs_code=bc_rec_sites_crs_code,
            type=bc_rec_sites_output_type,
        )
    ]
示例#3
0
def bc_ates_poi(bbox: BBOX, run_id: str) -> List[ProjectLayer]:
    return [
        ProjectLayer(
            path=bc_ates_poi_provisioner(bbox, run_id)[0],
            style_class="bc-ates-poi",
            crs_code=bc_ates_poi_crs_code,
            type=bc_ates_poi_output_type,
        )
    ]
示例#4
0
def shelters(bbox: BBOX, run_id: str) -> List[ProjectLayer]:
    return [
        ProjectLayer(
            path=shelters_provisioner(bbox, run_id)[0],
            style_class="shelters",
            crs_code=shelters_crs_code,
            type=shelters_output_type,
        )
    ]
示例#5
0
def bc_hillshade(bbox: BBOX, run_id: str) -> List[ProjectLayer]:
    return [
        ProjectLayer(
            path=file,
            style_class="bc-hillshade",
            crs_code=bc_hillshade_crs_code,
            type=bc_hillshade_output_type,
        ) for file in bc_hillshade_provisioner(bbox, run_id)
    ]
示例#6
0
def trails(bbox: BBOX, run_id: str) -> List[ProjectLayer]:
    trails_files = trails_provisioner(bbox, run_id)
    return [
        ProjectLayer(
            path=trails_files[0],
            style_class=class_name,
            crs_code=trails_crs_code,
            type=trails_output_type,
        ) for class_name in ("trails", "trails-label")
    ]
示例#7
0
def bc_resource_roads(bbox: BBOX, run_id: str) -> List[ProjectLayer]:
    bc_resource_road_files = bc_resource_roads_provisioner(bbox, run_id)
    return [
        ProjectLayer(
            path=bc_resource_road_files[0],
            style_class=class_name,
            crs_code=bc_resource_roads_crs_code,
            type=bc_resource_roads_output_type,
        ) for class_name in ("bc-resource-roads", "bc-resource-roads-label")
    ]
示例#8
0
def canvec(bbox: BBOX, run_id: str, scales: List[int]) -> List[ProjectLayer]:
    layers = list()
    for scale, files in canvec_wms_provisioner(bbox, scales, run_id).items():
        layers += [
            ProjectLayer(
                path=file,
                style_class=f"canvec-{scale}",
                crs_code=canvec_crs_code,
                type=canvec_output_type,
            ) for file in files
        ]
    return layers