Ë
    ~ìqj‘  ã                   ó0   — d Z ddlZdd„Zdd„Zdd„Zdd„Zy)	zqLoad/dump geometries using the well-known binary (WKB) format.

Also provides pickle-like convenience functions.
é    Nc                 ó,   — 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     úG/var/www/html/truck-me/venv/lib/python3.12/site-packages/shapely/wkb.pyÚloadsr	   	   s   € ô ×Ñ˜DÓ!Ð!ó    c                 ó<   — | j                  «       }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€DÜ�˜3ÔÐr
   c                 óÆ   — |�t        j                  | |«      } d|d<   d|v r)|j                  d«      }|rdnd}|j                  |¬«       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`.

    TÚinclude_sridÚ
big_endianr   é   )Ú
byte_orderr   )r   Úset_sridÚpopÚupdateÚto_wkb)Úobr   ÚsridÚkwr   r   s         r   Údumpsr   $   sn   € ð& Ðä×Ñ˜b $Ó'ˆØ!ˆˆ>ÑØ�rÑð —V‘V˜LÓ)ˆ
Ù$‘Q¨!ˆ
Ø
�	‰	˜Zˆ	Ô(Ü�>‰>˜"Ñ, #Ð,¨Ñ,Ð,r
   c                 ó>   — |j                  t        | fd|i|¤Ž«       y)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!      s$   ðñó
 ó"ó
 ó-ô@'r
   