class Point extends Geometry
A Point Geometry.
You can create a Point from xy coordinates:
Point p = new Point(111, -47)
| Type Params | Return Type | Name and description |
|---|---|---|
|
double |
getAngle(Point other, java.lang.String type)Get the angle between this Point and another Point |
|
double |
getAzimuth(Point other, java.lang.String ellipsoid)Get the azimuth between this Point and the other Point. |
|
double |
getX()Get the X coordinate |
|
double |
getY()Get the Y coordinate |
|
double |
getZ()Get the Z coordinate |
|
MultiPoint |
plus(Point point)Add this Point with another to create a MultiPoint. |
Create a Point by wrapping a JTS Point
The - JTS PointCreate a Point with an x and y coordinate
def p = new Point(111,-47)
x - The x coordinatey - The y coordinateCreate a Point with an x,y,z coordinate
def p = new Point(111,-47, 5.4)
x - The x coordinatey - The y coordinatez - The z coordinateGet the angle between this Point and another Point
other - The other Pointtype - The type of units (degrees or radians, the default is degrees)Get the azimuth between this Point and the other Point. See geoscript.proj.Geodetic for more details.
other - The other Pointellipsoid - The ellipsoid (defaults to wgs84)Get the X coordinate
Get the Y coordinate
Get the Z coordinate
Add this Point with another to create a MultiPoint.
def p = new Point(1,2) def m = p + new Point(3,4) MULTIPOINT (1 2, 3 4)
point - The other Point