@EqualsAndHashCode @CompileStatic class Point extends Shape implements GeoJSON
Represents a GeoJSON point for use in GeoJSON data models. See http://geojson.org/geojson-spec.html#point
| Constructor and description |
|---|
Point(double x, double y)Construct a point for the given x and y coordinates |
| Type Params | Return Type | Name and description |
|---|---|---|
|
double[] |
asArray()
|
|
List<Double> |
asList()
|
|
static Point |
getPointAtIndex(List coords, int index)Gets a point from the given list of coordinate lists |
|
String |
toString() |
|
static Point |
valueOf(Number x, Number y)Construct a point for the given x and y values |
|
static Point |
valueOf(List<Number> coords)Construct a point for the given coordinates supplied in the list |
The x and y values that indicate the location of the point
The x and y values that indicate the location of the point
Construct a point for the given x and y coordinates
x - The x positiony - The y position
Gets a point from the given list of coordinate lists
coords - The multi dimensional coordinate listindex - The index of the pointConstruct a point for the given x and y values
x - The x valuey - The y valueGroovy Documentation