class Point
A Point is a zero-dimensional object that represents a specific (X,Y) location in a two-dimensional XY-Plane. In case of Geographic Coordinate Systems, the X coordinate is the longitude and the Y is the latitude.
Augments
Geometry
Members
Number
x
Returns the X coordinate of this 2D point.
Number
y
Returns the Y coordinate of this 2D point.
Constructor
Methods
equals
(Point
other)
Returns true if the values of the point are the same, otherwise it returns false.
Point.fromBuffer
(Buffer
buffer)
Creates a Point
instance from
a Well-known Text (WKT)
representation of a 2D point.
- Static
- This function is static
Point.fromString
(String
textValue)
Creates a Point
instance from
a Well-known Text (WKT)
representation of a 2D point.
- Static
- This function is static
toBuffer
()Returns a Well-known Binary (WKB) representation of this instance.
toJSON
()Returns a JSON representation of this geo-spatial type.
toString
()Returns Well-known text (WKT) representation of the geometry object.