Description Usage Arguments Value Author(s) Examples
View source: R/polygon.to.point.R
Often in your SpatialDataFrame you have points of interest mapped like polygons. This function turn polygons in points.
1 | polygon.to.point(osm_data)
|
osm_data |
A SpatialDataFrame returned from poi.osm. |
A SpatialPointsDataFrame.
Nicola Procopio
1 2 3 4 | ### Uncomment and Run
# require(wRappoveRpass)
# phMilan <- poi.osm(city = "Milano", tag = "amenity", value = "pharmacy")
# phMilan_new <- polygon.to.point(osm_data = phMilan)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.