getLinesGLF static method
Extracts the linear components from a single {@link Geometry} and adds them to the provided {@link List}.
@param geom the geometry from which to extract linear components @param lines the List to add the extracted linear components to @param forceToLineString true if LinearRings should be converted to LineStrings @return the List of linear components (LineStrings or LinearRings)
Implementation
static List getLinesGLF(
Geometry geom, List<LineString> lines, bool forceToLineString) {
geom.applyGCF(
new LinearComponentExtracter.withForced(lines, forceToLineString));
return lines;
}