Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/django/contrib/gis/gdal/__pycache__/ |
Upload File : |
o �a* � @ s� d Z G dd� de�ZG dd� de�Zedfedfedfedfed fed fedfedfd �Zedfedfedfedfedfedfedfedfedfedfd� ZdZddd�ZdS )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 Zd ZdS )� GDALExceptionN��__name__� __module__�__qualname__� r r �?/usr/lib/python3/dist-packages/django/contrib/gis/gdal/error.pyr � r c @ r )�SRSExceptionNr r r r r r r r zNot enough data.zNot enough memory.zUnsupported geometry type.zUnsupported operation.z Corrupt data.zOGR failure.zUnsupported SRS.zInvalid handle.)� � � � � � � � � AppDefined�OutOfMemory�FileIO� OpenFailed� IllegalArg�NotSupported�AssertionFailed� NoWriteAccess� UserInterrupt� ObjectNull) r r r r r r r r � � � Fc C s@ |rt nt}| tkrdS | |v r|| \}}||��td| ��)zN Check the given CPL/OGRERR and raise an exception where appropriate. NzUnknown error code: "%s")�CPLERR_DICT�OGRERR_DICT�ERR_NONEr )�code�cpl�err_dict�e�msgr r r � check_err1 s r( N)F)�__doc__� Exceptionr r r! r r"