-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathrnet_subset.Rd
41 lines (36 loc) · 1.05 KB
/
rnet_subset.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rnet_join.R
\name{rnet_subset}
\alias{rnet_subset}
\title{Subset one route network based on overlaps with another}
\usage{
rnet_subset(
rnet_x,
rnet_y,
dist = 10,
crop = TRUE,
min_length = 20,
rm_disconnected = TRUE
)
}
\arguments{
\item{rnet_x}{The route network to be subset}
\item{rnet_y}{The subsetting route network}
\item{dist}{The buffer width around y in meters. 1 m by default.}
\item{crop}{Crop \code{rnet_x}? \code{TRUE} is the default}
\item{min_length}{Segments shorter than this multiple of dist
\emph{and} which were longer
before the cropping process will be removed. 3 by default.}
\item{rm_disconnected}{Remove ways that are}
}
\description{
Subset one route network based on overlaps with another
}
\examples{
rnet_x <- osm_net_example[1]
rnet_y <- route_network_small["flow"]
plot(rnet_x$geometry, lwd = 5)
plot(rnet_y$geometry, add = TRUE, col = "red", lwd = 3)
rnet_x_subset <- rnet_subset(rnet_x, rnet_y)
plot(rnet_x_subset, add = TRUE, col = "blue")
}