Polygon<T extends Point<num> >.fromPoints constructor
Create Polygon from rings
with at least exterior boundary at index 0.
Contains also interior boundaries if length is >= 2.
Boundaries in rings
are represented as iterables of points of T
.
Implementation
Polygon.fromPoints(
Iterable<Iterable<T>> rings,
) : this(
BoundedSeries.from(
rings.map(
(ring) => LineString.ring(
ring is PointSeries<T> ? ring : PointSeries.view(ring),
),
),
),
);