
i4Vdc           @   s]  d  Z  d e f d     YZ e Z d e f d     YZ d e e f d     YZ i e d f d 6e d	 f d
 6e d f d 6e d f d 6e d f d 6e d f d 6e d f d 6e d f d 6Z i
 e d f d 6e d f d
 6e d f d 6e d f d 6e d f d 6e d f d 6e d f d 6e d f d 6e d f d  6e d! f d" 6Z d# Z	 e
 d$  Z d% S(&   s   
 This module houses the GDAL & SRS Exception objects, and the
 check_err() routine which checks the status code returned by
 GDAL/OGR methods.
t   GDALExceptionc           B   s   e  Z RS(    (   t   __name__t
   __module__(    (    (    sk   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/contrib/gis/gdal/error.pyR    	   s   t   SRSExceptionc           B   s   e  Z RS(    (   R   R   (    (    (    sk   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/contrib/gis/gdal/error.pyR      s   t   OGRIndexErrorc           B   s   e  Z d  Z e Z RS(   s  
    This exception is raised when an invalid index is encountered, and has
    the 'silent_variable_feature' attribute set to true.  This ensures that
    django's templates proceed to use the next lookup type gracefully when
    an Exception is raised.  Fixes ticket #4740.
    (   R   R   t   __doc__t   Truet   silent_variable_failure(    (    (    sk   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/contrib/gis/gdal/error.pyR      s   s   Not enough data.i   s   Not enough memory.i   s   Unsupported geometry type.i   s   Unsupported operation.i   s   Corrupt data.i   s   OGR failure.i   s   Unsupported SRS.i   s   Invalid handle.i   t
   AppDefinedt   OutOfMemoryt   FileIOt
   OpenFailedt
   IllegalArgt   NotSupportedt   AssertionFailedt   NoWriteAccesst   UserInterrupti	   t
   ObjectNulli
   i    c         C   sa   | r t  n t } |  t k r" d S|  | k rM | |  \ } } | |   n t d |    d S(   sQ   
    Checks the given CPL/OGRERR, and raises an exception where appropriate.
    Ns   Unknown error code: "%s"(   t   CPLERR_DICTt   OGRERR_DICTt   ERR_NONER    (   t   codet   cplt   err_dictt   et   msg(    (    sk   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/contrib/gis/gdal/error.pyt	   check_err>   s    N(   R   t	   ExceptionR    t   OGRExceptionR   t   KeyErrorR   R   R   R   t   FalseR   (    (    (    sk   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/contrib/gis/gdal/error.pyt   <module>   s4   