Skip to content
R wrappers for OSM Filter and OSM Convert
Ruby R
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
inst
man
vignettes
.Rbuildignore
.gitignore
CODE_OF_CONDUCT.md
DESCRIPTION
LICENSE
NAMESPACE
OSMtools.Rproj
README.Rmd
README.md

README.md

Travis build status Coverage status Build status Project Status: Active – The project has reached a stable, usable state and is being actively developed.

OSMtools

R wrappers for OSM Filter and OSM Convert and functions for downloading from geofabrik. The package makes it easier to download and use large Open Street Map files with R.

Note: The package is currently windows only

Installation

Install the package with remotes as follows:

install.packages("remotes") # If you do not already have the remotes package
remotes::install_github("ITSleeds/OSMTools")

Usage

This R package provides a userfiendly interface to the Windows command line tools osmfilter.exe and osmconvert.exe. For example, if you wanted to get the road in your local area.

You can download a section of the OSM for your local area from Geofabrik.

osmt_geofabrik_dl(region = "europe/great-britain/england/west-yorkshire", destfile = "wy.pbf")

Then convert the PBF file into a format that can be edited.

osmt_convert(file = "wy.pbf", format_out = "o5m")

Then make a new file with just the roads.

osmt_filter(file = "wy.o5m", path_out = "wy_roads.o5m", keep = "highway=")

Contribution

Please note that the OSMtools project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Package Status

This package is part of ongoing research at the University of Leeds, it is provided "as is" and is likely to be updated and changed without warning to meet the research needs of the University.

You can’t perform that action at this time.