class Polygon
Represents is a plane geometry figure that is bounded by a finite chain of straight line segments closing in a loop to form a closed chain or circuit.
Members
Array
rings
Returns a frozen Array of array of points that represent the different rings in the polygon.
Constructor
Creates a new Polygon
instance.
Methods
equals
(Polygon
other)
Returns true if the values of the polygons are the same, otherwise it returns false.
Polygon.fromBuffer
(Buffer
buffer)
Creates a Polygon
instance from
a Well-known Text (WKT)
representation of a polygon.
- Static
- This function is static
Polygon.fromString
(String
textValue)
Creates a Polygon
instance from
a Well-known Text (WKT)
representation of a shape.
- 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.