getLocations static method

List getLocations(
  1. Geometry geom
)

Returns a list containing a point from each Polygon, LineString, and Point found inside the specified geometry. Thus, if the specified geometry is not a GeometryCollection, an empty list will be returned. The elements of the list are {@link org.locationtech.jts.operation.distance.GeometryLocation}s.

Implementation

static List getLocations(Geometry geom) {
  List locations = [];
  geom.applyGF(new ConnectedElementLocationFilter(locations));
  return locations;
}