Convert Spatial Lines to Spatial Polygons
问题 Is there an easy way to convert a Spatial Lines into a Spatial Polygon object within R? Reproducible Example I have put together a reusable dataset here, which is downloaded from OpenStreetMaps through the overpass package. This extracts the locations of a few airports in South England: devtools::install_github("hrbrmstr/overpass") library(overpass) library(raster) library(sp) # Write Query query_airport <- ' (node["aeroway"="aerodrome"](50.8, -1.6,51.1, -1.1); way["aeroway"="aerodrome"](50.8