powered by
Given a LineString or MultiLineString, expand the geometry into each and every component Line.
explode_lines(x)
an object of class rs_LINESTRING
rs_LINESTRING
an object of class rs_LINESTRING or rs_MULTILINESTRING
rs_MULTILINESTRING
A LineString is composed of one or more Lines. A Line is a connected by a start and end coordinate only.
LineString
Line
x <- geom_linestring(1:10, 10:1) length(x) explode_lines(x)
Run the code above in your browser using DataLab