Awesome
Roads & Roadless Areas in B.C.
This repository contains R code that summarizes the length of roads and amount of roadless area in B.C. It supports the 'Roads & Roadless Areas' indicator published on Environmental Reporting BC.
Data
This analysis uses the British Columbia Digital Road Atlas available from the B.C. Data Catalogue and distributed under the Access Only - B.C. Crown Copyright licence. The Digital Road Atlas is the best available single source of road data for the Province of B.C. Metadata details for the Digital Road Atlas (DRA) are available in PDF format from the B.C. Data Catalogue.
The analyses exclude some surface and road types in the Digital Road Atlas. Boat (B), overgrown (O) & decomissioned (D) roads are excluded from TRANSPORT_LINE_SURFACE_CODE
and ferry routes (F, FP, FR, RWA), non-motorized trails (T, TD), road proposed (RP), and road pedestrian mall (RPM) are excluded from TRANSPORT_LINE_TYPE_CODE
.
The road length analysis sources the Digital Road Atlas from the B.C. Data Catalogue. The roadless area analysis is based on rasterized input data, generated with R code that is also available in GitHub.
Usage
Road Length Analysis
One script is required for the road length and road length by road type analysis:
- road_summary.R
Roadless Area Analysis
There are four core scripts that are required for the roadless area analysis, they need to be run in order:
- 01_load.R
- 02_clean.R
- 03_analysis.R
- 04_output.R
Most packages used in the analysis can be installed from CRAN using install.packages()
, but you will need to install envreportutils
and patchwork
using devtools:
install.packages("devtools") # if you don't already have it installed
library(devtools)
install_github("bcgov/envreportutils")
install_github("thomasp85/patchwork")
Getting Help or Reporting an Issue
To report bugs/issues/feature requests, please file an issue.
How to Contribute
If you would like to contribute, please see our CONTRIBUTING guidelines.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Licence
Copyright 2017 Province of British Columbia
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
This repository is maintained by Environmental Reporting BC. Click here for a complete list of our repositories on GitHub.