dse.util - Utilities

class Point

Represents a point geometry for DSE

Attributes

x

= None

x coordinate of the point

y

= None

y coordinate of the point

Class Methods

classmethod

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

= None

Tuple of (x, y) coordinates in the linestring

Class Methods

classmethod

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

= None

Tuple of _LinearRings representing interior holes in the polygon

Class Methods

classmethod

from_wkt

(s)

Parse a Polygon geometry from a wkt string and return a new Polygon object.