polygon.to.point: polygon.to.point

Description Usage Arguments Value Author(s) Examples

View source: R/polygon.to.point.R

Description

Often in your SpatialDataFrame you have points of interest mapped like polygons. This function turn polygons in points.

Usage

1
polygon.to.point(osm_data)

Arguments

osm_data

A SpatialDataFrame returned from poi.osm.

Value

A SpatialPointsDataFrame.

Author(s)

Nicola Procopio

Examples

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)

nickprock/wRappoveRpass documentation built on Jan. 28, 2020, 12:08 a.m.