
    Dvg*                         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dS )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dS )GDALExceptionN__name__
__module____qualname__     Z/var/www/pixelcanvas.ch/venv/lib/python3.11/site-packages/django/contrib/gis/gdal/error.pyr   r   	           Dr	   r   c                       e Zd ZdS )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   	   
       Fc                     |rt           nt          }| t          k    rdS | |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   s[     "2{{{Hx			$3aff6=>>>r	   N)F)__doc__	Exceptionr   r   r%   r$   r&   r,   r   r	   r
   <module>r/      s;   	 	 	 	 	I 	 	 		 	 	 	 	9 	 	 	 	)*+,34/0'~&()()	 	 	|$}%x |$|$~&()''	%  ? ? ? ? ? ?r	   