
    \i                     8    S r SSKrSS jrSS jrSS jrSS jrg)	zqLoad/dump geometries using the well-known binary (WKB) format.

Also provides pickle-like convenience functions.
    Nc                 .    [         R                  " U 5      $ )zLoad 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     N/var/www/html/kml_chatgpt/mouzaenv/lib/python3.13/site-packages/shapely/wkb.pyloadsr	   	   s     D!!    c                 4    U R                  5       n[        X!S9$ )zLoad 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     779Dr
   c                     Ub  [         R                  " X5      n SUS'   SU;   a+  UR                  S5      nU(       a  SOSnUR                  US9  [         R                  " U 4SU0UD6$ )a  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   $   sl    & b'!>r VVL)
$Q!

		Z	(>>",#,,,r
   c                 >    UR                  [        U 4SU0UD65        g)z Dump a geometry to an open file.r   N)writer   )r   r   r   r   s       r   dumpr   D   s    HHU2%3%"%&r
   )F)FN)__doc__r   r	   r   r   r    r
   r   <module>r!      s$   
 "
 -@'r
   