
    \i~                         S r SSKrSSKJr  SSKJr  SSKJr  S/r " S S\5      r	\	\R                  R                  S'   g)	z1Collections of linestrings and related utilities.    N)EmptyPartError)
linestring)BaseMultipartGeometryMultiLineStringc                   @    \ rS rSrSr/ rSS jr\S 5       rS	S jr	Sr
g)
r      a  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                    U(       d  [         R                  " S5      $ [        U[        5      (       a  U$ [	        USU5      n/ nU HF  n[
        R                  " U5      nUR                  (       a  [        S5      eUR                  U5        MH     [        U5      S:X  a  [         R                  " S5      $ [         R                  " U5      $ )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        c/var/www/html/kml_chatgpt/mouzaenv/lib/python3.13/site-packages/shapely/geometry/multilinestring.py__new__MultiLineString.__new__&   s     ##$;<<//Lw.D((.D}}$G  KK  u:?##$;<<''--    c                 @    S[        S U R                   5       5      S.$ )zAReturn a GeoJSON-like mapping interface for this MultiLineString.r   c              3   Z   #    U  H!  n[        S  UR                   5       5      v   M#     g7f)c              3   $   #    U  H  ov   M     g 7fN ).0cs     r   	<genexpr>>MultiLineString.__geo_interface__.<locals>.<genexpr>.<genexpr>C   s     &;(Qq(s   N)tuplecoords)r"   gs     r   r$   4MultiLineString.__geo_interface__.<locals>.<genexpr>C   s"      PZ&;!((&;!;!;Zs   )+)typecoordinates)r&   r
   )r   s    r   __geo_interface__!MultiLineString.__geo_interface__>   s#     &  PTZZ PP
 	
r   c                    ^^^ U R                   (       a  gTc  U R                  (       a  SOSmSSR                  UUU4S jU R                   5       5      -   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   H   >#    U  H  oR                  TTT5      v   M     g 7fr    )svg)r"   popacityscale_factorstroke_colors     r   r$   &MultiLineString.svg.<locals>.<genexpr>Z   s     U*QeeL,@@*s   "z</g>)r   is_validjoinr
   )r   r4   r5   r3   s    ```r   r1   MultiLineString.svgF   sN     ==(,99LggU$**UUV	
r   r!   r    )g      ?NN)__name__
__module____qualname____firstlineno____doc__	__slots__r   propertyr,   r1   __static_attributes__r!   r   r   r   r      s,    0 I.0 
 

r      )r>   r   shapely.errorsr   shapely.geometryr   shapely.geometry.baser   __all__r   libregistryr!   r   r   <module>rI      sB    7  ) ' 7
Q
+ Q
h *  Q r   