Combine all AMENITIES results into single dataset (Points, Polygons, Myltipolygons) (centroids).
osm.combineAmenities(inam)
Amenities
A nice
Other osm:
osm.ClipSFnetwork_with_poly()
,
osm.CreateEmptyRaster()
,
osm.bb_2_pol()
,
osm.combineShops()
,
osm.getFrequency()
,
osm.getLength_footway()
,
osm.getPOI_usingbb()
,
osm.getPOI()
,
osm.getRoads()
,
osm.osmdata_result_2_bbox_pol()
library(goal)
am = osm.getPOI(inPerioxi = "Mytilene Municipal Unit", inkey = "amenity")
#> Issuing query to Overpass API ...
#> Announced endpoint: gall.openstreetmap.de/
#> Query complete!
#> converting OSM data to sf format
amenities = osm.combineAmenities(am)
#> Warning: st_centroid assumes attributes are constant over geometries
#> Warning: GDAL Message 1: +init=epsg:XXXX syntax is deprecated. It might return a CRS with a non-EPSG compliant axis order.
#> Warning: GDAL Error 1: PROJ: proj_as_wkt: DatumEnsemble can only be exported to WKT2:2019
#> Warning: GDAL Error 1: PROJ: proj_as_wkt: DatumEnsemble can only be exported to WKT2:2019
#> Warning: st_centroid assumes attributes are constant over geometries
#> Warning: GDAL Error 1: PROJ: proj_as_wkt: DatumEnsemble can only be exported to WKT2:2019
amenities
#> Simple feature collection with 4847 features and 4 fields
#> Geometry type: POINT
#> Dimension: XY
#> Bounding box: xmin: 26.45563 ymin: 39.00851 xmax: 26.61256 ymax: 39.17293
#> Geodetic CRS: WGS 84
#> First 10 features:
#> osm_id name amenity
#> 228266105 228266105 Myitlini Airport (Old) Fire Station fire_station
#> 232407341 232407341 <NA> cafe
#> 232598112 232598112 ERA Aegean studio
#> 232598293 232598293 Πανεπιστήμιο Αιγαίου university
#> 247897826 247897826 ΝΕΚΡΟΤΑΦΕΙΟ ΧΡΥΣΟΜΑΛΛΟΥΣΑΣ grave_yard
#> 251858327 251858327 Ο.Α.Ε.Δ. school
#> 251858392 251858392 Κάδοι απορριμάτων recycling
#> 251867613 251867613 <NA> parking
#> 251869171 251869171 <NA> parking
#> 251869815 251869815 ΣΧΟΛΙΚΟ ΣΥΓΚΡΟΤΗΜΑ school
#> geotype geometry
#> 228266105 frompolygon POINT (26.60452 39.05245)
#> 232407341 frompolygon POINT (26.54987 39.09576)
#> 232598112 frompolygon POINT (26.54933 39.09052)
#> 232598293 frompolygon POINT (26.5687 39.08468)
#> 247897826 frompolygon POINT (26.55574 39.08868)
#> 251858327 frompolygon POINT (26.5263 39.14867)
#> 251858392 frompolygon POINT (26.52373 39.15504)
#> 251867613 frompolygon POINT (26.54363 39.13031)
#> 251869171 frompolygon POINT (26.52924 39.14336)
#> 251869815 frompolygon POINT (26.52162 39.15466)