
    g                     $    d dl mZmZmZ d Zd Zy)    )GEOSGeometry	hex_regex	wkt_regexc                    t        | t              r&t        | d      5 } | j                         }ddd       n| j                         }t        t              rF	 |j                         }t        j                  |      st        j                  |      rt        |      S t        |      S t        t        |            S # 1 sw Y   ~xY w# t        $ r Y +w xY w)zf
    Given a string file name, returns a GEOSGeometry. The file may contain WKB,
    WKT, or HEX.
    rbN)
isinstancestropenreadbytesdecoder   matchr   r   UnicodeDecodeError
memoryview)file_hbufdecodeds      w/var/www/python.vincentserveurtest.ovh/public_html/venv/lib/python3.12/site-packages/django/contrib/gis/geos/factory.pyfromfiler      s     &#&$6++-C   kkm #u	-jjlG w'9??7+C#G,,C  
3((#   " 		s   B<C <C	CCc                     t        | fi |S )z3Given a string value, return a GEOSGeometry object.)r   )stringkwargss     r   fromstrr      s    )&))    N) django.contrib.gis.geos.geometryr   r   r   r   r    r   r   <module>r      s    O O)6*r   