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 orPoint
objects for each vertex.
- __init__(*args, **kwargs)#
Overloaded function.
__init__(self: spherely.LineString, coordinates: List[Tuple[float, float]]) -> None
__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.