@CompileStatic @EqualsAndHashCode class LineString extends Shape implements GeoJSON
See http://geojson.org/geojson-spec.html#linestring
| Type | Name and description |
|---|---|
List<Point> |
coordinatesThe points that constitute the LineString |
| Constructor and description |
|---|
LineString(Point[] points)Constructs a LineString for the given Point instances |
Converts the line string to a multi dimensional coordinate list. Example: [ [1.0d, 4.0d], [8.0d, 4.0d] ] @return
Constructs a LineString for the given coordinates
coords - The coordinates, which should be a list of Point instances or lists containing x and y
valuesGroovy Documentation