Skip to contents

Extract disconnected streets from a data frame containing linestrings representing street networks.

Usage

st_extract_disconnected(x)

Arguments

x

a sf object with LINESTRING geometries.

Value

A sf object containing a subset of x.

Examples

disconnected_streets <- st_extract_disconnected(bangalore_highways)
#> although coordinates are longitude/latitude, st_intersects assumes that they
#> are planar
disconnected_streets
#> Simple feature collection with 2 features and 2 fields
#> Geometry type: LINESTRING
#> Dimension:     XY
#> Bounding box:  xmin: 77.58552 ymin: 12.96382 xmax: 77.59284 ymax: 12.96821
#> Geodetic CRS:  WGS 84
#>                osm_id highway                       geometry
#> 367139321   367139321   steps LINESTRING (77.58552 12.963...
#> 1162816462 1162816462 footway LINESTRING (77.59284 12.968...