static List<List<CoordinateSequence>> extractGroups(Geometry geom, double minSize) {
    List<List<CoordinateSequence>> result = new ArrayList<>();
    extractGroups(geom, result, minSize);
    return result;
  }
Returns the coordinate sequences extracted from every linear component in {@code geom} over a minimum size
threshold.
<p>
For {@link LineString LineStrings} that means all linestrings over a certain length.
<p>
For {@link Polygon Polygons} that means all lists of [exterior, interior...] ring coordinate sequences where the
ring is over a certain area. This utility also ensures that exterior and interior rings use counter-clockwise
winding.

@param geom    one or more linestings or polygons
@param minSize minimum length of linestrings, or minimum area of exterior/interior rings to include
@return the coordinate sequences of the geometry
@throws IllegalArgumentException if {@code geom} contains anything other than linestrings or polygons (i.e. points)
planetiler-core/src/main/java/com/onthegomap/planetiler/render/GeometryCoordinateSequences.java