stplanr (version 1.1.2)

islines: Do the intersections between two geometries create lines?

Description

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

Usage

islines(g1, g2)

Arguments

g1

A spatial object

g2

A spatial object

See Also

Other rnet: gsection(), overline(), rnet_breakup_vertices(), rnet_group()

Examples

Run this code
if (FALSE) {
# sf implementation
islines(routes_fast_sf[2, ], routes_fast_sf[3, ])
islines(routes_fast_sf[2, ], routes_fast_sf[22, ])
}

Run the code above in your browser using DataLab