Module Expr Str Import alias If CompareLt SubscriptLoad AttributeLoad NameLoad attr Index Num Num body Assign NameStore NameLoad ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad Str Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Dict Str Str Str Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults Num NameLoad body Expr Str If AttributeLoad NameLoad attr body Return Str If CompareIs NameLoad NameLoad body Assign NameStore IfExp AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad Str attr ListComp Call AttributeLoad Str attr NameLoad comprehension NameStore AttributeLoad NameLoad attr Return Call AttributeLoad Str attr NameLoad BinOpMult Num NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Num AttributeLoad NameLoad attr Num body Expr Str If CompareEq NameLoad Num body Raise Call NameLoad Str TryExcept body Return Call NameLoad Call SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Assert BoolOpOr CompareEq NameLoad Num CompareEq NameLoad Num Return NameLoad handlers ExceptHandler type NameLoad body Return Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Return AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Return Call AttributeLoad NameLoad attr decorator_list NameLoad Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad Str decorator_list Assign NameStore Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Num body If Call NameLoad NameLoad NameLoad body If CompareEq Call NameLoad NameLoad NameLoad body Return Call NameLoad NameLoad orelse Return Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad TryExcept body Assign NameStore AttributeLoad NameLoad attr Assert CompareEq Call NameLoad SubscriptLoad NameLoad Index Str Num Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num If CompareLt NameLoad Num body Raise Call NameLoad Str TryExcept body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad Assert BoolOpOr CompareEq NameLoad Num CompareEq NameLoad Num If Call NameLoad SubscriptLoad NameLoad Index Str NameLoad body Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Call NameLoad NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index Str If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index BinOpMult NameLoad NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index BinOpAdd BinOpMult NameLoad NameLoad Num Assign NameStore NameLoad If CompareEq NameLoad Num body TryExcept body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index BinOpAdd BinOpMult NameLoad NameLoad Num handlers ExceptHandler type NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If CompareLt NameLoad Num body Raise Call NameLoad Str FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad NameLoad body Return SubscriptLoad AttributeLoad NameLoad attr Index Num orelse Return NameLoad decorator_list TryExcept body Assign NameStore Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Num handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad Assert BoolOpOr CompareEq NameLoad Num CompareEq NameLoad Num If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad NameLoad Index Num If CompareEq NameLoad Num body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad NameLoad Index Num handlers ExceptHandler type NameLoad body Raise Call NameLoad Str If CompareIsNot NameLoad NameLoad body Return NameLoad orelse Return TupleLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Import alias Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A Line strings and related utilities
 N/A sys N/A N/A N/A N/A sys version_info N/A 0 3 N/A N/A range xrange ctypes c_double cast POINTER shapely.coords required shapely.geos lgeos TopologicalError shapely.geometry.base BaseGeometry geom_factory JOIN_STYLE geos_geom_from_py shapely.geometry.proxy CachingGeometryProxy shapely.geometry.point Point N/A __all__ N/A LineString asLineString LineString N/A BaseGeometry N/A N/A 
    A one-dimensional figure comprising one or more line segments

    A LineString has non-zero length and zero area. It may approximate a curve
    and need not be straight. Unlike a LinearRing, a LineString is not closed.
     __init__ N/A N/A self coordinates N/A None N/A N/A 
        Parameters
        ----------
        coordinates : sequence
            A sequence of (x, y [,z]) numeric coordinate pairs or triples or
            an object that provides the numpy array interface, including
            another instance of LineString.

        Example
        -------
        Create a line with two segments

          >>> a = LineString([[0, 0], [1, 0], [1, 1]])
          >>> a.length
          2.0
         N/A N/A N/A BaseGeometry __init__ self N/A N/A coordinates None N/A N/A N/A N/A self _set_coords coordinates N/A __geo_interface__ N/A N/A self N/A N/A N/A N/A type coordinates LineString N/A tuple N/A self coords N/A property svg N/A N/A self scale_factor stroke_color N/A 1.0 None N/A N/A Returns SVG polyline element for the LineString geometry.

        Parameters
        ==========
        scale_factor : float
            Multiplication factor for the SVG stroke-width.  Default is 1.
        stroke_color : str, optional
            Hex string for stroke color. Default is to use "#66cc99" if
            geometry is valid, and "#ff3333" if invalid.
         N/A N/A self is_empty N/A N/A <g /> N/A N/A stroke_color None N/A N/A stroke_color N/A N/A self is_valid #66cc99 #ff3333 N/A pnt_format N/A N/A join N/A N/A N/A {0},{1} format c N/A c N/A self coords N/A N/A N/A <polyline fill="none" stroke="{2}" stroke-width="{1}" points="{0}" opacity="0.8" /> format pnt_format N/A 2.0 scale_factor stroke_color N/A ctypes N/A N/A self N/A N/A N/A N/A N/A self _ctypes_data N/A N/A N/A self _ctypes_data N/A N/A self coords ctypes N/A N/A self _ctypes_data N/A property array_interface N/A N/A self N/A N/A N/A Provide the Numpy array protocol. N/A N/A N/A N/A self coords array_interface N/A N/A __array_interface__ N/A property array_interface _set_coords N/A N/A self coordinates N/A N/A N/A N/A N/A self empty N/A N/A N/A self _geom N/A self _ndim N/A geos_linestring_from_py coordinates N/A N/A coords N/A property N/A BaseGeometry _get_coords _set_coords xy N/A N/A self N/A N/A N/A Separate arrays of X and Y coordinate values

        Example:

          >>> x, y = LineString(((0, 0), (1, 1))).xy
          >>> list(x)
          [0.0, 1.0]
          >>> list(y)
          [0.0, 1.0]
         N/A N/A N/A self coords xy N/A property parallel_offset N/A N/A self distance side resolution join_style mitre_limit N/A right 16 N/A JOIN_STYLE round 5.0 N/A N/A Returns a LineString or MultiLineString geometry at a distance from
        the object on its right or its left side.

        The side parameter may be 'left' or 'right' (default is 'right'). The
        resolution of the buffer around each vertex of the object increases by
        increasing the resolution keyword parameter or third positional
        parameter. If the distance parameter is negative the side is inverted,
        e.g. distance=5.0, side='left' is the same as distance=-5.0,
        side='right'.

        The join style is for outside corners between line segments. Accepted
        values are JOIN_STYLE.round (1), JOIN_STYLE.mitre (2), and
        JOIN_STYLE.bevel (3).

        The mitre ratio limit is used for very sharp corners. It is the ratio
        of the distance from the corner to the end of the mitred offset corner.
        When two line segments meet at a sharp angle, a miter join will extend
        far beyond the original geometry. To prevent unreasonable geometry, the
        mitre limit allows controlling the maximum length of the join corner.
        Corners with a ratio which exceed the limit will be beveled. N/A N/A mitre_limit 0.0 N/A N/A N/A ValueError Cannot compute offset from zero-length line segment N/A N/A N/A N/A geom_factory N/A N/A N/A self impl N/A parallel_offset self distance resolution join_style mitre_limit side N/A N/A N/A OSError N/A N/A N/A TopologicalError N/A N/A LineStringAdapter N/A CachingGeometryProxy LineString N/A __init__ N/A N/A self context N/A N/A N/A N/A self context context N/A N/A self factory geos_linestring_from_py N/A _ndim N/A N/A self N/A N/A N/A N/A N/A array N/A N/A self context __array_interface__ N/A n N/A N/A array N/A shape N/A 1 N/A N/A N/A n 2 N/A n 3 N/A n N/A N/A N/A AttributeError N/A N/A N/A len N/A N/A self context N/A 0 N/A property __array_interface__ N/A N/A self N/A N/A N/A Provide the Numpy array protocol. N/A N/A N/A N/A N/A self context __array_interface__ N/A N/A N/A AttributeError N/A N/A N/A N/A self array_interface N/A property N/A _get_coords N/A BaseGeometry _get_coords _set_coords N/A N/A self ob N/A N/A N/A N/A NotImplementedError Adapters can not modify their coordinate sources N/A N/A coords N/A property _get_coords N/A asLineString N/A N/A context N/A N/A N/A Adapt an object the LineString interface N/A N/A LineStringAdapter context N/A geos_linestring_from_py N/A N/A ob update_geom update_ndim N/A None 0 N/A N/A N/A isinstance ob LineString N/A N/A N/A N/A type ob LineString N/A N/A N/A geos_geom_from_py ob N/A N/A N/A geos_geom_from_py ob N/A lgeos GEOSGeom_createLineString N/A ob N/A required ob N/A N/A N/A array N/A ob __array_interface__ N/A N/A N/A len N/A array N/A shape 2 N/A m N/A N/A array N/A shape N/A 0 N/A N/A m 2 N/A N/A N/A ValueError LineStrings must have at least 2 coordinate tuples N/A N/A N/A n N/A N/A array N/A shape N/A 1 N/A N/A N/A IndexError N/A N/A N/A ValueError N/A Input %s is the wrong shape for a LineString N/A str ob N/A N/A N/A n 2 N/A n 3 N/A N/A isinstance N/A array N/A data tuple N/A N/A cp N/A cast N/A N/A array N/A data N/A 0 N/A POINTER c_double N/A N/A cp N/A array N/A data N/A N/A update_geom None N/A N/A cs N/A N/A lgeos GEOSGeom_getCoordSeq update_geom N/A N/A n update_ndim N/A N/A N/A ValueError N/A Wrong coordinate dimensions; this geometry has dimensions: %d update_ndim N/A N/A cs N/A N/A lgeos GEOSCoordSeq_create m n N/A i N/A range m N/A N/A dx N/A c_double N/A cp N/A N/A n i N/A dy N/A c_double N/A cp N/A N/A N/A n i 1 N/A dz None N/A N/A n 3 N/A N/A N/A N/A dz N/A c_double N/A cp N/A N/A N/A n i 2 N/A N/A N/A IndexError N/A N/A N/A ValueError Inconsistent coordinate dimensionality N/A N/A N/A lgeos GEOSCoordSeq_setX cs i dx N/A N/A N/A lgeos GEOSCoordSeq_setY cs i dy N/A N/A n 3 N/A N/A N/A N/A lgeos GEOSCoordSeq_setZ cs i dz N/A N/A N/A AttributeError N/A N/A N/A N/A m N/A len ob N/A N/A N/A TypeError N/A N/A ob N/A list ob N/A m N/A len ob N/A N/A m 2 N/A N/A N/A ValueError LineStrings must have at least 2 coordinate tuples _coords N/A N/A o N/A N/A N/A N/A isinstance o Point N/A N/A N/A N/A o coords N/A 0 N/A N/A o N/A N/A N/A N/A n N/A len N/A _coords N/A ob N/A 0 N/A N/A N/A TypeError N/A N/A N/A ValueError N/A Input %s is the wrong shape for a LineString N/A str ob N/A N/A N/A n 2 N/A n 3 N/A N/A update_geom None N/A N/A cs N/A N/A lgeos GEOSGeom_getCoordSeq update_geom N/A N/A n update_ndim N/A N/A N/A ValueError N/A Wrong coordinate dimensions; this geometry has dimensions: %d update_ndim N/A N/A cs N/A N/A lgeos GEOSCoordSeq_create m n N/A i N/A range m N/A N/A coords N/A _coords N/A ob N/A i N/A N/A N/A lgeos GEOSCoordSeq_setX cs i N/A coords N/A 0 N/A N/A N/A lgeos GEOSCoordSeq_setY cs i N/A coords N/A 1 N/A N/A n 3 N/A N/A N/A N/A N/A N/A lgeos GEOSCoordSeq_setZ cs i N/A coords N/A 2 N/A N/A N/A IndexError N/A N/A N/A ValueError Inconsistent coordinate dimensionality N/A N/A update_geom None N/A N/A None N/A N/A N/A N/A N/A lgeos GEOSGeom_createLineString cs n N/A update_linestring_from_py N/A N/A geom ob N/A N/A N/A N/A geos_linestring_from_py ob N/A geom _geom N/A geom _ndim N/A _test N/A N/A N/A N/A N/A doctest N/A N/A N/A doctest testmod N/A N/A N/A __name__ __main__ N/A N/A N/A _test