I have a linear ring created from points. I would then like to create a multilinestring from that and subsequently split that into segments of 7 metres each.
I tried the following but got 'LinearRing cannot be cast to class org.locationtech.jts.geom.MultiLineString'.
GeometryFactory gf = new GeometryFactory();
LinearRing outer = gf.createLinearRing(coords.toArray(new Coordinate[] {}));
Polygon polygon = gf.createPolygon( outer, null );
MultiLineString mlslr = gf.createMultiLineString(new LineString[]{polygon.getExteriorRing()});