class LineString
A LineString is a one-dimensional object representing a sequence of points and the line segments connecting them.
Augments
Geometry
Members
Returns a frozen Array of points that represent the line.
Constructor
new
LineString
([Point
point…])
Creates a new LineString
instance.
Methods
equals
(LineString
other)
Returns true if the values of the linestrings are the same, otherwise it returns false.
LineString.fromBuffer
(Buffer
buffer)
Creates a LineString
instance from
a Well-known Text (WKT)
representation of a line.
- Static
- This function is static
LineString.fromString
(String
textValue)
Creates a LineString
instance from
a Well-known Text (WKT)
representation of a line.
- 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.