getLinesLL static method

List getLinesLL(
  1. List geoms,
  2. List<LineString> lines
)

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

@param geoms the collection of geometries from which to extract linear components @param lines the collection to add the extracted linear components to @return the collection of linear components (LineStrings or LinearRings)

Implementation

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