§
    eÎjÅ  ã                   ó,   — d Z ddlZd„ Zd„ Zd	d„Zd„ ZdS )
zoLoad/dump geometries using the well-known text (WKT) format.

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

    Parameters
    ----------
    data : str
        A WKT string

    Returns
    -------
    Shapely geometry object

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

    Parameters
    ----------
    fp :
        A file-like object which implements a `read` method.

    Returns
    -------
    Shapely geometry object

    )Úreadr   )Úfpr   s     r   Úloadr      s   € ð �7Š7‰9Œ9€DÝ�‰;Œ;Ðr	   Féÿÿÿÿc                 ó,   — t          j        | f||dœ|¤ŽS )a  Dump a WKT representation of a geometry to a string.

    Parameters
    ----------
    ob :
        A geometry object of any type to be dumped to WKT.
    trim : bool, default False
        Remove excess decimals from the WKT.
    rounding_precision : int, default -1
        Round output to the specified number of digits.
        Default behavior returns full precision.
    **kw : kwargs, optional
        Keyword output options passed to :func:`~shapely.to_wkt`.

    Returns
    -------
    input geometry as WKT string

    )ÚtrimÚrounding_precision)r   Úto_wkt)Úobr   r   Úkws       r   Údumpsr   *   s%   € õ( Œ>˜"ÐU 4Ð<NÐUÐUÐRTÐUÐUÐUr	   c                 óF   — |                      t          | fi |¤Ž¦  «         dS )aY  Dump a geometry to an open file.

    Parameters
    ----------
    ob :
        A geometry object of any type to be dumped to WKT.
    fp :
        A file-like object which implements a `write` method.
    **settings : kwargs, optional
        Keyword output options passed to :func:`~shapely.wkt.dumps`.

    Returns
    -------
    None

    N)Úwriter   )r   r   Úsettingss      r   Údumpr   A   s,   € ð" ‡H‚H�U�2Ð"Ð"˜Ð"Ð"Ñ#Ô#Ð#Ð#Ð#r	   )Fr   )Ú__doc__r   r   r   r   r   © r	   r   ú<module>r      si   ððð ð
 €€€ð"ð "ð "ð ð ð ð"Vð Vð Vð Vð.$ð $ð $ð $ð $r	   