envelope static method

Envelope envelope(
  1. List<Coordinate> coordinates
)

Computes the envelope of the coordinates.

@param coordinates the coordinates to scan @return the envelope of the coordinates

Implementation

static Envelope envelope(List<Coordinate> coordinates) {
  Envelope env = Envelope.empty();
  for (int i = 0; i < coordinates.length; i++) {
    env.expandToIncludeCoordinate(coordinates[i]);
  }
  return env;
}