toJTSLineString

fun Path2d.toJTSLineString(): LineString

Converts a FooCAD Path2d into a jts LineString. If the Path2d is closed, then use Path2d.toJTSPolygon instead.

See toPath2d for the reverse operation.