Ë
    ~ìqj~  ã                   ó‚   — d Z ddlZddlmZ ddlmZ ddlmZ dgZ G d„ de«      Z	e	ej                  j                  d<   y)	z1Collections of linestrings and related utilities.é    N)ÚEmptyPartError)Ú
linestring)ÚBaseMultipartGeometryÚMultiLineStringc                   ó4   — e Zd ZdZg Zdd„Zed„ «       Zdd„Zy)r   aH  A collection of one or more LineStrings.

    A MultiLineString has non-zero length and zero area.

    Parameters
    ----------
    lines : sequence
        A sequence LineStrings, or a sequence of line-like coordinate
        sequences or array-likes (see accepted input for LineString).

    Attributes
    ----------
    geoms : sequence
        A sequence of LineStrings

    Examples
    --------
    Construct a MultiLineString containing two LineStrings.

    >>> from shapely import MultiLineString
    >>> lines = MultiLineString([[[0, 0], [1, 2]], [[4, 4], [5, 6]]])

    Nc                 ój  — |st        j                  d«      S t        |t        «      r|S t	        |d|«      }g }|D ]?  }t        j                  |«      }|j                  rt        d«      ‚|j                  |«       ŒA t        |«      dk(  rt        j                  d«      S t        j                  |«      S )z&Create a new MultiLineString geometry.zMULTILINESTRING EMPTYÚgeomsz1Can't create MultiLineString with empty componentr   )ÚshapelyÚfrom_wktÚ
isinstancer   Úgetattrr   Ú
LineStringÚis_emptyr   ÚappendÚlenÚmultilinestrings)ÚselfÚlinesÚsubsÚitemÚlines        ú\/var/www/html/truck-me/venv/lib/python3.12/site-packages/shapely/geometry/multilinestring.pyÚ__new__zMultiLineString.__new__&   s¯   € áô ×#Ñ#Ð$;Ó<Ð<Ü˜œÔ/ØˆLä˜˜w¨Ó.ˆØˆØò 	ˆDÜ×(Ñ(¨Ó.ˆDØ�}Š}Ü$ØGóð ð �K‰K˜Õð	ô ˆu‹:˜Š?Ü×#Ñ#Ð$;Ó<Ð<ä×'Ñ'¨Ó-Ð-ó    c                 ó@   — dt        d„ | j                  D «       «      dœS )zAReturn a GeoJSON-like mapping interface for this MultiLineString.r   c              3   óT   K  — | ]   }t        d „ |j                  D «       «      –— Œ" y­w)c              3   ó    K  — | ]  }|–— Œ y ­w©N© )Ú.0Úcs     r   ú	<genexpr>z>MultiLineString.__geo_interface__.<locals>.<genexpr>.<genexpr>C   s   è ø€ Ò&;¨Q¤qÑ&;ùs   ‚N)ÚtupleÚcoords)r    Úgs     r   r"   z4MultiLineString.__geo_interface__.<locals>.<genexpr>C   s   è ø€ Ò PÀ¤Ñ&;°!·(±(Ô&;×!;Ñ Pùs   ‚&()ÚtypeÚcoordinates)r#   r	   )r   s    r   Ú__geo_interface__z!MultiLineString.__geo_interface__>   s#   € ð &Ü Ñ PÀTÇZÁZÔ PÓPñ
ð 	
r   c                 óž   ‡‡‡— | j                   ry‰€| j                  rdndŠddj                  ˆˆˆfd„| j                  D «       «      z   dz   S )aì  Return a group of SVG polyline elements 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.
        opacity : float
            Float number between 0 and 1 for color opacity. Default value is 0.8

        z<g />z#66cc99z#ff3333z<g>Ú c              3   óD   •K  — | ]  }|j                  ‰‰‰«      –— Œ y ­wr   )Úsvg)r    ÚpÚopacityÚscale_factorÚstroke_colors     €€€r   r"   z&MultiLineString.svg.<locals>.<genexpr>Z   s   øè ø€ ÒUÀQ�a—e‘e˜L¨,¸×@ÑUùs   ƒ z</g>)r   Úis_validÚjoinr	   )r   r/   r0   r.   s    ```r   r,   zMultiLineString.svgF   sN   ú€ ð �=Š=ØØÐØ(,¯ª™9¸9ˆLàØ�g‰gÕUÈ$Ï*É*ÔUÓUñVàñð	
r   r   )g      ð?NN)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__r   Úpropertyr(   r,   r   r   r   r   r      s,   „ ñð0 €Ió.ð0 ñ
ó ð
ô
r   é   )r6   r
   Úshapely.errorsr   Úshapely.geometryr   Úshapely.geometry.baser   Ú__all__r   ÚlibÚregistryr   r   r   ú<module>r@      sB   ðÙ 7ã Ý )Ý 'Ý 7àÐ
€ôQ
Ð+ô Q
ðh *€‡�× Ñ �QÒ r   