ó
    gziØ  ã                   ó(   • S r SSKJr   " S S5      rg)zCoordinate sequence utilities.é    )Úarrayc                   óJ   • \ rS rSrSrS rS rS rS rSS jr	\
S	 5       rS
rg)ÚCoordinateSequenceé   a  Access to coordinate tuples from the parent geometry's coordinate sequence.

Examples
--------
>>> from shapely.wkt import loads
>>> g = loads('POINT (0.0 0.0)')
>>> list(g.coords)
[(0.0, 0.0)]
>>> g = loads('POINT M (1 2 4)')
>>> g.coords[:]
[(1.0, 2.0, 4.0)]

c                 ó   • Xl         g)zdInitialize the CoordinateSequence.

Parameters
----------
coords : array
    The coordinate array.

N©Ú_coords)ÚselfÚcoordss     ÚK/home/mande/repo/quber/.venv/lib/python3.13/site-packages/shapely/coords.pyÚ__init__ÚCoordinateSequence.__init__   s	   € ð �ó    c                 ó4   • U R                   R                  S   $ )zmReturn the length of the CoordinateSequence.

Returns
-------
int
    The length of the CoordinateSequence.

r   )r	   Úshape)r
   s    r   Ú__len__ÚCoordinateSequence.__len__    s   € ð �|‰|×!Ñ! !Ñ$Ð$r   c              #   óœ   #   • [        U R                  5       5       H+  n[        U R                  U   R	                  5       5      v •  M-     g7f)z$Iterate over the CoordinateSequence.N)Úranger   Útupler	   Útolist)r
   Úis     r   Ú__iter__ÚCoordinateSequence.__iter__+   s6   é € ä�t—|‘|“~Ö&ˆAÜ˜Ÿ™ Q™×.Ñ.Ó0Ó1Ô1ò 'ùs   ‚A
Ac                 óâ  • U R                  5       n[        U[        5      (       aK  X-   S:  d  X:¼  a  [        S5      eUS:  a  X!-   nOUn[	        U R
                  U   R                  5       5      $ [        U[        5      (       a`  / nUR                  U5      u  pVn[        XVU5       H8  nUR                  [	        U R
                  U   R                  5       5      5        M:     U$ [        S5      e)z¾Get the item at the specified index or slice.

Parameters
----------
key : int or slice
    The index or slice.

Returns
-------
tuple or list
    The item at the specified index or slice.

r   zindex out of rangezkey must be an index or slice)r   Ú
isinstanceÚintÚ
IndexErrorr   r	   r   ÚsliceÚindicesr   ÚappendÚ	TypeError)r
   ÚkeyÚmr   ÚresÚstartÚstopÚstrides           r   Ú__getitem__ÚCoordinateSequence.__getitem__0   sÌ   € ð �L‰L‹NˆÜ�cœ3×ÑØ‰w˜‹{˜c›hÜ Ð!5Ó6Ð6Ø�Q‹wØ‘G‘à�Ü˜Ÿ™ a™×/Ñ/Ó1Ó2Ð2Ü˜œU×#Ñ#ØˆCØ"%§+¡+¨a£.ÑˆE˜Ü˜5¨Ö/�Ø—
‘
œ5 §¡¨a¡×!7Ñ!7Ó!9Ó:Ö;ñ 0àˆJäÐ;Ó<Ð<r   Nc                 óx   • USL a  [        S5      eUSL a  U R                  R                  5       $ U R                  $ )a�  Return a copy of the coordinate array.

Parameters
----------
dtype : data-type, optional
    The desired data-type for the array.
copy : bool, optional
    If None (default) or True, a copy of the array is always returned.
    If False, a ValueError is raised as this is not supported.

Returns
-------
array
    The coordinate array.

Raises
------
ValueError
    If `copy=False` is specified.

Fz7`copy=False` isn't supported. A copy is always created.T)Ú
ValueErrorr	   Úcopy)r
   Údtyper-   s      r   Ú	__array__ÚCoordinateSequence.__array__P   s;   € ð, �5Š=ÜÐVÓWÐWØ�TŠ\Ø—<‘<×$Ñ$Ó&Ð&à—<‘<Ðr   c                 ó  • U R                  5       n[        S5      n[        S5      n[        U5       HH  nU R                  U   R	                  5       nUR                  US   5        UR                  US   5        MJ     X#4$ )zX and Y arrays.Údr   é   )r   r   r   r	   r   r!   )r
   r$   ÚxÚyr   Úxys         r   r6   ÚCoordinateSequence.xym   sl   € ð �L‰L‹NˆÜ�#‹JˆÜ�#‹JˆÜ�q–ˆAØ—‘˜a‘×'Ñ'Ó)ˆBØ�H‰H�R˜‘UŒOØ�H‰H�R˜‘UŽOñ ð ˆtˆr   r   )NN)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r   r)   r/   Úpropertyr6   Ú__static_attributes__© r   r   r   r      s5   † ñò	ò	%ò2ò
=ô@ ð: ñ	ó ó	r   r   N)r<   r   r   r?   r   r   Ú<module>r@      s   ðÙ $å ÷qò qr   