@CompileStatic @EqualsAndHashCode class Polygon extends Shape implements GeoJSON
Represents a GeoJSON polygon for use in Geo data models. See http://geojson.org/geojson-spec.html#polygon
Converts the Polygon to a multi-dimensional list of coordinates. Example: [ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0] ]
The inverse of Polygon.asList, constructs a Polygon from a coordinate list
coords - The coordinate listGroovy Documentation