merge_delineated_polygons.Rd
For a given list of shapefile filepaths, this function will load and combine the shapefiles into a single shapefile object. Each polygon will retain the original attributes assigned to it.
merge_delineated_polygons(shp_paths, message = TRUE)
shp_paths | a list of polygons |
---|---|
message | should progress messages be displayed? Default is TRUE |
A SpatialPolygonsDataFrame with the identifier column ID
# Merge the example polygons within the package library(polyCheck) polygons <- list_polygons(system.file("extdata/polygons", package = "polyCheck")) polygons_all <- merge_delineated_polygons(polygons)#>#>#># Display the results polygons_all#> class : SpatialPolygonsDataFrame #> features : 8 #> extent : 7.670478, 7.745, 11.07066, 11.13065 (xmin, xmax, ymin, ymax) #> coord. ref. : +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0 #> variables : 1 #> names : ID #> min values : 0 #> max values : 7