LinearRing.withFactory constructor

LinearRing.withFactory(
  1. List<Coordinate> points,
  2. GeometryFactory factory
)

This method is ONLY used to avoid deprecation warnings. @param points @param factory @throws IllegalArgumentException if the ring is not closed, or has too few points

Implementation

LinearRing.withFactory(List<Coordinate> points, GeometryFactory factory)
    : this.fromSequence(
          factory.getCoordinateSequenceFactory().create(points), factory);