getLinesGL 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 @return the List of linear components (LineStrings or LinearRings)
Implementation
static List getLinesGL(Geometry geom, List<LineString> lines) {
if (geom is LineString) {
lines.add(geom);
} else {
geom.applyGCF(new LinearComponentExtracter(lines));
}
return lines;
}