§
    eÎj‘  ã                   ó2   — d Z ddlZdd„Zdd„Zd	d„Zdd„ZdS )
zqLoad/dump geometries using the well-known binary (WKB) format.

Also provides pickle-like convenience functions.
é    NFc                 ó*   — t          j        | ¦  «        S )zÒLoad a geometry from a WKB byte string.

    If ``hex=True``, the string will be hex-encoded.

    Raises
    ------
    GEOSException, UnicodeDecodeError
        If ``data`` contains an invalid geometry.

    )ÚshapelyÚfrom_wkb)ÚdataÚhexs     ú[/root/private/project/pallet_detection_v2/.venv/lib/python3.11/site-packages/shapely/wkb.pyÚloadsr	   	   s   € õ Ô˜DÑ!Ô!Ð!ó    c                 óL   — |                       ¦   «         }t          ||¬¦  «        S )z�Load a geometry from an open file.

    Raises
    ------
    GEOSException, UnicodeDecodeError
        If the given file contains an invalid geometry.

    )r   )Úreadr	   )Úfpr   r   s      r   Úloadr      s$   € ð �7Š7‰9Œ9€DÝ�˜3ÐÑÔÐr
   c                 óÌ   — |�t          j        | |¦  «        } d|d<   d|v r1|                     d¦  «        }|rdnd}|                     |¬¦  «         t          j        | fd|i|¤ŽS )	aW  Dump a WKB representation of a geometry to a byte string.

    If ``hex=True``, the string will be hex-encoded.

    Parameters
    ----------
    ob : geometry
        The geometry to export to well-known binary (WKB) representation.
    hex : bool
        If true, export the WKB as a hexadecimal string. The default is to
        return a binary string/bytes object.
    srid : int
        Spatial reference system ID to include in the output. The default value
        means no SRID is included.
    **kw : kwargs, optional
        Keyword output options passed to :func:`~shapely.to_wkb`.

    NTÚinclude_sridÚ
big_endianr   é   )Ú
byte_orderr   )r   Úset_sridÚpopÚupdateÚto_wkb)Úobr   ÚsridÚkwr   r   s         r   Údumpsr   $   sƒ   € ð& ÐåÔ˜b $Ñ'Ô'ˆØ!ˆˆ>ÑØ�rÐÐð —V’V˜LÑ)Ô)ˆ
Ø$Ð+�Q�Q¨!ˆ
Ø
�	Š	˜Zˆ	Ñ(Ô(Ð(ÝŒ>˜"Ð,Ð, #Ð,¨Ð,Ð,Ð,r
   c                 óJ   — |                      t          | fd|i|¤Ž¦  «         dS )z Dump a geometry to an open file.r   N)Úwriter   )r   r   r   r   s       r   Údumpr   D   s/   € à‡H‚H�U�2Ð%Ð%˜3Ð% "Ð%Ð%Ñ&Ô&Ð&Ð&Ð&r
   )F)FN)Ú__doc__r   r	   r   r   r   © r
   r   ú<module>r!      su   ððð ð
 €€€ð"ð "ð "ð "ð
 ð 
 ð 
 ð 
 ð-ð -ð -ð -ð@'ð 'ð 'ð 'ð 'ð 'r
   