dse.util
- Utilities
class Point
Represents a point geometry for DSE
Attributes
x
= Nonex coordinate of the point
y
= Noney coordinate of the point
Class Methods
from_wkt
(s)Parse a Point geometry from a wkt string and return a new Point object.
class LineString
Represents a linestring geometry for DSE
‘coords`: a sequence of (x, y) coordinates of points in the linestring
Attributes
coords
= NoneTuple of (x, y) coordinates in the linestring
Class Methods
from_wkt
(s)Parse a LineString geometry from a wkt string and return a new LineString object.
class Polygon
Represents a polygon geometry for DSE
‘exterior`: a sequence of (x, y) coordinates of points in the linestring interiors: None, or a sequence of sequences or (x, y) coordinates of points describing interior linear rings
Attributes
exterior
= None_LinearRing representing the exterior of the polygon
interiors
= NoneTuple of _LinearRings representing interior holes in the polygon
Class Methods
from_wkt
(s)Parse a Polygon geometry from a wkt string and return a new Polygon object.