The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
Identify continuous lines in a network using an approach based on the Continuity in Steet Network (COINS) method1.
rcoins
is a R (re)implementation of the COINS algorithm,
which is also available in Python as a module of the momepy
library or in its original version: PratyushTripathy/COINS.
You can install the released version of rcoins from CRAN with:
install.packages("rcoins")
You can install the development version of rcoins from the R terminal like so:
# install.packages("devtools")
::install_github("CityRiverSpaces/rcoins") devtools
conda
An environment including rcoins and all its dependencies can be created using Conda (or its faster implementation Mamba).
Conda can be installed using the Miniforge scripts provided here (download one of the Mambaforge scripts in order to install Mamba as well).
First clone this repository and access it:
git clone https://github.com/CityRiverSpaces/rcoins.git
cd rcoins/
Run conda
(or mamba
, if using Mambaforge)
to create an environment with all the required dependencies:
conda env create -f environment.yml
conda activate rcoins
Install the development version of rcoins (include
dependencies = TRUE
to install the example datasets):
Rscript -e 'devtools::install(dependencies = TRUE)'
Given the street network of the city of Bucharest (data source: OpenStreetMap)
library(rcoins)
<- get_example_data()
bucharest <- bucharest$streets streets
plot(sf::st_geometry(streets),
col = sf::sf.colors(n = nrow(streets), categorical = TRUE),
lwd = 5, xlim = c(418500, 437500), ylim = c(4909800, 4931500))
Determine continuous lines in the network as:
<- stroke(streets) continuous_streets
plot(continuous_streets,
col = sf::sf.colors(n = length(continuous_streets), categorical = TRUE),
lwd = 5, xlim = c(418500, 437500), ylim = c(4909800, 4931500))
We look very much forward to contributions to the package. See the Contributing Guide for further details.
This package is released with a Contributor Code of Conduct. By contributing to this project you agree to abide by its terms.
When modifying the R source code, load the library as:
::load_all() devtools
Run tests locally:
::test() devtools
Run the linter locally:
::lint_package() lintr
Tripathy, P., Rao, P., Balakrishnan, K., & Malladi, T. (2021). An open-source tool to extract natural continuity and hierarchy of urban street networks. Environment and Planning B: Urban Analytics and City Science, 48(8), 2188-2205. DOI: 10.1177/2399808320967680↩︎
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.