Extract connected streets from a data frame containing linestrings representing street networks.
Source:R/st_extract_connected.R
st_extract_connected.Rd
Extract connected streets from a data frame containing linestrings representing street networks.
Examples
connected_streets <- st_extract_connected(bangalore_highways)
#> although coordinates are longitude/latitude, st_intersects assumes that they
#> are planar
connected_streets
#> Simple feature collection with 417 features and 2 fields
#> Geometry type: LINESTRING
#> Dimension: XY
#> Bounding box: xmin: 77.5771 ymin: 12.95439 xmax: 77.59503 ymax: 12.97567
#> Geodetic CRS: WGS 84
#> First 10 features:
#> osm_id highway geometry
#> 8687347 8687347 residential LINESTRING (77.58983 12.960...
#> 22893740 22893740 primary LINESTRING (77.58761 12.967...
#> 23076921 23076921 secondary LINESTRING (77.58399 12.963...
#> 23076927 23076927 primary LINESTRING (77.58735 12.967...
#> 23076955 23076955 tertiary LINESTRING (77.58846 12.967...
#> 23081473 23081473 residential LINESTRING (77.58395 12.963...
#> 23081479 23081479 residential LINESTRING (77.58751 12.960...
#> 23081496 23081496 residential LINESTRING (77.58227 12.961...
#> 23081501 23081501 residential LINESTRING (77.58127 12.961...
#> 23081545 23081545 residential LINESTRING (77.57966 12.961...