shapelib/core.py
def linestr(*points):
    """
    create a line-segment from the given points

    Example
    =======

    >>> l = linestr((0, 0), (1, 1), (2, -1))
    >>> l.bounds
    (0.0, -1.0, 2.0, 1.0)
    >>> [coord for coord in l.coords]
    [(0.0, 0.0), (1.0, 1.0), (2.0, -1.0)]

    """
    coords = _normalize_points(points)
    return LineString(coords)

    create a line-segment from the given points

    Example
    =======

    >>> l = linestr((0, 0), (1, 1), (2, -1))
    >>> l.bounds
    (0.0, -1.0, 2.0, 1.0)
    >>> [coord for coord in l.coords]
    [(0.0, 0.0), (1.0, 1.0), (2.0, -1.0)]

    
create a line-segment from the given points
Example


create a line - segment from the given points Example
def linestr(*points):
    coords = _normalize_points(points)
    return LineString(coords)
def linestr ( * points ) : coords = _normalize_points ( points ) return LineString ( coords )
create a line-segment from the given points
Example
create a line - segment from the given points Example
"""
    create a line-segment from the given points

    Example
    =======

    >>> l = linestr((0, 0), (1, 1), (2, -1))
    >>> l.bounds
    (0.0, -1.0, 2.0, 1.0)
    >>> [coord for coord in l.coords]
    [(0.0, 0.0), (1.0, 1.0), (2.0, -1.0)]

    """