Description Usage Arguments Value Author(s) Examples
View source: R/shapefile_utils.R
Warning: This function is NOT robust. Poorly-ordered shapefiles can easily confused it! Plot the resulting object to ensure it has connected the lines properly. GIS programs (e.g., QGIS) have much more robust explode processes that will do much better job.
1 | line_explode(polyline)
|
polyline |
sf polyline object |
sf multipolyline object
Leland Scantlebury
1 2 3 4 5 | #-- Read in shapefiles
str <- read_sf(system.file("extdata", "MehlandHill2010_stream.shp", package = "pbjr"))
#-- Explode polyline
str <- line_explode(str)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.