class Dse::Geometry::Polygon
Encapsulates a polygon consisting of a set of linear-rings in the xy-plane. It corresponds to the
org.apache.cassandra.db.marshal.PolygonType
column type in DSE.
A linear-ring is a LineString
whose last point is the same as its first point. The first ring specified
in a polygon defines the outer edges of the polygon and is called the exterior ring. A polygon may also have
holes within it, specified by other linear-rings, and those holes may contain linear-rings indicating
islands. All such rings are called interior rings.
Inherits
Object
Includes
Cassandra::CustomData
Methods
new
(*args)Returns a new instance of Polygon
type
Returns type of column that is processed by this domain object class.
deserialize
(data)Deserialize the given data into an instance of this domain object class.
exterior_ring
Returns linear-ring characterizing the exterior of the polygon. nil
for empty polygon.
interior_rings
Returns ordered collection of linear-rings that make up the interior of this polygon. Empty if there are no interior rings.
wkt
Returns well-known-text representation of this polygon.
to_s
Returns a human-readable English string describing this Dse::Geometry::Polygon
.
serialize
Serialize this domain object into a byte array to send to DSE.