
    h*                         S r  " S S\5      r " S S\5      r\S4\S4\S4\S4\S	4\S
4\S4\S4S.r\S4\S4\S4\S4\S4\S4\S4\S4\S4\S4S.
rSrSS jrg)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                       \ rS rSrSrg)GDALException	    N__name__
__module____qualname____firstlineno____static_attributes__r       O/var/www/html/env/lib/python3.13/site-packages/django/contrib/gis/gdal/error.pyr   r   	       r   r   c                       \ rS rSrSrg)SRSException   r   Nr   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   r   
       c                     U(       a  [         O[        nU [        :X  a  gX;   a  X    u  p4U" U5      e[        SU -  5      e)zF
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   sA     "{{Hx		f6=>>r   N)F)__doc__	Exceptionr   r   r(   r'   r)   r/   r   r   r   <module>r2      s   	I 		9 	 	)*+,34/0'~&()()	 	|$}%x |$|$~&()''	% ?r   