spherely.LineString

spherely.LineString#

class spherely.LineString#

A geography type composed of one or more arc segments.

A LineString is a one-dimensional feature and has a non-zero length but zero area. A LineString is not closed.

Parameters:

coordinates (list) – A sequence of (lat, lon) tuple coordinates or Point objects for each vertex.

__init__(*args, **kwargs)#

Overloaded function.

  1. __init__(self: spherely.LineString, coordinates: List[Tuple[float, float]]) -> None

  2. __init__(self: spherely.LineString, coordinates: List[spherely.Point]) -> None

Methods

__init__(*args, **kwargs)

Overloaded function.

Attributes

dimensions

Returns the inherent dimensionality of a geometry.

nshape

Returns the number of elements in the collection, or 1 for simple geography objects.