polygon method
Parses a polygon from a series of rings (closed and simple line strings).
Throws FormatException if cannot create a polygon.
Implementation
Polygon<PointType> polygon(Iterable<dynamic> rings) =>
Polygon<PointType>(lineStringSeries(rings, type: LineStringType.ring));