getPoints static method

List getPoints(
  1. Geometry geom
)

Extracts the {@link Point} elements from a single {@link Geometry} and returns them in a {@link List}.

@param geom the geometry from which to extract

Implementation

static List getPoints(Geometry geom) {
  if (geom is Point) {
    return [geom];
  }
  return getPointsWithList(geom, <Point>[]);
}