
    g*                         d Z  G d de      Z G d de      Zedfedfedfedfed	fed
fedfedfdZedfedfedfedfedfedfedfedfedfedfd
ZdZddZy)z
 This module houses the GDAL & SRS Exception objects, and the
 check_err() routine which checks the status code returned by
 GDAL/OGR methods.
c                       e Zd Zy)GDALExceptionN__name__
__module____qualname__     u/var/www/python.vincentserveurtest.ovh/public_html/venv/lib/python3.12/site-packages/django/contrib/gis/gdal/error.pyr   r   	       r	   r   c                       e Zd Zy)SRSExceptionNr   r   r	   r
   r   r      r   r	   r   zNot enough data.zNot enough memory.zUnsupported geometry type.zUnsupported operation.zCorrupt data.zOGR failure.zUnsupported SRS.zInvalid handle.)                        
AppDefinedOutOfMemoryFileIO
OpenFailed
IllegalArgNotSupportedAssertionFailedNoWriteAccessUserInterrupt
ObjectNull)
r   r   r   r   r   r   r   r   	   
       c                 v    |rt         nt        }| t        k(  ry| |v r||    \  }} ||      t        d| z        )zN
    Check the given CPL/OGRERR and raise an exception where appropriate.
    NzUnknown error code: "%s")CPLERR_DICTOGRERR_DICTERR_NONEr   )codecplerr_dictemsgs        r
   	check_errr,   1   sG     "{{Hx		$3f6=>>r	   N)F)__doc__	Exceptionr   r   r%   r$   r&   r,   r   r	   r
   <module>r/      s   	I 		9 	 	)*+,34/0'~&()()	 	|$}%x |$|$~&()''	% ?r	   