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) ]
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, ) ]
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, ) ]
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, ) ]
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) ]
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") ]
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") ]
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