getLinesLLF static method

List getLinesLLF(
  1. List geoms,
  2. List<LineString> lines,
  3. bool forceToLineString
)

Extracts the linear components from a single {@link Geometry} and adds them to the provided {@link List}.

@param geoms the List of geometries from which to extract linear components @param lines the collection to add the extracted linear components to @param forceToLineString true if LinearRings should be converted to LineStrings @return the collection of linear components (LineStrings or LinearRings)

Implementation

static List getLinesLLF(
    List geoms, List<LineString> lines, bool forceToLineString) {
  for (Iterator i = geoms.iterator; i.moveNext();) {
    Geometry g = i.current as Geometry;
    getLinesGLF(g, lines, forceToLineString);
  }
  return lines;
}