islines: Do the intersections between two geometries create lines?

Description Usage Arguments Examples

View source: R/overline.R

Description

This is a function required in overline(). It identifies whether sets of lines overlap (beyond shared points) or not.

Usage

1
islines(g1, g2)

Arguments

g1

A spatial object

g2

A spatial object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
rnet <- overline(routes_fast[c(2, 3, 22), ], attrib = "length")
plot(rnet)
lines(routes_fast[22, ], col = "red") # line without overlaps
islines(routes_fast[2, ], routes_fast[3, ])
islines(routes_fast[2, ], routes_fast[22, ])
# sf implementation
islines(routes_fast_sf[2, ], routes_fast_sf[3, ])
islines(routes_fast_sf[2, ], routes_fast_sf[22, ])

## End(Not run)

stplanr documentation built on Oct. 20, 2018, 5:05 p.m.