osm_bind: Bind the results of an OpenStreetMap (OSM) feature query

View source: R/osm_helpers.R

osm_bindR Documentation

Bind the results of an OpenStreetMap (OSM) feature query

Description

An OSM query returns a list of SFs of different types. This function binds the ones you want together. If a requested geometry is NULL it will not be returned, obviously. You need to use a CRS with latitude and longitude, not decimal degrees.

Usage

osm_bind(sf_list, types, crs = 4326)

Arguments

sf_list

(osmdata object) as returned by osm_query_features

types

(character vector) which SF types do you want. Valid options: lines, points, polygons, multilines, multipolygons

crs

(numeric, default = 4326) which CRS should the result be? osmdata returns 4326 by default, but in order to intersect two sfs they must have the same crs, and if you are dealing with Australian geographies you should be using 7844.

Value

a sf


baslat/sak documentation built on April 14, 2025, 4:14 p.m.