| Type Params | Return Type | Name and description |
|---|---|---|
|
java.util.List<java.util.List<java.util.List<java.lang.Double>>> |
asList()Converts the Polygon to a multi-dimensional list of coordinates. |
|
java.lang.String |
toString() |
|
static Polygon |
valueOf(java.util.List coords)The inverse of Polygon.asList, constructs a Polygon from a coordinate list |
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