Skip to contents

Get OpenStreetMap railways

Usage

get_osm_railways(bb, crs)

Arguments

bb

Bounding box

crs

Coordinate reference system as EPSG code

Value

An sf object with the railways

Examples

bb <- get_osm_bb("Bucharest")
crs <- get_utm_zone(bb)
get_osm_railways(bb, crs)
#> Simple feature collection with 1031 features and 1 field
#> Geometry type: LINESTRING
#> Dimension:     XY
#> Bounding box:  xmin: 408330 ymin: 4901482 xmax: 439360.8 ymax: 4937371
#> Projected CRS: WGS 84 / UTM zone 35N
#> First 10 features:
#>          type                       geometry
#> 4902946  rail LINESTRING (425916.8 492225...
#> 13242940 rail LINESTRING (417865.3 493110...
#> 14449609 rail LINESTRING (426605.8 492626...
#> 14449614 rail LINESTRING (426663.4 492628...
#> 14449620 rail LINESTRING (427060.1 492640...
#> 14449623 rail LINESTRING (429683.8 492635...
#> 15238558 rail LINESTRING (425642.6 492596...
#> 15238565 rail LINESTRING (424190.9 492513...
#> 15238574 rail LINESTRING (425392.8 492588...
#> 15243277 rail LINESTRING (435989.3 491190...