The function onverts SpatialLinesDataFrame to SpatialPointsDataFrame with points at the midpoints of the line segments.
Usage
SpatialLinesMidPoints(sldf)
Arguments
sldf
A SpatialLines or SpatialLinesDataFrame object
Details
The function builds a SpatialPointsDataFrame from the midpoints of Line objects belonging to Lines objects in an object inheriting from a Spatial Lines object. The output data slot contains an index variable showing which Lines object the midpoints belong to.
Value
A SpatialPointsDataFrame object created from the input object.