o a* @sdZGdddeZGdddeZedfedfedfedfed fed fed fed fd Zedfedfedfedfedfedfedfedfedfedfd ZdZdddZdS)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@ eZdZdS) GDALExceptionN__name__ __module__ __qualname__rr?/usr/lib/python3/dist-packages/django/contrib/gis/gdal/error.pyr rc@r) SRSExceptionNrrrrrr r r zNot enough data.zNot enough memory.zUnsupported geometry type.zUnsupported operation.z Corrupt data.z OGR failure.zUnsupported SRS.zInvalid handle.) AppDefined OutOfMemoryFileIO OpenFailed IllegalArg NotSupportedAssertionFailed NoWriteAccess UserInterrupt ObjectNull) r r r rrrrr FcCs@|rtnt}|tkr dS||vr||\}}||td|)zN Check the given CPL/OGRERR and raise an exception where appropriate. NzUnknown error code: "%s") CPLERR_DICT OGRERR_DICTERR_NONEr)codecplerr_dictemsgrrr check_err1s   r(N)F)__doc__ Exceptionrr r!r r"r(rrrrs2