Skip to content

R scripts for generating a raster spatial layer with length of roads per hectare for B.C.

License

Notifications You must be signed in to change notification settings

bcgov/bc-raster-roads

Repository files navigation

img License

B.C. Roads in Raster Format

This analysis generates a raster spatial layer with the total length of roads per hectare for British Columbia.

Data

This analysis uses the British Columbia Digital Road Atlas (DRA) 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.

This analysis excludes some surface and road types in the Digital Road Atlas (DRA). 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.

Usage

There are four core scripts that are required for the raster road density analysis, they need to be run in order:

  • 01_load.R
  • 02_clean.R
  • 03_analysis.R
  • 04_output.R

Or you can run all four scripts using run_all.R.

Note about running time: This is a large dataset and it takes 7-12 hours to complete.

The packages used in the analysis can be installed from CRAN using install.packages().

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.

License

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 ENVEcosystems and Environmental Reporting BC. Click here for a complete list of Environmental Reporting BC repositories on GitHub.

About

R scripts for generating a raster spatial layer with length of roads per hectare for B.C.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages