LinearRing.fromSequence constructor

LinearRing.fromSequence(
  1. CoordinateSequence? points,
  2. GeometryFactory factory
)

Constructs a LinearRing with the vertices specified by the given {@link CoordinateSequence}.

@param points a sequence points forming a closed and simple linestring, or null to create the empty geometry.

@throws IllegalArgumentException if the ring is not closed, or has too few points

Implementation

LinearRing.fromSequence(CoordinateSequence? points, GeometryFactory factory)
    : super.fromSequence(points, factory) {
  validateConstruction();
}