osm.osmdata_result_2_bbox_pol: osm.osmdata_result_2_bbox_pol

View source: R/osm.r

osm.osmdata_result_2_bbox_polR Documentation

osm.osmdata_result_2_bbox_pol

Description

Get the bbox of a result, as an SF polygon.

Usage

osm.osmdata_result_2_bbox_pol(osmdata_result)

Arguments

osmdata_result

An osmdata result.

Value

An SF polygon which is the bbox of the osmdata result.

Author(s)

Dimitris Kavroudakis dimitris123@gmail.com

See Also

Other osm: osm.ClipSFnetwork_with_poly(), osm.CreateEmptyRaster(), osm.bb_2_pol(), osm.combineAmenities(), osm.combineShops(), osm.getFrequency(), osm.getLength_footway(), osm.getPOI_usingbb(), osm.getPOI(), osm.getRoads()

Examples

library(devtools)
#install_github("dimitrisk/goal")
library(goal)
library(sf)
library(stringr)
am = goal::osm.getPOI_usingbb( c(26.547303,39.101658,26.564641,39.113247), inkey ="amenity" )
amenities = goal::osm.combineAmenities(am)
thepol = goal::osm.osmdata_result_2_bbox_pol(am)


dimitrisk/goal documentation built on April 30, 2024, 7:21 p.m.