line_segment1 function

Segment a single line, using lwgeom or rsgeo