osm.myBB_2_pol | R Documentation |
Create a polygon from a BB object
osm.myBB_2_pol(n, s, w, e, bbox = NA, proj4string = sp::CRS("+init=epsg:4326"))
n |
the top north latitude |
s |
the bottom south latitude |
w |
the most western longitude |
e |
the most eastern longitude |
bbox |
either a bounding box |
proj4string |
either a projection |
An polygon
Dimitris Kavroudakis dimitris123@gmail.com
Other osm:
osm.ClipSFnetwork_with_poly()
,
osm.CreateEmptyRaster()
,
osm.bb_2_pol()
,
osm.combineAmenities()
,
osm.combineShops()
,
osm.getFrequency()
,
osm.getLength_footway()
,
osm.getPOI()
,
osm.getPOI_usingbb()
,
osm.getRoads()
,
osm.osmdata_result_2_bbox_pol()
library(devtools)
#install_github("dimitrisk/goal")
library(raster)
library(goal)
bb = c(38.1 , 26.5 , 39.05 , 27.7)
result = goal::osm.myBB_2_pol(n =bb[3], s =bb[1], w =bb[4], e =bb[2])
result
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.