getGeometryWithForce static method
Extracts the linear components from a single {@link Geometry} and returns them as either a {@link LineString} or {@link MultiLineString}.
@param geom the geometry from which to extract @param forceToLineString true if LinearRings should be converted to LineStrings @return a linear geometry
Implementation
static Geometry getGeometryWithForce(Geometry geom, bool forceToLineString) {
return geom.getFactory().buildGeometry(getLinesGF(geom, forceToLineString));
}