/* Generated by Cython 0.29.15 */

/* BEGIN: Cython Metadata
{
    "distutils": {
        "depends": [
            "/home/snowal/miniconda/envs/proj631/include/proj.h"
        ],
        "include_dirs": [
            "/home/snowal/miniconda/envs/proj631/include"
        ],
        "libraries": [
            "proj"
        ],
        "library_dirs": [
            "/home/snowal/miniconda/envs/proj631/lib"
        ],
        "name": "pyproj._crs",
        "runtime_library_dirs": [
            "/home/snowal/miniconda/envs/proj631/lib"
        ],
        "sources": [
            "pyproj/_crs.pyx"
        ]
    },
    "module_name": "pyproj._crs"
}
END: Cython Metadata */

#define PY_SSIZE_T_CLEAN
#include "Python.h"
#ifndef Py_PYTHON_H
    #error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
    #error Cython requires Python 2.6+ or Python 3.3+.
#else
#define CYTHON_ABI "0_29_15"
#define CYTHON_HEX_VERSION 0x001D0FF0
#define CYTHON_FUTURE_DIVISION 1
#include <stddef.h>
#ifndef offsetof
  #define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
#endif
#if !defined(WIN32) && !defined(MS_WINDOWS)
  #ifndef __stdcall
    #define __stdcall
  #endif
  #ifndef __cdecl
    #define __cdecl
  #endif
  #ifndef __fastcall
    #define __fastcall
  #endif
#endif
#ifndef DL_IMPORT
  #define DL_IMPORT(t) t
#endif
#ifndef DL_EXPORT
  #define DL_EXPORT(t) t
#endif
#define __PYX_COMMA ,
#ifndef HAVE_LONG_LONG
  #if PY_VERSION_HEX >= 0x02070000
    #define HAVE_LONG_LONG
  #endif
#endif
#ifndef PY_LONG_LONG
  #define PY_LONG_LONG LONG_LONG
#endif
#ifndef Py_HUGE_VAL
  #define Py_HUGE_VAL HUGE_VAL
#endif
#ifdef PYPY_VERSION
  #define CYTHON_COMPILING_IN_PYPY 1
  #define CYTHON_COMPILING_IN_PYSTON 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 0
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #if PY_VERSION_HEX < 0x03050000
    #undef CYTHON_USE_ASYNC_SLOTS
    #define CYTHON_USE_ASYNC_SLOTS 0
  #elif !defined(CYTHON_USE_ASYNC_SLOTS)
    #define CYTHON_USE_ASYNC_SLOTS 1
  #endif
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #undef CYTHON_AVOID_BORROWED_REFS
  #define CYTHON_AVOID_BORROWED_REFS 1
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #undef CYTHON_PEP489_MULTI_PHASE_INIT
  #define CYTHON_PEP489_MULTI_PHASE_INIT 0
  #undef CYTHON_USE_TP_FINALIZE
  #define CYTHON_USE_TP_FINALIZE 0
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
#elif defined(PYSTON_VERSION)
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_PYSTON 1
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #ifndef CYTHON_USE_TYPE_SLOTS
    #define CYTHON_USE_TYPE_SLOTS 1
  #endif
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_ASYNC_SLOTS
  #define CYTHON_USE_ASYNC_SLOTS 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #ifndef CYTHON_USE_UNICODE_INTERNALS
    #define CYTHON_USE_UNICODE_INTERNALS 1
  #endif
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_ASSUME_SAFE_MACROS
    #define CYTHON_ASSUME_SAFE_MACROS 1
  #endif
  #ifndef CYTHON_UNPACK_METHODS
    #define CYTHON_UNPACK_METHODS 1
  #endif
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #undef CYTHON_PEP489_MULTI_PHASE_INIT
  #define CYTHON_PEP489_MULTI_PHASE_INIT 0
  #undef CYTHON_USE_TP_FINALIZE
  #define CYTHON_USE_TP_FINALIZE 0
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
#else
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_PYSTON 0
  #define CYTHON_COMPILING_IN_CPYTHON 1
  #ifndef CYTHON_USE_TYPE_SLOTS
    #define CYTHON_USE_TYPE_SLOTS 1
  #endif
  #if PY_VERSION_HEX < 0x02070000
    #undef CYTHON_USE_PYTYPE_LOOKUP
    #define CYTHON_USE_PYTYPE_LOOKUP 0
  #elif !defined(CYTHON_USE_PYTYPE_LOOKUP)
    #define CYTHON_USE_PYTYPE_LOOKUP 1
  #endif
  #if PY_MAJOR_VERSION < 3
    #undef CYTHON_USE_ASYNC_SLOTS
    #define CYTHON_USE_ASYNC_SLOTS 0
  #elif !defined(CYTHON_USE_ASYNC_SLOTS)
    #define CYTHON_USE_ASYNC_SLOTS 1
  #endif
  #if PY_VERSION_HEX < 0x02070000
    #undef CYTHON_USE_PYLONG_INTERNALS
    #define CYTHON_USE_PYLONG_INTERNALS 0
  #elif !defined(CYTHON_USE_PYLONG_INTERNALS)
    #define CYTHON_USE_PYLONG_INTERNALS 1
  #endif
  #ifndef CYTHON_USE_PYLIST_INTERNALS
    #define CYTHON_USE_PYLIST_INTERNALS 1
  #endif
  #ifndef CYTHON_USE_UNICODE_INTERNALS
    #define CYTHON_USE_UNICODE_INTERNALS 1
  #endif
  #if PY_VERSION_HEX < 0x030300F0
    #undef CYTHON_USE_UNICODE_WRITER
    #define CYTHON_USE_UNICODE_WRITER 0
  #elif !defined(CYTHON_USE_UNICODE_WRITER)
    #define CYTHON_USE_UNICODE_WRITER 1
  #endif
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_ASSUME_SAFE_MACROS
    #define CYTHON_ASSUME_SAFE_MACROS 1
  #endif
  #ifndef CYTHON_UNPACK_METHODS
    #define CYTHON_UNPACK_METHODS 1
  #endif
  #ifndef CYTHON_FAST_THREAD_STATE
    #define CYTHON_FAST_THREAD_STATE 1
  #endif
  #ifndef CYTHON_FAST_PYCALL
    #define CYTHON_FAST_PYCALL 1
  #endif
  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT (PY_VERSION_HEX >= 0x03050000)
  #endif
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1)
  #endif
  #ifndef CYTHON_USE_DICT_VERSIONS
    #define CYTHON_USE_DICT_VERSIONS (PY_VERSION_HEX >= 0x030600B1)
  #endif
  #ifndef CYTHON_USE_EXC_INFO_STACK
    #define CYTHON_USE_EXC_INFO_STACK (PY_VERSION_HEX >= 0x030700A3)
  #endif
#endif
#if !defined(CYTHON_FAST_PYCCALL)
#define CYTHON_FAST_PYCCALL  (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1)
#endif
#if CYTHON_USE_PYLONG_INTERNALS
  #include "longintrepr.h"
  #undef SHIFT
  #undef BASE
  #undef MASK
  #ifdef SIZEOF_VOID_P
    enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
  #endif
#endif
#ifndef __has_attribute
  #define __has_attribute(x) 0
#endif
#ifndef __has_cpp_attribute
  #define __has_cpp_attribute(x) 0
#endif
#ifndef CYTHON_RESTRICT
  #if defined(__GNUC__)
    #define CYTHON_RESTRICT __restrict__
  #elif defined(_MSC_VER) && _MSC_VER >= 1400
    #define CYTHON_RESTRICT __restrict
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_RESTRICT restrict
  #else
    #define CYTHON_RESTRICT
  #endif
#endif
#ifndef CYTHON_UNUSED
# if defined(__GNUC__)
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#     define CYTHON_UNUSED __attribute__ ((__unused__))
#   else
#     define CYTHON_UNUSED
#   endif
# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
#   define CYTHON_UNUSED __attribute__ ((__unused__))
# else
#   define CYTHON_UNUSED
# endif
#endif
#ifndef CYTHON_MAYBE_UNUSED_VAR
#  if defined(__cplusplus)
     template<class T> void CYTHON_MAYBE_UNUSED_VAR( const T& ) { }
#  else
#    define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x)
#  endif
#endif
#ifndef CYTHON_NCP_UNUSED
# if CYTHON_COMPILING_IN_CPYTHON
#  define CYTHON_NCP_UNUSED
# else
#  define CYTHON_NCP_UNUSED CYTHON_UNUSED
# endif
#endif
#define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)
#ifdef _MSC_VER
    #ifndef _MSC_STDINT_H_
        #if _MSC_VER < 1300
           typedef unsigned char     uint8_t;
           typedef unsigned int      uint32_t;
        #else
           typedef unsigned __int8   uint8_t;
           typedef unsigned __int32  uint32_t;
        #endif
    #endif
#else
   #include <stdint.h>
#endif
#ifndef CYTHON_FALLTHROUGH
  #if defined(__cplusplus) && __cplusplus >= 201103L
    #if __has_cpp_attribute(fallthrough)
      #define CYTHON_FALLTHROUGH [[fallthrough]]
    #elif __has_cpp_attribute(clang::fallthrough)
      #define CYTHON_FALLTHROUGH [[clang::fallthrough]]
    #elif __has_cpp_attribute(gnu::fallthrough)
      #define CYTHON_FALLTHROUGH [[gnu::fallthrough]]
    #endif
  #endif
  #ifndef CYTHON_FALLTHROUGH
    #if __has_attribute(fallthrough)
      #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
    #else
      #define CYTHON_FALLTHROUGH
    #endif
  #endif
  #if defined(__clang__ ) && defined(__apple_build_version__)
    #if __apple_build_version__ < 7000000
      #undef  CYTHON_FALLTHROUGH
      #define CYTHON_FALLTHROUGH
    #endif
  #endif
#endif

#ifndef CYTHON_INLINE
  #if defined(__clang__)
    #define CYTHON_INLINE __inline__ __attribute__ ((__unused__))
  #elif defined(__GNUC__)
    #define CYTHON_INLINE __inline__
  #elif defined(_MSC_VER)
    #define CYTHON_INLINE __inline
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_INLINE inline
  #else
    #define CYTHON_INLINE
  #endif
#endif

#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag)
  #define Py_OptimizeFlag 0
#endif
#define __PYX_BUILD_PY_SSIZE_T "n"
#define CYTHON_FORMAT_SSIZE_T "z"
#if PY_MAJOR_VERSION < 3
  #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
  #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
  #define __Pyx_DefaultClassType PyClass_Type
#else
  #define __Pyx_BUILTIN_MODULE_NAME "builtins"
#if PY_VERSION_HEX >= 0x030800A4 && PY_VERSION_HEX < 0x030800B2
  #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a, 0, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#else
  #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#endif
  #define __Pyx_DefaultClassType PyType_Type
#endif
#ifndef Py_TPFLAGS_CHECKTYPES
  #define Py_TPFLAGS_CHECKTYPES 0
#endif
#ifndef Py_TPFLAGS_HAVE_INDEX
  #define Py_TPFLAGS_HAVE_INDEX 0
#endif
#ifndef Py_TPFLAGS_HAVE_NEWBUFFER
  #define Py_TPFLAGS_HAVE_NEWBUFFER 0
#endif
#ifndef Py_TPFLAGS_HAVE_FINALIZE
  #define Py_TPFLAGS_HAVE_FINALIZE 0
#endif
#ifndef METH_STACKLESS
  #define METH_STACKLESS 0
#endif
#if PY_VERSION_HEX <= 0x030700A3 || !defined(METH_FASTCALL)
  #ifndef METH_FASTCALL
     #define METH_FASTCALL 0x80
  #endif
  typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs);
  typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args,
                                                          Py_ssize_t nargs, PyObject *kwnames);
#else
  #define __Pyx_PyCFunctionFast _PyCFunctionFast
  #define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
#endif
#if CYTHON_FAST_PYCCALL
#define __Pyx_PyFastCFunction_Check(func)\
    ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS)))))
#else
#define __Pyx_PyFastCFunction_Check(func) 0
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc)
  #define PyObject_Malloc(s)   PyMem_Malloc(s)
  #define PyObject_Free(p)     PyMem_Free(p)
  #define PyObject_Realloc(p)  PyMem_Realloc(p)
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030400A1
  #define PyMem_RawMalloc(n)           PyMem_Malloc(n)
  #define PyMem_RawRealloc(p, n)       PyMem_Realloc(p, n)
  #define PyMem_RawFree(p)             PyMem_Free(p)
#endif
#if CYTHON_COMPILING_IN_PYSTON
  #define __Pyx_PyCode_HasFreeVars(co)  PyCode_HasFreeVars(co)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno)
#else
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
#endif
#if !CYTHON_FAST_THREAD_STATE || PY_VERSION_HEX < 0x02070000
  #define __Pyx_PyThreadState_Current PyThreadState_GET()
#elif PY_VERSION_HEX >= 0x03060000
  #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet()
#elif PY_VERSION_HEX >= 0x03000000
  #define __Pyx_PyThreadState_Current PyThreadState_GET()
#else
  #define __Pyx_PyThreadState_Current _PyThreadState_Current
#endif
#if PY_VERSION_HEX < 0x030700A2 && !defined(PyThread_tss_create) && !defined(Py_tss_NEEDS_INIT)
#include "pythread.h"
#define Py_tss_NEEDS_INIT 0
typedef int Py_tss_t;
static CYTHON_INLINE int PyThread_tss_create(Py_tss_t *key) {
  *key = PyThread_create_key();
  return 0;
}
static CYTHON_INLINE Py_tss_t * PyThread_tss_alloc(void) {
  Py_tss_t *key = (Py_tss_t *)PyObject_Malloc(sizeof(Py_tss_t));
  *key = Py_tss_NEEDS_INIT;
  return key;
}
static CYTHON_INLINE void PyThread_tss_free(Py_tss_t *key) {
  PyObject_Free(key);
}
static CYTHON_INLINE int PyThread_tss_is_created(Py_tss_t *key) {
  return *key != Py_tss_NEEDS_INIT;
}
static CYTHON_INLINE void PyThread_tss_delete(Py_tss_t *key) {
  PyThread_delete_key(*key);
  *key = Py_tss_NEEDS_INIT;
}
static CYTHON_INLINE int PyThread_tss_set(Py_tss_t *key, void *value) {
  return PyThread_set_key_value(*key, value);
}
static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) {
  return PyThread_get_key_value(*key);
}
#endif
#if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized)
#define __Pyx_PyDict_NewPresized(n)  ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n))
#else
#define __Pyx_PyDict_NewPresized(n)  PyDict_New()
#endif
#if PY_MAJOR_VERSION >= 3 || CYTHON_FUTURE_DIVISION
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_TrueDivide(x,y)
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceTrueDivide(x,y)
#else
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_Divide(x,y)
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceDivide(x,y)
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 && CYTHON_USE_UNICODE_INTERNALS
#define __Pyx_PyDict_GetItemStr(dict, name)  _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash)
#else
#define __Pyx_PyDict_GetItemStr(dict, name)  PyDict_GetItem(dict, name)
#endif
#if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
  #define CYTHON_PEP393_ENABLED 1
  #define __Pyx_PyUnicode_READY(op)       (likely(PyUnicode_IS_READY(op)) ?\
                                              0 : _PyUnicode_Ready((PyObject *)(op)))
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GET_LENGTH(u)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   PyUnicode_MAX_CHAR_VALUE(u)
  #define __Pyx_PyUnicode_KIND(u)         PyUnicode_KIND(u)
  #define __Pyx_PyUnicode_DATA(u)         PyUnicode_DATA(u)
  #define __Pyx_PyUnicode_READ(k, d, i)   PyUnicode_READ(k, d, i)
  #define __Pyx_PyUnicode_WRITE(k, d, i, ch)  PyUnicode_WRITE(k, d, i, ch)
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
#else
  #define CYTHON_PEP393_ENABLED 0
  #define PyUnicode_1BYTE_KIND  1
  #define PyUnicode_2BYTE_KIND  2
  #define PyUnicode_4BYTE_KIND  4
  #define __Pyx_PyUnicode_READY(op)       (0)
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GET_SIZE(u)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i]))
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111)
  #define __Pyx_PyUnicode_KIND(u)         (sizeof(Py_UNICODE))
  #define __Pyx_PyUnicode_DATA(u)         ((void*)PyUnicode_AS_UNICODE(u))
  #define __Pyx_PyUnicode_READ(k, d, i)   ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
  #define __Pyx_PyUnicode_WRITE(k, d, i, ch)  (((void)(k)), ((Py_UNICODE*)d)[i] = ch)
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GET_SIZE(u))
#endif
#if CYTHON_COMPILING_IN_PYPY
  #define __Pyx_PyUnicode_Concat(a, b)      PyNumber_Add(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  PyNumber_Add(a, b)
#else
  #define __Pyx_PyUnicode_Concat(a, b)      PyUnicode_Concat(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\
      PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains)
  #define PyUnicode_Contains(u, s)  PySequence_Contains(u, s)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check)
  #define PyByteArray_Check(obj)  PyObject_TypeCheck(obj, &PyByteArray_Type)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format)
  #define PyObject_Format(obj, fmt)  PyObject_CallMethod(obj, "__format__", "O", fmt)
#endif
#define __Pyx_PyString_FormatSafe(a, b)   ((unlikely((a) == Py_None || (PyString_Check(b) && !PyString_CheckExact(b)))) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b))
#define __Pyx_PyUnicode_FormatSafe(a, b)  ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyString_Format(a, b)  PyUnicode_Format(a, b)
#else
  #define __Pyx_PyString_Format(a, b)  PyString_Format(a, b)
#endif
#if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII)
  #define PyObject_ASCII(o)            PyObject_Repr(o)
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyBaseString_Type            PyUnicode_Type
  #define PyStringObject               PyUnicodeObject
  #define PyString_Type                PyUnicode_Type
  #define PyString_Check               PyUnicode_Check
  #define PyString_CheckExact          PyUnicode_CheckExact
  #define PyObject_Unicode             PyObject_Str
#endif
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj)
  #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj)
#else
  #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj))
  #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj))
#endif
#ifndef PySet_CheckExact
  #define PySet_CheckExact(obj)        (Py_TYPE(obj) == &PySet_Type)
#endif
#if CYTHON_ASSUME_SAFE_MACROS
  #define __Pyx_PySequence_SIZE(seq)  Py_SIZE(seq)
#else
  #define __Pyx_PySequence_SIZE(seq)  PySequence_Size(seq)
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyIntObject                  PyLongObject
  #define PyInt_Type                   PyLong_Type
  #define PyInt_Check(op)              PyLong_Check(op)
  #define PyInt_CheckExact(op)         PyLong_CheckExact(op)
  #define PyInt_FromString             PyLong_FromString
  #define PyInt_FromUnicode            PyLong_FromUnicode
  #define PyInt_FromLong               PyLong_FromLong
  #define PyInt_FromSize_t             PyLong_FromSize_t
  #define PyInt_FromSsize_t            PyLong_FromSsize_t
  #define PyInt_AsLong                 PyLong_AsLong
  #define PyInt_AS_LONG                PyLong_AS_LONG
  #define PyInt_AsSsize_t              PyLong_AsSsize_t
  #define PyInt_AsUnsignedLongMask     PyLong_AsUnsignedLongMask
  #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
  #define PyNumber_Int                 PyNumber_Long
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyBoolObject                 PyLongObject
#endif
#if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY
  #ifndef PyUnicode_InternFromString
    #define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
  #endif
#endif
#if PY_VERSION_HEX < 0x030200A4
  typedef long Py_hash_t;
  #define __Pyx_PyInt_FromHash_t PyInt_FromLong
  #define __Pyx_PyInt_AsHash_t   PyInt_AsLong
#else
  #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t
  #define __Pyx_PyInt_AsHash_t   PyInt_AsSsize_t
#endif
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : (Py_INCREF(func), func))
#else
  #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass)
#endif
#if CYTHON_USE_ASYNC_SLOTS
  #if PY_VERSION_HEX >= 0x030500B1
    #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
    #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async)
  #else
    #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved))
  #endif
#else
  #define __Pyx_PyType_AsAsync(obj) NULL
#endif
#ifndef __Pyx_PyAsyncMethodsStruct
    typedef struct {
        unaryfunc am_await;
        unaryfunc am_aiter;
        unaryfunc am_anext;
    } __Pyx_PyAsyncMethodsStruct;
#endif

#if defined(WIN32) || defined(MS_WINDOWS)
  #define _USE_MATH_DEFINES
#endif
#include <math.h>
#ifdef NAN
#define __PYX_NAN() ((float) NAN)
#else
static CYTHON_INLINE float __PYX_NAN() {
  float value;
  memset(&value, 0xFF, sizeof(value));
  return value;
}
#endif
#if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL)
#define __Pyx_truncl trunc
#else
#define __Pyx_truncl truncl
#endif


#define __PYX_ERR(f_index, lineno, Ln_error) \
{ \
  __pyx_filename = __pyx_f[f_index]; __pyx_lineno = lineno; __pyx_clineno = __LINE__; goto Ln_error; \
}

#ifndef __PYX_EXTERN_C
  #ifdef __cplusplus
    #define __PYX_EXTERN_C extern "C"
  #else
    #define __PYX_EXTERN_C extern
  #endif
#endif

#define __PYX_HAVE__pyproj___crs
#define __PYX_HAVE_API__pyproj___crs
/* Early includes */
#include "proj.h"
#ifdef _OPENMP
#include <omp.h>
#endif /* _OPENMP */

#if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS)
#define CYTHON_WITHOUT_ASSERTIONS
#endif

typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding;
                const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry;

#define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT (PY_MAJOR_VERSION >= 3 && __PYX_DEFAULT_STRING_ENCODING_IS_UTF8)
#define __PYX_DEFAULT_STRING_ENCODING ""
#define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
#define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#define __Pyx_uchar_cast(c) ((unsigned char)c)
#define __Pyx_long_cast(x) ((long)x)
#define __Pyx_fits_Py_ssize_t(v, type, is_signed)  (\
    (sizeof(type) < sizeof(Py_ssize_t))  ||\
    (sizeof(type) > sizeof(Py_ssize_t) &&\
          likely(v < (type)PY_SSIZE_T_MAX ||\
                 v == (type)PY_SSIZE_T_MAX)  &&\
          (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\
                                v == (type)PY_SSIZE_T_MIN)))  ||\
    (sizeof(type) == sizeof(Py_ssize_t) &&\
          (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\
                               v == (type)PY_SSIZE_T_MAX)))  )
static CYTHON_INLINE int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) {
    return (size_t) i < (size_t) limit;
}
#if defined (__cplusplus) && __cplusplus >= 201103L
    #include <cstdlib>
    #define __Pyx_sst_abs(value) std::abs(value)
#elif SIZEOF_INT >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) abs(value)
#elif SIZEOF_LONG >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) labs(value)
#elif defined (_MSC_VER)
    #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value))
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define __Pyx_sst_abs(value) llabs(value)
#elif defined (__GNUC__)
    #define __Pyx_sst_abs(value) __builtin_llabs(value)
#else
    #define __Pyx_sst_abs(value) ((value<0) ? -value : value)
#endif
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*);
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
#define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s))
#define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
#define __Pyx_PyBytes_FromString        PyBytes_FromString
#define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*);
#if PY_MAJOR_VERSION < 3
    #define __Pyx_PyStr_FromString        __Pyx_PyBytes_FromString
    #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#else
    #define __Pyx_PyStr_FromString        __Pyx_PyUnicode_FromString
    #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize
#endif
#define __Pyx_PyBytes_AsWritableString(s)     ((char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsWritableSString(s)    ((signed char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsWritableUString(s)    ((unsigned char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsString(s)     ((const char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsSString(s)    ((const signed char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsUString(s)    ((const unsigned char*) PyBytes_AS_STRING(s))
#define __Pyx_PyObject_AsWritableString(s)    ((char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableSString(s)    ((signed char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableUString(s)    ((unsigned char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsSString(s)    ((const signed char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsUString(s)    ((const unsigned char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_FromCString(s)  __Pyx_PyObject_FromString((const char*)s)
#define __Pyx_PyBytes_FromCString(s)   __Pyx_PyBytes_FromString((const char*)s)
#define __Pyx_PyByteArray_FromCString(s)   __Pyx_PyByteArray_FromString((const char*)s)
#define __Pyx_PyStr_FromCString(s)     __Pyx_PyStr_FromString((const char*)s)
#define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) {
    const Py_UNICODE *u_end = u;
    while (*u_end++) ;
    return (size_t)(u_end - u - 1);
}
#define __Pyx_PyUnicode_FromUnicode(u)       PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u))
#define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode
#define __Pyx_PyUnicode_AsUnicode            PyUnicode_AsUnicode
#define __Pyx_NewRef(obj) (Py_INCREF(obj), obj)
#define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None)
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b);
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject*);
static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x);
#define __Pyx_PySequence_Tuple(obj)\
    (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj))
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
#if CYTHON_ASSUME_SAFE_MACROS
#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
#else
#define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
#endif
#define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x))
#if PY_MAJOR_VERSION >= 3
#define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x))
#else
#define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x))
#endif
#define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Float(x))
#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
static int __Pyx_sys_getdefaultencoding_not_ascii;
static int __Pyx_init_sys_getdefaultencoding_params(void) {
    PyObject* sys;
    PyObject* default_encoding = NULL;
    PyObject* ascii_chars_u = NULL;
    PyObject* ascii_chars_b = NULL;
    const char* default_encoding_c;
    sys = PyImport_ImportModule("sys");
    if (!sys) goto bad;
    default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL);
    Py_DECREF(sys);
    if (!default_encoding) goto bad;
    default_encoding_c = PyBytes_AsString(default_encoding);
    if (!default_encoding_c) goto bad;
    if (strcmp(default_encoding_c, "ascii") == 0) {
        __Pyx_sys_getdefaultencoding_not_ascii = 0;
    } else {
        char ascii_chars[128];
        int c;
        for (c = 0; c < 128; c++) {
            ascii_chars[c] = c;
        }
        __Pyx_sys_getdefaultencoding_not_ascii = 1;
        ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL);
        if (!ascii_chars_u) goto bad;
        ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL);
        if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) {
            PyErr_Format(
                PyExc_ValueError,
                "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.",
                default_encoding_c);
            goto bad;
        }
        Py_DECREF(ascii_chars_u);
        Py_DECREF(ascii_chars_b);
    }
    Py_DECREF(default_encoding);
    return 0;
bad:
    Py_XDECREF(default_encoding);
    Py_XDECREF(ascii_chars_u);
    Py_XDECREF(ascii_chars_b);
    return -1;
}
#endif
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
#else
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
static char* __PYX_DEFAULT_STRING_ENCODING;
static int __Pyx_init_sys_getdefaultencoding_params(void) {
    PyObject* sys;
    PyObject* default_encoding = NULL;
    char* default_encoding_c;
    sys = PyImport_ImportModule("sys");
    if (!sys) goto bad;
    default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL);
    Py_DECREF(sys);
    if (!default_encoding) goto bad;
    default_encoding_c = PyBytes_AsString(default_encoding);
    if (!default_encoding_c) goto bad;
    __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c) + 1);
    if (!__PYX_DEFAULT_STRING_ENCODING) goto bad;
    strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c);
    Py_DECREF(default_encoding);
    return 0;
bad:
    Py_XDECREF(default_encoding);
    return -1;
}
#endif
#endif


/* Test for GCC > 2.95 */
#if defined(__GNUC__)     && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)))
  #define likely(x)   __builtin_expect(!!(x), 1)
  #define unlikely(x) __builtin_expect(!!(x), 0)
#else /* !__GNUC__ or GCC < 2.95 */
  #define likely(x)   (x)
  #define unlikely(x) (x)
#endif /* __GNUC__ */
static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; }

static PyObject *__pyx_m = NULL;
static PyObject *__pyx_d;
static PyObject *__pyx_b;
static PyObject *__pyx_cython_runtime = NULL;
static PyObject *__pyx_empty_tuple;
static PyObject *__pyx_empty_bytes;
static PyObject *__pyx_empty_unicode;
static int __pyx_lineno;
static int __pyx_clineno = 0;
static const char * __pyx_cfilenm= __FILE__;
static const char *__pyx_filename;


static const char *__pyx_f[] = {
  "pyproj/_crs.pyx",
  "stringsource",
  "pyproj/_crs.pxd",
  "pyproj/_datadir.pxd",
};

/*--- Type declarations ---*/
struct __pyx_obj_6pyproj_8_datadir_ContextManager;
struct __pyx_obj_6pyproj_4_crs_Axis;
struct __pyx_obj_6pyproj_4_crs_AreaOfUse;
struct __pyx_obj_6pyproj_4_crs_Base;
struct __pyx_obj_6pyproj_4_crs__CRSParts;
struct __pyx_obj_6pyproj_4_crs_Ellipsoid;
struct __pyx_obj_6pyproj_4_crs_PrimeMeridian;
struct __pyx_obj_6pyproj_4_crs_Datum;
struct __pyx_obj_6pyproj_4_crs_CoordinateSystem;
struct __pyx_obj_6pyproj_4_crs_Param;
struct __pyx_obj_6pyproj_4_crs_Grid;
struct __pyx_obj_6pyproj_4_crs_CoordinateOperation;
struct __pyx_obj_6pyproj_4_crs__CRS;
struct __pyx_opt_args_6pyproj_4_crs__to_wkt;

/* "pyproj/_crs.pyx":73
 * 
 * cdef _to_wkt(
 *     PJ_CONTEXT* context,             # <<<<<<<<<<<<<<
 *     PJ* projobj,
 *     version=WktVersion.WKT2_2019,
 */
struct __pyx_opt_args_6pyproj_4_crs__to_wkt {
  int __pyx_n;
  PyObject *version;
  PyObject *pretty;
};

/* "pyproj/_datadir.pxd":7
 *     bint free_context_on_error) except *
 * 
 * cdef class ContextManager:             # <<<<<<<<<<<<<<
 *     cdef PJ_CONTEXT *context
 */
struct __pyx_obj_6pyproj_8_datadir_ContextManager {
  PyObject_HEAD
  PJ_CONTEXT *context;
};


/* "pyproj/_crs.pxd":7
 * 
 * 
 * cdef class Axis:             # <<<<<<<<<<<<<<
 *     cdef readonly object name
 *     cdef readonly object abbrev
 */
struct __pyx_obj_6pyproj_4_crs_Axis {
  PyObject_HEAD
  struct __pyx_vtabstruct_6pyproj_4_crs_Axis *__pyx_vtab;
  PyObject *name;
  PyObject *abbrev;
  PyObject *direction;
  double unit_conversion_factor;
  PyObject *unit_name;
  PyObject *unit_auth_code;
  PyObject *unit_code;
};


/* "pyproj/_crs.pxd":19
 *     cdef Axis create(PJ_CONTEXT* context, PJ* projobj, int index)
 * 
 * cdef class AreaOfUse:             # <<<<<<<<<<<<<<
 *     cdef readonly double west
 *     cdef readonly double south
 */
struct __pyx_obj_6pyproj_4_crs_AreaOfUse {
  PyObject_HEAD
  struct __pyx_vtabstruct_6pyproj_4_crs_AreaOfUse *__pyx_vtab;
  double west;
  double south;
  double east;
  double north;
  PyObject *name;
};


/* "pyproj/_crs.pxd":30
 * 
 * 
 * cdef class Base:             # <<<<<<<<<<<<<<
 *     cdef PJ *projobj
 *     cdef PJ_CONTEXT* context
 */
struct __pyx_obj_6pyproj_4_crs_Base {
  PyObject_HEAD
  struct __pyx_vtabstruct_6pyproj_4_crs_Base *__pyx_vtab;
  PJ *projobj;
  PJ_CONTEXT *context;
  PyObject *name;
  PyObject *_remarks;
  PyObject *_scope;
};


/* "pyproj/_crs.pxd":38
 *     cdef _set_base_info(self)
 * 
 * cdef class _CRSParts(Base):             # <<<<<<<<<<<<<<
 *     pass
 * 
 */
struct __pyx_obj_6pyproj_4_crs__CRSParts {
  struct __pyx_obj_6pyproj_4_crs_Base __pyx_base;
};


/* "pyproj/_crs.pxd":42
 * 
 * 
 * cdef class Ellipsoid(_CRSParts):             # <<<<<<<<<<<<<<
 *     cdef readonly double semi_major_metre
 *     cdef readonly double semi_minor_metre
 */
struct __pyx_obj_6pyproj_4_crs_Ellipsoid {
  struct __pyx_obj_6pyproj_4_crs__CRSParts __pyx_base;
  double semi_major_metre;
  double semi_minor_metre;
  PyObject *is_semi_minor_computed;
  double inverse_flattening;
};


/* "pyproj/_crs.pxd":52
 * 
 * 
 * cdef class PrimeMeridian(_CRSParts):             # <<<<<<<<<<<<<<
 *     cdef readonly double longitude
 *     cdef readonly double unit_conversion_factor
 */
struct __pyx_obj_6pyproj_4_crs_PrimeMeridian {
  struct __pyx_obj_6pyproj_4_crs__CRSParts __pyx_base;
  double longitude;
  double unit_conversion_factor;
  PyObject *unit_name;
};


/* "pyproj/_crs.pxd":61
 * 
 * 
 * cdef class Datum(_CRSParts):             # <<<<<<<<<<<<<<
 *     cdef readonly object type_name
 *     cdef readonly object _ellipsoid
 */
struct __pyx_obj_6pyproj_4_crs_Datum {
  struct __pyx_obj_6pyproj_4_crs__CRSParts __pyx_base;
  PyObject *type_name;
  PyObject *_ellipsoid;
  PyObject *_prime_meridian;
};


/* "pyproj/_crs.pxd":70
 * 
 * 
 * cdef class CoordinateSystem(_CRSParts):             # <<<<<<<<<<<<<<
 *     cdef readonly object _axis_list
 * 
 */
struct __pyx_obj_6pyproj_4_crs_CoordinateSystem {
  struct __pyx_obj_6pyproj_4_crs__CRSParts __pyx_base;
  PyObject *_axis_list;
};


/* "pyproj/_crs.pxd":77
 * 
 * 
 * cdef class Param:             # <<<<<<<<<<<<<<
 *     cdef readonly object name
 *     cdef readonly object auth_name
 */
struct __pyx_obj_6pyproj_4_crs_Param {
  PyObject_HEAD
  struct __pyx_vtabstruct_6pyproj_4_crs_Param *__pyx_vtab;
  PyObject *name;
  PyObject *auth_name;
  PyObject *code;
  PyObject *value;
  double unit_conversion_factor;
  PyObject *unit_name;
  PyObject *unit_auth_name;
  PyObject *unit_code;
  PyObject *unit_category;
};


/* "pyproj/_crs.pxd":92
 * 
 * 
 * cdef class Grid:             # <<<<<<<<<<<<<<
 *     cdef readonly object short_name
 *     cdef readonly object full_name
 */
struct __pyx_obj_6pyproj_4_crs_Grid {
  PyObject_HEAD
  struct __pyx_vtabstruct_6pyproj_4_crs_Grid *__pyx_vtab;
  PyObject *short_name;
  PyObject *full_name;
  PyObject *package_name;
  PyObject *url;
  PyObject *direct_download;
  PyObject *open_license;
  PyObject *available;
};


/* "pyproj/_crs.pxd":105
 * 
 * 
 * cdef class CoordinateOperation(_CRSParts):             # <<<<<<<<<<<<<<
 *     cdef readonly object _params
 *     cdef readonly object _grids
 */
struct __pyx_obj_6pyproj_4_crs_CoordinateOperation {
  struct __pyx_obj_6pyproj_4_crs__CRSParts __pyx_base;
  PyObject *_params;
  PyObject *_grids;
  PyObject *_area_of_use;
  PyObject *method_name;
  PyObject *method_auth_name;
  PyObject *method_code;
  double accuracy;
  PyObject *is_instantiable;
  PyObject *has_ballpark_transformation;
  PyObject *_towgs84;
  PyObject *_operations;
  PyObject *type_name;
};


/* "pyproj/_crs.pxd":123
 * 
 * 
 * cdef class _CRS(Base):             # <<<<<<<<<<<<<<
 *     cdef PJ_TYPE _type
 *     cdef PJ_PROJ_INFO projpj_info
 */
struct __pyx_obj_6pyproj_4_crs__CRS {
  struct __pyx_obj_6pyproj_4_crs_Base __pyx_base;
  PJ_TYPE _type;
  struct PJ_PROJ_INFO projpj_info;
  PyObject *srs;
  PyObject *type_name;
  PyObject *_ellipsoid;
  PyObject *_area_of_use;
  PyObject *_prime_meridian;
  PyObject *_datum;
  PyObject *_sub_crs_list;
  PyObject *_source_crs;
  PyObject *_target_crs;
  PyObject *_geodetic_crs;
  PyObject *_coordinate_system;
  PyObject *_coordinate_operation;
};



/* "pyproj/_crs.pyx":238
 * 
 * 
 * cdef class Axis:             # <<<<<<<<<<<<<<
 *     """
 *     .. versionadded:: 2.0.0
 */

struct __pyx_vtabstruct_6pyproj_4_crs_Axis {
  struct __pyx_obj_6pyproj_4_crs_Axis *(*create)(PJ_CONTEXT *, PJ *, int);
};
static struct __pyx_vtabstruct_6pyproj_4_crs_Axis *__pyx_vtabptr_6pyproj_4_crs_Axis;


/* "pyproj/_crs.pyx":314
 * 
 * 
 * cdef class AreaOfUse:             # <<<<<<<<<<<<<<
 *     """
 *     .. versionadded:: 2.0.0
 */

struct __pyx_vtabstruct_6pyproj_4_crs_AreaOfUse {
  struct __pyx_obj_6pyproj_4_crs_AreaOfUse *(*create)(PJ_CONTEXT *, PJ *);
};
static struct __pyx_vtabstruct_6pyproj_4_crs_AreaOfUse *__pyx_vtabptr_6pyproj_4_crs_AreaOfUse;


/* "pyproj/_crs.pyx":377
 * 
 * 
 * cdef class Base:             # <<<<<<<<<<<<<<
 *     def __cinit__(self):
 *         self.projobj = NULL
 */

struct __pyx_vtabstruct_6pyproj_4_crs_Base {
  PyObject *(*_set_base_info)(struct __pyx_obj_6pyproj_4_crs_Base *);
};
static struct __pyx_vtabstruct_6pyproj_4_crs_Base *__pyx_vtabptr_6pyproj_4_crs_Base;


/* "pyproj/_crs.pyx":533
 * 
 * 
 * cdef class _CRSParts(Base):             # <<<<<<<<<<<<<<
 *     @classmethod
 *     def from_user_input(cls, user_input):
 */

struct __pyx_vtabstruct_6pyproj_4_crs__CRSParts {
  struct __pyx_vtabstruct_6pyproj_4_crs_Base __pyx_base;
};
static struct __pyx_vtabstruct_6pyproj_4_crs__CRSParts *__pyx_vtabptr_6pyproj_4_crs__CRSParts;


/* "pyproj/_crs.pyx":725
 * 
 * 
 * cdef class Ellipsoid(_CRSParts):             # <<<<<<<<<<<<<<
 *     """
 *     .. versionadded:: 2.0.0
 */

struct __pyx_vtabstruct_6pyproj_4_crs_Ellipsoid {
  struct __pyx_vtabstruct_6pyproj_4_crs__CRSParts __pyx_base;
  struct __pyx_obj_6pyproj_4_crs_Ellipsoid *(*create)(PJ_CONTEXT *, PJ *);
};
static struct __pyx_vtabstruct_6pyproj_4_crs_Ellipsoid *__pyx_vtabptr_6pyproj_4_crs_Ellipsoid;


/* "pyproj/_crs.pyx":1025
 * 
 * 
 * cdef class PrimeMeridian(_CRSParts):             # <<<<<<<<<<<<<<
 *     """
 *     .. versionadded:: 2.0.0
 */

struct __pyx_vtabstruct_6pyproj_4_crs_PrimeMeridian {
  struct __pyx_vtabstruct_6pyproj_4_crs__CRSParts __pyx_base;
  struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *(*create)(PJ_CONTEXT *, PJ *);
};
static struct __pyx_vtabstruct_6pyproj_4_crs_PrimeMeridian *__pyx_vtabptr_6pyproj_4_crs_PrimeMeridian;


/* "pyproj/_crs.pyx":1304
 * 
 * 
 * cdef class Datum(_CRSParts):             # <<<<<<<<<<<<<<
 *     """
 *     .. versionadded:: 2.2.0
 */

struct __pyx_vtabstruct_6pyproj_4_crs_Datum {
  struct __pyx_vtabstruct_6pyproj_4_crs__CRSParts __pyx_base;
  struct __pyx_obj_6pyproj_4_crs_Datum *(*create)(PJ_CONTEXT *, PJ *);
};
static struct __pyx_vtabstruct_6pyproj_4_crs_Datum *__pyx_vtabptr_6pyproj_4_crs_Datum;


/* "pyproj/_crs.pyx":592
 * }
 * 
 * cdef class CoordinateSystem(_CRSParts):             # <<<<<<<<<<<<<<
 *     """
 *     .. versionadded:: 2.2.0
 */

struct __pyx_vtabstruct_6pyproj_4_crs_CoordinateSystem {
  struct __pyx_vtabstruct_6pyproj_4_crs__CRSParts __pyx_base;
  struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *(*create)(PJ_CONTEXT *, PJ *);
};
static struct __pyx_vtabstruct_6pyproj_4_crs_CoordinateSystem *__pyx_vtabptr_6pyproj_4_crs_CoordinateSystem;


/* "pyproj/_crs.pyx":1652
 * 
 * 
 * cdef class Param:             # <<<<<<<<<<<<<<
 *     """
 *     .. versionadded:: 2.2.0
 */

struct __pyx_vtabstruct_6pyproj_4_crs_Param {
  struct __pyx_obj_6pyproj_4_crs_Param *(*create)(PJ_CONTEXT *, PJ *, int);
};
static struct __pyx_vtabstruct_6pyproj_4_crs_Param *__pyx_vtabptr_6pyproj_4_crs_Param;


/* "pyproj/_crs.pyx":1750
 * 
 * 
 * cdef class Grid:             # <<<<<<<<<<<<<<
 *     """
 *     .. versionadded:: 2.2.0
 */

struct __pyx_vtabstruct_6pyproj_4_crs_Grid {
  struct __pyx_obj_6pyproj_4_crs_Grid *(*create)(PJ_CONTEXT *, PJ *, int);
};
static struct __pyx_vtabstruct_6pyproj_4_crs_Grid *__pyx_vtabptr_6pyproj_4_crs_Grid;


/* "pyproj/_crs.pyx":1849
 * }
 * 
 * cdef class CoordinateOperation(_CRSParts):             # <<<<<<<<<<<<<<
 *     """
 *     .. versionadded:: 2.2.0
 */

struct __pyx_vtabstruct_6pyproj_4_crs_CoordinateOperation {
  struct __pyx_vtabstruct_6pyproj_4_crs__CRSParts __pyx_base;
  struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *(*create)(PJ_CONTEXT *, PJ *);
};
static struct __pyx_vtabstruct_6pyproj_4_crs_CoordinateOperation *__pyx_vtabptr_6pyproj_4_crs_CoordinateOperation;


/* "pyproj/_crs.pyx":2309
 * 
 * 
 * cdef class _CRS(Base):             # <<<<<<<<<<<<<<
 *     """
 *     .. versionadded:: 2.0.0
 */

struct __pyx_vtabstruct_6pyproj_4_crs__CRS {
  struct __pyx_vtabstruct_6pyproj_4_crs_Base __pyx_base;
};
static struct __pyx_vtabstruct_6pyproj_4_crs__CRS *__pyx_vtabptr_6pyproj_4_crs__CRS;

/* --- Runtime support code (head) --- */
/* Refnanny.proto */
#ifndef CYTHON_REFNANNY
  #define CYTHON_REFNANNY 0
#endif
#if CYTHON_REFNANNY
  typedef struct {
    void (*INCREF)(void*, PyObject*, int);
    void (*DECREF)(void*, PyObject*, int);
    void (*GOTREF)(void*, PyObject*, int);
    void (*GIVEREF)(void*, PyObject*, int);
    void* (*SetupContext)(const char*, int, const char*);
    void (*FinishContext)(void**);
  } __Pyx_RefNannyAPIStruct;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname);
  #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
#ifdef WITH_THREAD
  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
          if (acquire_gil) {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
              PyGILState_Release(__pyx_gilstate_save);\
          } else {\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
          }
#else
  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
          __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
#endif
  #define __Pyx_RefNannyFinishContext()\
          __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
  #define __Pyx_INCREF(r)  __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_DECREF(r)  __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_GOTREF(r)  __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_XINCREF(r)  do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0)
  #define __Pyx_XDECREF(r)  do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0)
  #define __Pyx_XGOTREF(r)  do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0)
  #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0)
#else
  #define __Pyx_RefNannyDeclarations
  #define __Pyx_RefNannySetupContext(name, acquire_gil)
  #define __Pyx_RefNannyFinishContext()
  #define __Pyx_INCREF(r) Py_INCREF(r)
  #define __Pyx_DECREF(r) Py_DECREF(r)
  #define __Pyx_GOTREF(r)
  #define __Pyx_GIVEREF(r)
  #define __Pyx_XINCREF(r) Py_XINCREF(r)
  #define __Pyx_XDECREF(r) Py_XDECREF(r)
  #define __Pyx_XGOTREF(r)
  #define __Pyx_XGIVEREF(r)
#endif
#define __Pyx_XDECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_XDECREF(tmp);\
    } while (0)
#define __Pyx_DECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_DECREF(tmp);\
    } while (0)
#define __Pyx_CLEAR(r)    do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
#define __Pyx_XCLEAR(r)   do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)

/* PyObjectGetAttrStr.proto */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
#endif

/* GetBuiltinName.proto */
static PyObject *__Pyx_GetBuiltinName(PyObject *name);

/* PyDictVersioning.proto */
#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
#define __PYX_DICT_VERSION_INIT  ((PY_UINT64_T) -1)
#define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\
    (version_var) = __PYX_GET_DICT_VERSION(dict);\
    (cache_var) = (value);
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\
    static PY_UINT64_T __pyx_dict_version = 0;\
    static PyObject *__pyx_dict_cached_value = NULL;\
    if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
        (VAR) = __pyx_dict_cached_value;\
    } else {\
        (VAR) = __pyx_dict_cached_value = (LOOKUP);\
        __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
    }\
}
static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj);
static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj);
static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version);
#else
#define __PYX_GET_DICT_VERSION(dict)  (0)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP)  (VAR) = (LOOKUP);
#endif

/* GetModuleGlobalName.proto */
#if CYTHON_USE_DICT_VERSIONS
#define __Pyx_GetModuleGlobalName(var, name)  {\
    static PY_UINT64_T __pyx_dict_version = 0;\
    static PyObject *__pyx_dict_cached_value = NULL;\
    (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
        (likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\
        __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
}
#define __Pyx_GetModuleGlobalNameUncached(var, name)  {\
    PY_UINT64_T __pyx_dict_version;\
    PyObject *__pyx_dict_cached_value;\
    (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
}
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value);
#else
#define __Pyx_GetModuleGlobalName(var, name)  (var) = __Pyx__GetModuleGlobalName(name)
#define __Pyx_GetModuleGlobalNameUncached(var, name)  (var) = __Pyx__GetModuleGlobalName(name)
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name);
#endif

/* PyCFunctionFastCall.proto */
#if CYTHON_FAST_PYCCALL
static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *func, PyObject **args, Py_ssize_t nargs);
#else
#define __Pyx_PyCFunction_FastCall(func, args, nargs)  (assert(0), NULL)
#endif

/* PyFunctionFastCall.proto */
#if CYTHON_FAST_PYCALL
#define __Pyx_PyFunction_FastCall(func, args, nargs)\
    __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL)
#if 1 || PY_VERSION_HEX < 0x030600B1
static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs);
#else
#define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs)
#endif
#define __Pyx_BUILD_ASSERT_EXPR(cond)\
    (sizeof(char [1 - 2*!(cond)]) - 1)
#ifndef Py_MEMBER_SIZE
#define Py_MEMBER_SIZE(type, member) sizeof(((type *)0)->member)
#endif
  static size_t __pyx_pyframe_localsplus_offset = 0;
  #include "frameobject.h"
  #define __Pxy_PyFrame_Initialize_Offsets()\
    ((void)__Pyx_BUILD_ASSERT_EXPR(sizeof(PyFrameObject) == offsetof(PyFrameObject, f_localsplus) + Py_MEMBER_SIZE(PyFrameObject, f_localsplus)),\
     (void)(__pyx_pyframe_localsplus_offset = ((size_t)PyFrame_Type.tp_basicsize) - Py_MEMBER_SIZE(PyFrameObject, f_localsplus)))
  #define __Pyx_PyFrame_GetLocalsplus(frame)\
    (assert(__pyx_pyframe_localsplus_offset), (PyObject **)(((char *)(frame)) + __pyx_pyframe_localsplus_offset))
#endif

/* PyObjectCall.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw);
#else
#define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
#endif

/* PyObjectCall2Args.proto */
static CYTHON_UNUSED PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2);

/* PyObjectCallMethO.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg);
#endif

/* PyObjectCallOneArg.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg);

/* PySequenceContains.proto */
static CYTHON_INLINE int __Pyx_PySequence_ContainsTF(PyObject* item, PyObject* seq, int eq) {
    int result = PySequence_Contains(seq, item);
    return unlikely(result < 0) ? result : (result == (eq == Py_EQ));
}

/* DictGetItem.proto */
#if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY
static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key);
#define __Pyx_PyObject_Dict_GetItem(obj, name)\
    (likely(PyDict_CheckExact(obj)) ?\
     __Pyx_PyDict_GetItem(obj, name) : PyObject_GetItem(obj, name))
#else
#define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key)
#define __Pyx_PyObject_Dict_GetItem(obj, name)  PyObject_GetItem(obj, name)
#endif

/* PyObjectCallNoArg.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func);
#else
#define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL)
#endif

/* ListAppend.proto */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
static CYTHON_INLINE int __Pyx_PyList_Append(PyObject* list, PyObject* x) {
    PyListObject* L = (PyListObject*) list;
    Py_ssize_t len = Py_SIZE(list);
    if (likely(L->allocated > len) & likely(len > (L->allocated >> 1))) {
        Py_INCREF(x);
        PyList_SET_ITEM(list, len, x);
        Py_SIZE(list) = len+1;
        return 0;
    }
    return PyList_Append(list, x);
}
#else
#define __Pyx_PyList_Append(L,x) PyList_Append(L,x)
#endif

/* IncludeStringH.proto */
#include <string.h>

/* PyThreadStateGet.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyThreadState_declare  PyThreadState *__pyx_tstate;
#define __Pyx_PyThreadState_assign  __pyx_tstate = __Pyx_PyThreadState_Current;
#define __Pyx_PyErr_Occurred()  __pyx_tstate->curexc_type
#else
#define __Pyx_PyThreadState_declare
#define __Pyx_PyThreadState_assign
#define __Pyx_PyErr_Occurred()  PyErr_Occurred()
#endif

/* PyErrFetchRestore.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL)
#define __Pyx_ErrRestoreWithState(type, value, tb)  __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)    __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)    __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL))
#else
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#endif
#else
#define __Pyx_PyErr_Clear() PyErr_Clear()
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#define __Pyx_ErrRestoreWithState(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestoreInState(tstate, type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchInState(tstate, type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)  PyErr_Fetch(type, value, tb)
#endif

/* WriteUnraisableException.proto */
static void __Pyx_WriteUnraisable(const char *name, int clineno,
                                  int lineno, const char *filename,
                                  int full_traceback, int nogil);

/* GetTopmostException.proto */
#if CYTHON_USE_EXC_INFO_STACK
static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate);
#endif

/* SaveResetException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_ExceptionSave(type, value, tb)  __Pyx__ExceptionSave(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#define __Pyx_ExceptionReset(type, value, tb)  __Pyx__ExceptionReset(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
#else
#define __Pyx_ExceptionSave(type, value, tb)   PyErr_GetExcInfo(type, value, tb)
#define __Pyx_ExceptionReset(type, value, tb)  PyErr_SetExcInfo(type, value, tb)
#endif

/* PyErrExceptionMatches.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err)
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
#else
#define __Pyx_PyErr_ExceptionMatches(err)  PyErr_ExceptionMatches(err)
#endif

/* GetException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_GetException(type, value, tb)  __Pyx__GetException(__pyx_tstate, type, value, tb)
static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#else
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb);
#endif

/* RaiseException.proto */
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause);

/* RaiseArgTupleInvalid.proto */
static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
    Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found);

/* KeywordStringCheck.proto */
static int __Pyx_CheckKeywordStrings(PyObject *kwdict, const char* function_name, int kw_allowed);

/* pyobject_as_double.proto */
static double __Pyx__PyObject_AsDouble(PyObject* obj);
#if CYTHON_COMPILING_IN_PYPY
#define __Pyx_PyObject_AsDouble(obj)\
(likely(PyFloat_CheckExact(obj)) ? PyFloat_AS_DOUBLE(obj) :\
 likely(PyInt_CheckExact(obj)) ?\
 PyFloat_AsDouble(obj) : __Pyx__PyObject_AsDouble(obj))
#else
#define __Pyx_PyObject_AsDouble(obj)\
((likely(PyFloat_CheckExact(obj))) ?\
 PyFloat_AS_DOUBLE(obj) : __Pyx__PyObject_AsDouble(obj))
#endif

/* RaiseDoubleKeywords.proto */
static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name);

/* ParseKeywords.proto */
static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\
    PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\
    const char* function_name);

/* ArgTypeTest.proto */
#define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\
    ((likely((Py_TYPE(obj) == type) | (none_allowed && (obj == Py_None)))) ? 1 :\
        __Pyx__ArgTypeTest(obj, type, name, exact))
static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact);

/* GetAttr.proto */
static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *, PyObject *);

/* HasAttr.proto */
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *, PyObject *);

/* GetItemInt.proto */
#define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\
    (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\
               __Pyx_GetItemInt_Generic(o, to_py_func(i))))
#define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
    (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck);
#define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
    (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck);
static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j);
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
                                                     int is_list, int wraparound, int boundscheck);

/* ObjectGetItem.proto */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject* key);
#else
#define __Pyx_PyObject_GetItem(obj, key)  PyObject_GetItem(obj, key)
#endif

/* PyObjectGetMethod.proto */
static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method);

/* PyObjectCallMethod1.proto */
static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg);

/* append.proto */
static CYTHON_INLINE int __Pyx_PyObject_Append(PyObject* L, PyObject* x);

/* FastTypeChecks.proto */
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2);
#else
#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
#define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type)
#define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2))
#endif
#define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)

/* SwapException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_ExceptionSwap(type, value, tb)  __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#else
static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb);
#endif

/* BytesEquals.proto */
static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals);

/* UnicodeEquals.proto */
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals);

/* IterFinish.proto */
static CYTHON_INLINE int __Pyx_IterFinish(void);

/* PyObjectCallMethod0.proto */
static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name);

/* RaiseNeedMoreValuesToUnpack.proto */
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index);

/* RaiseTooManyValuesToUnpack.proto */
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected);

/* UnpackItemEndCheck.proto */
static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected);

/* RaiseNoneIterError.proto */
static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void);

/* UnpackTupleError.proto */
static void __Pyx_UnpackTupleError(PyObject *, Py_ssize_t index);

/* UnpackTuple2.proto */
#define __Pyx_unpack_tuple2(tuple, value1, value2, is_tuple, has_known_size, decref_tuple)\
    (likely(is_tuple || PyTuple_Check(tuple)) ?\
        (likely(has_known_size || PyTuple_GET_SIZE(tuple) == 2) ?\
            __Pyx_unpack_tuple2_exact(tuple, value1, value2, decref_tuple) :\
            (__Pyx_UnpackTupleError(tuple, 2), -1)) :\
        __Pyx_unpack_tuple2_generic(tuple, value1, value2, has_known_size, decref_tuple))
static CYTHON_INLINE int __Pyx_unpack_tuple2_exact(
    PyObject* tuple, PyObject** value1, PyObject** value2, int decref_tuple);
static int __Pyx_unpack_tuple2_generic(
    PyObject* tuple, PyObject** value1, PyObject** value2, int has_known_size, int decref_tuple);

/* dict_iter.proto */
static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* dict, int is_dict, PyObject* method_name,
                                                   Py_ssize_t* p_orig_length, int* p_is_dict);
static CYTHON_INLINE int __Pyx_dict_iter_next(PyObject* dict_or_iter, Py_ssize_t orig_length, Py_ssize_t* ppos,
                                              PyObject** pkey, PyObject** pvalue, PyObject** pitem, int is_dict);

/* ListCompAppend.proto */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
static CYTHON_INLINE int __Pyx_ListComp_Append(PyObject* list, PyObject* x) {
    PyListObject* L = (PyListObject*) list;
    Py_ssize_t len = Py_SIZE(list);
    if (likely(L->allocated > len)) {
        Py_INCREF(x);
        PyList_SET_ITEM(list, len, x);
        Py_SIZE(list) = len+1;
        return 0;
    }
    return PyList_Append(list, x);
}
#else
#define __Pyx_ListComp_Append(L,x) PyList_Append(L,x)
#endif

/* ListExtend.proto */
static CYTHON_INLINE int __Pyx_PyList_Extend(PyObject* L, PyObject* v) {
#if CYTHON_COMPILING_IN_CPYTHON
    PyObject* none = _PyList_Extend((PyListObject*)L, v);
    if (unlikely(!none))
        return -1;
    Py_DECREF(none);
    return 0;
#else
    return PyList_SetSlice(L, PY_SSIZE_T_MAX, PY_SSIZE_T_MAX, v);
#endif
}

/* PyObject_GenericGetAttrNoDict.proto */
#if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GenericGetAttrNoDict PyObject_GenericGetAttr
#endif

/* PyObject_GenericGetAttr.proto */
#if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GenericGetAttr PyObject_GenericGetAttr
#endif

/* SetVTable.proto */
static int __Pyx_SetVtable(PyObject *dict, void *vtable);

/* SetupReduce.proto */
static int __Pyx_setup_reduce(PyObject* type_obj);

/* TypeImport.proto */
#ifndef __PYX_HAVE_RT_ImportType_proto
#define __PYX_HAVE_RT_ImportType_proto
enum __Pyx_ImportType_CheckSize {
   __Pyx_ImportType_CheckSize_Error = 0,
   __Pyx_ImportType_CheckSize_Warn = 1,
   __Pyx_ImportType_CheckSize_Ignore = 2
};
static PyTypeObject *__Pyx_ImportType(PyObject* module, const char *module_name, const char *class_name, size_t size, enum __Pyx_ImportType_CheckSize check_size);
#endif

/* Import.proto */
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level);

/* ImportFrom.proto */
static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name);

/* ClassMethod.proto */
#include "descrobject.h"
static CYTHON_UNUSED PyObject* __Pyx_Method_ClassMethod(PyObject *method);

/* GetNameInClass.proto */
#define __Pyx_GetNameInClass(var, nmspace, name)  (var) = __Pyx__GetNameInClass(nmspace, name)
static PyObject *__Pyx__GetNameInClass(PyObject *nmspace, PyObject *name);

/* CLineInTraceback.proto */
#ifdef CYTHON_CLINE_IN_TRACEBACK
#define __Pyx_CLineForTraceback(tstate, c_line)  (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0)
#else
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line);
#endif

/* CodeObjectCache.proto */
typedef struct {
    PyCodeObject* code_object;
    int code_line;
} __Pyx_CodeObjectCacheEntry;
struct __Pyx_CodeObjectCache {
    int count;
    int max_count;
    __Pyx_CodeObjectCacheEntry* entries;
};
static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL};
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
static PyCodeObject *__pyx_find_code_object(int code_line);
static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object);

/* AddTraceback.proto */
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_PJ_COORDINATE_SYSTEM_TYPE(PJ_COORDINATE_SYSTEM_TYPE value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_PJ_WKT_TYPE(PJ_WKT_TYPE value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_PJ_PROJ_STRING_TYPE(PJ_PROJ_STRING_TYPE value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value);

/* CIntFromPy.proto */
static CYTHON_INLINE PJ_WKT_TYPE __Pyx_PyInt_As_PJ_WKT_TYPE(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE PJ_PROJ_STRING_TYPE __Pyx_PyInt_As_PJ_PROJ_STRING_TYPE(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE PJ_TYPE __Pyx_PyInt_As_PJ_TYPE(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *);

/* CheckBinaryVersion.proto */
static int __Pyx_check_binary_version(void);

/* FunctionExport.proto */
static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig);

/* FunctionImport.proto */
static int __Pyx_ImportFunction(PyObject *module, const char *funcname, void (**f)(void), const char *sig);

/* InitStrings.proto */
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t);

static struct __pyx_obj_6pyproj_4_crs_Axis *__pyx_f_6pyproj_4_crs_4Axis_create(PJ_CONTEXT *__pyx_v_context, PJ *__pyx_v_projobj, int __pyx_v_index); /* proto*/
static struct __pyx_obj_6pyproj_4_crs_AreaOfUse *__pyx_f_6pyproj_4_crs_9AreaOfUse_create(PJ_CONTEXT *__pyx_v_context, PJ *__pyx_v_projobj); /* proto*/
static PyObject *__pyx_f_6pyproj_4_crs_4Base__set_base_info(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self); /* proto*/
static struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *__pyx_f_6pyproj_4_crs_16CoordinateSystem_create(PJ_CONTEXT *__pyx_v_context, PJ *__pyx_v_coord_system_pj); /* proto*/
static struct __pyx_obj_6pyproj_4_crs_Ellipsoid *__pyx_f_6pyproj_4_crs_9Ellipsoid_create(PJ_CONTEXT *__pyx_v_context, PJ *__pyx_v_ellipsoid_pj); /* proto*/
static struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *__pyx_f_6pyproj_4_crs_13PrimeMeridian_create(PJ_CONTEXT *__pyx_v_context, PJ *__pyx_v_prime_meridian_pj); /* proto*/
static struct __pyx_obj_6pyproj_4_crs_Datum *__pyx_f_6pyproj_4_crs_5Datum_create(PJ_CONTEXT *__pyx_v_context, PJ *__pyx_v_datum_pj); /* proto*/
static struct __pyx_obj_6pyproj_4_crs_Param *__pyx_f_6pyproj_4_crs_5Param_create(PJ_CONTEXT *__pyx_v_context, PJ *__pyx_v_projobj, int __pyx_v_param_idx); /* proto*/
static struct __pyx_obj_6pyproj_4_crs_Grid *__pyx_f_6pyproj_4_crs_4Grid_create(PJ_CONTEXT *__pyx_v_context, PJ *__pyx_v_projobj, int __pyx_v_grid_idx); /* proto*/
static struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_f_6pyproj_4_crs_19CoordinateOperation_create(PJ_CONTEXT *__pyx_v_context, PJ *__pyx_v_coord_operation_pj); /* proto*/

/* Module declarations from 'pyproj._datadir' */
static PyTypeObject *__pyx_ptype_6pyproj_8_datadir_ContextManager = 0;
static void (*__pyx_f_6pyproj_8_datadir_pyproj_context_initialize)(PJ_CONTEXT *, int); /*proto*/

/* Module declarations from 'pyproj._crs' */
static PyTypeObject *__pyx_ptype_6pyproj_4_crs_Axis = 0;
static PyTypeObject *__pyx_ptype_6pyproj_4_crs_AreaOfUse = 0;
static PyTypeObject *__pyx_ptype_6pyproj_4_crs_Base = 0;
static PyTypeObject *__pyx_ptype_6pyproj_4_crs__CRSParts = 0;
static PyTypeObject *__pyx_ptype_6pyproj_4_crs_Ellipsoid = 0;
static PyTypeObject *__pyx_ptype_6pyproj_4_crs_PrimeMeridian = 0;
static PyTypeObject *__pyx_ptype_6pyproj_4_crs_Datum = 0;
static PyTypeObject *__pyx_ptype_6pyproj_4_crs_CoordinateSystem = 0;
static PyTypeObject *__pyx_ptype_6pyproj_4_crs_Param = 0;
static PyTypeObject *__pyx_ptype_6pyproj_4_crs_Grid = 0;
static PyTypeObject *__pyx_ptype_6pyproj_4_crs_CoordinateOperation = 0;
static PyTypeObject *__pyx_ptype_6pyproj_4_crs__CRS = 0;
static PyObject *__pyx_7genexpr__pyx_v_6pyproj_4_crs_ellps_id;
static PyObject *__pyx_7genexpr__pyx_v_6pyproj_4_crs_ellps;
static PyObject *__pyx_f_6pyproj_4_crs__get_concatenated_operations(PJ_CONTEXT *, PJ *); /*proto*/
static PyObject *__pyx_f_6pyproj_4_crs_cstrdecode(char const *); /*proto*/
static PyObject *__pyx_f_6pyproj_4_crs_decode_or_undefined(char const *); /*proto*/
static PyObject *__pyx_f_6pyproj_4_crs__to_wkt(PJ_CONTEXT *, PJ *, struct __pyx_opt_args_6pyproj_4_crs__to_wkt *__pyx_optional_args); /*proto*/
static PyObject *__pyx_f_6pyproj_4_crs__to_proj4(PJ_CONTEXT *, PJ *, PyObject *); /*proto*/
static PJ *__pyx_f_6pyproj_4_crs__from_name(PJ_CONTEXT *, PyObject *, PyObject *, PJ_TYPE); /*proto*/
#define __Pyx_MODULE_NAME "pyproj._crs"
extern int __pyx_module_is_main_pyproj___crs;
int __pyx_module_is_main_pyproj___crs = 0;

/* Implementation of 'pyproj._crs' */
static PyObject *__pyx_builtin_staticmethod;
static PyObject *__pyx_builtin_range;
static PyObject *__pyx_builtin_ValueError;
static PyObject *__pyx_builtin_TypeError;
static PyObject *__pyx_builtin_RuntimeError;
static PyObject *__pyx_builtin_KeyError;
static const char __pyx_k_[] = "=";
static const char __pyx_k_a[] = "a";
static const char __pyx_k_b[] = "b";
static const char __pyx_k_re[] = "re";
static const char __pyx_k_rf[] = "rf";
static const char __pyx_k_CRS[] = "_CRS";
static const char __pyx_k_NaN[] = "NaN";
static const char __pyx_k__23[] = " ";
static const char __pyx_k__24[] = "";
static const char __pyx_k_get[] = "get";
static const char __pyx_k_nan[] = "nan";
static const char __pyx_k_url[] = "url";
static const char __pyx_k_Axis[] = "Axis";
static const char __pyx_k_Base[] = "Base";
static const char __pyx_k_EPSG[] = "EPSG";
static const char __pyx_k_Grid[] = "Grid";
static const char __pyx_k_PROJ[] = "PROJ";
static const char __pyx_k_TM65[] = "TM65";
static const char __pyx_k_code[] = "code";
static const char __pyx_k_east[] = "east";
static const char __pyx_k_json[] = "json";
static const char __pyx_k_main[] = "__main__";
static const char __pyx_k_name[] = "name";
static const char __pyx_k_test[] = "__test__";
static const char __pyx_k_warn[] = "warn";
static const char __pyx_k_west[] = "west";
static const char __pyx_k_CRS_2[] = "CRS";
static const char __pyx_k_Datum[] = "Datum";
static const char __pyx_k_IRE65[] = "IRE65";
static const char __pyx_k_NAD27[] = "NAD27";
static const char __pyx_k_NAD83[] = "NAD83";
static const char __pyx_k_Param[] = "Param";
static const char __pyx_k_WGS84[] = "WGS84";
static const char __pyx_k_clear[] = "clear";
static const char __pyx_k_dumps[] = "dumps";
static const char __pyx_k_items[] = "items";
static const char __pyx_k_loads[] = "loads";
static const char __pyx_k_north[] = "north";
static const char __pyx_k_other[] = "other";
static const char __pyx_k_range[] = "range";
static const char __pyx_k_south[] = "south";
static const char __pyx_k_upper[] = "upper";
static const char __pyx_k_value[] = "value";
static const char __pyx_k_GGRS87[] = "GGRS87";
static const char __pyx_k_NZGD49[] = "NZGD49";
static const char __pyx_k_OSGB36[] = "OSGB36";
static const char __pyx_k_PROJ_4[] = "PROJ_4";
static const char __pyx_k_PROJ_5[] = "PROJ_5";
static const char __pyx_k_abbrev[] = "abbrev";
static const char __pyx_k_append[] = "append";
static const char __pyx_k_bounds[] = "bounds";
static const char __pyx_k_create[] = "create";
static const char __pyx_k_equals[] = "_equals";
static const char __pyx_k_format[] = "format";
static const char __pyx_k_import[] = "__import__";
static const char __pyx_k_is_wkt[] = "is_wkt";
static const char __pyx_k_name_2[] = "__name__";
static const char __pyx_k_params[] = "params";
static const char __pyx_k_pretty[] = "pretty";
static const char __pyx_k_reduce[] = "__reduce__";
static const char __pyx_k_to_wkt[] = "to_wkt";
static const char __pyx_k_values[] = "values";
static const char __pyx_k_POTSDAM[] = "POTSDAM";
static const char __pyx_k_Unknown[] = "Unknown";
static const char __pyx_k_context[] = "context";
static const char __pyx_k_crs_err[] = "crs_err";
static const char __pyx_k_is_proj[] = "is_proj";
static const char __pyx_k_ordinal[] = "ordinal";
static const char __pyx_k_replace[] = "replace";
static const char __pyx_k_to_json[] = "to_json";
static const char __pyx_k_unknown[] = "unknown";
static const char __pyx_k_version[] = "version";
static const char __pyx_k_CARTHAGE[] = "CARTHAGE";
static const char __pyx_k_CRSError[] = "CRSError";
static const char __pyx_k_CRSParts[] = "_CRSParts";
static const char __pyx_k_Carthage[] = "Carthage";
static const char __pyx_k_KeyError[] = "KeyError";
static const char __pyx_k_datum_pj[] = "datum_pj";
static const char __pyx_k_getstate[] = "__getstate__";
static const char __pyx_k_is_bound[] = "is_bound";
static const char __pyx_k_pj_ellps[] = "pj_ellps";
static const char __pyx_k_setstate[] = "__setstate__";
static const char __pyx_k_vertical[] = "vertical";
static const char __pyx_k_warnings[] = "warnings";
static const char __pyx_k_AreaOfUse[] = "AreaOfUse";
static const char __pyx_k_Bound_CRS[] = "Bound CRS";
static const char __pyx_k_DatumType[] = "DatumType";
static const char __pyx_k_Ellipsoid[] = "Ellipsoid";
static const char __pyx_k_OSGB_1936[] = "OSGB 1936";
static const char __pyx_k_Other_CRS[] = "Other CRS";
static const char __pyx_k_TypeError[] = "TypeError";
static const char __pyx_k_WKT1_ESRI[] = "WKT1_ESRI";
static const char __pyx_k_WKT1_GDAL[] = "WKT1_GDAL";
static const char __pyx_k_WKT2_2015[] = "WKT2_2015";
static const char __pyx_k_WKT2_2018[] = "WKT2_2018";
static const char __pyx_k_WKT2_2019[] = "WKT2_2019";
static const char __pyx_k_auth_code[] = "auth_code";
static const char __pyx_k_auth_name[] = "auth_name";
static const char __pyx_k_available[] = "available";
static const char __pyx_k_axis_info[] = "axis_info";
static const char __pyx_k_axis_list[] = "axis_list";
static const char __pyx_k_cartesian[] = "cartesian";
static const char __pyx_k_direction[] = "direction";
static const char __pyx_k_from_epsg[] = "from_epsg";
static const char __pyx_k_from_json[] = "from_json";
static const char __pyx_k_from_name[] = "from_name";
static const char __pyx_k_full_name[] = "full_name";
static const char __pyx_k_reduce_ex[] = "__reduce_ex__";
static const char __pyx_k_spherical[] = "spherical";
static const char __pyx_k_type_name[] = "type_name";
static const char __pyx_k_undefined[] = "undefined";
static const char __pyx_k_unit_code[] = "unit_code";
static const char __pyx_k_unit_name[] = "unit_name";
static const char __pyx_k_CONVERSION[] = "CONVERSION";
static const char __pyx_k_Conversion[] = "Conversion";
static const char __pyx_k_ValueError[] = "ValueError";
static const char __pyx_k_WktVersion[] = "WktVersion";
static const char __pyx_k_cstrencode[] = "cstrencode";
static const char __pyx_k_datum_dict[] = "datum_dict";
static const char __pyx_k_datum_name[] = "datum_name";
static const char __pyx_k_datum_type[] = "datum_type";
static const char __pyx_k_parametric[] = "parametric";
static const char __pyx_k_pyx_vtable[] = "__pyx_vtable__";
static const char __pyx_k_short_name[] = "short_name";
static const char __pyx_k_source_crs[] = "source_crs";
static const char __pyx_k_tmp_string[] = "tmp_string";
static const char __pyx_k_OrderedDict[] = "OrderedDict";
static const char __pyx_k_ProjVersion[] = "ProjVersion";
static const char __pyx_k_Unknown_CRS[] = "Unknown CRS";
static const char __pyx_k_area_of_use[] = "area_of_use";
static const char __pyx_k_collections[] = "collections";
static const char __pyx_k_description[] = "description";
static const char __pyx_k_ellipsoidal[] = "ellipsoidal";
static const char __pyx_k_from_name_2[] = "_from_name";
static const char __pyx_k_from_string[] = "from_string";
static const char __pyx_k_indentation[] = "indentation";
static const char __pyx_k_is_vertical[] = "is_vertical";
static const char __pyx_k_method_name[] = "method_name";
static const char __pyx_k_proj_string[] = "proj_string";
static const char __pyx_k_pyproj__crs[] = "pyproj._crs";
static const char __pyx_k_pyproj_geod[] = "pyproj.geod";
static const char __pyx_k_pystrdecode[] = "pystrdecode";
static const char __pyx_k_undefined_2[] = "- undefined";
static const char __pyx_k_CRS_TYPE_MAP[] = "_CRS_TYPE_MAP";
static const char __pyx_k_Compound_CRS[] = "Compound CRS";
static const char __pyx_k_Geodetic_CRS[] = "Geodetic CRS";
static const char __pyx_k_Invalid_JSON[] = "Invalid JSON";
static const char __pyx_k_MULTILINE_NO[] = "MULTILINE=NO";
static const char __pyx_k_RuntimeError[] = "RuntimeError";
static const char __pyx_k_Temporal_CRS[] = "Temporal CRS";
static const char __pyx_k_Vertical_CRS[] = "Vertical CRS";
static const char __pyx_k_datum_string[] = "datum_string";
static const char __pyx_k_ellipsoid_pj[] = "ellipsoid_pj";
static const char __pyx_k_in_proj_json[] = "in_proj_json";
static const char __pyx_k_is_projected[] = "is_projected";
static const char __pyx_k_open_license[] = "open_license";
static const char __pyx_k_package_name[] = "package_name";
static const char __pyx_k_pyproj_enums[] = "pyproj.enums";
static const char __pyx_k_staticmethod[] = "staticmethod";
static const char __pyx_k_sub_crs_list[] = "sub_crs_list";
static const char __pyx_k_to_authority[] = "to_authority";
static const char __pyx_k_HERMANNSKOGEL[] = "HERMANNSKOGEL";
static const char __pyx_k_MULTILINE_YES[] = "MULTILINE=YES";
static const char __pyx_k_PrimeMeridian[] = "PrimeMeridian";
static const char __pyx_k_Projected_CRS[] = "Projected CRS";
static const char __pyx_k_from_string_2[] = "_from_string";
static const char __pyx_k_is_equivalent[] = "_is_equivalent";
static const char __pyx_k_is_exact_same[] = "_is_exact_same";
static const char __pyx_k_is_geocentric[] = "is_geocentric";
static const char __pyx_k_is_geographic[] = "is_geographic";
static const char __pyx_k_pj_datum_type[] = "pj_datum_type";
static const char __pyx_k_property_name[] = "property_name";
static const char __pyx_k_pyproj_compat[] = "pyproj.compat";
static const char __pyx_k_reduce_cython[] = "__reduce_cython__";
static const char __pyx_k_sub_crs_index[] = "sub_crs_index";
static const char __pyx_k_temporalcount[] = "temporalcount";
static const char __pyx_k_unit_category[] = "unit_category";
static const char __pyx_k_DATUM_ENSEMBLE[] = "DATUM_ENSEMBLE";
static const char __pyx_k_DATUM_NAME_MAP[] = "_DATUM_NAME_MAP";
static const char __pyx_k_DATUM_TYPE_MAP[] = "_DATUM_TYPE_MAP";
static const char __pyx_k_Datum_Ensemble[] = "Datum Ensemble";
static const char __pyx_k_Geocentric_CRS[] = "Geocentric CRS";
static const char __pyx_k_Geographic_CRS[] = "Geographic CRS";
static const char __pyx_k_TRANSFORMATION[] = "TRANSFORMATION";
static const char __pyx_k_Transformation[] = "Transformation";
static const char __pyx_k_datum_json_str[] = "datum_json_str";
static const char __pyx_k_ellipsoid_dict[] = "ellipsoid_dict";
static const char __pyx_k_ellipsoid_name[] = "ellipsoid_name";
static const char __pyx_k_from_authority[] = "from_authority";
static const char __pyx_k_from_json_dict[] = "from_json_dict";
static const char __pyx_k_load_proj_json[] = "_load_proj_json";
static const char __pyx_k_min_confidence[] = "min_confidence";
static const char __pyx_k_property_types[] = "property_types";
static const char __pyx_k_unit_auth_code[] = "unit_auth_code";
static const char __pyx_k_unit_auth_name[] = "unit_auth_name";
static const char __pyx_k_CustomEllipsoid[] = "CustomEllipsoid";
static const char __pyx_k_Engineering_CRS[] = "Engineering CRS";
static const char __pyx_k_Invalid_input_r[] = "Invalid {} input: {!r}";
static const char __pyx_k_X_axis_rotation[] = "X-axis rotation";
static const char __pyx_k_Y_axis_rotation[] = "Y-axis rotation";
static const char __pyx_k_Z_axis_rotation[] = "Z-axis rotation";
static const char __pyx_k_direct_download[] = "direct_download";
static const char __pyx_k_from_user_input[] = "from_user_input";
static const char __pyx_k_is_crs_property[] = "_is_crs_property";
static const char __pyx_k_pyproj__crs_pyx[] = "pyproj/_crs.pyx";
static const char __pyx_k_semi_major_axis[] = "semi_major_axis";
static const char __pyx_k_semi_minor_axis[] = "semi_minor_axis";
static const char __pyx_k_setstate_cython[] = "__setstate_cython__";
static const char __pyx_k_temporalmeasure[] = "temporalmeasure";
static const char __pyx_k_CoordinateSystem[] = "CoordinateSystem";
static const char __pyx_k_Scale_difference[] = "Scale difference";
static const char __pyx_k_datetimetemporal[] = "datetimetemporal";
static const char __pyx_k_ellipsoid_params[] = "ellipsoid_params";
static const char __pyx_k_ellipsoid_string[] = "ellipsoid_string";
static const char __pyx_k_pyproj_crs_datum[] = "pyproj.crs.datum";
static const char __pyx_k_pyproj_crs_enums[] = "pyproj.crs.enums";
static const char __pyx_k_Geographic_2D_CRS[] = "Geographic 2D CRS";
static const char __pyx_k_Geographic_3D_CRS[] = "Geographic 3D CRS";
static const char __pyx_k_PJ_DATUM_TYPE_MAP[] = "_PJ_DATUM_TYPE_MAP";
static const char __pyx_k_PJ_ELLPS_NAME_MAP[] = "_PJ_ELLPS_NAME_MAP";
static const char __pyx_k_coordinate_system[] = "coordinate_system";
static const char __pyx_k_ignore_axis_order[] = "ignore_axis_order";
static const char __pyx_k_prime_meridian_pj[] = "prime_meridian_pj";
static const char __pyx_k_pyproj_exceptions[] = "pyproj.exceptions";
static const char __pyx_k_Input_is_not_a_CRS[] = "Input is not a CRS: {}";
static const char __pyx_k_Invalid_datum_name[] = "Invalid datum name: {}";
static const char __pyx_k_Invalid_projection[] = "Invalid projection: {}";
static const char __pyx_k_X_axis_translation[] = "X-axis translation";
static const char __pyx_k_Y_axis_translation[] = "Y-axis translation";
static const char __pyx_k_Z_axis_translation[] = "Z-axis translation";
static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback";
static const char __pyx_k_coord_operation_pj[] = "coord_operation_pj";
static const char __pyx_k_ellipsoid_json_str[] = "ellipsoid_json_str";
static const char __pyx_k_inverse_flattening[] = "inverse_flattening";
static const char __pyx_k_CoordinateOperation[] = "CoordinateOperation";
static const char __pyx_k_auth_name_auth_code[] = "{auth_name}:{auth_code}";
static const char __pyx_k_prime_meridian_dict[] = "prime_meridian_dict";
static const char __pyx_k_prime_meridian_name[] = "prime_meridian_name";
static const char __pyx_k_INDENTATION_WIDTH_0f[] = "INDENTATION_WIDTH={:.0f}";
static const char __pyx_k_Invalid_datum_string[] = "Invalid datum string: {}";
static const char __pyx_k_WKT2_2015_SIMPLIFIED[] = "WKT2_2015_SIMPLIFIED";
static const char __pyx_k_WKT2_2018_SIMPLIFIED[] = "WKT2_2018_SIMPLIFIED";
static const char __pyx_k_WKT2_2019_SIMPLIFIED[] = "WKT2_2019_SIMPLIFIED";
static const char __pyx_k_coordinate_system_pj[] = "coordinate_system_pj";
static const char __pyx_k_COORD_SYSTEM_TYPE_MAP[] = "_COORD_SYSTEM_TYPE_MAP";
static const char __pyx_k_CRS_to_epsg_line_2657[] = "_CRS.to_epsg (line 2657)";
static const char __pyx_k_prime_meridian_string[] = "prime_meridian_string";
static const char __pyx_k_CONCATENATED_OPERATION[] = "CONCATENATED_OPERATION";
static const char __pyx_k_Concatenated_Operation[] = "Concatenated Operation";
static const char __pyx_k_Invalid_ellipsoid_name[] = "Invalid ellipsoid name: {}";
static const char __pyx_k_coordinate_system_dict[] = "coordinate_system_dict";
static const char __pyx_k_CoordinateOperationType[] = "CoordinateOperationType";
static const char __pyx_k_coordinate_operation_pj[] = "coordinate_operation_pj";
static const char __pyx_k_name_name_bounds_bounds[] = "- name: {name}\n- bounds: {bounds}";
static const char __pyx_k_prime_meridian_json_str[] = "prime_meridian_json_str";
static const char __pyx_k_GEODETIC_REFERENCE_FRAME[] = "GEODETIC_REFERENCE_FRAME";
static const char __pyx_k_Geodetic_Reference_Frame[] = "Geodetic Reference Frame";
static const char __pyx_k_Invalid_ellipsoid_string[] = "Invalid ellipsoid string: {}";
static const char __pyx_k_VERTICAL_REFERENCE_FRAME[] = "VERTICAL_REFERENCE_FRAME";
static const char __pyx_k_Vertical_Reference_Frame[] = "Vertical Reference Frame";
static const char __pyx_k_coordinate_system_string[] = "coordinate_system_string";
static const char __pyx_k_North_American_Datum_1927[] = "North American Datum 1927";
static const char __pyx_k_North_American_Datum_1983[] = "North American Datum 1983";
static const char __pyx_k_coordinate_operation_dict[] = "coordinate_operation_dict";
static const char __pyx_k_coordinate_operation_name[] = "coordinate_operation_name";
static const char __pyx_k_coordinate_operation_type[] = "coordinate_operation_type";
static const char __pyx_k_CRS_to_authority_line_2700[] = "_CRS.to_authority (line 2700)";
static const char __pyx_k_OTHER_COORDINATE_OPERATION[] = "OTHER_COORDINATE_OPERATION";
static const char __pyx_k_Other_Coordinate_Operation[] = "Other Coordinate Operation";
static const char __pyx_k_World_Geodetic_System_1984[] = "World Geodetic System 1984";
static const char __pyx_k_coordinate_system_json_str[] = "coordinate_system_json_str";
static const char __pyx_k_Deutsches_Hauptdreiecksnetz[] = "Deutsches Hauptdreiecksnetz";
static const char __pyx_k_Invalid_prime_meridian_name[] = "Invalid prime meridian name: {}";
static const char __pyx_k_coordinate_operation_string[] = "coordinate_operation_string";
static const char __pyx_k_pj_coordinate_operation_type[] = "pj_coordinate_operation_type";
static const char __pyx_k_COORDINATE_OPERATION_TYPE_MAP[] = "_COORDINATE_OPERATION_TYPE_MAP";
static const char __pyx_k_Invalid_authority_or_code_0_1[] = "Invalid authority or code ({0}, {1})";
static const char __pyx_k_Invalid_prime_meridian_string[] = "Invalid prime meridian string: {}";
static const char __pyx_k_coordinate_operation_json_str[] = "coordinate_operation_json_str";
static const char __pyx_k_Coordinate_Operation_type_name[] = "<Coordinate Operation: {type_name}>\nName: {name}\nMethod: {method_name}\nArea of Use:\n{area_of_use}";
static const char __pyx_k_Militar_Geographische_Institut[] = "Militar-Geographische Institut";
static const char __pyx_k_CoordinateOperation_can_only_be[] = "CoordinateOperation can only be initialized like CoordinateOperation.from_*()'.";
static const char __pyx_k_Greek_Geodetic_Reference_System[] = "Greek Geodetic Reference System 1987";
static const char __pyx_k_Grid_short_name_short_name_full[] = "Grid(short_name={short_name}, full_name={full_name}, package_name={package_name}, url={url}, direct_download={direct_download}, open_license={open_license}, available={available})";
static const char __pyx_k_New_Zealand_Geodetic_Datum_1949[] = "New Zealand Geodetic Datum 1949";
static const char __pyx_k_PJ_COORDINATE_OPERATION_TYPE_MA[] = "_PJ_COORDINATE_OPERATION_TYPE_MAP";
static const char __pyx_k_Return_the_EPSG_code_best_match[] = "\n        Return the EPSG code best matching the CRS\n        or None if it a match is not found.\n\n        Example:\n\n        >>> from pyproj import CRS\n        >>> ccs = CRS(\"epsg:4328\")\n        >>> ccs.to_epsg()\n        4328\n\n        If the CRS is bound, you can attempt to get an epsg code from\n        the source CRS:\n\n        >>> from pyproj import CRS\n        >>> ccs = CRS(\"+proj=geocent +datum=WGS84 +towgs84=0,0,0\")\n        >>> ccs.to_epsg()\n        >>> ccs.source_crs.to_epsg()\n        4978\n        >>> ccs == CRS.from_epsg(4978)\n        False\n\n        Parameters\n        ----------\n        min_confidence: int, optional\n            A value between 0-100 where 100 is the most confident. Default is 70.\n            :ref:`min_confidence`\n\n\n        Returns\n        -------\n        Optional[int]:\n            The best matching EPSG code matching the confidence level.\n        ";
static const char __pyx_k_abbrev_direction_name_unit_name[] = "{abbrev}[{direction}]: {name} ({unit_name})";
static const char __pyx_k_use_proj_alternative_grid_names[] = "use_proj_alternative_grid_names";
static const char __pyx_k_versionadded_2_2_0_Return_the_a[] = "\n        .. versionadded:: 2.2.0\n\n        Return the authority name and code best matching the CRS\n        or None if it a match is not found.\n\n        Example:\n\n        >>> from pyproj import CRS\n        >>> ccs = CRS(\"epsg:4328\")\n        >>> ccs.to_authority()\n        ('EPSG', '4328')\n\n        If the CRS is bound, you can get an authority from\n        the source CRS:\n\n        >>> from pyproj import CRS\n        >>> ccs = CRS(\"+proj=geocent +datum=WGS84 +towgs84=0,0,0\")\n        >>> ccs.to_authority()\n        >>> ccs.source_crs.to_authority()\n        ('EPSG', '4978')\n        >>> ccs == CRS.from_authorty('EPSG', '4978')\n        False\n\n        Parameters\n        ----------\n        auth_name: str, optional\n            The name of the authority to filter by.\n        min_confidence: int, optional\n            A value between 0-100 where 100 is the most confident. Default is 70.\n            :ref:`min_confidence`\n\n        Returns\n        -------\n        tuple(str, str) or None:\n            The best matching (<auth_name>, <code>) for the confidence level.\n        ";
static const char __pyx_k_AreaOfUse_name_name_west_west_so[] = "AreaOfUse(name={name}, west={west}, south={south}, east={east}, north={north})";
static const char __pyx_k_Axis_name_name_abbrev_abbrev_dir[] = "Axis(name={name}, abbrev={abbrev}, direction={direction}, unit_auth_code={unit_auth_code}, unit_code={unit_code}, unit_name={unit_name})";
static const char __pyx_k_CoordinateSystem_is_not_initiali[] = "CoordinateSystem is not initializable.";
static const char __pyx_k_DYNAMIC_GEODETIC_REFERENCE_FRAME[] = "DYNAMIC_GEODETIC_REFERENCE_FRAME";
static const char __pyx_k_DYNAMIC_VERTICAL_REFERENCE_FRAME[] = "DYNAMIC_VERTICAL_REFERENCE_FRAME";
static const char __pyx_k_Datum_can_only_be_initialized_li[] = "Datum can only be initialized like 'Datum.from_*()'.";
static const char __pyx_k_Dynamic_Geodetic_Reference_Frame[] = "Dynamic Geodetic Reference Frame";
static const char __pyx_k_Dynamic_Vertical_Reference_Frame[] = "Dynamic Vertical Reference Frame";
static const char __pyx_k_Ellipsoid_can_only_be_initialize[] = "Ellipsoid can only be initialized like 'Ellipsoid.from_*()'.";
static const char __pyx_k_Invalid_coordinate_operation_nam[] = "Invalid coordinate operation name: {}";
static const char __pyx_k_Invalid_coordinate_operation_str[] = "Invalid coordinate operation string: {}";
static const char __pyx_k_Invalid_coordinate_system_string[] = "Invalid coordinate system string: {}";
static const char __pyx_k_Param_name_name_auth_name_auth_n[] = "Param(name={name}, auth_name={auth_name}, code={code}, value={value}, unit_name={unit_name}, unit_auth_name={unit_auth_name}, unit_code={unit_code}, unit_category={unit_category})";
static const char __pyx_k_PrimeMeridian_can_only_be_initia[] = "PrimeMeridian can only be initialized like 'PrimeMeridian.from_*()'.";
static const char __pyx_k_You_will_likely_lose_important_p[] = "You will likely lose important projection information when converting to a PROJ string from another format. See: https://proj.org/faq.html#what-is-the-best-format-for-describing-coordinate-reference-systems";
static const char __pyx_k_no_default___reduce___due_to_non[] = "no default __reduce__ due to non-trivial __cinit__";
static PyObject *__pyx_kp_u_;
static PyObject *__pyx_n_s_AreaOfUse;
static PyObject *__pyx_kp_u_AreaOfUse_name_name_west_west_so;
static PyObject *__pyx_n_s_Axis;
static PyObject *__pyx_kp_u_Axis_name_name_abbrev_abbrev_dir;
static PyObject *__pyx_n_s_Base;
static PyObject *__pyx_kp_u_Bound_CRS;
static PyObject *__pyx_n_u_CARTHAGE;
static PyObject *__pyx_n_s_CONCATENATED_OPERATION;
static PyObject *__pyx_n_s_CONVERSION;
static PyObject *__pyx_n_s_COORDINATE_OPERATION_TYPE_MAP;
static PyObject *__pyx_n_s_COORD_SYSTEM_TYPE_MAP;
static PyObject *__pyx_n_s_CRS;
static PyObject *__pyx_n_s_CRSError;
static PyObject *__pyx_n_s_CRSParts;
static PyObject *__pyx_n_u_CRS_2;
static PyObject *__pyx_n_s_CRS_TYPE_MAP;
static PyObject *__pyx_kp_u_CRS_to_authority_line_2700;
static PyObject *__pyx_kp_u_CRS_to_epsg_line_2657;
static PyObject *__pyx_n_u_Carthage;
static PyObject *__pyx_kp_u_Compound_CRS;
static PyObject *__pyx_kp_u_Concatenated_Operation;
static PyObject *__pyx_n_u_Conversion;
static PyObject *__pyx_n_s_CoordinateOperation;
static PyObject *__pyx_n_s_CoordinateOperationType;
static PyObject *__pyx_kp_u_CoordinateOperation_can_only_be;
static PyObject *__pyx_n_s_CoordinateSystem;
static PyObject *__pyx_kp_u_CoordinateSystem_is_not_initiali;
static PyObject *__pyx_kp_u_Coordinate_Operation_type_name;
static PyObject *__pyx_n_s_CustomEllipsoid;
static PyObject *__pyx_n_s_DATUM_ENSEMBLE;
static PyObject *__pyx_n_s_DATUM_NAME_MAP;
static PyObject *__pyx_n_s_DATUM_TYPE_MAP;
static PyObject *__pyx_n_s_DYNAMIC_GEODETIC_REFERENCE_FRAME;
static PyObject *__pyx_n_s_DYNAMIC_VERTICAL_REFERENCE_FRAME;
static PyObject *__pyx_n_s_Datum;
static PyObject *__pyx_n_s_DatumType;
static PyObject *__pyx_kp_u_Datum_Ensemble;
static PyObject *__pyx_kp_u_Datum_can_only_be_initialized_li;
static PyObject *__pyx_kp_u_Deutsches_Hauptdreiecksnetz;
static PyObject *__pyx_kp_u_Dynamic_Geodetic_Reference_Frame;
static PyObject *__pyx_kp_u_Dynamic_Vertical_Reference_Frame;
static PyObject *__pyx_n_u_EPSG;
static PyObject *__pyx_n_s_Ellipsoid;
static PyObject *__pyx_kp_u_Ellipsoid_can_only_be_initialize;
static PyObject *__pyx_kp_u_Engineering_CRS;
static PyObject *__pyx_n_s_GEODETIC_REFERENCE_FRAME;
static PyObject *__pyx_n_u_GGRS87;
static PyObject *__pyx_kp_u_Geocentric_CRS;
static PyObject *__pyx_kp_u_Geodetic_CRS;
static PyObject *__pyx_kp_u_Geodetic_Reference_Frame;
static PyObject *__pyx_kp_u_Geographic_2D_CRS;
static PyObject *__pyx_kp_u_Geographic_3D_CRS;
static PyObject *__pyx_kp_u_Geographic_CRS;
static PyObject *__pyx_kp_u_Greek_Geodetic_Reference_System;
static PyObject *__pyx_n_s_Grid;
static PyObject *__pyx_kp_u_Grid_short_name_short_name_full;
static PyObject *__pyx_n_u_HERMANNSKOGEL;
static PyObject *__pyx_kp_u_INDENTATION_WIDTH_0f;
static PyObject *__pyx_n_u_IRE65;
static PyObject *__pyx_kp_u_Input_is_not_a_CRS;
static PyObject *__pyx_kp_u_Invalid_JSON;
static PyObject *__pyx_kp_u_Invalid_authority_or_code_0_1;
static PyObject *__pyx_kp_u_Invalid_coordinate_operation_nam;
static PyObject *__pyx_kp_u_Invalid_coordinate_operation_str;
static PyObject *__pyx_kp_u_Invalid_coordinate_system_string;
static PyObject *__pyx_kp_u_Invalid_datum_name;
static PyObject *__pyx_kp_u_Invalid_datum_string;
static PyObject *__pyx_kp_u_Invalid_ellipsoid_name;
static PyObject *__pyx_kp_u_Invalid_ellipsoid_string;
static PyObject *__pyx_kp_u_Invalid_input_r;
static PyObject *__pyx_kp_u_Invalid_prime_meridian_name;
static PyObject *__pyx_kp_u_Invalid_prime_meridian_string;
static PyObject *__pyx_kp_u_Invalid_projection;
static PyObject *__pyx_n_s_KeyError;
static PyObject *__pyx_kp_b_MULTILINE_NO;
static PyObject *__pyx_kp_b_MULTILINE_YES;
static PyObject *__pyx_kp_u_Militar_Geographische_Institut;
static PyObject *__pyx_n_u_NAD27;
static PyObject *__pyx_n_u_NAD83;
static PyObject *__pyx_n_u_NZGD49;
static PyObject *__pyx_n_u_NaN;
static PyObject *__pyx_kp_u_New_Zealand_Geodetic_Datum_1949;
static PyObject *__pyx_kp_u_North_American_Datum_1927;
static PyObject *__pyx_kp_u_North_American_Datum_1983;
static PyObject *__pyx_n_u_OSGB36;
static PyObject *__pyx_kp_u_OSGB_1936;
static PyObject *__pyx_n_s_OTHER_COORDINATE_OPERATION;
static PyObject *__pyx_n_s_OrderedDict;
static PyObject *__pyx_kp_u_Other_CRS;
static PyObject *__pyx_kp_u_Other_Coordinate_Operation;
static PyObject *__pyx_n_s_PJ_COORDINATE_OPERATION_TYPE_MA;
static PyObject *__pyx_n_s_PJ_DATUM_TYPE_MAP;
static PyObject *__pyx_n_s_PJ_ELLPS_NAME_MAP;
static PyObject *__pyx_n_u_POTSDAM;
static PyObject *__pyx_n_u_PROJ;
static PyObject *__pyx_n_s_PROJ_4;
static PyObject *__pyx_n_s_PROJ_5;
static PyObject *__pyx_n_s_Param;
static PyObject *__pyx_kp_u_Param_name_name_auth_name_auth_n;
static PyObject *__pyx_n_s_PrimeMeridian;
static PyObject *__pyx_kp_u_PrimeMeridian_can_only_be_initia;
static PyObject *__pyx_n_s_ProjVersion;
static PyObject *__pyx_kp_u_Projected_CRS;
static PyObject *__pyx_kp_u_Return_the_EPSG_code_best_match;
static PyObject *__pyx_n_s_RuntimeError;
static PyObject *__pyx_kp_u_Scale_difference;
static PyObject *__pyx_n_u_TM65;
static PyObject *__pyx_n_s_TRANSFORMATION;
static PyObject *__pyx_kp_u_Temporal_CRS;
static PyObject *__pyx_n_u_Transformation;
static PyObject *__pyx_n_s_TypeError;
static PyObject *__pyx_n_u_Unknown;
static PyObject *__pyx_kp_u_Unknown_CRS;
static PyObject *__pyx_n_s_VERTICAL_REFERENCE_FRAME;
static PyObject *__pyx_n_s_ValueError;
static PyObject *__pyx_kp_u_Vertical_CRS;
static PyObject *__pyx_kp_u_Vertical_Reference_Frame;
static PyObject *__pyx_n_u_WGS84;
static PyObject *__pyx_n_s_WKT1_ESRI;
static PyObject *__pyx_n_s_WKT1_GDAL;
static PyObject *__pyx_n_s_WKT2_2015;
static PyObject *__pyx_n_s_WKT2_2015_SIMPLIFIED;
static PyObject *__pyx_n_s_WKT2_2018;
static PyObject *__pyx_n_s_WKT2_2018_SIMPLIFIED;
static PyObject *__pyx_n_s_WKT2_2019;
static PyObject *__pyx_n_s_WKT2_2019_SIMPLIFIED;
static PyObject *__pyx_n_s_WktVersion;
static PyObject *__pyx_kp_u_World_Geodetic_System_1984;
static PyObject *__pyx_kp_u_X_axis_rotation;
static PyObject *__pyx_kp_u_X_axis_translation;
static PyObject *__pyx_kp_u_Y_axis_rotation;
static PyObject *__pyx_kp_u_Y_axis_translation;
static PyObject *__pyx_kp_u_You_will_likely_lose_important_p;
static PyObject *__pyx_kp_u_Z_axis_rotation;
static PyObject *__pyx_kp_u_Z_axis_translation;
static PyObject *__pyx_kp_u__23;
static PyObject *__pyx_kp_u__24;
static PyObject *__pyx_n_u_a;
static PyObject *__pyx_n_s_abbrev;
static PyObject *__pyx_kp_u_abbrev_direction_name_unit_name;
static PyObject *__pyx_n_s_append;
static PyObject *__pyx_n_s_area_of_use;
static PyObject *__pyx_n_s_auth_code;
static PyObject *__pyx_n_s_auth_name;
static PyObject *__pyx_kp_u_auth_name_auth_code;
static PyObject *__pyx_n_s_available;
static PyObject *__pyx_n_s_axis_info;
static PyObject *__pyx_n_s_axis_list;
static PyObject *__pyx_n_u_b;
static PyObject *__pyx_n_s_bounds;
static PyObject *__pyx_n_u_cartesian;
static PyObject *__pyx_n_s_clear;
static PyObject *__pyx_n_s_cline_in_traceback;
static PyObject *__pyx_n_s_code;
static PyObject *__pyx_n_s_collections;
static PyObject *__pyx_n_s_context;
static PyObject *__pyx_n_s_coord_operation_pj;
static PyObject *__pyx_n_s_coordinate_operation_dict;
static PyObject *__pyx_n_s_coordinate_operation_json_str;
static PyObject *__pyx_n_s_coordinate_operation_name;
static PyObject *__pyx_n_s_coordinate_operation_pj;
static PyObject *__pyx_n_s_coordinate_operation_string;
static PyObject *__pyx_n_s_coordinate_operation_type;
static PyObject *__pyx_n_s_coordinate_system;
static PyObject *__pyx_n_s_coordinate_system_dict;
static PyObject *__pyx_n_s_coordinate_system_json_str;
static PyObject *__pyx_n_s_coordinate_system_pj;
static PyObject *__pyx_n_s_coordinate_system_string;
static PyObject *__pyx_n_s_create;
static PyObject *__pyx_n_s_crs_err;
static PyObject *__pyx_n_s_cstrencode;
static PyObject *__pyx_n_u_datetimetemporal;
static PyObject *__pyx_n_s_datum_dict;
static PyObject *__pyx_n_s_datum_json_str;
static PyObject *__pyx_n_s_datum_name;
static PyObject *__pyx_n_s_datum_pj;
static PyObject *__pyx_n_s_datum_string;
static PyObject *__pyx_n_s_datum_type;
static PyObject *__pyx_n_u_description;
static PyObject *__pyx_n_s_direct_download;
static PyObject *__pyx_n_s_direction;
static PyObject *__pyx_n_s_dumps;
static PyObject *__pyx_n_s_east;
static PyObject *__pyx_n_s_ellipsoid_dict;
static PyObject *__pyx_n_s_ellipsoid_json_str;
static PyObject *__pyx_n_s_ellipsoid_name;
static PyObject *__pyx_n_s_ellipsoid_params;
static PyObject *__pyx_n_s_ellipsoid_pj;
static PyObject *__pyx_n_s_ellipsoid_string;
static PyObject *__pyx_n_u_ellipsoidal;
static PyObject *__pyx_n_s_equals;
static PyObject *__pyx_n_s_format;
static PyObject *__pyx_n_s_from_authority;
static PyObject *__pyx_n_u_from_authority;
static PyObject *__pyx_n_s_from_epsg;
static PyObject *__pyx_n_u_from_epsg;
static PyObject *__pyx_n_s_from_json;
static PyObject *__pyx_n_s_from_json_dict;
static PyObject *__pyx_n_s_from_name;
static PyObject *__pyx_n_s_from_name_2;
static PyObject *__pyx_n_s_from_string;
static PyObject *__pyx_n_s_from_string_2;
static PyObject *__pyx_n_s_from_user_input;
static PyObject *__pyx_n_s_full_name;
static PyObject *__pyx_n_s_get;
static PyObject *__pyx_n_s_getstate;
static PyObject *__pyx_n_s_ignore_axis_order;
static PyObject *__pyx_n_s_import;
static PyObject *__pyx_n_s_in_proj_json;
static PyObject *__pyx_n_s_indentation;
static PyObject *__pyx_n_s_inverse_flattening;
static PyObject *__pyx_n_s_is_bound;
static PyObject *__pyx_n_s_is_crs_property;
static PyObject *__pyx_n_s_is_equivalent;
static PyObject *__pyx_n_s_is_exact_same;
static PyObject *__pyx_n_s_is_geocentric;
static PyObject *__pyx_n_u_is_geographic;
static PyObject *__pyx_n_s_is_proj;
static PyObject *__pyx_n_u_is_projected;
static PyObject *__pyx_n_u_is_vertical;
static PyObject *__pyx_n_s_is_wkt;
static PyObject *__pyx_n_s_items;
static PyObject *__pyx_n_s_json;
static PyObject *__pyx_n_s_load_proj_json;
static PyObject *__pyx_n_s_loads;
static PyObject *__pyx_n_s_main;
static PyObject *__pyx_n_s_method_name;
static PyObject *__pyx_n_s_min_confidence;
static PyObject *__pyx_n_s_name;
static PyObject *__pyx_n_s_name_2;
static PyObject *__pyx_kp_u_name_name_bounds_bounds;
static PyObject *__pyx_n_u_nan;
static PyObject *__pyx_kp_s_no_default___reduce___due_to_non;
static PyObject *__pyx_n_s_north;
static PyObject *__pyx_n_s_open_license;
static PyObject *__pyx_n_u_ordinal;
static PyObject *__pyx_n_s_other;
static PyObject *__pyx_n_s_package_name;
static PyObject *__pyx_n_u_parametric;
static PyObject *__pyx_n_s_params;
static PyObject *__pyx_n_s_pj_coordinate_operation_type;
static PyObject *__pyx_n_s_pj_datum_type;
static PyObject *__pyx_n_s_pj_ellps;
static PyObject *__pyx_n_s_pretty;
static PyObject *__pyx_n_s_prime_meridian_dict;
static PyObject *__pyx_n_s_prime_meridian_json_str;
static PyObject *__pyx_n_s_prime_meridian_name;
static PyObject *__pyx_n_s_prime_meridian_pj;
static PyObject *__pyx_n_s_prime_meridian_string;
static PyObject *__pyx_n_s_proj_string;
static PyObject *__pyx_n_s_property_name;
static PyObject *__pyx_n_s_property_types;
static PyObject *__pyx_n_s_pyproj__crs;
static PyObject *__pyx_kp_s_pyproj__crs_pyx;
static PyObject *__pyx_n_s_pyproj_compat;
static PyObject *__pyx_n_s_pyproj_crs_datum;
static PyObject *__pyx_n_s_pyproj_crs_enums;
static PyObject *__pyx_n_s_pyproj_enums;
static PyObject *__pyx_n_s_pyproj_exceptions;
static PyObject *__pyx_n_s_pyproj_geod;
static PyObject *__pyx_n_s_pystrdecode;
static PyObject *__pyx_n_s_pyx_vtable;
static PyObject *__pyx_n_s_range;
static PyObject *__pyx_n_s_re;
static PyObject *__pyx_n_s_reduce;
static PyObject *__pyx_n_s_reduce_cython;
static PyObject *__pyx_n_s_reduce_ex;
static PyObject *__pyx_n_s_replace;
static PyObject *__pyx_n_u_rf;
static PyObject *__pyx_n_s_semi_major_axis;
static PyObject *__pyx_n_s_semi_minor_axis;
static PyObject *__pyx_n_s_setstate;
static PyObject *__pyx_n_s_setstate_cython;
static PyObject *__pyx_n_s_short_name;
static PyObject *__pyx_n_s_source_crs;
static PyObject *__pyx_n_s_south;
static PyObject *__pyx_n_u_spherical;
static PyObject *__pyx_n_s_staticmethod;
static PyObject *__pyx_n_s_sub_crs_index;
static PyObject *__pyx_n_s_sub_crs_list;
static PyObject *__pyx_n_u_temporalcount;
static PyObject *__pyx_n_u_temporalmeasure;
static PyObject *__pyx_n_s_test;
static PyObject *__pyx_n_s_tmp_string;
static PyObject *__pyx_n_s_to_authority;
static PyObject *__pyx_n_s_to_json;
static PyObject *__pyx_n_u_to_json;
static PyObject *__pyx_n_s_to_wkt;
static PyObject *__pyx_n_s_type_name;
static PyObject *__pyx_n_u_undefined;
static PyObject *__pyx_kp_u_undefined_2;
static PyObject *__pyx_n_s_unit_auth_code;
static PyObject *__pyx_n_s_unit_auth_name;
static PyObject *__pyx_n_s_unit_category;
static PyObject *__pyx_n_s_unit_code;
static PyObject *__pyx_n_s_unit_name;
static PyObject *__pyx_n_u_unknown;
static PyObject *__pyx_n_s_upper;
static PyObject *__pyx_n_s_url;
static PyObject *__pyx_n_s_use_proj_alternative_grid_names;
static PyObject *__pyx_n_s_value;
static PyObject *__pyx_n_s_values;
static PyObject *__pyx_n_s_version;
static PyObject *__pyx_kp_u_versionadded_2_2_0_Return_the_a;
static PyObject *__pyx_n_u_vertical;
static PyObject *__pyx_n_s_warn;
static PyObject *__pyx_n_s_warnings;
static PyObject *__pyx_n_s_west;
static PyObject *__pyx_pf_6pyproj_4_crs_is_wkt(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_proj_string); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_2is_proj(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_proj_string); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_load_proj_json(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_in_proj_json); /* proto */
static int __pyx_pf_6pyproj_4_crs_4Axis___cinit__(struct __pyx_obj_6pyproj_4_crs_Axis *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Axis_2__str__(struct __pyx_obj_6pyproj_4_crs_Axis *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Axis_4__repr__(struct __pyx_obj_6pyproj_4_crs_Axis *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Axis_4name___get__(struct __pyx_obj_6pyproj_4_crs_Axis *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Axis_6abbrev___get__(struct __pyx_obj_6pyproj_4_crs_Axis *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Axis_9direction___get__(struct __pyx_obj_6pyproj_4_crs_Axis *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Axis_22unit_conversion_factor___get__(struct __pyx_obj_6pyproj_4_crs_Axis *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Axis_9unit_name___get__(struct __pyx_obj_6pyproj_4_crs_Axis *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Axis_14unit_auth_code___get__(struct __pyx_obj_6pyproj_4_crs_Axis *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Axis_9unit_code___get__(struct __pyx_obj_6pyproj_4_crs_Axis *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Axis_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_Axis *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Axis_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_Axis *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_6pyproj_4_crs_9AreaOfUse___cinit__(struct __pyx_obj_6pyproj_4_crs_AreaOfUse *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_9AreaOfUse_2__str__(struct __pyx_obj_6pyproj_4_crs_AreaOfUse *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_9AreaOfUse_4__repr__(struct __pyx_obj_6pyproj_4_crs_AreaOfUse *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_9AreaOfUse_6bounds___get__(struct __pyx_obj_6pyproj_4_crs_AreaOfUse *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_9AreaOfUse_4west___get__(struct __pyx_obj_6pyproj_4_crs_AreaOfUse *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_9AreaOfUse_5south___get__(struct __pyx_obj_6pyproj_4_crs_AreaOfUse *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_9AreaOfUse_4east___get__(struct __pyx_obj_6pyproj_4_crs_AreaOfUse *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_9AreaOfUse_5north___get__(struct __pyx_obj_6pyproj_4_crs_AreaOfUse *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_9AreaOfUse_4name___get__(struct __pyx_obj_6pyproj_4_crs_AreaOfUse *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_9AreaOfUse_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_AreaOfUse *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_9AreaOfUse_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_AreaOfUse *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_6pyproj_4_crs_4Base___cinit__(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self); /* proto */
static void __pyx_pf_6pyproj_4_crs_4Base_2__dealloc__(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Base_7remarks___get__(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Base_5scope___get__(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Base_4to_wkt(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self, PyObject *__pyx_v_version, PyObject *__pyx_v_pretty); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Base_6to_json(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self, PyObject *__pyx_v_pretty, PyObject *__pyx_v_indentation); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Base_8to_json_dict(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Base_10__str__(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Base_12__repr__(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Base_14_is_exact_same(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self, struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Base_16_is_equivalent(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self, struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Base_18__eq__(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Base_20is_exact_same(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Base_4name___get__(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Base_8_remarks___get__(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Base_6_scope___get__(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Base_22__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Base_24__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_9_CRSParts_from_user_input(PyTypeObject *__pyx_v_cls, PyObject *__pyx_v_user_input); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_9_CRSParts_2__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs__CRSParts *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_9_CRSParts_4__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs__CRSParts *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_6pyproj_4_crs_16CoordinateSystem___cinit__(struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *__pyx_v_self); /* proto */
static int __pyx_pf_6pyproj_4_crs_16CoordinateSystem_2__init__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_16CoordinateSystem_9axis_list___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_16CoordinateSystem_4from_string(PyObject *__pyx_v_coordinate_system_string); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_16CoordinateSystem_6from_json_dict(PyObject *__pyx_v_coordinate_system_dict); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_16CoordinateSystem_8from_json(PyObject *__pyx_v_coordinate_system_json_str); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_16CoordinateSystem_10_axis_list___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_16CoordinateSystem_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_16CoordinateSystem_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_6pyproj_4_crs_9Ellipsoid___cinit__(struct __pyx_obj_6pyproj_4_crs_Ellipsoid *__pyx_v_self); /* proto */
static int __pyx_pf_6pyproj_4_crs_9Ellipsoid_2__init__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_Ellipsoid *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_9Ellipsoid_4from_authority(PyObject *__pyx_v_auth_name, PyObject *__pyx_v_code); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_9Ellipsoid_6from_epsg(PyObject *__pyx_v_code); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_9Ellipsoid_8_from_string(PyObject *__pyx_v_ellipsoid_string); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_9Ellipsoid_10from_string(PyObject *__pyx_v_ellipsoid_string); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_9Ellipsoid_12from_json_dict(PyObject *__pyx_v_ellipsoid_dict); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_9Ellipsoid_14from_json(PyObject *__pyx_v_ellipsoid_json_str); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_9Ellipsoid_16_from_name(PyObject *__pyx_v_ellipsoid_name, PyObject *__pyx_v_auth_name); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_9Ellipsoid_18from_name(PyObject *__pyx_v_ellipsoid_name, PyObject *__pyx_v_auth_name); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_9Ellipsoid_16semi_major_metre___get__(struct __pyx_obj_6pyproj_4_crs_Ellipsoid *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_9Ellipsoid_16semi_minor_metre___get__(struct __pyx_obj_6pyproj_4_crs_Ellipsoid *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_9Ellipsoid_22is_semi_minor_computed___get__(struct __pyx_obj_6pyproj_4_crs_Ellipsoid *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_9Ellipsoid_18inverse_flattening___get__(struct __pyx_obj_6pyproj_4_crs_Ellipsoid *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_9Ellipsoid_20__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_Ellipsoid *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_9Ellipsoid_22__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_Ellipsoid *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_6pyproj_4_crs_13PrimeMeridian___cinit__(struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *__pyx_v_self); /* proto */
static int __pyx_pf_6pyproj_4_crs_13PrimeMeridian_2__init__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_13PrimeMeridian_4from_authority(PyObject *__pyx_v_auth_name, PyObject *__pyx_v_code); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_13PrimeMeridian_6from_epsg(PyObject *__pyx_v_code); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_13PrimeMeridian_8_from_string(PyObject *__pyx_v_prime_meridian_string); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_13PrimeMeridian_10from_string(PyObject *__pyx_v_prime_meridian_string); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_13PrimeMeridian_12from_json_dict(PyObject *__pyx_v_prime_meridian_dict); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_13PrimeMeridian_14from_json(PyObject *__pyx_v_prime_meridian_json_str); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_13PrimeMeridian_16from_name(PyObject *__pyx_v_prime_meridian_name, PyObject *__pyx_v_auth_name); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_13PrimeMeridian_9longitude___get__(struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_13PrimeMeridian_22unit_conversion_factor___get__(struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_13PrimeMeridian_9unit_name___get__(struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_13PrimeMeridian_18__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_13PrimeMeridian_20__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_6pyproj_4_crs_5Datum___cinit__(struct __pyx_obj_6pyproj_4_crs_Datum *__pyx_v_self); /* proto */
static int __pyx_pf_6pyproj_4_crs_5Datum_2__init__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_Datum *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_4from_authority(PyObject *__pyx_v_auth_name, PyObject *__pyx_v_code); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_6from_epsg(PyObject *__pyx_v_code); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_8_from_string(PyObject *__pyx_v_datum_string); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_10from_string(PyObject *__pyx_v_datum_string); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_12_from_name(PyObject *__pyx_v_datum_name, PyObject *__pyx_v_auth_name, PyObject *__pyx_v_datum_type); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_14from_name(PyObject *__pyx_v_datum_name, PyObject *__pyx_v_auth_name, PyObject *__pyx_v_datum_type); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_16from_json_dict(PyObject *__pyx_v_datum_dict); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_18from_json(PyObject *__pyx_v_datum_json_str); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_9ellipsoid___get__(struct __pyx_obj_6pyproj_4_crs_Datum *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_14prime_meridian___get__(struct __pyx_obj_6pyproj_4_crs_Datum *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_9type_name___get__(struct __pyx_obj_6pyproj_4_crs_Datum *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_10_ellipsoid___get__(struct __pyx_obj_6pyproj_4_crs_Datum *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_15_prime_meridian___get__(struct __pyx_obj_6pyproj_4_crs_Datum *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_20__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_Datum *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_22__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_Datum *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_6pyproj_4_crs_5Param___cinit__(struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_5Param_2__str__(struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_5Param_4__repr__(struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_5Param_4name___get__(struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_5Param_9auth_name___get__(struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_5Param_4code___get__(struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_5Param_5value___get__(struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_5Param_22unit_conversion_factor___get__(struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_5Param_9unit_name___get__(struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_5Param_14unit_auth_name___get__(struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_5Param_9unit_code___get__(struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_5Param_13unit_category___get__(struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_5Param_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_5Param_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_6pyproj_4_crs_4Grid___cinit__(struct __pyx_obj_6pyproj_4_crs_Grid *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Grid_2__str__(struct __pyx_obj_6pyproj_4_crs_Grid *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Grid_4__repr__(struct __pyx_obj_6pyproj_4_crs_Grid *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Grid_10short_name___get__(struct __pyx_obj_6pyproj_4_crs_Grid *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Grid_9full_name___get__(struct __pyx_obj_6pyproj_4_crs_Grid *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Grid_12package_name___get__(struct __pyx_obj_6pyproj_4_crs_Grid *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Grid_3url___get__(struct __pyx_obj_6pyproj_4_crs_Grid *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Grid_15direct_download___get__(struct __pyx_obj_6pyproj_4_crs_Grid *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Grid_12open_license___get__(struct __pyx_obj_6pyproj_4_crs_Grid *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Grid_9available___get__(struct __pyx_obj_6pyproj_4_crs_Grid *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Grid_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_Grid *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4Grid_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_Grid *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_6pyproj_4_crs_19CoordinateOperation___cinit__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self); /* proto */
static int __pyx_pf_6pyproj_4_crs_19CoordinateOperation_2__init__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_4from_authority(PyObject *__pyx_v_auth_name, PyObject *__pyx_v_code, PyObject *__pyx_v_use_proj_alternative_grid_names); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_6from_epsg(PyObject *__pyx_v_code, PyObject *__pyx_v_use_proj_alternative_grid_names); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_8_from_string(PyObject *__pyx_v_coordinate_operation_string); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_10from_string(PyObject *__pyx_v_coordinate_operation_string); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_12from_json_dict(PyObject *__pyx_v_coordinate_operation_dict); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_14from_json(PyObject *__pyx_v_coordinate_operation_json_str); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_16from_name(PyObject *__pyx_v_coordinate_operation_name, PyObject *__pyx_v_auth_name, PyObject *__pyx_v_coordinate_operation_type); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_6params___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_5grids___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_11area_of_use___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_18to_proj4(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self, PyObject *__pyx_v_version); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_7towgs84___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_10operations___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_20__repr__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_7_params___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_6_grids___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_12_area_of_use___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_11method_name___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_16method_auth_name___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_11method_code___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_8accuracy___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_15is_instantiable___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_27has_ballpark_transformation___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_8_towgs84___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_11_operations___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_9type_name___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_22__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_24__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_6pyproj_4_crs_4_CRS___cinit__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static int __pyx_pf_6pyproj_4_crs_4_CRS_2__init__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self, PyObject *__pyx_v_proj_string); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_9axis_info___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_11area_of_use___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_9ellipsoid___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_14prime_meridian___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_5datum___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_17coordinate_system___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_20coordinate_operation___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_10source_crs___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_10target_crs___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_12sub_crs_list___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_12geodetic_crs___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_4to_proj4(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self, PyObject *__pyx_v_version); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_6to_epsg(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self, PyObject *__pyx_v_min_confidence); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_8to_authority(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self, PyObject *__pyx_v_auth_name, PyObject *__pyx_v_min_confidence); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_10_is_crs_property(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self, PyObject *__pyx_v_property_name, PyObject *__pyx_v_property_types, PyObject *__pyx_v_sub_crs_index); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_13is_geographic___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_12is_projected___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_11is_vertical___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_8is_bound___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_14is_engineering___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_13is_geocentric___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_12_equals(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self, struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_other, int __pyx_v_ignore_axis_order); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_14equals(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self, PyObject *__pyx_v_other, PyObject *__pyx_v_ignore_axis_order); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_3srs___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_9type_name___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_10_ellipsoid___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_12_area_of_use___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_15_prime_meridian___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_6_datum___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_13_sub_crs_list___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_11_source_crs___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_11_target_crs___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_13_geodetic_crs___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_18_coordinate_system___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_21_coordinate_operation___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_tp_new_6pyproj_4_crs_Axis(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_6pyproj_4_crs_AreaOfUse(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_6pyproj_4_crs_Base(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_6pyproj_4_crs__CRSParts(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_6pyproj_4_crs_Ellipsoid(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_6pyproj_4_crs_PrimeMeridian(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_6pyproj_4_crs_Datum(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_6pyproj_4_crs_CoordinateSystem(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_6pyproj_4_crs_Param(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_6pyproj_4_crs_Grid(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_6pyproj_4_crs_CoordinateOperation(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_6pyproj_4_crs__CRS(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_int_0;
static PyObject *__pyx_int_1;
static PyObject *__pyx_int_2;
static PyObject *__pyx_int_70;
static PyObject *__pyx_k__2;
static PyObject *__pyx_k__7;
static PyObject *__pyx_k__22;
static PyObject *__pyx_k__33;
static PyObject *__pyx_k__34;
static PyObject *__pyx_k__45;
static PyObject *__pyx_tuple__3;
static PyObject *__pyx_tuple__4;
static PyObject *__pyx_tuple__5;
static PyObject *__pyx_tuple__6;
static PyObject *__pyx_tuple__8;
static PyObject *__pyx_tuple__9;
static PyObject *__pyx_tuple__10;
static PyObject *__pyx_tuple__11;
static PyObject *__pyx_tuple__12;
static PyObject *__pyx_tuple__13;
static PyObject *__pyx_tuple__14;
static PyObject *__pyx_tuple__15;
static PyObject *__pyx_tuple__16;
static PyObject *__pyx_tuple__17;
static PyObject *__pyx_tuple__18;
static PyObject *__pyx_tuple__19;
static PyObject *__pyx_tuple__20;
static PyObject *__pyx_tuple__21;
static PyObject *__pyx_tuple__25;
static PyObject *__pyx_tuple__26;
static PyObject *__pyx_tuple__27;
static PyObject *__pyx_tuple__28;
static PyObject *__pyx_tuple__29;
static PyObject *__pyx_tuple__30;
static PyObject *__pyx_tuple__31;
static PyObject *__pyx_tuple__32;
static PyObject *__pyx_tuple__35;
static PyObject *__pyx_tuple__36;
static PyObject *__pyx_tuple__37;
static PyObject *__pyx_tuple__38;
static PyObject *__pyx_tuple__39;
static PyObject *__pyx_tuple__40;
static PyObject *__pyx_tuple__41;
static PyObject *__pyx_tuple__42;
static PyObject *__pyx_tuple__43;
static PyObject *__pyx_tuple__44;
static PyObject *__pyx_tuple__46;
static PyObject *__pyx_tuple__47;
static PyObject *__pyx_tuple__48;
static PyObject *__pyx_tuple__50;
static PyObject *__pyx_tuple__52;
static PyObject *__pyx_tuple__54;
static PyObject *__pyx_tuple__56;
static PyObject *__pyx_tuple__58;
static PyObject *__pyx_tuple__60;
static PyObject *__pyx_tuple__62;
static PyObject *__pyx_tuple__64;
static PyObject *__pyx_tuple__66;
static PyObject *__pyx_tuple__68;
static PyObject *__pyx_tuple__70;
static PyObject *__pyx_tuple__72;
static PyObject *__pyx_tuple__74;
static PyObject *__pyx_tuple__76;
static PyObject *__pyx_tuple__78;
static PyObject *__pyx_tuple__80;
static PyObject *__pyx_tuple__82;
static PyObject *__pyx_tuple__84;
static PyObject *__pyx_tuple__86;
static PyObject *__pyx_tuple__88;
static PyObject *__pyx_tuple__90;
static PyObject *__pyx_tuple__92;
static PyObject *__pyx_tuple__94;
static PyObject *__pyx_tuple__96;
static PyObject *__pyx_tuple__98;
static PyObject *__pyx_tuple__100;
static PyObject *__pyx_tuple__102;
static PyObject *__pyx_tuple__104;
static PyObject *__pyx_tuple__106;
static PyObject *__pyx_tuple__108;
static PyObject *__pyx_tuple__110;
static PyObject *__pyx_tuple__112;
static PyObject *__pyx_tuple__114;
static PyObject *__pyx_tuple__116;
static PyObject *__pyx_tuple__118;
static PyObject *__pyx_codeobj__49;
static PyObject *__pyx_codeobj__51;
static PyObject *__pyx_codeobj__53;
static PyObject *__pyx_codeobj__55;
static PyObject *__pyx_codeobj__57;
static PyObject *__pyx_codeobj__59;
static PyObject *__pyx_codeobj__61;
static PyObject *__pyx_codeobj__63;
static PyObject *__pyx_codeobj__65;
static PyObject *__pyx_codeobj__67;
static PyObject *__pyx_codeobj__69;
static PyObject *__pyx_codeobj__71;
static PyObject *__pyx_codeobj__73;
static PyObject *__pyx_codeobj__75;
static PyObject *__pyx_codeobj__77;
static PyObject *__pyx_codeobj__79;
static PyObject *__pyx_codeobj__81;
static PyObject *__pyx_codeobj__83;
static PyObject *__pyx_codeobj__85;
static PyObject *__pyx_codeobj__87;
static PyObject *__pyx_codeobj__89;
static PyObject *__pyx_codeobj__91;
static PyObject *__pyx_codeobj__93;
static PyObject *__pyx_codeobj__95;
static PyObject *__pyx_codeobj__97;
static PyObject *__pyx_codeobj__99;
static PyObject *__pyx_codeobj__101;
static PyObject *__pyx_codeobj__103;
static PyObject *__pyx_codeobj__105;
static PyObject *__pyx_codeobj__107;
static PyObject *__pyx_codeobj__109;
static PyObject *__pyx_codeobj__111;
static PyObject *__pyx_codeobj__113;
static PyObject *__pyx_codeobj__115;
static PyObject *__pyx_codeobj__117;
static PyObject *__pyx_codeobj__119;
/* Late includes */

/* "pyproj/_crs.pyx":22
 * 
 * 
 * cdef cstrdecode(const char *instring):             # <<<<<<<<<<<<<<
 *     if instring != NULL:
 *         return pystrdecode(instring)
 */

static PyObject *__pyx_f_6pyproj_4_crs_cstrdecode(char const *__pyx_v_instring) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("cstrdecode", 0);

  /* "pyproj/_crs.pyx":23
 * 
 * cdef cstrdecode(const char *instring):
 *     if instring != NULL:             # <<<<<<<<<<<<<<
 *         return pystrdecode(instring)
 *     return None
 */
  __pyx_t_1 = ((__pyx_v_instring != NULL) != 0);
  if (__pyx_t_1) {

    /* "pyproj/_crs.pyx":24
 * cdef cstrdecode(const char *instring):
 *     if instring != NULL:
 *         return pystrdecode(instring)             # <<<<<<<<<<<<<<
 *     return None
 * 
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pystrdecode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyBytes_FromString(__pyx_v_instring); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_3, function);
      }
    }
    __pyx_t_2 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":23
 * 
 * cdef cstrdecode(const char *instring):
 *     if instring != NULL:             # <<<<<<<<<<<<<<
 *         return pystrdecode(instring)
 *     return None
 */
  }

  /* "pyproj/_crs.pyx":25
 *     if instring != NULL:
 *         return pystrdecode(instring)
 *     return None             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":22
 * 
 * 
 * cdef cstrdecode(const char *instring):             # <<<<<<<<<<<<<<
 *     if instring != NULL:
 *         return pystrdecode(instring)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs.cstrdecode", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":28
 * 
 * 
 * cdef decode_or_undefined(const char* instring):             # <<<<<<<<<<<<<<
 *     pystr = cstrdecode(instring)
 *     if pystr is None:
 */

static PyObject *__pyx_f_6pyproj_4_crs_decode_or_undefined(char const *__pyx_v_instring) {
  PyObject *__pyx_v_pystr = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("decode_or_undefined", 0);

  /* "pyproj/_crs.pyx":29
 * 
 * cdef decode_or_undefined(const char* instring):
 *     pystr = cstrdecode(instring)             # <<<<<<<<<<<<<<
 *     if pystr is None:
 *         return "undefined"
 */
  __pyx_t_1 = __pyx_f_6pyproj_4_crs_cstrdecode(__pyx_v_instring); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_pystr = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":30
 * cdef decode_or_undefined(const char* instring):
 *     pystr = cstrdecode(instring)
 *     if pystr is None:             # <<<<<<<<<<<<<<
 *         return "undefined"
 *     return pystr
 */
  __pyx_t_2 = (__pyx_v_pystr == Py_None);
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "pyproj/_crs.pyx":31
 *     pystr = cstrdecode(instring)
 *     if pystr is None:
 *         return "undefined"             # <<<<<<<<<<<<<<
 *     return pystr
 * 
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_n_u_undefined);
    __pyx_r = __pyx_n_u_undefined;
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":30
 * cdef decode_or_undefined(const char* instring):
 *     pystr = cstrdecode(instring)
 *     if pystr is None:             # <<<<<<<<<<<<<<
 *         return "undefined"
 *     return pystr
 */
  }

  /* "pyproj/_crs.pyx":32
 *     if pystr is None:
 *         return "undefined"
 *     return pystr             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_pystr);
  __pyx_r = __pyx_v_pystr;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":28
 * 
 * 
 * cdef decode_or_undefined(const char* instring):             # <<<<<<<<<<<<<<
 *     pystr = cstrdecode(instring)
 *     if pystr is None:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.decode_or_undefined", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pystr);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":35
 * 
 * 
 * def is_wkt(proj_string):             # <<<<<<<<<<<<<<
 *     """
 *     .. versionadded:: 2.0.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_1is_wkt(PyObject *__pyx_self, PyObject *__pyx_v_proj_string); /*proto*/
static char __pyx_doc_6pyproj_4_crs_is_wkt[] = "is_wkt(proj_string)\n\n    .. versionadded:: 2.0.0\n\n    Check if the input projection string is in the Well-Known Text format.\n\n    Parameters\n    ----------\n    proj_string: str\n        The projection string.\n\n    Returns\n    -------\n    bool: True if the string is in the Well-Known Text format\n    ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_1is_wkt = {"is_wkt", (PyCFunction)__pyx_pw_6pyproj_4_crs_1is_wkt, METH_O, __pyx_doc_6pyproj_4_crs_is_wkt};
static PyObject *__pyx_pw_6pyproj_4_crs_1is_wkt(PyObject *__pyx_self, PyObject *__pyx_v_proj_string) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_wkt (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_is_wkt(__pyx_self, ((PyObject *)__pyx_v_proj_string));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_is_wkt(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_proj_string) {
  PyObject *__pyx_v_tmp_string = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  char const *__pyx_t_4;
  __Pyx_RefNannySetupContext("is_wkt", 0);

  /* "pyproj/_crs.pyx":50
 *     bool: True if the string is in the Well-Known Text format
 *     """
 *     tmp_string = cstrencode(proj_string)             # <<<<<<<<<<<<<<
 *     return proj_context_guess_wkt_dialect(NULL, tmp_string) != PJ_GUESSED_NOT_WKT
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cstrencode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 50, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_v_proj_string) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_proj_string);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 50, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_tmp_string = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":51
 *     """
 *     tmp_string = cstrencode(proj_string)
 *     return proj_context_guess_wkt_dialect(NULL, tmp_string) != PJ_GUESSED_NOT_WKT             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = __Pyx_PyObject_AsString(__pyx_v_tmp_string); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 51, __pyx_L1_error)
  __pyx_t_1 = __Pyx_PyBool_FromLong((proj_context_guess_wkt_dialect(NULL, __pyx_t_4) != PJ_GUESSED_NOT_WKT)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 51, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":35
 * 
 * 
 * def is_wkt(proj_string):             # <<<<<<<<<<<<<<
 *     """
 *     .. versionadded:: 2.0.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("pyproj._crs.is_wkt", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_tmp_string);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":54
 * 
 * 
 * def is_proj(proj_string):             # <<<<<<<<<<<<<<
 *     """
 *     .. versionadded:: 2.2.2
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_3is_proj(PyObject *__pyx_self, PyObject *__pyx_v_proj_string); /*proto*/
static char __pyx_doc_6pyproj_4_crs_2is_proj[] = "is_proj(proj_string)\n\n    .. versionadded:: 2.2.2\n\n    Check if the input projection string is in the PROJ format.\n\n    Parameters\n    ----------\n    proj_string: str\n        The projection string.\n\n    Returns\n    -------\n    bool: True if the string is in the PROJ format\n    ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_3is_proj = {"is_proj", (PyCFunction)__pyx_pw_6pyproj_4_crs_3is_proj, METH_O, __pyx_doc_6pyproj_4_crs_2is_proj};
static PyObject *__pyx_pw_6pyproj_4_crs_3is_proj(PyObject *__pyx_self, PyObject *__pyx_v_proj_string) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_proj (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_2is_proj(__pyx_self, ((PyObject *)__pyx_v_proj_string));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_2is_proj(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_proj_string) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("is_proj", 0);

  /* "pyproj/_crs.pyx":69
 *     bool: True if the string is in the PROJ format
 *     """
 *     return not is_wkt(proj_string) and "=" in proj_string             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_is_wkt); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 69, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_v_proj_string) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_proj_string);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 69, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 69, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_6 = (!__pyx_t_5);
  if (__pyx_t_6) {
  } else {
    __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 69, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L3_bool_binop_done;
  }
  __pyx_t_6 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u_, __pyx_v_proj_string, Py_EQ)); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 69, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 69, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __pyx_t_2;
  __pyx_t_2 = 0;
  __pyx_L3_bool_binop_done:;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":54
 * 
 * 
 * def is_proj(proj_string):             # <<<<<<<<<<<<<<
 *     """
 *     .. versionadded:: 2.2.2
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("pyproj._crs.is_proj", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":72
 * 
 * 
 * cdef _to_wkt(             # <<<<<<<<<<<<<<
 *     PJ_CONTEXT* context,
 *     PJ* projobj,
 */

static PyObject *__pyx_f_6pyproj_4_crs__to_wkt(PJ_CONTEXT *__pyx_v_context, PJ *__pyx_v_projobj, struct __pyx_opt_args_6pyproj_4_crs__to_wkt *__pyx_optional_args) {
  PyObject *__pyx_v_version = __pyx_k__2;

  /* "pyproj/_crs.pyx":76
 *     PJ* projobj,
 *     version=WktVersion.WKT2_2019,
 *     pretty=False             # <<<<<<<<<<<<<<
 * ):
 *     """
 */
  PyObject *__pyx_v_pretty = ((PyObject *)Py_False);
  PyObject *__pyx_v_supported_wkt_types = NULL;
  PJ_WKT_TYPE __pyx_v_wkt_out_type;
  char const *__pyx_v_options_wkt[2];
  PyObject *__pyx_v_multiline = NULL;
  char const *__pyx_v_proj_string;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PJ_WKT_TYPE __pyx_t_4;
  int __pyx_t_5;
  char const *__pyx_t_6;
  __Pyx_RefNannySetupContext("_to_wkt", 0);
  if (__pyx_optional_args) {
    if (__pyx_optional_args->__pyx_n > 0) {
      __pyx_v_version = __pyx_optional_args->version;
      if (__pyx_optional_args->__pyx_n > 1) {
        __pyx_v_pretty = __pyx_optional_args->pretty;
      }
    }
  }

  /* "pyproj/_crs.pyx":94
 *     # get the output WKT format
 *     supported_wkt_types = {
 *         WktVersion.WKT2_2015: PJ_WKT2_2015,             # <<<<<<<<<<<<<<
 *         WktVersion.WKT2_2015_SIMPLIFIED: PJ_WKT2_2015_SIMPLIFIED,
 *         WktVersion.WKT2_2018: PJ_WKT2_2018,
 */
  __pyx_t_1 = __Pyx_PyDict_NewPresized(8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 94, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_WktVersion); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 94, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_WKT2_2015); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 94, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyInt_From_PJ_WKT_TYPE(PJ_WKT2_2015); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 94, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_t_2) < 0) __PYX_ERR(0, 94, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":95
 *     supported_wkt_types = {
 *         WktVersion.WKT2_2015: PJ_WKT2_2015,
 *         WktVersion.WKT2_2015_SIMPLIFIED: PJ_WKT2_2015_SIMPLIFIED,             # <<<<<<<<<<<<<<
 *         WktVersion.WKT2_2018: PJ_WKT2_2018,
 *         WktVersion.WKT2_2018_SIMPLIFIED: PJ_WKT2_2018_SIMPLIFIED,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_WktVersion); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 95, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_WKT2_2015_SIMPLIFIED); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 95, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyInt_From_PJ_WKT_TYPE(PJ_WKT2_2015_SIMPLIFIED); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 95, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_t_2) < 0) __PYX_ERR(0, 94, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":96
 *         WktVersion.WKT2_2015: PJ_WKT2_2015,
 *         WktVersion.WKT2_2015_SIMPLIFIED: PJ_WKT2_2015_SIMPLIFIED,
 *         WktVersion.WKT2_2018: PJ_WKT2_2018,             # <<<<<<<<<<<<<<
 *         WktVersion.WKT2_2018_SIMPLIFIED: PJ_WKT2_2018_SIMPLIFIED,
 *         WktVersion.WKT2_2019: PJ_WKT2_2018,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_WktVersion); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 96, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_WKT2_2018); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 96, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyInt_From_PJ_WKT_TYPE(PJ_WKT2_2018); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 96, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_t_2) < 0) __PYX_ERR(0, 94, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":97
 *         WktVersion.WKT2_2015_SIMPLIFIED: PJ_WKT2_2015_SIMPLIFIED,
 *         WktVersion.WKT2_2018: PJ_WKT2_2018,
 *         WktVersion.WKT2_2018_SIMPLIFIED: PJ_WKT2_2018_SIMPLIFIED,             # <<<<<<<<<<<<<<
 *         WktVersion.WKT2_2019: PJ_WKT2_2018,
 *         WktVersion.WKT2_2019_SIMPLIFIED: PJ_WKT2_2018_SIMPLIFIED,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_WktVersion); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 97, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_WKT2_2018_SIMPLIFIED); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 97, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyInt_From_PJ_WKT_TYPE(PJ_WKT2_2018_SIMPLIFIED); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 97, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_t_2) < 0) __PYX_ERR(0, 94, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":98
 *         WktVersion.WKT2_2018: PJ_WKT2_2018,
 *         WktVersion.WKT2_2018_SIMPLIFIED: PJ_WKT2_2018_SIMPLIFIED,
 *         WktVersion.WKT2_2019: PJ_WKT2_2018,             # <<<<<<<<<<<<<<
 *         WktVersion.WKT2_2019_SIMPLIFIED: PJ_WKT2_2018_SIMPLIFIED,
 *         WktVersion.WKT1_GDAL: PJ_WKT1_GDAL,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_WktVersion); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 98, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_WKT2_2019); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 98, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyInt_From_PJ_WKT_TYPE(PJ_WKT2_2018); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 98, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_t_2) < 0) __PYX_ERR(0, 94, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":99
 *         WktVersion.WKT2_2018_SIMPLIFIED: PJ_WKT2_2018_SIMPLIFIED,
 *         WktVersion.WKT2_2019: PJ_WKT2_2018,
 *         WktVersion.WKT2_2019_SIMPLIFIED: PJ_WKT2_2018_SIMPLIFIED,             # <<<<<<<<<<<<<<
 *         WktVersion.WKT1_GDAL: PJ_WKT1_GDAL,
 *         WktVersion.WKT1_ESRI: PJ_WKT1_ESRI
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_WktVersion); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 99, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_WKT2_2019_SIMPLIFIED); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 99, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyInt_From_PJ_WKT_TYPE(PJ_WKT2_2018_SIMPLIFIED); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 99, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_t_2) < 0) __PYX_ERR(0, 94, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":100
 *         WktVersion.WKT2_2019: PJ_WKT2_2018,
 *         WktVersion.WKT2_2019_SIMPLIFIED: PJ_WKT2_2018_SIMPLIFIED,
 *         WktVersion.WKT1_GDAL: PJ_WKT1_GDAL,             # <<<<<<<<<<<<<<
 *         WktVersion.WKT1_ESRI: PJ_WKT1_ESRI
 *     }
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_WktVersion); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_WKT1_GDAL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyInt_From_PJ_WKT_TYPE(PJ_WKT1_GDAL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_t_2) < 0) __PYX_ERR(0, 94, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":101
 *         WktVersion.WKT2_2019_SIMPLIFIED: PJ_WKT2_2018_SIMPLIFIED,
 *         WktVersion.WKT1_GDAL: PJ_WKT1_GDAL,
 *         WktVersion.WKT1_ESRI: PJ_WKT1_ESRI             # <<<<<<<<<<<<<<
 *     }
 *     cdef PJ_WKT_TYPE wkt_out_type
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_WktVersion); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 101, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_WKT1_ESRI); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 101, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyInt_From_PJ_WKT_TYPE(PJ_WKT1_ESRI); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 101, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_t_2) < 0) __PYX_ERR(0, 94, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_supported_wkt_types = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":104
 *     }
 *     cdef PJ_WKT_TYPE wkt_out_type
 *     wkt_out_type = supported_wkt_types[WktVersion.create(version)]             # <<<<<<<<<<<<<<
 * 
 *     cdef const char* options_wkt[2]
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_WktVersion); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 104, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_create); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 104, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_v_version) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_version);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 104, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyDict_GetItem(__pyx_v_supported_wkt_types, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 104, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = ((PJ_WKT_TYPE)__Pyx_PyInt_As_PJ_WKT_TYPE(__pyx_t_3)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 104, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_wkt_out_type = __pyx_t_4;

  /* "pyproj/_crs.pyx":107
 * 
 *     cdef const char* options_wkt[2]
 *     multiline = b"MULTILINE=NO"             # <<<<<<<<<<<<<<
 *     if pretty:
 *         multiline = b"MULTILINE=YES"
 */
  __Pyx_INCREF(__pyx_kp_b_MULTILINE_NO);
  __pyx_v_multiline = __pyx_kp_b_MULTILINE_NO;

  /* "pyproj/_crs.pyx":108
 *     cdef const char* options_wkt[2]
 *     multiline = b"MULTILINE=NO"
 *     if pretty:             # <<<<<<<<<<<<<<
 *         multiline = b"MULTILINE=YES"
 *     options_wkt[0] = multiline
 */
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_v_pretty); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 108, __pyx_L1_error)
  if (__pyx_t_5) {

    /* "pyproj/_crs.pyx":109
 *     multiline = b"MULTILINE=NO"
 *     if pretty:
 *         multiline = b"MULTILINE=YES"             # <<<<<<<<<<<<<<
 *     options_wkt[0] = multiline
 *     options_wkt[1] = NULL
 */
    __Pyx_INCREF(__pyx_kp_b_MULTILINE_YES);
    __Pyx_DECREF_SET(__pyx_v_multiline, __pyx_kp_b_MULTILINE_YES);

    /* "pyproj/_crs.pyx":108
 *     cdef const char* options_wkt[2]
 *     multiline = b"MULTILINE=NO"
 *     if pretty:             # <<<<<<<<<<<<<<
 *         multiline = b"MULTILINE=YES"
 *     options_wkt[0] = multiline
 */
  }

  /* "pyproj/_crs.pyx":110
 *     if pretty:
 *         multiline = b"MULTILINE=YES"
 *     options_wkt[0] = multiline             # <<<<<<<<<<<<<<
 *     options_wkt[1] = NULL
 *     cdef const char* proj_string
 */
  __pyx_t_6 = __Pyx_PyBytes_AsString(__pyx_v_multiline); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) __PYX_ERR(0, 110, __pyx_L1_error)
  (__pyx_v_options_wkt[0]) = __pyx_t_6;

  /* "pyproj/_crs.pyx":111
 *         multiline = b"MULTILINE=YES"
 *     options_wkt[0] = multiline
 *     options_wkt[1] = NULL             # <<<<<<<<<<<<<<
 *     cdef const char* proj_string
 *     proj_string = proj_as_wkt(
 */
  (__pyx_v_options_wkt[1]) = NULL;

  /* "pyproj/_crs.pyx":113
 *     options_wkt[1] = NULL
 *     cdef const char* proj_string
 *     proj_string = proj_as_wkt(             # <<<<<<<<<<<<<<
 *         context,
 *         projobj,
 */
  __pyx_v_proj_string = proj_as_wkt(__pyx_v_context, __pyx_v_projobj, __pyx_v_wkt_out_type, __pyx_v_options_wkt);

  /* "pyproj/_crs.pyx":119
 *         options_wkt,
 *     )
 *     CRSError.clear()             # <<<<<<<<<<<<<<
 *     return cstrdecode(proj_string)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 119, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_clear); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 119, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_1)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_1);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_1) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_1) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 119, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":120
 *     )
 *     CRSError.clear()
 *     return cstrdecode(proj_string)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __pyx_f_6pyproj_4_crs_cstrdecode(__pyx_v_proj_string); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 120, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":72
 * 
 * 
 * cdef _to_wkt(             # <<<<<<<<<<<<<<
 *     PJ_CONTEXT* context,
 *     PJ* projobj,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("pyproj._crs._to_wkt", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_supported_wkt_types);
  __Pyx_XDECREF(__pyx_v_multiline);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":123
 * 
 * 
 * cdef _to_proj4(PJ_CONTEXT* context, PJ* projobj, version):             # <<<<<<<<<<<<<<
 *     """
 *     Convert the projection to a PROJ string.
 */

static PyObject *__pyx_f_6pyproj_4_crs__to_proj4(PJ_CONTEXT *__pyx_v_context, PJ *__pyx_v_projobj, PyObject *__pyx_v_version) {
  PyObject *__pyx_v_supported_prj_types = NULL;
  PJ_PROJ_STRING_TYPE __pyx_v_proj_out_type;
  char const *__pyx_v_proj_string;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PJ_PROJ_STRING_TYPE __pyx_t_4;
  __Pyx_RefNannySetupContext("_to_proj4", 0);

  /* "pyproj/_crs.pyx":140
 *     # get the output PROJ string format
 *     supported_prj_types = {
 *         ProjVersion.PROJ_4: PJ_PROJ_4,             # <<<<<<<<<<<<<<
 *         ProjVersion.PROJ_5: PJ_PROJ_5,
 *     }
 */
  __pyx_t_1 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ProjVersion); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_PROJ_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyInt_From_PJ_PROJ_STRING_TYPE(PJ_PROJ_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_t_2) < 0) __PYX_ERR(0, 140, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":141
 *     supported_prj_types = {
 *         ProjVersion.PROJ_4: PJ_PROJ_4,
 *         ProjVersion.PROJ_5: PJ_PROJ_5,             # <<<<<<<<<<<<<<
 *     }
 *     cdef PJ_PROJ_STRING_TYPE proj_out_type
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ProjVersion); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 141, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_PROJ_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 141, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyInt_From_PJ_PROJ_STRING_TYPE(PJ_PROJ_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 141, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_t_2) < 0) __PYX_ERR(0, 140, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_supported_prj_types = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":144
 *     }
 *     cdef PJ_PROJ_STRING_TYPE proj_out_type
 *     proj_out_type = supported_prj_types[ProjVersion.create(version)]             # <<<<<<<<<<<<<<
 * 
 *     # convert projection to string
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ProjVersion); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_create); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_v_version) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_version);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyDict_GetItem(__pyx_v_supported_prj_types, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = ((PJ_PROJ_STRING_TYPE)__Pyx_PyInt_As_PJ_PROJ_STRING_TYPE(__pyx_t_3)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 144, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_proj_out_type = __pyx_t_4;

  /* "pyproj/_crs.pyx":148
 *     # convert projection to string
 *     cdef const char* proj_string
 *     proj_string = proj_as_proj_string(             # <<<<<<<<<<<<<<
 *         context,
 *         projobj,
 */
  __pyx_v_proj_string = proj_as_proj_string(__pyx_v_context, __pyx_v_projobj, __pyx_v_proj_out_type, NULL);

  /* "pyproj/_crs.pyx":154
 *         NULL,
 *     )
 *     CRSError.clear()             # <<<<<<<<<<<<<<
 *     return cstrdecode(proj_string)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 154, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_clear); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 154, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_1)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_1);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_3 = (__pyx_t_1) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_1) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 154, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":155
 *     )
 *     CRSError.clear()
 *     return cstrdecode(proj_string)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __pyx_f_6pyproj_4_crs_cstrdecode(__pyx_v_proj_string); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 155, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":123
 * 
 * 
 * cdef _to_proj4(PJ_CONTEXT* context, PJ* projobj, version):             # <<<<<<<<<<<<<<
 *     """
 *     Convert the projection to a PROJ string.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("pyproj._crs._to_proj4", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_supported_prj_types);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":158
 * 
 * 
 * cdef _get_concatenated_operations(PJ_CONTEXT*context, PJ*concatenated_operation):             # <<<<<<<<<<<<<<
 *     """
 *     For a PJ* of type concatenated operation, get the operations
 */

static PyObject *__pyx_f_6pyproj_4_crs__get_concatenated_operations(PJ_CONTEXT *__pyx_v_context, PJ *__pyx_v_concatenated_operation) {
  int __pyx_v_step_count;
  PJ *__pyx_v_operation;
  PJ_CONTEXT *__pyx_v_sub_context;
  int __pyx_v_iii;
  PyObject *__pyx_v_operations = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  __Pyx_RefNannySetupContext("_get_concatenated_operations", 0);

  /* "pyproj/_crs.pyx":162
 *     For a PJ* of type concatenated operation, get the operations
 *     """
 *     cdef int step_count = proj_concatoperation_get_step_count(             # <<<<<<<<<<<<<<
 *         context,
 *         concatenated_operation,
 */
  __pyx_v_step_count = proj_concatoperation_get_step_count(__pyx_v_context, __pyx_v_concatenated_operation);

  /* "pyproj/_crs.pyx":166
 *         concatenated_operation,
 *     )
 *     cdef PJ* operation = NULL             # <<<<<<<<<<<<<<
 *     cdef PJ_CONTEXT* sub_context = NULL
 *     cdef int iii = 0
 */
  __pyx_v_operation = NULL;

  /* "pyproj/_crs.pyx":167
 *     )
 *     cdef PJ* operation = NULL
 *     cdef PJ_CONTEXT* sub_context = NULL             # <<<<<<<<<<<<<<
 *     cdef int iii = 0
 *     operations = []
 */
  __pyx_v_sub_context = NULL;

  /* "pyproj/_crs.pyx":168
 *     cdef PJ* operation = NULL
 *     cdef PJ_CONTEXT* sub_context = NULL
 *     cdef int iii = 0             # <<<<<<<<<<<<<<
 *     operations = []
 *     for iii in range(step_count):
 */
  __pyx_v_iii = 0;

  /* "pyproj/_crs.pyx":169
 *     cdef PJ_CONTEXT* sub_context = NULL
 *     cdef int iii = 0
 *     operations = []             # <<<<<<<<<<<<<<
 *     for iii in range(step_count):
 *         sub_context = proj_context_create()
 */
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 169, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_operations = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":170
 *     cdef int iii = 0
 *     operations = []
 *     for iii in range(step_count):             # <<<<<<<<<<<<<<
 *         sub_context = proj_context_create()
 *         pyproj_context_initialize(sub_context, True)
 */
  __pyx_t_2 = __pyx_v_step_count;
  __pyx_t_3 = __pyx_t_2;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_iii = __pyx_t_4;

    /* "pyproj/_crs.pyx":171
 *     operations = []
 *     for iii in range(step_count):
 *         sub_context = proj_context_create()             # <<<<<<<<<<<<<<
 *         pyproj_context_initialize(sub_context, True)
 *         operation = proj_concatoperation_get_step(
 */
    __pyx_v_sub_context = proj_context_create();

    /* "pyproj/_crs.pyx":172
 *     for iii in range(step_count):
 *         sub_context = proj_context_create()
 *         pyproj_context_initialize(sub_context, True)             # <<<<<<<<<<<<<<
 *         operation = proj_concatoperation_get_step(
 *             sub_context,
 */
    __pyx_f_6pyproj_8_datadir_pyproj_context_initialize(__pyx_v_sub_context, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 172, __pyx_L1_error)

    /* "pyproj/_crs.pyx":173
 *         sub_context = proj_context_create()
 *         pyproj_context_initialize(sub_context, True)
 *         operation = proj_concatoperation_get_step(             # <<<<<<<<<<<<<<
 *             sub_context,
 *             concatenated_operation,
 */
    __pyx_v_operation = proj_concatoperation_get_step(__pyx_v_sub_context, __pyx_v_concatenated_operation, __pyx_v_iii);

    /* "pyproj/_crs.pyx":178
 *             iii,
 *         )
 *         operations.append(CoordinateOperation.create(sub_context, operation))             # <<<<<<<<<<<<<<
 *     CRSError.clear()
 *     return tuple(operations)
 */
    __pyx_t_1 = ((PyObject *)__pyx_f_6pyproj_4_crs_19CoordinateOperation_create(__pyx_v_sub_context, __pyx_v_operation)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 178, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_operations, __pyx_t_1); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 178, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyproj/_crs.pyx":179
 *         )
 *         operations.append(CoordinateOperation.create(sub_context, operation))
 *     CRSError.clear()             # <<<<<<<<<<<<<<
 *     return tuple(operations)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 179, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_clear); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 179, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_7, function);
    }
  }
  __pyx_t_1 = (__pyx_t_6) ? __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_6) : __Pyx_PyObject_CallNoArg(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 179, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":180
 *         operations.append(CoordinateOperation.create(sub_context, operation))
 *     CRSError.clear()
 *     return tuple(operations)             # <<<<<<<<<<<<<<
 * 
 * cdef PJ * _from_name(
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyList_AsTuple(__pyx_v_operations); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":158
 * 
 * 
 * cdef _get_concatenated_operations(PJ_CONTEXT*context, PJ*concatenated_operation):             # <<<<<<<<<<<<<<
 *     """
 *     For a PJ* of type concatenated operation, get the operations
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("pyproj._crs._get_concatenated_operations", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_operations);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":182
 *     return tuple(operations)
 * 
 * cdef PJ * _from_name(             # <<<<<<<<<<<<<<
 *         PJ_CONTEXT* context,
 *         name_string,
 */

static PJ *__pyx_f_6pyproj_4_crs__from_name(PJ_CONTEXT *__pyx_v_context, PyObject *__pyx_v_name_string, PyObject *__pyx_v_auth_name, PJ_TYPE __pyx_v_pj_type) {
  PJ_TYPE __pyx_v_pj_types[1];
  char *__pyx_v_c_auth_name;
  PyObject *__pyx_v_b_auth_name = NULL;
  PJ_OBJ_LIST *__pyx_v_pj_list;
  PJ *__pyx_v_datum_pj;
  PJ *__pyx_r;
  __Pyx_RefNannyDeclarations
  PJ_TYPE __pyx_t_1[1];
  int __pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  char *__pyx_t_7;
  char const *__pyx_t_8;
  __Pyx_RefNannySetupContext("_from_name", 0);

  /* "pyproj/_crs.pyx":207
 *         PJ *
 *         """
 *         cdef PJ_TYPE[1] pj_types = [pj_type]             # <<<<<<<<<<<<<<
 *         cdef char* c_auth_name = NULL
 *         if auth_name is not None:
 */
  __pyx_t_1[0] = __pyx_v_pj_type;
  memcpy(&(__pyx_v_pj_types[0]), __pyx_t_1, sizeof(__pyx_v_pj_types[0]) * (1));

  /* "pyproj/_crs.pyx":208
 *         """
 *         cdef PJ_TYPE[1] pj_types = [pj_type]
 *         cdef char* c_auth_name = NULL             # <<<<<<<<<<<<<<
 *         if auth_name is not None:
 *             b_auth_name = cstrencode(auth_name)
 */
  __pyx_v_c_auth_name = NULL;

  /* "pyproj/_crs.pyx":209
 *         cdef PJ_TYPE[1] pj_types = [pj_type]
 *         cdef char* c_auth_name = NULL
 *         if auth_name is not None:             # <<<<<<<<<<<<<<
 *             b_auth_name = cstrencode(auth_name)
 *             c_auth_name = b_auth_name
 */
  __pyx_t_2 = (__pyx_v_auth_name != Py_None);
  __pyx_t_3 = (__pyx_t_2 != 0);
  if (__pyx_t_3) {

    /* "pyproj/_crs.pyx":210
 *         cdef char* c_auth_name = NULL
 *         if auth_name is not None:
 *             b_auth_name = cstrencode(auth_name)             # <<<<<<<<<<<<<<
 *             c_auth_name = b_auth_name
 * 
 */
    __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cstrencode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 210, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_v_auth_name) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_auth_name);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 210, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_v_b_auth_name = __pyx_t_4;
    __pyx_t_4 = 0;

    /* "pyproj/_crs.pyx":211
 *         if auth_name is not None:
 *             b_auth_name = cstrencode(auth_name)
 *             c_auth_name = b_auth_name             # <<<<<<<<<<<<<<
 * 
 *         cdef PJ_OBJ_LIST *pj_list = proj_create_from_name(
 */
    __pyx_t_7 = __Pyx_PyObject_AsWritableString(__pyx_v_b_auth_name); if (unlikely((!__pyx_t_7) && PyErr_Occurred())) __PYX_ERR(0, 211, __pyx_L1_error)
    __pyx_v_c_auth_name = __pyx_t_7;

    /* "pyproj/_crs.pyx":209
 *         cdef PJ_TYPE[1] pj_types = [pj_type]
 *         cdef char* c_auth_name = NULL
 *         if auth_name is not None:             # <<<<<<<<<<<<<<
 *             b_auth_name = cstrencode(auth_name)
 *             c_auth_name = b_auth_name
 */
  }

  /* "pyproj/_crs.pyx":216
 *             context,
 *             c_auth_name,
 *             cstrencode(name_string),             # <<<<<<<<<<<<<<
 *             <PJ_TYPE*>&pj_types,
 *             1,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_cstrencode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 216, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_5, function);
    }
  }
  __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_v_name_string) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_name_string);
  __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 216, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_8 = __Pyx_PyObject_AsString(__pyx_t_4); if (unlikely((!__pyx_t_8) && PyErr_Occurred())) __PYX_ERR(0, 216, __pyx_L1_error)

  /* "pyproj/_crs.pyx":213
 *             c_auth_name = b_auth_name
 * 
 *         cdef PJ_OBJ_LIST *pj_list = proj_create_from_name(             # <<<<<<<<<<<<<<
 *             context,
 *             c_auth_name,
 */
  __pyx_v_pj_list = proj_create_from_name(__pyx_v_context, __pyx_v_c_auth_name, __pyx_t_8, ((PJ_TYPE *)(&__pyx_v_pj_types)), 1, 0, 1, NULL);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "pyproj/_crs.pyx":223
 *             NULL,
 *         )
 *         if pj_list == NULL or proj_list_get_count(pj_list) <= 0:             # <<<<<<<<<<<<<<
 *             proj_list_destroy(pj_list)
 *             return NULL
 */
  __pyx_t_2 = ((__pyx_v_pj_list == NULL) != 0);
  if (!__pyx_t_2) {
  } else {
    __pyx_t_3 = __pyx_t_2;
    goto __pyx_L5_bool_binop_done;
  }
  __pyx_t_2 = ((proj_list_get_count(__pyx_v_pj_list) <= 0) != 0);
  __pyx_t_3 = __pyx_t_2;
  __pyx_L5_bool_binop_done:;
  if (__pyx_t_3) {

    /* "pyproj/_crs.pyx":224
 *         )
 *         if pj_list == NULL or proj_list_get_count(pj_list) <= 0:
 *             proj_list_destroy(pj_list)             # <<<<<<<<<<<<<<
 *             return NULL
 *         cdef PJ* datum_pj = proj_list_get(context, pj_list, 0)
 */
    proj_list_destroy(__pyx_v_pj_list);

    /* "pyproj/_crs.pyx":225
 *         if pj_list == NULL or proj_list_get_count(pj_list) <= 0:
 *             proj_list_destroy(pj_list)
 *             return NULL             # <<<<<<<<<<<<<<
 *         cdef PJ* datum_pj = proj_list_get(context, pj_list, 0)
 *         proj_list_destroy(pj_list)
 */
    __pyx_r = NULL;
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":223
 *             NULL,
 *         )
 *         if pj_list == NULL or proj_list_get_count(pj_list) <= 0:             # <<<<<<<<<<<<<<
 *             proj_list_destroy(pj_list)
 *             return NULL
 */
  }

  /* "pyproj/_crs.pyx":226
 *             proj_list_destroy(pj_list)
 *             return NULL
 *         cdef PJ* datum_pj = proj_list_get(context, pj_list, 0)             # <<<<<<<<<<<<<<
 *         proj_list_destroy(pj_list)
 *         return datum_pj
 */
  __pyx_v_datum_pj = proj_list_get(__pyx_v_context, __pyx_v_pj_list, 0);

  /* "pyproj/_crs.pyx":227
 *             return NULL
 *         cdef PJ* datum_pj = proj_list_get(context, pj_list, 0)
 *         proj_list_destroy(pj_list)             # <<<<<<<<<<<<<<
 *         return datum_pj
 * 
 */
  proj_list_destroy(__pyx_v_pj_list);

  /* "pyproj/_crs.pyx":228
 *         cdef PJ* datum_pj = proj_list_get(context, pj_list, 0)
 *         proj_list_destroy(pj_list)
 *         return datum_pj             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_r = __pyx_v_datum_pj;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":182
 *     return tuple(operations)
 * 
 * cdef PJ * _from_name(             # <<<<<<<<<<<<<<
 *         PJ_CONTEXT* context,
 *         name_string,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_WriteUnraisable("pyproj._crs._from_name", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_b_auth_name);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":231
 * 
 * 
 * def _load_proj_json(in_proj_json):             # <<<<<<<<<<<<<<
 *     try:
 *         return json.loads(in_proj_json)
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5_load_proj_json(PyObject *__pyx_self, PyObject *__pyx_v_in_proj_json); /*proto*/
static char __pyx_doc_6pyproj_4_crs_4_load_proj_json[] = "_load_proj_json(in_proj_json)";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_5_load_proj_json = {"_load_proj_json", (PyCFunction)__pyx_pw_6pyproj_4_crs_5_load_proj_json, METH_O, __pyx_doc_6pyproj_4_crs_4_load_proj_json};
static PyObject *__pyx_pw_6pyproj_4_crs_5_load_proj_json(PyObject *__pyx_self, PyObject *__pyx_v_in_proj_json) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_load_proj_json (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_load_proj_json(__pyx_self, ((PyObject *)__pyx_v_in_proj_json));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_load_proj_json(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_in_proj_json) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  __Pyx_RefNannySetupContext("_load_proj_json", 0);

  /* "pyproj/_crs.pyx":232
 * 
 * def _load_proj_json(in_proj_json):
 *     try:             # <<<<<<<<<<<<<<
 *         return json.loads(in_proj_json)
 *     except ValueError:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "pyproj/_crs.pyx":233
 * def _load_proj_json(in_proj_json):
 *     try:
 *         return json.loads(in_proj_json)             # <<<<<<<<<<<<<<
 *     except ValueError:
 *         raise CRSError("Invalid JSON")
 */
      __Pyx_XDECREF(__pyx_r);
      __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_json); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 233, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_loads); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 233, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_t_5 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_6))) {
        __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6);
        if (likely(__pyx_t_5)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
          __Pyx_INCREF(__pyx_t_5);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_6, function);
        }
      }
      __pyx_t_4 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_5, __pyx_v_in_proj_json) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_v_in_proj_json);
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 233, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L7_try_return;

      /* "pyproj/_crs.pyx":232
 * 
 * def _load_proj_json(in_proj_json):
 *     try:             # <<<<<<<<<<<<<<
 *         return json.loads(in_proj_json)
 *     except ValueError:
 */
    }
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "pyproj/_crs.pyx":234
 *     try:
 *         return json.loads(in_proj_json)
 *     except ValueError:             # <<<<<<<<<<<<<<
 *         raise CRSError("Invalid JSON")
 * 
 */
    __pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError);
    if (__pyx_t_7) {
      __Pyx_AddTraceback("pyproj._crs._load_proj_json", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_6, &__pyx_t_5) < 0) __PYX_ERR(0, 234, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_GOTREF(__pyx_t_5);

      /* "pyproj/_crs.pyx":235
 *         return json.loads(in_proj_json)
 *     except ValueError:
 *         raise CRSError("Invalid JSON")             # <<<<<<<<<<<<<<
 * 
 * 
 */
      __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 235, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_10 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) {
        __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_9);
        if (likely(__pyx_t_10)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9);
          __Pyx_INCREF(__pyx_t_10);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_9, function);
        }
      }
      __pyx_t_8 = (__pyx_t_10) ? __Pyx_PyObject_Call2Args(__pyx_t_9, __pyx_t_10, __pyx_kp_u_Invalid_JSON) : __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_kp_u_Invalid_JSON);
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 235, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __Pyx_Raise(__pyx_t_8, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      __PYX_ERR(0, 235, __pyx_L5_except_error)
    }
    goto __pyx_L5_except_error;
    __pyx_L5_except_error:;

    /* "pyproj/_crs.pyx":232
 * 
 * def _load_proj_json(in_proj_json):
 *     try:             # <<<<<<<<<<<<<<
 *         return json.loads(in_proj_json)
 *     except ValueError:
 */
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L7_try_return:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L0;
  }

  /* "pyproj/_crs.pyx":231
 * 
 * 
 * def _load_proj_json(in_proj_json):             # <<<<<<<<<<<<<<
 *     try:
 *         return json.loads(in_proj_json)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("pyproj._crs._load_proj_json", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":255
 * 
 *     """
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self.name = "undefined"
 *         self.abbrev = "undefined"
 */

/* Python wrapper */
static int __pyx_pw_6pyproj_4_crs_4Axis_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_6pyproj_4_crs_4Axis_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1;
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Axis___cinit__(((struct __pyx_obj_6pyproj_4_crs_Axis *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6pyproj_4_crs_4Axis___cinit__(struct __pyx_obj_6pyproj_4_crs_Axis *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  double __pyx_t_1;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "pyproj/_crs.pyx":256
 *     """
 *     def __cinit__(self):
 *         self.name = "undefined"             # <<<<<<<<<<<<<<
 *         self.abbrev = "undefined"
 *         self.direction = "undefined"
 */
  __Pyx_INCREF(__pyx_n_u_undefined);
  __Pyx_GIVEREF(__pyx_n_u_undefined);
  __Pyx_GOTREF(__pyx_v_self->name);
  __Pyx_DECREF(__pyx_v_self->name);
  __pyx_v_self->name = __pyx_n_u_undefined;

  /* "pyproj/_crs.pyx":257
 *     def __cinit__(self):
 *         self.name = "undefined"
 *         self.abbrev = "undefined"             # <<<<<<<<<<<<<<
 *         self.direction = "undefined"
 *         self.unit_conversion_factor = float("NaN")
 */
  __Pyx_INCREF(__pyx_n_u_undefined);
  __Pyx_GIVEREF(__pyx_n_u_undefined);
  __Pyx_GOTREF(__pyx_v_self->abbrev);
  __Pyx_DECREF(__pyx_v_self->abbrev);
  __pyx_v_self->abbrev = __pyx_n_u_undefined;

  /* "pyproj/_crs.pyx":258
 *         self.name = "undefined"
 *         self.abbrev = "undefined"
 *         self.direction = "undefined"             # <<<<<<<<<<<<<<
 *         self.unit_conversion_factor = float("NaN")
 *         self.unit_name = "undefined"
 */
  __Pyx_INCREF(__pyx_n_u_undefined);
  __Pyx_GIVEREF(__pyx_n_u_undefined);
  __Pyx_GOTREF(__pyx_v_self->direction);
  __Pyx_DECREF(__pyx_v_self->direction);
  __pyx_v_self->direction = __pyx_n_u_undefined;

  /* "pyproj/_crs.pyx":259
 *         self.abbrev = "undefined"
 *         self.direction = "undefined"
 *         self.unit_conversion_factor = float("NaN")             # <<<<<<<<<<<<<<
 *         self.unit_name = "undefined"
 *         self.unit_auth_code = "undefined"
 */
  __pyx_t_1 = __Pyx_PyObject_AsDouble(__pyx_n_u_NaN); if (unlikely(__pyx_t_1 == ((double)((double)-1)) && PyErr_Occurred())) __PYX_ERR(0, 259, __pyx_L1_error)
  __pyx_v_self->unit_conversion_factor = __pyx_t_1;

  /* "pyproj/_crs.pyx":260
 *         self.direction = "undefined"
 *         self.unit_conversion_factor = float("NaN")
 *         self.unit_name = "undefined"             # <<<<<<<<<<<<<<
 *         self.unit_auth_code = "undefined"
 *         self.unit_code = "undefined"
 */
  __Pyx_INCREF(__pyx_n_u_undefined);
  __Pyx_GIVEREF(__pyx_n_u_undefined);
  __Pyx_GOTREF(__pyx_v_self->unit_name);
  __Pyx_DECREF(__pyx_v_self->unit_name);
  __pyx_v_self->unit_name = __pyx_n_u_undefined;

  /* "pyproj/_crs.pyx":261
 *         self.unit_conversion_factor = float("NaN")
 *         self.unit_name = "undefined"
 *         self.unit_auth_code = "undefined"             # <<<<<<<<<<<<<<
 *         self.unit_code = "undefined"
 * 
 */
  __Pyx_INCREF(__pyx_n_u_undefined);
  __Pyx_GIVEREF(__pyx_n_u_undefined);
  __Pyx_GOTREF(__pyx_v_self->unit_auth_code);
  __Pyx_DECREF(__pyx_v_self->unit_auth_code);
  __pyx_v_self->unit_auth_code = __pyx_n_u_undefined;

  /* "pyproj/_crs.pyx":262
 *         self.unit_name = "undefined"
 *         self.unit_auth_code = "undefined"
 *         self.unit_code = "undefined"             # <<<<<<<<<<<<<<
 * 
 *     def __str__(self):
 */
  __Pyx_INCREF(__pyx_n_u_undefined);
  __Pyx_GIVEREF(__pyx_n_u_undefined);
  __Pyx_GOTREF(__pyx_v_self->unit_code);
  __Pyx_DECREF(__pyx_v_self->unit_code);
  __pyx_v_self->unit_code = __pyx_n_u_undefined;

  /* "pyproj/_crs.pyx":255
 * 
 *     """
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self.name = "undefined"
 *         self.abbrev = "undefined"
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyproj._crs.Axis.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":264
 *         self.unit_code = "undefined"
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return "{abbrev}[{direction}]: {name} ({unit_name})".format(
 *             name=self.name,
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Axis_3__str__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4Axis_3__str__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Axis_2__str__(((struct __pyx_obj_6pyproj_4_crs_Axis *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Axis_2__str__(struct __pyx_obj_6pyproj_4_crs_Axis *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__str__", 0);

  /* "pyproj/_crs.pyx":265
 * 
 *     def __str__(self):
 *         return "{abbrev}[{direction}]: {name} ({unit_name})".format(             # <<<<<<<<<<<<<<
 *             name=self.name,
 *             direction=self.direction,
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_abbrev_direction_name_unit_name, __pyx_n_s_format); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);

  /* "pyproj/_crs.pyx":266
 *     def __str__(self):
 *         return "{abbrev}[{direction}]: {name} ({unit_name})".format(
 *             name=self.name,             # <<<<<<<<<<<<<<
 *             direction=self.direction,
 *             abbrev=self.abbrev,
 */
  __pyx_t_2 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 266, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_name, __pyx_v_self->name) < 0) __PYX_ERR(0, 266, __pyx_L1_error)

  /* "pyproj/_crs.pyx":267
 *         return "{abbrev}[{direction}]: {name} ({unit_name})".format(
 *             name=self.name,
 *             direction=self.direction,             # <<<<<<<<<<<<<<
 *             abbrev=self.abbrev,
 *             unit_name=self.unit_name,
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_direction, __pyx_v_self->direction) < 0) __PYX_ERR(0, 266, __pyx_L1_error)

  /* "pyproj/_crs.pyx":268
 *             name=self.name,
 *             direction=self.direction,
 *             abbrev=self.abbrev,             # <<<<<<<<<<<<<<
 *             unit_name=self.unit_name,
 *         )
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_abbrev, __pyx_v_self->abbrev) < 0) __PYX_ERR(0, 266, __pyx_L1_error)

  /* "pyproj/_crs.pyx":269
 *             direction=self.direction,
 *             abbrev=self.abbrev,
 *             unit_name=self.unit_name,             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_unit_name, __pyx_v_self->unit_name) < 0) __PYX_ERR(0, 266, __pyx_L1_error)

  /* "pyproj/_crs.pyx":265
 * 
 *     def __str__(self):
 *         return "{abbrev}[{direction}]: {name} ({unit_name})".format(             # <<<<<<<<<<<<<<
 *             name=self.name,
 *             direction=self.direction,
 */
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":264
 *         self.unit_code = "undefined"
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return "{abbrev}[{direction}]: {name} ({unit_name})".format(
 *             name=self.name,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("pyproj._crs.Axis.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":272
 *         )
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return ("Axis(name={name}, abbrev={abbrev}, direction={direction}, "
 *                 "unit_auth_code={unit_auth_code}, unit_code={unit_code}, "
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Axis_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4Axis_5__repr__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Axis_4__repr__(((struct __pyx_obj_6pyproj_4_crs_Axis *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Axis_4__repr__(struct __pyx_obj_6pyproj_4_crs_Axis *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "pyproj/_crs.pyx":273
 * 
 *     def __repr__(self):
 *         return ("Axis(name={name}, abbrev={abbrev}, direction={direction}, "             # <<<<<<<<<<<<<<
 *                 "unit_auth_code={unit_auth_code}, unit_code={unit_code}, "
 *                 "unit_name={unit_name})").format(
 */
  __Pyx_XDECREF(__pyx_r);

  /* "pyproj/_crs.pyx":275
 *         return ("Axis(name={name}, abbrev={abbrev}, direction={direction}, "
 *                 "unit_auth_code={unit_auth_code}, unit_code={unit_code}, "
 *                 "unit_name={unit_name})").format(             # <<<<<<<<<<<<<<
 *             name=self.name,
 *             abbrev=self.abbrev,
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_Axis_name_name_abbrev_abbrev_dir, __pyx_n_s_format); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);

  /* "pyproj/_crs.pyx":276
 *                 "unit_auth_code={unit_auth_code}, unit_code={unit_code}, "
 *                 "unit_name={unit_name})").format(
 *             name=self.name,             # <<<<<<<<<<<<<<
 *             abbrev=self.abbrev,
 *             direction=self.direction,
 */
  __pyx_t_2 = __Pyx_PyDict_NewPresized(6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 276, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_name, __pyx_v_self->name) < 0) __PYX_ERR(0, 276, __pyx_L1_error)

  /* "pyproj/_crs.pyx":277
 *                 "unit_name={unit_name})").format(
 *             name=self.name,
 *             abbrev=self.abbrev,             # <<<<<<<<<<<<<<
 *             direction=self.direction,
 *             unit_name=self.unit_name,
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_abbrev, __pyx_v_self->abbrev) < 0) __PYX_ERR(0, 276, __pyx_L1_error)

  /* "pyproj/_crs.pyx":278
 *             name=self.name,
 *             abbrev=self.abbrev,
 *             direction=self.direction,             # <<<<<<<<<<<<<<
 *             unit_name=self.unit_name,
 *             unit_auth_code=self.unit_auth_code,
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_direction, __pyx_v_self->direction) < 0) __PYX_ERR(0, 276, __pyx_L1_error)

  /* "pyproj/_crs.pyx":279
 *             abbrev=self.abbrev,
 *             direction=self.direction,
 *             unit_name=self.unit_name,             # <<<<<<<<<<<<<<
 *             unit_auth_code=self.unit_auth_code,
 *             unit_code=self.unit_code,
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_unit_name, __pyx_v_self->unit_name) < 0) __PYX_ERR(0, 276, __pyx_L1_error)

  /* "pyproj/_crs.pyx":280
 *             direction=self.direction,
 *             unit_name=self.unit_name,
 *             unit_auth_code=self.unit_auth_code,             # <<<<<<<<<<<<<<
 *             unit_code=self.unit_code,
 *         )
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_unit_auth_code, __pyx_v_self->unit_auth_code) < 0) __PYX_ERR(0, 276, __pyx_L1_error)

  /* "pyproj/_crs.pyx":281
 *             unit_name=self.unit_name,
 *             unit_auth_code=self.unit_auth_code,
 *             unit_code=self.unit_code,             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_unit_code, __pyx_v_self->unit_code) < 0) __PYX_ERR(0, 276, __pyx_L1_error)

  /* "pyproj/_crs.pyx":275
 *         return ("Axis(name={name}, abbrev={abbrev}, direction={direction}, "
 *                 "unit_auth_code={unit_auth_code}, unit_code={unit_code}, "
 *                 "unit_name={unit_name})").format(             # <<<<<<<<<<<<<<
 *             name=self.name,
 *             abbrev=self.abbrev,
 */
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":272
 *         )
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return ("Axis(name={name}, abbrev={abbrev}, direction={direction}, "
 *                 "unit_auth_code={unit_auth_code}, unit_code={unit_code}, "
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("pyproj._crs.Axis.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":285
 * 
 *     @staticmethod
 *     cdef Axis create(PJ_CONTEXT* context, PJ* projobj, int index):             # <<<<<<<<<<<<<<
 *         cdef Axis axis_info = Axis()
 *         cdef const char * name = NULL
 */

static struct __pyx_obj_6pyproj_4_crs_Axis *__pyx_f_6pyproj_4_crs_4Axis_create(PJ_CONTEXT *__pyx_v_context, PJ *__pyx_v_projobj, int __pyx_v_index) {
  struct __pyx_obj_6pyproj_4_crs_Axis *__pyx_v_axis_info = 0;
  char const *__pyx_v_name;
  char const *__pyx_v_abbrev;
  char const *__pyx_v_direction;
  char const *__pyx_v_unit_name;
  char const *__pyx_v_unit_auth_code;
  char const *__pyx_v_unit_code;
  struct __pyx_obj_6pyproj_4_crs_Axis *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  __Pyx_RefNannySetupContext("create", 0);

  /* "pyproj/_crs.pyx":286
 *     @staticmethod
 *     cdef Axis create(PJ_CONTEXT* context, PJ* projobj, int index):
 *         cdef Axis axis_info = Axis()             # <<<<<<<<<<<<<<
 *         cdef const char * name = NULL
 *         cdef const char * abbrev = NULL
 */
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_6pyproj_4_crs_Axis)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 286, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_axis_info = ((struct __pyx_obj_6pyproj_4_crs_Axis *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":287
 *     cdef Axis create(PJ_CONTEXT* context, PJ* projobj, int index):
 *         cdef Axis axis_info = Axis()
 *         cdef const char * name = NULL             # <<<<<<<<<<<<<<
 *         cdef const char * abbrev = NULL
 *         cdef const char * direction = NULL
 */
  __pyx_v_name = NULL;

  /* "pyproj/_crs.pyx":288
 *         cdef Axis axis_info = Axis()
 *         cdef const char * name = NULL
 *         cdef const char * abbrev = NULL             # <<<<<<<<<<<<<<
 *         cdef const char * direction = NULL
 *         cdef const char * unit_name = NULL
 */
  __pyx_v_abbrev = NULL;

  /* "pyproj/_crs.pyx":289
 *         cdef const char * name = NULL
 *         cdef const char * abbrev = NULL
 *         cdef const char * direction = NULL             # <<<<<<<<<<<<<<
 *         cdef const char * unit_name = NULL
 *         cdef const char * unit_auth_code = NULL
 */
  __pyx_v_direction = NULL;

  /* "pyproj/_crs.pyx":290
 *         cdef const char * abbrev = NULL
 *         cdef const char * direction = NULL
 *         cdef const char * unit_name = NULL             # <<<<<<<<<<<<<<
 *         cdef const char * unit_auth_code = NULL
 *         cdef const char * unit_code = NULL
 */
  __pyx_v_unit_name = NULL;

  /* "pyproj/_crs.pyx":291
 *         cdef const char * direction = NULL
 *         cdef const char * unit_name = NULL
 *         cdef const char * unit_auth_code = NULL             # <<<<<<<<<<<<<<
 *         cdef const char * unit_code = NULL
 *         if not proj_cs_get_axis_info(
 */
  __pyx_v_unit_auth_code = NULL;

  /* "pyproj/_crs.pyx":292
 *         cdef const char * unit_name = NULL
 *         cdef const char * unit_auth_code = NULL
 *         cdef const char * unit_code = NULL             # <<<<<<<<<<<<<<
 *         if not proj_cs_get_axis_info(
 *                 context,
 */
  __pyx_v_unit_code = NULL;

  /* "pyproj/_crs.pyx":293
 *         cdef const char * unit_auth_code = NULL
 *         cdef const char * unit_code = NULL
 *         if not proj_cs_get_axis_info(             # <<<<<<<<<<<<<<
 *                 context,
 *                 projobj,
 */
  __pyx_t_2 = ((!(proj_cs_get_axis_info(__pyx_v_context, __pyx_v_projobj, __pyx_v_index, (&__pyx_v_name), (&__pyx_v_abbrev), (&__pyx_v_direction), (&__pyx_v_axis_info->unit_conversion_factor), (&__pyx_v_unit_name), (&__pyx_v_unit_auth_code), (&__pyx_v_unit_code)) != 0)) != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":304
 *                 &unit_auth_code,
 *                 &unit_code):
 *             return None             # <<<<<<<<<<<<<<
 *         axis_info.name = decode_or_undefined(name)
 *         axis_info.abbrev = decode_or_undefined(abbrev)
 */
    __Pyx_XDECREF(((PyObject *)__pyx_r));
    __pyx_r = ((struct __pyx_obj_6pyproj_4_crs_Axis *)Py_None); __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":293
 *         cdef const char * unit_auth_code = NULL
 *         cdef const char * unit_code = NULL
 *         if not proj_cs_get_axis_info(             # <<<<<<<<<<<<<<
 *                 context,
 *                 projobj,
 */
  }

  /* "pyproj/_crs.pyx":305
 *                 &unit_code):
 *             return None
 *         axis_info.name = decode_or_undefined(name)             # <<<<<<<<<<<<<<
 *         axis_info.abbrev = decode_or_undefined(abbrev)
 *         axis_info.direction = decode_or_undefined(direction)
 */
  __pyx_t_1 = __pyx_f_6pyproj_4_crs_decode_or_undefined(__pyx_v_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 305, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_axis_info->name);
  __Pyx_DECREF(__pyx_v_axis_info->name);
  __pyx_v_axis_info->name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":306
 *             return None
 *         axis_info.name = decode_or_undefined(name)
 *         axis_info.abbrev = decode_or_undefined(abbrev)             # <<<<<<<<<<<<<<
 *         axis_info.direction = decode_or_undefined(direction)
 *         axis_info.unit_name = decode_or_undefined(unit_name)
 */
  __pyx_t_1 = __pyx_f_6pyproj_4_crs_decode_or_undefined(__pyx_v_abbrev); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 306, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_axis_info->abbrev);
  __Pyx_DECREF(__pyx_v_axis_info->abbrev);
  __pyx_v_axis_info->abbrev = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":307
 *         axis_info.name = decode_or_undefined(name)
 *         axis_info.abbrev = decode_or_undefined(abbrev)
 *         axis_info.direction = decode_or_undefined(direction)             # <<<<<<<<<<<<<<
 *         axis_info.unit_name = decode_or_undefined(unit_name)
 *         axis_info.unit_auth_code = decode_or_undefined(unit_auth_code)
 */
  __pyx_t_1 = __pyx_f_6pyproj_4_crs_decode_or_undefined(__pyx_v_direction); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 307, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_axis_info->direction);
  __Pyx_DECREF(__pyx_v_axis_info->direction);
  __pyx_v_axis_info->direction = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":308
 *         axis_info.abbrev = decode_or_undefined(abbrev)
 *         axis_info.direction = decode_or_undefined(direction)
 *         axis_info.unit_name = decode_or_undefined(unit_name)             # <<<<<<<<<<<<<<
 *         axis_info.unit_auth_code = decode_or_undefined(unit_auth_code)
 *         axis_info.unit_code = decode_or_undefined(unit_code)
 */
  __pyx_t_1 = __pyx_f_6pyproj_4_crs_decode_or_undefined(__pyx_v_unit_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_axis_info->unit_name);
  __Pyx_DECREF(__pyx_v_axis_info->unit_name);
  __pyx_v_axis_info->unit_name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":309
 *         axis_info.direction = decode_or_undefined(direction)
 *         axis_info.unit_name = decode_or_undefined(unit_name)
 *         axis_info.unit_auth_code = decode_or_undefined(unit_auth_code)             # <<<<<<<<<<<<<<
 *         axis_info.unit_code = decode_or_undefined(unit_code)
 *         return axis_info
 */
  __pyx_t_1 = __pyx_f_6pyproj_4_crs_decode_or_undefined(__pyx_v_unit_auth_code); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 309, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_axis_info->unit_auth_code);
  __Pyx_DECREF(__pyx_v_axis_info->unit_auth_code);
  __pyx_v_axis_info->unit_auth_code = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":310
 *         axis_info.unit_name = decode_or_undefined(unit_name)
 *         axis_info.unit_auth_code = decode_or_undefined(unit_auth_code)
 *         axis_info.unit_code = decode_or_undefined(unit_code)             # <<<<<<<<<<<<<<
 *         return axis_info
 * 
 */
  __pyx_t_1 = __pyx_f_6pyproj_4_crs_decode_or_undefined(__pyx_v_unit_code); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 310, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_axis_info->unit_code);
  __Pyx_DECREF(__pyx_v_axis_info->unit_code);
  __pyx_v_axis_info->unit_code = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":311
 *         axis_info.unit_auth_code = decode_or_undefined(unit_auth_code)
 *         axis_info.unit_code = decode_or_undefined(unit_code)
 *         return axis_info             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __Pyx_INCREF(((PyObject *)__pyx_v_axis_info));
  __pyx_r = __pyx_v_axis_info;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":285
 * 
 *     @staticmethod
 *     cdef Axis create(PJ_CONTEXT* context, PJ* projobj, int index):             # <<<<<<<<<<<<<<
 *         cdef Axis axis_info = Axis()
 *         cdef const char * name = NULL
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.Axis.create", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_axis_info);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":8
 * 
 * cdef class Axis:
 *     cdef readonly object name             # <<<<<<<<<<<<<<
 *     cdef readonly object abbrev
 *     cdef readonly object direction
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Axis_4name_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4Axis_4name_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Axis_4name___get__(((struct __pyx_obj_6pyproj_4_crs_Axis *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Axis_4name___get__(struct __pyx_obj_6pyproj_4_crs_Axis *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->name);
  __pyx_r = __pyx_v_self->name;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":9
 * cdef class Axis:
 *     cdef readonly object name
 *     cdef readonly object abbrev             # <<<<<<<<<<<<<<
 *     cdef readonly object direction
 *     cdef readonly double unit_conversion_factor
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Axis_6abbrev_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4Axis_6abbrev_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Axis_6abbrev___get__(((struct __pyx_obj_6pyproj_4_crs_Axis *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Axis_6abbrev___get__(struct __pyx_obj_6pyproj_4_crs_Axis *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->abbrev);
  __pyx_r = __pyx_v_self->abbrev;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":10
 *     cdef readonly object name
 *     cdef readonly object abbrev
 *     cdef readonly object direction             # <<<<<<<<<<<<<<
 *     cdef readonly double unit_conversion_factor
 *     cdef readonly object unit_name
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Axis_9direction_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4Axis_9direction_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Axis_9direction___get__(((struct __pyx_obj_6pyproj_4_crs_Axis *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Axis_9direction___get__(struct __pyx_obj_6pyproj_4_crs_Axis *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->direction);
  __pyx_r = __pyx_v_self->direction;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":11
 *     cdef readonly object abbrev
 *     cdef readonly object direction
 *     cdef readonly double unit_conversion_factor             # <<<<<<<<<<<<<<
 *     cdef readonly object unit_name
 *     cdef readonly object unit_auth_code
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Axis_22unit_conversion_factor_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4Axis_22unit_conversion_factor_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Axis_22unit_conversion_factor___get__(((struct __pyx_obj_6pyproj_4_crs_Axis *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Axis_22unit_conversion_factor___get__(struct __pyx_obj_6pyproj_4_crs_Axis *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->unit_conversion_factor); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 11, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.Axis.unit_conversion_factor.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":12
 *     cdef readonly object direction
 *     cdef readonly double unit_conversion_factor
 *     cdef readonly object unit_name             # <<<<<<<<<<<<<<
 *     cdef readonly object unit_auth_code
 *     cdef readonly object unit_code
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Axis_9unit_name_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4Axis_9unit_name_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Axis_9unit_name___get__(((struct __pyx_obj_6pyproj_4_crs_Axis *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Axis_9unit_name___get__(struct __pyx_obj_6pyproj_4_crs_Axis *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->unit_name);
  __pyx_r = __pyx_v_self->unit_name;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":13
 *     cdef readonly double unit_conversion_factor
 *     cdef readonly object unit_name
 *     cdef readonly object unit_auth_code             # <<<<<<<<<<<<<<
 *     cdef readonly object unit_code
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Axis_14unit_auth_code_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4Axis_14unit_auth_code_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Axis_14unit_auth_code___get__(((struct __pyx_obj_6pyproj_4_crs_Axis *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Axis_14unit_auth_code___get__(struct __pyx_obj_6pyproj_4_crs_Axis *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->unit_auth_code);
  __pyx_r = __pyx_v_self->unit_auth_code;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":14
 *     cdef readonly object unit_name
 *     cdef readonly object unit_auth_code
 *     cdef readonly object unit_code             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Axis_9unit_code_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4Axis_9unit_code_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Axis_9unit_code___get__(((struct __pyx_obj_6pyproj_4_crs_Axis *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Axis_9unit_code___get__(struct __pyx_obj_6pyproj_4_crs_Axis *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->unit_code);
  __pyx_r = __pyx_v_self->unit_code;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Axis_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_6pyproj_4_crs_4Axis_6__reduce_cython__[] = "Axis.__reduce_cython__(self)";
static PyObject *__pyx_pw_6pyproj_4_crs_4Axis_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Axis_6__reduce_cython__(((struct __pyx_obj_6pyproj_4_crs_Axis *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Axis_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_Axis *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__3, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.Axis.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Axis_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static char __pyx_doc_6pyproj_4_crs_4Axis_8__setstate_cython__[] = "Axis.__setstate_cython__(self, __pyx_state)";
static PyObject *__pyx_pw_6pyproj_4_crs_4Axis_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Axis_8__setstate_cython__(((struct __pyx_obj_6pyproj_4_crs_Axis *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Axis_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_Axis *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.Axis.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":334
 * 
 *     """
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self.west = float("NaN")
 *         self.south = float("NaN")
 */

/* Python wrapper */
static int __pyx_pw_6pyproj_4_crs_9AreaOfUse_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_6pyproj_4_crs_9AreaOfUse_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1;
  __pyx_r = __pyx_pf_6pyproj_4_crs_9AreaOfUse___cinit__(((struct __pyx_obj_6pyproj_4_crs_AreaOfUse *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6pyproj_4_crs_9AreaOfUse___cinit__(struct __pyx_obj_6pyproj_4_crs_AreaOfUse *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  double __pyx_t_1;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "pyproj/_crs.pyx":335
 *     """
 *     def __cinit__(self):
 *         self.west = float("NaN")             # <<<<<<<<<<<<<<
 *         self.south = float("NaN")
 *         self.east = float("NaN")
 */
  __pyx_t_1 = __Pyx_PyObject_AsDouble(__pyx_n_u_NaN); if (unlikely(__pyx_t_1 == ((double)((double)-1)) && PyErr_Occurred())) __PYX_ERR(0, 335, __pyx_L1_error)
  __pyx_v_self->west = __pyx_t_1;

  /* "pyproj/_crs.pyx":336
 *     def __cinit__(self):
 *         self.west = float("NaN")
 *         self.south = float("NaN")             # <<<<<<<<<<<<<<
 *         self.east = float("NaN")
 *         self.north = float("NaN")
 */
  __pyx_t_1 = __Pyx_PyObject_AsDouble(__pyx_n_u_NaN); if (unlikely(__pyx_t_1 == ((double)((double)-1)) && PyErr_Occurred())) __PYX_ERR(0, 336, __pyx_L1_error)
  __pyx_v_self->south = __pyx_t_1;

  /* "pyproj/_crs.pyx":337
 *         self.west = float("NaN")
 *         self.south = float("NaN")
 *         self.east = float("NaN")             # <<<<<<<<<<<<<<
 *         self.north = float("NaN")
 *         self.name = "undefined"
 */
  __pyx_t_1 = __Pyx_PyObject_AsDouble(__pyx_n_u_NaN); if (unlikely(__pyx_t_1 == ((double)((double)-1)) && PyErr_Occurred())) __PYX_ERR(0, 337, __pyx_L1_error)
  __pyx_v_self->east = __pyx_t_1;

  /* "pyproj/_crs.pyx":338
 *         self.south = float("NaN")
 *         self.east = float("NaN")
 *         self.north = float("NaN")             # <<<<<<<<<<<<<<
 *         self.name = "undefined"
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_AsDouble(__pyx_n_u_NaN); if (unlikely(__pyx_t_1 == ((double)((double)-1)) && PyErr_Occurred())) __PYX_ERR(0, 338, __pyx_L1_error)
  __pyx_v_self->north = __pyx_t_1;

  /* "pyproj/_crs.pyx":339
 *         self.east = float("NaN")
 *         self.north = float("NaN")
 *         self.name = "undefined"             # <<<<<<<<<<<<<<
 * 
 *     def __str__(self):
 */
  __Pyx_INCREF(__pyx_n_u_undefined);
  __Pyx_GIVEREF(__pyx_n_u_undefined);
  __Pyx_GOTREF(__pyx_v_self->name);
  __Pyx_DECREF(__pyx_v_self->name);
  __pyx_v_self->name = __pyx_n_u_undefined;

  /* "pyproj/_crs.pyx":334
 * 
 *     """
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self.west = float("NaN")
 *         self.south = float("NaN")
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyproj._crs.AreaOfUse.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":341
 *         self.name = "undefined"
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return "- name: {name}\n" \
 *                "- bounds: {bounds}".format(
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_9AreaOfUse_3__str__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_9AreaOfUse_3__str__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_9AreaOfUse_2__str__(((struct __pyx_obj_6pyproj_4_crs_AreaOfUse *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_9AreaOfUse_2__str__(struct __pyx_obj_6pyproj_4_crs_AreaOfUse *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__str__", 0);

  /* "pyproj/_crs.pyx":342
 * 
 *     def __str__(self):
 *         return "- name: {name}\n" \             # <<<<<<<<<<<<<<
 *                "- bounds: {bounds}".format(
 *             name=self.name, bounds=self.bounds)
 */
  __Pyx_XDECREF(__pyx_r);

  /* "pyproj/_crs.pyx":343
 *     def __str__(self):
 *         return "- name: {name}\n" \
 *                "- bounds: {bounds}".format(             # <<<<<<<<<<<<<<
 *             name=self.name, bounds=self.bounds)
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_name_name_bounds_bounds, __pyx_n_s_format); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 343, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);

  /* "pyproj/_crs.pyx":344
 *         return "- name: {name}\n" \
 *                "- bounds: {bounds}".format(
 *             name=self.name, bounds=self.bounds)             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
 */
  __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 344, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_name, __pyx_v_self->name) < 0) __PYX_ERR(0, 344, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_bounds); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 344, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_bounds, __pyx_t_3) < 0) __PYX_ERR(0, 344, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":343
 *     def __str__(self):
 *         return "- name: {name}\n" \
 *                "- bounds: {bounds}".format(             # <<<<<<<<<<<<<<
 *             name=self.name, bounds=self.bounds)
 * 
 */
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 343, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":341
 *         self.name = "undefined"
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return "- name: {name}\n" \
 *                "- bounds: {bounds}".format(
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("pyproj._crs.AreaOfUse.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":346
 *             name=self.name, bounds=self.bounds)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return ("AreaOfUse(name={name}, west={west}, south={south},"
 *                 " east={east}, north={north})").format(
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_9AreaOfUse_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_9AreaOfUse_5__repr__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_9AreaOfUse_4__repr__(((struct __pyx_obj_6pyproj_4_crs_AreaOfUse *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_9AreaOfUse_4__repr__(struct __pyx_obj_6pyproj_4_crs_AreaOfUse *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "pyproj/_crs.pyx":347
 * 
 *     def __repr__(self):
 *         return ("AreaOfUse(name={name}, west={west}, south={south},"             # <<<<<<<<<<<<<<
 *                 " east={east}, north={north})").format(
 *             name=self.name,
 */
  __Pyx_XDECREF(__pyx_r);

  /* "pyproj/_crs.pyx":348
 *     def __repr__(self):
 *         return ("AreaOfUse(name={name}, west={west}, south={south},"
 *                 " east={east}, north={north})").format(             # <<<<<<<<<<<<<<
 *             name=self.name,
 *             west=self.west,
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_AreaOfUse_name_name_west_west_so, __pyx_n_s_format); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 348, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);

  /* "pyproj/_crs.pyx":349
 *         return ("AreaOfUse(name={name}, west={west}, south={south},"
 *                 " east={east}, north={north})").format(
 *             name=self.name,             # <<<<<<<<<<<<<<
 *             west=self.west,
 *             south=self.south,
 */
  __pyx_t_2 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_name, __pyx_v_self->name) < 0) __PYX_ERR(0, 349, __pyx_L1_error)

  /* "pyproj/_crs.pyx":350
 *                 " east={east}, north={north})").format(
 *             name=self.name,
 *             west=self.west,             # <<<<<<<<<<<<<<
 *             south=self.south,
 *             east=self.east,
 */
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_self->west); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 350, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_west, __pyx_t_3) < 0) __PYX_ERR(0, 349, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":351
 *             name=self.name,
 *             west=self.west,
 *             south=self.south,             # <<<<<<<<<<<<<<
 *             east=self.east,
 *             north=self.north
 */
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_self->south); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 351, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_south, __pyx_t_3) < 0) __PYX_ERR(0, 349, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":352
 *             west=self.west,
 *             south=self.south,
 *             east=self.east,             # <<<<<<<<<<<<<<
 *             north=self.north
 *         )
 */
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_self->east); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 352, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_east, __pyx_t_3) < 0) __PYX_ERR(0, 349, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":353
 *             south=self.south,
 *             east=self.east,
 *             north=self.north             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_self->north); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 353, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_north, __pyx_t_3) < 0) __PYX_ERR(0, 349, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":348
 *     def __repr__(self):
 *         return ("AreaOfUse(name={name}, west={west}, south={south},"
 *                 " east={east}, north={north})").format(             # <<<<<<<<<<<<<<
 *             name=self.name,
 *             west=self.west,
 */
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 348, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":346
 *             name=self.name, bounds=self.bounds)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return ("AreaOfUse(name={name}, west={west}, south={south},"
 *                 " east={east}, north={north})").format(
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("pyproj._crs.AreaOfUse.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":357
 * 
 *     @staticmethod
 *     cdef AreaOfUse create(PJ_CONTEXT* context, PJ* projobj):             # <<<<<<<<<<<<<<
 *         cdef AreaOfUse area_of_use = AreaOfUse()
 *         cdef const char * area_name = NULL
 */

static struct __pyx_obj_6pyproj_4_crs_AreaOfUse *__pyx_f_6pyproj_4_crs_9AreaOfUse_create(PJ_CONTEXT *__pyx_v_context, PJ *__pyx_v_projobj) {
  struct __pyx_obj_6pyproj_4_crs_AreaOfUse *__pyx_v_area_of_use = 0;
  char const *__pyx_v_area_name;
  struct __pyx_obj_6pyproj_4_crs_AreaOfUse *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  __Pyx_RefNannySetupContext("create", 0);

  /* "pyproj/_crs.pyx":358
 *     @staticmethod
 *     cdef AreaOfUse create(PJ_CONTEXT* context, PJ* projobj):
 *         cdef AreaOfUse area_of_use = AreaOfUse()             # <<<<<<<<<<<<<<
 *         cdef const char * area_name = NULL
 *         if not proj_get_area_of_use(
 */
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_6pyproj_4_crs_AreaOfUse)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_area_of_use = ((struct __pyx_obj_6pyproj_4_crs_AreaOfUse *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":359
 *     cdef AreaOfUse create(PJ_CONTEXT* context, PJ* projobj):
 *         cdef AreaOfUse area_of_use = AreaOfUse()
 *         cdef const char * area_name = NULL             # <<<<<<<<<<<<<<
 *         if not proj_get_area_of_use(
 *                 context,
 */
  __pyx_v_area_name = NULL;

  /* "pyproj/_crs.pyx":360
 *         cdef AreaOfUse area_of_use = AreaOfUse()
 *         cdef const char * area_name = NULL
 *         if not proj_get_area_of_use(             # <<<<<<<<<<<<<<
 *                 context,
 *                 projobj,
 */
  __pyx_t_2 = ((!(proj_get_area_of_use(__pyx_v_context, __pyx_v_projobj, (&__pyx_v_area_of_use->west), (&__pyx_v_area_of_use->south), (&__pyx_v_area_of_use->east), (&__pyx_v_area_of_use->north), (&__pyx_v_area_name)) != 0)) != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":368
 *                 &area_of_use.north,
 *                 &area_name):
 *             return None             # <<<<<<<<<<<<<<
 *         area_of_use.name = decode_or_undefined(area_name)
 *         return area_of_use
 */
    __Pyx_XDECREF(((PyObject *)__pyx_r));
    __pyx_r = ((struct __pyx_obj_6pyproj_4_crs_AreaOfUse *)Py_None); __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":360
 *         cdef AreaOfUse area_of_use = AreaOfUse()
 *         cdef const char * area_name = NULL
 *         if not proj_get_area_of_use(             # <<<<<<<<<<<<<<
 *                 context,
 *                 projobj,
 */
  }

  /* "pyproj/_crs.pyx":369
 *                 &area_name):
 *             return None
 *         area_of_use.name = decode_or_undefined(area_name)             # <<<<<<<<<<<<<<
 *         return area_of_use
 * 
 */
  __pyx_t_1 = __pyx_f_6pyproj_4_crs_decode_or_undefined(__pyx_v_area_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 369, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_area_of_use->name);
  __Pyx_DECREF(__pyx_v_area_of_use->name);
  __pyx_v_area_of_use->name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":370
 *             return None
 *         area_of_use.name = decode_or_undefined(area_name)
 *         return area_of_use             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __Pyx_INCREF(((PyObject *)__pyx_v_area_of_use));
  __pyx_r = __pyx_v_area_of_use;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":357
 * 
 *     @staticmethod
 *     cdef AreaOfUse create(PJ_CONTEXT* context, PJ* projobj):             # <<<<<<<<<<<<<<
 *         cdef AreaOfUse area_of_use = AreaOfUse()
 *         cdef const char * area_name = NULL
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.AreaOfUse.create", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_area_of_use);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":373
 * 
 *     @property
 *     def bounds(self):             # <<<<<<<<<<<<<<
 *         return self.west, self.south, self.east, self.north
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_9AreaOfUse_6bounds_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_9AreaOfUse_6bounds_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_9AreaOfUse_6bounds___get__(((struct __pyx_obj_6pyproj_4_crs_AreaOfUse *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_9AreaOfUse_6bounds___get__(struct __pyx_obj_6pyproj_4_crs_AreaOfUse *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "pyproj/_crs.pyx":374
 *     @property
 *     def bounds(self):
 *         return self.west, self.south, self.east, self.north             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->west); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_self->south); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_self->east); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_self->north); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_4);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":373
 * 
 *     @property
 *     def bounds(self):             # <<<<<<<<<<<<<<
 *         return self.west, self.south, self.east, self.north
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs.AreaOfUse.bounds.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":20
 * 
 * cdef class AreaOfUse:
 *     cdef readonly double west             # <<<<<<<<<<<<<<
 *     cdef readonly double south
 *     cdef readonly double east
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_9AreaOfUse_4west_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_9AreaOfUse_4west_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_9AreaOfUse_4west___get__(((struct __pyx_obj_6pyproj_4_crs_AreaOfUse *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_9AreaOfUse_4west___get__(struct __pyx_obj_6pyproj_4_crs_AreaOfUse *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->west); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 20, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.AreaOfUse.west.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":21
 * cdef class AreaOfUse:
 *     cdef readonly double west
 *     cdef readonly double south             # <<<<<<<<<<<<<<
 *     cdef readonly double east
 *     cdef readonly double north
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_9AreaOfUse_5south_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_9AreaOfUse_5south_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_9AreaOfUse_5south___get__(((struct __pyx_obj_6pyproj_4_crs_AreaOfUse *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_9AreaOfUse_5south___get__(struct __pyx_obj_6pyproj_4_crs_AreaOfUse *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->south); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 21, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.AreaOfUse.south.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":22
 *     cdef readonly double west
 *     cdef readonly double south
 *     cdef readonly double east             # <<<<<<<<<<<<<<
 *     cdef readonly double north
 *     cdef readonly object name
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_9AreaOfUse_4east_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_9AreaOfUse_4east_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_9AreaOfUse_4east___get__(((struct __pyx_obj_6pyproj_4_crs_AreaOfUse *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_9AreaOfUse_4east___get__(struct __pyx_obj_6pyproj_4_crs_AreaOfUse *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->east); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 22, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.AreaOfUse.east.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":23
 *     cdef readonly double south
 *     cdef readonly double east
 *     cdef readonly double north             # <<<<<<<<<<<<<<
 *     cdef readonly object name
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_9AreaOfUse_5north_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_9AreaOfUse_5north_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_9AreaOfUse_5north___get__(((struct __pyx_obj_6pyproj_4_crs_AreaOfUse *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_9AreaOfUse_5north___get__(struct __pyx_obj_6pyproj_4_crs_AreaOfUse *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->north); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 23, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.AreaOfUse.north.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":24
 *     cdef readonly double east
 *     cdef readonly double north
 *     cdef readonly object name             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_9AreaOfUse_4name_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_9AreaOfUse_4name_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_9AreaOfUse_4name___get__(((struct __pyx_obj_6pyproj_4_crs_AreaOfUse *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_9AreaOfUse_4name___get__(struct __pyx_obj_6pyproj_4_crs_AreaOfUse *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->name);
  __pyx_r = __pyx_v_self->name;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_9AreaOfUse_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_6pyproj_4_crs_9AreaOfUse_6__reduce_cython__[] = "AreaOfUse.__reduce_cython__(self)";
static PyObject *__pyx_pw_6pyproj_4_crs_9AreaOfUse_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_9AreaOfUse_6__reduce_cython__(((struct __pyx_obj_6pyproj_4_crs_AreaOfUse *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_9AreaOfUse_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_AreaOfUse *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.AreaOfUse.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_9AreaOfUse_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static char __pyx_doc_6pyproj_4_crs_9AreaOfUse_8__setstate_cython__[] = "AreaOfUse.__setstate_cython__(self, __pyx_state)";
static PyObject *__pyx_pw_6pyproj_4_crs_9AreaOfUse_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_9AreaOfUse_8__setstate_cython__(((struct __pyx_obj_6pyproj_4_crs_AreaOfUse *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_9AreaOfUse_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_AreaOfUse *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.AreaOfUse.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":378
 * 
 * cdef class Base:
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self.projobj = NULL
 *         self.context = NULL
 */

/* Python wrapper */
static int __pyx_pw_6pyproj_4_crs_4Base_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_6pyproj_4_crs_4Base_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1;
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Base___cinit__(((struct __pyx_obj_6pyproj_4_crs_Base *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6pyproj_4_crs_4Base___cinit__(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "pyproj/_crs.pyx":379
 * cdef class Base:
 *     def __cinit__(self):
 *         self.projobj = NULL             # <<<<<<<<<<<<<<
 *         self.context = NULL
 *         self.name = "undefined"
 */
  __pyx_v_self->projobj = NULL;

  /* "pyproj/_crs.pyx":380
 *     def __cinit__(self):
 *         self.projobj = NULL
 *         self.context = NULL             # <<<<<<<<<<<<<<
 *         self.name = "undefined"
 *         self._scope = None
 */
  __pyx_v_self->context = NULL;

  /* "pyproj/_crs.pyx":381
 *         self.projobj = NULL
 *         self.context = NULL
 *         self.name = "undefined"             # <<<<<<<<<<<<<<
 *         self._scope = None
 *         self._remarks = None
 */
  __Pyx_INCREF(__pyx_n_u_undefined);
  __Pyx_GIVEREF(__pyx_n_u_undefined);
  __Pyx_GOTREF(__pyx_v_self->name);
  __Pyx_DECREF(__pyx_v_self->name);
  __pyx_v_self->name = __pyx_n_u_undefined;

  /* "pyproj/_crs.pyx":382
 *         self.context = NULL
 *         self.name = "undefined"
 *         self._scope = None             # <<<<<<<<<<<<<<
 *         self._remarks = None
 * 
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->_scope);
  __Pyx_DECREF(__pyx_v_self->_scope);
  __pyx_v_self->_scope = Py_None;

  /* "pyproj/_crs.pyx":383
 *         self.name = "undefined"
 *         self._scope = None
 *         self._remarks = None             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->_remarks);
  __Pyx_DECREF(__pyx_v_self->_remarks);
  __pyx_v_self->_remarks = Py_None;

  /* "pyproj/_crs.pyx":378
 * 
 * cdef class Base:
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self.projobj = NULL
 *         self.context = NULL
 */

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":385
 *         self._remarks = None
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         """destroy projection definition"""
 *         if self.projobj != NULL:
 */

/* Python wrapper */
static void __pyx_pw_6pyproj_4_crs_4Base_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_6pyproj_4_crs_4Base_3__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_6pyproj_4_crs_4Base_2__dealloc__(((struct __pyx_obj_6pyproj_4_crs_Base *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_6pyproj_4_crs_4Base_2__dealloc__(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "pyproj/_crs.pyx":387
 *     def __dealloc__(self):
 *         """destroy projection definition"""
 *         if self.projobj != NULL:             # <<<<<<<<<<<<<<
 *             proj_destroy(self.projobj)
 *         if self.context != NULL:
 */
  __pyx_t_1 = ((__pyx_v_self->projobj != NULL) != 0);
  if (__pyx_t_1) {

    /* "pyproj/_crs.pyx":388
 *         """destroy projection definition"""
 *         if self.projobj != NULL:
 *             proj_destroy(self.projobj)             # <<<<<<<<<<<<<<
 *         if self.context != NULL:
 *             proj_context_destroy(self.context)
 */
    proj_destroy(__pyx_v_self->projobj);

    /* "pyproj/_crs.pyx":387
 *     def __dealloc__(self):
 *         """destroy projection definition"""
 *         if self.projobj != NULL:             # <<<<<<<<<<<<<<
 *             proj_destroy(self.projobj)
 *         if self.context != NULL:
 */
  }

  /* "pyproj/_crs.pyx":389
 *         if self.projobj != NULL:
 *             proj_destroy(self.projobj)
 *         if self.context != NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(self.context)
 * 
 */
  __pyx_t_1 = ((__pyx_v_self->context != NULL) != 0);
  if (__pyx_t_1) {

    /* "pyproj/_crs.pyx":390
 *             proj_destroy(self.projobj)
 *         if self.context != NULL:
 *             proj_context_destroy(self.context)             # <<<<<<<<<<<<<<
 * 
 *     cdef _set_base_info(self):
 */
    (void)(proj_context_destroy(__pyx_v_self->context));

    /* "pyproj/_crs.pyx":389
 *         if self.projobj != NULL:
 *             proj_destroy(self.projobj)
 *         if self.context != NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(self.context)
 * 
 */
  }

  /* "pyproj/_crs.pyx":385
 *         self._remarks = None
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         """destroy projection definition"""
 *         if self.projobj != NULL:
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "pyproj/_crs.pyx":392
 *             proj_context_destroy(self.context)
 * 
 *     cdef _set_base_info(self):             # <<<<<<<<<<<<<<
 *         """
 *         Set the name of the PJ
 */

static PyObject *__pyx_f_6pyproj_4_crs_4Base__set_base_info(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self) {
  char const *__pyx_v_proj_name;
  char const *__pyx_v_scope;
  PyObject *__pyx_v_py_scope = NULL;
  char const *__pyx_v_remarks;
  PyObject *__pyx_v_py_remarks = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("_set_base_info", 0);

  /* "pyproj/_crs.pyx":397
 *         """
 *         # get proj information
 *         cdef const char* proj_name = proj_get_name(self.projobj)             # <<<<<<<<<<<<<<
 *         self.name = decode_or_undefined(proj_name)
 *         cdef const char* scope = proj_get_scope(self.projobj)
 */
  __pyx_v_proj_name = proj_get_name(__pyx_v_self->projobj);

  /* "pyproj/_crs.pyx":398
 *         # get proj information
 *         cdef const char* proj_name = proj_get_name(self.projobj)
 *         self.name = decode_or_undefined(proj_name)             # <<<<<<<<<<<<<<
 *         cdef const char* scope = proj_get_scope(self.projobj)
 *         if scope != NULL:
 */
  __pyx_t_1 = __pyx_f_6pyproj_4_crs_decode_or_undefined(__pyx_v_proj_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->name);
  __Pyx_DECREF(__pyx_v_self->name);
  __pyx_v_self->name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":399
 *         cdef const char* proj_name = proj_get_name(self.projobj)
 *         self.name = decode_or_undefined(proj_name)
 *         cdef const char* scope = proj_get_scope(self.projobj)             # <<<<<<<<<<<<<<
 *         if scope != NULL:
 *             py_scope = pystrdecode(scope)
 */
  __pyx_v_scope = proj_get_scope(__pyx_v_self->projobj);

  /* "pyproj/_crs.pyx":400
 *         self.name = decode_or_undefined(proj_name)
 *         cdef const char* scope = proj_get_scope(self.projobj)
 *         if scope != NULL:             # <<<<<<<<<<<<<<
 *             py_scope = pystrdecode(scope)
 *             self._scope = py_scope if py_scope else self._scope
 */
  __pyx_t_2 = ((__pyx_v_scope != NULL) != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":401
 *         cdef const char* scope = proj_get_scope(self.projobj)
 *         if scope != NULL:
 *             py_scope = pystrdecode(scope)             # <<<<<<<<<<<<<<
 *             self._scope = py_scope if py_scope else self._scope
 *         cdef const char* remarks = proj_get_remarks(self.projobj)
 */
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pystrdecode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 401, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyBytes_FromString(__pyx_v_scope); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 401, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_3, function);
      }
    }
    __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 401, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_py_scope = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "pyproj/_crs.pyx":402
 *         if scope != NULL:
 *             py_scope = pystrdecode(scope)
 *             self._scope = py_scope if py_scope else self._scope             # <<<<<<<<<<<<<<
 *         cdef const char* remarks = proj_get_remarks(self.projobj)
 *         if remarks != NULL:
 */
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_py_scope); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 402, __pyx_L1_error)
    if (__pyx_t_2) {
      __Pyx_INCREF(__pyx_v_py_scope);
      __pyx_t_1 = __pyx_v_py_scope;
    } else {
      __Pyx_INCREF(__pyx_v_self->_scope);
      __pyx_t_1 = __pyx_v_self->_scope;
    }
    __Pyx_GIVEREF(__pyx_t_1);
    __Pyx_GOTREF(__pyx_v_self->_scope);
    __Pyx_DECREF(__pyx_v_self->_scope);
    __pyx_v_self->_scope = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "pyproj/_crs.pyx":400
 *         self.name = decode_or_undefined(proj_name)
 *         cdef const char* scope = proj_get_scope(self.projobj)
 *         if scope != NULL:             # <<<<<<<<<<<<<<
 *             py_scope = pystrdecode(scope)
 *             self._scope = py_scope if py_scope else self._scope
 */
  }

  /* "pyproj/_crs.pyx":403
 *             py_scope = pystrdecode(scope)
 *             self._scope = py_scope if py_scope else self._scope
 *         cdef const char* remarks = proj_get_remarks(self.projobj)             # <<<<<<<<<<<<<<
 *         if remarks != NULL:
 *             py_remarks = pystrdecode(remarks)
 */
  __pyx_v_remarks = proj_get_remarks(__pyx_v_self->projobj);

  /* "pyproj/_crs.pyx":404
 *             self._scope = py_scope if py_scope else self._scope
 *         cdef const char* remarks = proj_get_remarks(self.projobj)
 *         if remarks != NULL:             # <<<<<<<<<<<<<<
 *             py_remarks = pystrdecode(remarks)
 *             self._remarks = py_remarks if py_remarks else self._remarks
 */
  __pyx_t_2 = ((__pyx_v_remarks != NULL) != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":405
 *         cdef const char* remarks = proj_get_remarks(self.projobj)
 *         if remarks != NULL:
 *             py_remarks = pystrdecode(remarks)             # <<<<<<<<<<<<<<
 *             self._remarks = py_remarks if py_remarks else self._remarks
 * 
 */
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pystrdecode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 405, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyBytes_FromString(__pyx_v_remarks); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 405, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_3, function);
      }
    }
    __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 405, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_v_py_remarks = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "pyproj/_crs.pyx":406
 *         if remarks != NULL:
 *             py_remarks = pystrdecode(remarks)
 *             self._remarks = py_remarks if py_remarks else self._remarks             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_py_remarks); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 406, __pyx_L1_error)
    if (__pyx_t_2) {
      __Pyx_INCREF(__pyx_v_py_remarks);
      __pyx_t_1 = __pyx_v_py_remarks;
    } else {
      __Pyx_INCREF(__pyx_v_self->_remarks);
      __pyx_t_1 = __pyx_v_self->_remarks;
    }
    __Pyx_GIVEREF(__pyx_t_1);
    __Pyx_GOTREF(__pyx_v_self->_remarks);
    __Pyx_DECREF(__pyx_v_self->_remarks);
    __pyx_v_self->_remarks = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "pyproj/_crs.pyx":404
 *             self._scope = py_scope if py_scope else self._scope
 *         cdef const char* remarks = proj_get_remarks(self.projobj)
 *         if remarks != NULL:             # <<<<<<<<<<<<<<
 *             py_remarks = pystrdecode(remarks)
 *             self._remarks = py_remarks if py_remarks else self._remarks
 */
  }

  /* "pyproj/_crs.pyx":392
 *             proj_context_destroy(self.context)
 * 
 *     cdef _set_base_info(self):             # <<<<<<<<<<<<<<
 *         """
 *         Set the name of the PJ
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs.Base._set_base_info", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_py_scope);
  __Pyx_XDECREF(__pyx_v_py_remarks);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":409
 * 
 *     @property
 *     def remarks(self):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_7remarks_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_7remarks_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Base_7remarks___get__(((struct __pyx_obj_6pyproj_4_crs_Base *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Base_7remarks___get__(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "pyproj/_crs.pyx":418
 *             Remarks about object.
 *         """
 *         return self._remarks             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_remarks);
  __pyx_r = __pyx_v_self->_remarks;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":409
 * 
 *     @property
 *     def remarks(self):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":421
 * 
 *     @property
 *     def scope(self):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_5scope_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_5scope_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Base_5scope___get__(((struct __pyx_obj_6pyproj_4_crs_Base *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Base_5scope___get__(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "pyproj/_crs.pyx":430
 *             Scope of object.
 *         """
 *         return self._scope             # <<<<<<<<<<<<<<
 * 
 *     def to_wkt(self, version=WktVersion.WKT2_2019, pretty=False):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_scope);
  __pyx_r = __pyx_v_self->_scope;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":421
 * 
 *     @property
 *     def scope(self):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":432
 *         return self._scope
 * 
 *     def to_wkt(self, version=WktVersion.WKT2_2019, pretty=False):             # <<<<<<<<<<<<<<
 *         """
 *         Convert the projection to a WKT string.
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_5to_wkt(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_4Base_4to_wkt[] = "Base.to_wkt(self, version=WktVersion.WKT2_2019, pretty=False)\n\n        Convert the projection to a WKT string.\n\n        Version options:\n          - WKT2_2015\n          - WKT2_2015_SIMPLIFIED\n          - WKT2_2019\n          - WKT2_2019_SIMPLIFIED\n          - WKT1_GDAL\n          - WKT1_ESRI\n\n\n        Parameters\n        ----------\n        version: pyproj.enums.WktVersion\n            The version of the WKT output.\n            Default is :attr:`pyproj.enums.WktVersion.WKT2_2019`.\n        pretty: bool\n            If True, it will set the output to be a multiline string. Defaults to False.\n\n        Returns\n        -------\n        str\n        ";
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_5to_wkt(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_version = 0;
  PyObject *__pyx_v_pretty = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_wkt (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_version,&__pyx_n_s_pretty,0};
    PyObject* values[2] = {0,0};
    values[0] = __pyx_k__7;
    values[1] = ((PyObject *)Py_False);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_version);
          if (value) { values[0] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pretty);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "to_wkt") < 0)) __PYX_ERR(0, 432, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_version = values[0];
    __pyx_v_pretty = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("to_wkt", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 432, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.Base.to_wkt", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Base_4to_wkt(((struct __pyx_obj_6pyproj_4_crs_Base *)__pyx_v_self), __pyx_v_version, __pyx_v_pretty);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Base_4to_wkt(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self, PyObject *__pyx_v_version, PyObject *__pyx_v_pretty) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_6pyproj_4_crs__to_wkt __pyx_t_2;
  __Pyx_RefNannySetupContext("to_wkt", 0);

  /* "pyproj/_crs.pyx":457
 *         str
 *         """
 *         return _to_wkt(self.context, self.projobj, version, pretty=pretty)             # <<<<<<<<<<<<<<
 * 
 *     def to_json(self, pretty=False, indentation=2):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2.__pyx_n = 2;
  __pyx_t_2.version = __pyx_v_version;
  __pyx_t_2.pretty = __pyx_v_pretty;
  __pyx_t_1 = __pyx_f_6pyproj_4_crs__to_wkt(__pyx_v_self->context, __pyx_v_self->projobj, &__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 457, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":432
 *         return self._scope
 * 
 *     def to_wkt(self, version=WktVersion.WKT2_2019, pretty=False):             # <<<<<<<<<<<<<<
 *         """
 *         Convert the projection to a WKT string.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.Base.to_wkt", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":459
 *         return _to_wkt(self.context, self.projobj, version, pretty=pretty)
 * 
 *     def to_json(self, pretty=False, indentation=2):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_7to_json(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_4Base_6to_json[] = "Base.to_json(self, pretty=False, indentation=2)\n\n        .. versionadded:: 2.4.0\n\n        Convert the object to a JSON string.\n\n        Parameters\n        ----------\n        pretty: bool\n            If True, it will set the output to be a multiline string. Defaults to False.\n        indentation: int\n            If pretty is True, it will set the width of the indentation. Default is 2.\n\n        Returns\n        -------\n        str\n        ";
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_7to_json(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_pretty = 0;
  PyObject *__pyx_v_indentation = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_json (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pretty,&__pyx_n_s_indentation,0};
    PyObject* values[2] = {0,0};
    values[0] = ((PyObject *)Py_False);
    values[1] = ((PyObject *)__pyx_int_2);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pretty);
          if (value) { values[0] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_indentation);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "to_json") < 0)) __PYX_ERR(0, 459, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_pretty = values[0];
    __pyx_v_indentation = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("to_json", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 459, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.Base.to_json", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Base_6to_json(((struct __pyx_obj_6pyproj_4_crs_Base *)__pyx_v_self), __pyx_v_pretty, __pyx_v_indentation);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Base_6to_json(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self, PyObject *__pyx_v_pretty, PyObject *__pyx_v_indentation) {
  char const *__pyx_v_options[3];
  PyObject *__pyx_v_multiline = NULL;
  PyObject *__pyx_v_indentation_width = NULL;
  char const *__pyx_v_proj_json_string;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  char const *__pyx_t_7;
  __Pyx_RefNannySetupContext("to_json", 0);

  /* "pyproj/_crs.pyx":477
 *         """
 *         cdef const char* options[3]
 *         multiline = b"MULTILINE=NO"             # <<<<<<<<<<<<<<
 *         if pretty:
 *             multiline = b"MULTILINE=YES"
 */
  __Pyx_INCREF(__pyx_kp_b_MULTILINE_NO);
  __pyx_v_multiline = __pyx_kp_b_MULTILINE_NO;

  /* "pyproj/_crs.pyx":478
 *         cdef const char* options[3]
 *         multiline = b"MULTILINE=NO"
 *         if pretty:             # <<<<<<<<<<<<<<
 *             multiline = b"MULTILINE=YES"
 *         indentation_width = cstrencode(
 */
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_pretty); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 478, __pyx_L1_error)
  if (__pyx_t_1) {

    /* "pyproj/_crs.pyx":479
 *         multiline = b"MULTILINE=NO"
 *         if pretty:
 *             multiline = b"MULTILINE=YES"             # <<<<<<<<<<<<<<
 *         indentation_width = cstrencode(
 *             "INDENTATION_WIDTH={:.0f}".format(indentation)
 */
    __Pyx_INCREF(__pyx_kp_b_MULTILINE_YES);
    __Pyx_DECREF_SET(__pyx_v_multiline, __pyx_kp_b_MULTILINE_YES);

    /* "pyproj/_crs.pyx":478
 *         cdef const char* options[3]
 *         multiline = b"MULTILINE=NO"
 *         if pretty:             # <<<<<<<<<<<<<<
 *             multiline = b"MULTILINE=YES"
 *         indentation_width = cstrencode(
 */
  }

  /* "pyproj/_crs.pyx":480
 *         if pretty:
 *             multiline = b"MULTILINE=YES"
 *         indentation_width = cstrencode(             # <<<<<<<<<<<<<<
 *             "INDENTATION_WIDTH={:.0f}".format(indentation)
 *         )
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cstrencode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 480, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);

  /* "pyproj/_crs.pyx":481
 *             multiline = b"MULTILINE=YES"
 *         indentation_width = cstrencode(
 *             "INDENTATION_WIDTH={:.0f}".format(indentation)             # <<<<<<<<<<<<<<
 *         )
 *         options[0] = multiline
 */
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_INDENTATION_WIDTH_0f, __pyx_n_s_format); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 481, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_5, function);
    }
  }
  __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_v_indentation) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_indentation);
  __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 481, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_2 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 480, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_indentation_width = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":483
 *             "INDENTATION_WIDTH={:.0f}".format(indentation)
 *         )
 *         options[0] = multiline             # <<<<<<<<<<<<<<
 *         options[1] = indentation_width
 *         options[2] = NULL
 */
  __pyx_t_7 = __Pyx_PyBytes_AsString(__pyx_v_multiline); if (unlikely((!__pyx_t_7) && PyErr_Occurred())) __PYX_ERR(0, 483, __pyx_L1_error)
  (__pyx_v_options[0]) = __pyx_t_7;

  /* "pyproj/_crs.pyx":484
 *         )
 *         options[0] = multiline
 *         options[1] = indentation_width             # <<<<<<<<<<<<<<
 *         options[2] = NULL
 * 
 */
  __pyx_t_7 = __Pyx_PyObject_AsString(__pyx_v_indentation_width); if (unlikely((!__pyx_t_7) && PyErr_Occurred())) __PYX_ERR(0, 484, __pyx_L1_error)
  (__pyx_v_options[1]) = __pyx_t_7;

  /* "pyproj/_crs.pyx":485
 *         options[0] = multiline
 *         options[1] = indentation_width
 *         options[2] = NULL             # <<<<<<<<<<<<<<
 * 
 *         cdef const char* proj_json_string
 */
  (__pyx_v_options[2]) = NULL;

  /* "pyproj/_crs.pyx":488
 * 
 *         cdef const char* proj_json_string
 *         proj_json_string = proj_as_projjson(             # <<<<<<<<<<<<<<
 *             self.context,
 *             self.projobj,
 */
  __pyx_v_proj_json_string = proj_as_projjson(__pyx_v_self->context, __pyx_v_self->projobj, __pyx_v_options);

  /* "pyproj/_crs.pyx":493
 *             options,
 *         )
 *         return cstrdecode(proj_json_string)             # <<<<<<<<<<<<<<
 * 
 *     def to_json_dict(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __pyx_f_6pyproj_4_crs_cstrdecode(__pyx_v_proj_json_string); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 493, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":459
 *         return _to_wkt(self.context, self.projobj, version, pretty=pretty)
 * 
 *     def to_json(self, pretty=False, indentation=2):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("pyproj._crs.Base.to_json", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_multiline);
  __Pyx_XDECREF(__pyx_v_indentation_width);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":495
 *         return cstrdecode(proj_json_string)
 * 
 *     def to_json_dict(self):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_9to_json_dict(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_6pyproj_4_crs_4Base_8to_json_dict[] = "Base.to_json_dict(self)\n\n        .. versionadded:: 2.4.0\n\n        Convert the object to a JSON dictionary.\n\n        Returns\n        -------\n        dict\n        ";
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_9to_json_dict(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_json_dict (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Base_8to_json_dict(((struct __pyx_obj_6pyproj_4_crs_Base *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Base_8to_json_dict(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("to_json_dict", 0);

  /* "pyproj/_crs.pyx":505
 *         dict
 *         """
 *         return json.loads(self.to_json())             # <<<<<<<<<<<<<<
 * 
 *     def __str__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_json); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 505, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_loads); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 505, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_json); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 505, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
    }
  }
  __pyx_t_2 = (__pyx_t_5) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5) : __Pyx_PyObject_CallNoArg(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 505, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_t_2) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 505, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":495
 *         return cstrdecode(proj_json_string)
 * 
 *     def to_json_dict(self):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs.Base.to_json_dict", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":507
 *         return json.loads(self.to_json())
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return self.name
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_11__str__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_11__str__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Base_10__str__(((struct __pyx_obj_6pyproj_4_crs_Base *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Base_10__str__(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__", 0);

  /* "pyproj/_crs.pyx":508
 * 
 *     def __str__(self):
 *         return self.name             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->name);
  __pyx_r = __pyx_v_self->name;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":507
 *         return json.loads(self.to_json())
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return self.name
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":510
 *         return self.name
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return self.to_wkt(pretty=True)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_13__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_13__repr__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Base_12__repr__(((struct __pyx_obj_6pyproj_4_crs_Base *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Base_12__repr__(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "pyproj/_crs.pyx":511
 * 
 *     def __repr__(self):
 *         return self.to_wkt(pretty=True)             # <<<<<<<<<<<<<<
 * 
 *     def _is_exact_same(self, Base other):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_wkt); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 511, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 511, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_pretty, Py_True) < 0) __PYX_ERR(0, 511, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 511, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":510
 *         return self.name
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return self.to_wkt(pretty=True)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("pyproj._crs.Base.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":513
 *         return self.to_wkt(pretty=True)
 * 
 *     def _is_exact_same(self, Base other):             # <<<<<<<<<<<<<<
 *         return proj_is_equivalent_to(
 *             self.projobj, other.projobj, PJ_COMP_STRICT) == 1
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_15_is_exact_same(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static char __pyx_doc_6pyproj_4_crs_4Base_14_is_exact_same[] = "Base._is_exact_same(self, Base other)";
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_15_is_exact_same(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_is_exact_same (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_6pyproj_4_crs_Base, 1, "other", 0))) __PYX_ERR(0, 513, __pyx_L1_error)
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Base_14_is_exact_same(((struct __pyx_obj_6pyproj_4_crs_Base *)__pyx_v_self), ((struct __pyx_obj_6pyproj_4_crs_Base *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Base_14_is_exact_same(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self, struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("_is_exact_same", 0);

  /* "pyproj/_crs.pyx":514
 * 
 *     def _is_exact_same(self, Base other):
 *         return proj_is_equivalent_to(             # <<<<<<<<<<<<<<
 *             self.projobj, other.projobj, PJ_COMP_STRICT) == 1
 * 
 */
  __Pyx_XDECREF(__pyx_r);

  /* "pyproj/_crs.pyx":515
 *     def _is_exact_same(self, Base other):
 *         return proj_is_equivalent_to(
 *             self.projobj, other.projobj, PJ_COMP_STRICT) == 1             # <<<<<<<<<<<<<<
 * 
 *     def _is_equivalent(self, Base other):
 */
  __pyx_t_1 = __Pyx_PyBool_FromLong((proj_is_equivalent_to(__pyx_v_self->projobj, __pyx_v_other->projobj, PJ_COMP_STRICT) == 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 515, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":513
 *         return self.to_wkt(pretty=True)
 * 
 *     def _is_exact_same(self, Base other):             # <<<<<<<<<<<<<<
 *         return proj_is_equivalent_to(
 *             self.projobj, other.projobj, PJ_COMP_STRICT) == 1
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.Base._is_exact_same", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":517
 *             self.projobj, other.projobj, PJ_COMP_STRICT) == 1
 * 
 *     def _is_equivalent(self, Base other):             # <<<<<<<<<<<<<<
 *         return proj_is_equivalent_to(
 *             self.projobj, other.projobj, PJ_COMP_EQUIVALENT) == 1
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_17_is_equivalent(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static char __pyx_doc_6pyproj_4_crs_4Base_16_is_equivalent[] = "Base._is_equivalent(self, Base other)";
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_17_is_equivalent(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_is_equivalent (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_6pyproj_4_crs_Base, 1, "other", 0))) __PYX_ERR(0, 517, __pyx_L1_error)
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Base_16_is_equivalent(((struct __pyx_obj_6pyproj_4_crs_Base *)__pyx_v_self), ((struct __pyx_obj_6pyproj_4_crs_Base *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Base_16_is_equivalent(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self, struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("_is_equivalent", 0);

  /* "pyproj/_crs.pyx":518
 * 
 *     def _is_equivalent(self, Base other):
 *         return proj_is_equivalent_to(             # <<<<<<<<<<<<<<
 *             self.projobj, other.projobj, PJ_COMP_EQUIVALENT) == 1
 * 
 */
  __Pyx_XDECREF(__pyx_r);

  /* "pyproj/_crs.pyx":519
 *     def _is_equivalent(self, Base other):
 *         return proj_is_equivalent_to(
 *             self.projobj, other.projobj, PJ_COMP_EQUIVALENT) == 1             # <<<<<<<<<<<<<<
 * 
 *     def __eq__(self, other):
 */
  __pyx_t_1 = __Pyx_PyBool_FromLong((proj_is_equivalent_to(__pyx_v_self->projobj, __pyx_v_other->projobj, PJ_COMP_EQUIVALENT) == 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":517
 *             self.projobj, other.projobj, PJ_COMP_STRICT) == 1
 * 
 *     def _is_equivalent(self, Base other):             # <<<<<<<<<<<<<<
 *         return proj_is_equivalent_to(
 *             self.projobj, other.projobj, PJ_COMP_EQUIVALENT) == 1
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.Base._is_equivalent", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":521
 *             self.projobj, other.projobj, PJ_COMP_EQUIVALENT) == 1
 * 
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, Base):
 *             return False
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_19__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_19__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Base_18__eq__(((struct __pyx_obj_6pyproj_4_crs_Base *)__pyx_v_self), ((PyObject *)__pyx_v_other));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Base_18__eq__(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("__eq__", 0);

  /* "pyproj/_crs.pyx":522
 * 
 *     def __eq__(self, other):
 *         if not isinstance(other, Base):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._is_equivalent(other)
 */
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_other, __pyx_ptype_6pyproj_4_crs_Base); 
  __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":523
 *     def __eq__(self, other):
 *         if not isinstance(other, Base):
 *             return False             # <<<<<<<<<<<<<<
 *         return self._is_equivalent(other)
 * 
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_False);
    __pyx_r = Py_False;
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":522
 * 
 *     def __eq__(self, other):
 *         if not isinstance(other, Base):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._is_equivalent(other)
 */
  }

  /* "pyproj/_crs.pyx":524
 *         if not isinstance(other, Base):
 *             return False
 *         return self._is_equivalent(other)             # <<<<<<<<<<<<<<
 * 
 *     def is_exact_same(self, other):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_is_equivalent); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 524, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
    }
  }
  __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_other) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_other);
  __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 524, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":521
 *             self.projobj, other.projobj, PJ_COMP_EQUIVALENT) == 1
 * 
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if not isinstance(other, Base):
 *             return False
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs.Base.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":526
 *         return self._is_equivalent(other)
 * 
 *     def is_exact_same(self, other):             # <<<<<<<<<<<<<<
 *         """Compares projection objects to see if they are exactly the same."""
 *         if not isinstance(other, Base):
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_21is_exact_same(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static char __pyx_doc_6pyproj_4_crs_4Base_20is_exact_same[] = "Base.is_exact_same(self, other)\nCompares projection objects to see if they are exactly the same.";
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_21is_exact_same(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_exact_same (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Base_20is_exact_same(((struct __pyx_obj_6pyproj_4_crs_Base *)__pyx_v_self), ((PyObject *)__pyx_v_other));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Base_20is_exact_same(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("is_exact_same", 0);

  /* "pyproj/_crs.pyx":528
 *     def is_exact_same(self, other):
 *         """Compares projection objects to see if they are exactly the same."""
 *         if not isinstance(other, Base):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._is_exact_same(other)
 */
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_other, __pyx_ptype_6pyproj_4_crs_Base); 
  __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":529
 *         """Compares projection objects to see if they are exactly the same."""
 *         if not isinstance(other, Base):
 *             return False             # <<<<<<<<<<<<<<
 *         return self._is_exact_same(other)
 * 
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_False);
    __pyx_r = Py_False;
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":528
 *     def is_exact_same(self, other):
 *         """Compares projection objects to see if they are exactly the same."""
 *         if not isinstance(other, Base):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._is_exact_same(other)
 */
  }

  /* "pyproj/_crs.pyx":530
 *         if not isinstance(other, Base):
 *             return False
 *         return self._is_exact_same(other)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_is_exact_same); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 530, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
    }
  }
  __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_other) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_other);
  __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 530, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":526
 *         return self._is_equivalent(other)
 * 
 *     def is_exact_same(self, other):             # <<<<<<<<<<<<<<
 *         """Compares projection objects to see if they are exactly the same."""
 *         if not isinstance(other, Base):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs.Base.is_exact_same", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":33
 *     cdef PJ *projobj
 *     cdef PJ_CONTEXT* context
 *     cdef readonly object name             # <<<<<<<<<<<<<<
 *     cdef readonly object _remarks
 *     cdef readonly object _scope
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_4name_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_4name_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Base_4name___get__(((struct __pyx_obj_6pyproj_4_crs_Base *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Base_4name___get__(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->name);
  __pyx_r = __pyx_v_self->name;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":34
 *     cdef PJ_CONTEXT* context
 *     cdef readonly object name
 *     cdef readonly object _remarks             # <<<<<<<<<<<<<<
 *     cdef readonly object _scope
 *     cdef _set_base_info(self)
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_8_remarks_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_8_remarks_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Base_8_remarks___get__(((struct __pyx_obj_6pyproj_4_crs_Base *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Base_8_remarks___get__(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_remarks);
  __pyx_r = __pyx_v_self->_remarks;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":35
 *     cdef readonly object name
 *     cdef readonly object _remarks
 *     cdef readonly object _scope             # <<<<<<<<<<<<<<
 *     cdef _set_base_info(self)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_6_scope_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_6_scope_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Base_6_scope___get__(((struct __pyx_obj_6pyproj_4_crs_Base *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Base_6_scope___get__(struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_scope);
  __pyx_r = __pyx_v_self->_scope;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_23__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_6pyproj_4_crs_4Base_22__reduce_cython__[] = "Base.__reduce_cython__(self)";
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_23__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Base_22__reduce_cython__(((struct __pyx_obj_6pyproj_4_crs_Base *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Base_22__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.Base.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_25__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static char __pyx_doc_6pyproj_4_crs_4Base_24__setstate_cython__[] = "Base.__setstate_cython__(self, __pyx_state)";
static PyObject *__pyx_pw_6pyproj_4_crs_4Base_25__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Base_24__setstate_cython__(((struct __pyx_obj_6pyproj_4_crs_Base *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Base_24__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_Base *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.Base.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":535
 * cdef class _CRSParts(Base):
 *     @classmethod
 *     def from_user_input(cls, user_input):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.5.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_9_CRSParts_1from_user_input(PyObject *__pyx_v_cls, PyObject *__pyx_v_user_input); /*proto*/
static char __pyx_doc_6pyproj_4_crs_9_CRSParts_from_user_input[] = "_CRSParts.from_user_input(type cls, user_input)\n\n        .. versionadded:: 2.5.0\n\n        Create cls from user input:\n          - PROJ JSON string\n          - PROJ JSON dict\n          - WKT string\n          - An authority string\n          - An EPSG integer code\n          - A tuple of (\"auth_name\": \"auth_code\")\n          - An object with a `to_json` method.\n\n        Parameters\n        ----------\n        user_input: str, dict, int\n            Intput to create cls.\n\n        Returns\n        -------\n        cls\n        ";
static PyObject *__pyx_pw_6pyproj_4_crs_9_CRSParts_1from_user_input(PyObject *__pyx_v_cls, PyObject *__pyx_v_user_input) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_user_input (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_9_CRSParts_from_user_input(((PyTypeObject*)__pyx_v_cls), ((PyObject *)__pyx_v_user_input));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_9_CRSParts_from_user_input(PyTypeObject *__pyx_v_cls, PyObject *__pyx_v_user_input) {
  PyObject *__pyx_v_prepared = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  int __pyx_t_12;
  PyObject *__pyx_t_13 = NULL;
  __Pyx_RefNannySetupContext("from_user_input", 0);

  /* "pyproj/_crs.pyx":557
 *         cls
 *         """
 *         if isinstance(user_input, str):             # <<<<<<<<<<<<<<
 *             prepared = cls.from_string(user_input)
 *         elif isinstance(user_input, dict):
 */
  __pyx_t_1 = PyUnicode_Check(__pyx_v_user_input); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":558
 *         """
 *         if isinstance(user_input, str):
 *             prepared = cls.from_string(user_input)             # <<<<<<<<<<<<<<
 *         elif isinstance(user_input, dict):
 *             prepared = cls.from_json_dict(user_input)
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cls), __pyx_n_s_from_string); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 558, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_user_input) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_user_input);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 558, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_prepared = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "pyproj/_crs.pyx":557
 *         cls
 *         """
 *         if isinstance(user_input, str):             # <<<<<<<<<<<<<<
 *             prepared = cls.from_string(user_input)
 *         elif isinstance(user_input, dict):
 */
    goto __pyx_L3;
  }

  /* "pyproj/_crs.pyx":559
 *         if isinstance(user_input, str):
 *             prepared = cls.from_string(user_input)
 *         elif isinstance(user_input, dict):             # <<<<<<<<<<<<<<
 *             prepared = cls.from_json_dict(user_input)
 *         elif isinstance(user_input, int) and hasattr(cls, "from_epsg"):
 */
  __pyx_t_2 = PyDict_Check(__pyx_v_user_input); 
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "pyproj/_crs.pyx":560
 *             prepared = cls.from_string(user_input)
 *         elif isinstance(user_input, dict):
 *             prepared = cls.from_json_dict(user_input)             # <<<<<<<<<<<<<<
 *         elif isinstance(user_input, int) and hasattr(cls, "from_epsg"):
 *             prepared = cls.from_epsg(user_input)
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cls), __pyx_n_s_from_json_dict); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 560, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_user_input) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_user_input);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 560, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_prepared = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "pyproj/_crs.pyx":559
 *         if isinstance(user_input, str):
 *             prepared = cls.from_string(user_input)
 *         elif isinstance(user_input, dict):             # <<<<<<<<<<<<<<
 *             prepared = cls.from_json_dict(user_input)
 *         elif isinstance(user_input, int) and hasattr(cls, "from_epsg"):
 */
    goto __pyx_L3;
  }

  /* "pyproj/_crs.pyx":561
 *         elif isinstance(user_input, dict):
 *             prepared = cls.from_json_dict(user_input)
 *         elif isinstance(user_input, int) and hasattr(cls, "from_epsg"):             # <<<<<<<<<<<<<<
 *             prepared = cls.from_epsg(user_input)
 *         elif (
 */
  __pyx_t_2 = PyInt_Check(__pyx_v_user_input); 
  __pyx_t_6 = (__pyx_t_2 != 0);
  if (__pyx_t_6) {
  } else {
    __pyx_t_1 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_6 = __Pyx_HasAttr(((PyObject *)__pyx_v_cls), __pyx_n_u_from_epsg); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 561, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_6 != 0);
  __pyx_t_1 = __pyx_t_2;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_1) {

    /* "pyproj/_crs.pyx":562
 *             prepared = cls.from_json_dict(user_input)
 *         elif isinstance(user_input, int) and hasattr(cls, "from_epsg"):
 *             prepared = cls.from_epsg(user_input)             # <<<<<<<<<<<<<<
 *         elif (
 *             isinstance(user_input, (list, tuple))
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cls), __pyx_n_s_from_epsg); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 562, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_user_input) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_user_input);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 562, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_prepared = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "pyproj/_crs.pyx":561
 *         elif isinstance(user_input, dict):
 *             prepared = cls.from_json_dict(user_input)
 *         elif isinstance(user_input, int) and hasattr(cls, "from_epsg"):             # <<<<<<<<<<<<<<
 *             prepared = cls.from_epsg(user_input)
 *         elif (
 */
    goto __pyx_L3;
  }

  /* "pyproj/_crs.pyx":564
 *             prepared = cls.from_epsg(user_input)
 *         elif (
 *             isinstance(user_input, (list, tuple))             # <<<<<<<<<<<<<<
 *             and len(user_input) == 2
 *             and hasattr(cls, "from_authority")
 */
  __pyx_t_6 = PyList_Check(__pyx_v_user_input); 
  __pyx_t_7 = (__pyx_t_6 != 0);
  if (!__pyx_t_7) {
  } else {
    __pyx_t_2 = __pyx_t_7;
    goto __pyx_L8_bool_binop_done;
  }
  __pyx_t_7 = PyTuple_Check(__pyx_v_user_input); 
  __pyx_t_6 = (__pyx_t_7 != 0);
  __pyx_t_2 = __pyx_t_6;
  __pyx_L8_bool_binop_done:;
  __pyx_t_6 = (__pyx_t_2 != 0);
  if (__pyx_t_6) {
  } else {
    __pyx_t_1 = __pyx_t_6;
    goto __pyx_L6_bool_binop_done;
  }

  /* "pyproj/_crs.pyx":565
 *         elif (
 *             isinstance(user_input, (list, tuple))
 *             and len(user_input) == 2             # <<<<<<<<<<<<<<
 *             and hasattr(cls, "from_authority")
 *         ):
 */
  __pyx_t_8 = PyObject_Length(__pyx_v_user_input); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(0, 565, __pyx_L1_error)
  __pyx_t_6 = ((__pyx_t_8 == 2) != 0);
  if (__pyx_t_6) {
  } else {
    __pyx_t_1 = __pyx_t_6;
    goto __pyx_L6_bool_binop_done;
  }

  /* "pyproj/_crs.pyx":566
 *             isinstance(user_input, (list, tuple))
 *             and len(user_input) == 2
 *             and hasattr(cls, "from_authority")             # <<<<<<<<<<<<<<
 *         ):
 *             prepared = cls.from_authority(*user_input)
 */
  __pyx_t_6 = __Pyx_HasAttr(((PyObject *)__pyx_v_cls), __pyx_n_u_from_authority); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 566, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_6 != 0);
  __pyx_t_1 = __pyx_t_2;
  __pyx_L6_bool_binop_done:;

  /* "pyproj/_crs.pyx":563
 *         elif isinstance(user_input, int) and hasattr(cls, "from_epsg"):
 *             prepared = cls.from_epsg(user_input)
 *         elif (             # <<<<<<<<<<<<<<
 *             isinstance(user_input, (list, tuple))
 *             and len(user_input) == 2
 */
  if (__pyx_t_1) {

    /* "pyproj/_crs.pyx":568
 *             and hasattr(cls, "from_authority")
 *         ):
 *             prepared = cls.from_authority(*user_input)             # <<<<<<<<<<<<<<
 *         elif hasattr(user_input, "to_json"):
 *             prepared = cls.from_json(user_input.to_json())
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cls), __pyx_n_s_from_authority); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 568, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PySequence_Tuple(__pyx_v_user_input); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 568, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 568, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_prepared = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "pyproj/_crs.pyx":563
 *         elif isinstance(user_input, int) and hasattr(cls, "from_epsg"):
 *             prepared = cls.from_epsg(user_input)
 *         elif (             # <<<<<<<<<<<<<<
 *             isinstance(user_input, (list, tuple))
 *             and len(user_input) == 2
 */
    goto __pyx_L3;
  }

  /* "pyproj/_crs.pyx":569
 *         ):
 *             prepared = cls.from_authority(*user_input)
 *         elif hasattr(user_input, "to_json"):             # <<<<<<<<<<<<<<
 *             prepared = cls.from_json(user_input.to_json())
 *         else:
 */
  __pyx_t_1 = __Pyx_HasAttr(__pyx_v_user_input, __pyx_n_u_to_json); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 569, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (likely(__pyx_t_2)) {

    /* "pyproj/_crs.pyx":570
 *             prepared = cls.from_authority(*user_input)
 *         elif hasattr(user_input, "to_json"):
 *             prepared = cls.from_json(user_input.to_json())             # <<<<<<<<<<<<<<
 *         else:
 *             raise CRSError("Invalid {} input: {!r}".format(
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cls), __pyx_n_s_from_json); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 570, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_user_input, __pyx_n_s_to_json); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 570, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) {
      __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_9);
      if (likely(__pyx_t_10)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9);
        __Pyx_INCREF(__pyx_t_10);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_9, function);
      }
    }
    __pyx_t_3 = (__pyx_t_10) ? __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_10) : __Pyx_PyObject_CallNoArg(__pyx_t_9);
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 570, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_9)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_9);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_5 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_9, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3);
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 570, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_prepared = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "pyproj/_crs.pyx":569
 *         ):
 *             prepared = cls.from_authority(*user_input)
 *         elif hasattr(user_input, "to_json"):             # <<<<<<<<<<<<<<
 *             prepared = cls.from_json(user_input.to_json())
 *         else:
 */
    goto __pyx_L3;
  }

  /* "pyproj/_crs.pyx":572
 *             prepared = cls.from_json(user_input.to_json())
 *         else:
 *             raise CRSError("Invalid {} input: {!r}".format(             # <<<<<<<<<<<<<<
 *                 cls.__name__,
 *                 user_input,
 */
  /*else*/ {
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 572, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_Invalid_input_r, __pyx_n_s_format); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 572, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);

    /* "pyproj/_crs.pyx":573
 *         else:
 *             raise CRSError("Invalid {} input: {!r}".format(
 *                 cls.__name__,             # <<<<<<<<<<<<<<
 *                 user_input,
 *             ))
 */
    __pyx_t_10 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_cls), __pyx_n_s_name_2); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 573, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);

    /* "pyproj/_crs.pyx":574
 *             raise CRSError("Invalid {} input: {!r}".format(
 *                 cls.__name__,
 *                 user_input,             # <<<<<<<<<<<<<<
 *             ))
 *         return prepared
 */
    __pyx_t_11 = NULL;
    __pyx_t_12 = 0;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) {
      __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_9);
      if (likely(__pyx_t_11)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9);
        __Pyx_INCREF(__pyx_t_11);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_9, function);
        __pyx_t_12 = 1;
      }
    }
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_9)) {
      PyObject *__pyx_temp[3] = {__pyx_t_11, __pyx_t_10, __pyx_v_user_input};
      __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_12, 2+__pyx_t_12); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 572, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_9)) {
      PyObject *__pyx_temp[3] = {__pyx_t_11, __pyx_t_10, __pyx_v_user_input};
      __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_9, __pyx_temp+1-__pyx_t_12, 2+__pyx_t_12); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 572, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    } else
    #endif
    {
      __pyx_t_13 = PyTuple_New(2+__pyx_t_12); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 572, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_13);
      if (__pyx_t_11) {
        __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_11); __pyx_t_11 = NULL;
      }
      __Pyx_GIVEREF(__pyx_t_10);
      PyTuple_SET_ITEM(__pyx_t_13, 0+__pyx_t_12, __pyx_t_10);
      __Pyx_INCREF(__pyx_v_user_input);
      __Pyx_GIVEREF(__pyx_v_user_input);
      PyTuple_SET_ITEM(__pyx_t_13, 1+__pyx_t_12, __pyx_v_user_input);
      __pyx_t_10 = 0;
      __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_9, __pyx_t_13, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 572, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
    }
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_9)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_9);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_5 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_9, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3);
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 572, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_Raise(__pyx_t_5, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __PYX_ERR(0, 572, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "pyproj/_crs.pyx":576
 *                 user_input,
 *             ))
 *         return prepared             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_prepared);
  __pyx_r = __pyx_v_prepared;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":535
 * cdef class _CRSParts(Base):
 *     @classmethod
 *     def from_user_input(cls, user_input):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.5.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_AddTraceback("pyproj._crs._CRSParts.from_user_input", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_prepared);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_9_CRSParts_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_6pyproj_4_crs_9_CRSParts_2__reduce_cython__[] = "_CRSParts.__reduce_cython__(self)";
static PyObject *__pyx_pw_6pyproj_4_crs_9_CRSParts_3__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_9_CRSParts_2__reduce_cython__(((struct __pyx_obj_6pyproj_4_crs__CRSParts *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_9_CRSParts_2__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs__CRSParts *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs._CRSParts.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_9_CRSParts_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static char __pyx_doc_6pyproj_4_crs_9_CRSParts_4__setstate_cython__[] = "_CRSParts.__setstate_cython__(self, __pyx_state)";
static PyObject *__pyx_pw_6pyproj_4_crs_9_CRSParts_5__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_9_CRSParts_4__setstate_cython__(((struct __pyx_obj_6pyproj_4_crs__CRSParts *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_9_CRSParts_4__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs__CRSParts *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__11, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs._CRSParts.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":604
 * 
 *     """
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._axis_list = None
 * 
 */

/* Python wrapper */
static int __pyx_pw_6pyproj_4_crs_16CoordinateSystem_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_6pyproj_4_crs_16CoordinateSystem_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1;
  __pyx_r = __pyx_pf_6pyproj_4_crs_16CoordinateSystem___cinit__(((struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6pyproj_4_crs_16CoordinateSystem___cinit__(struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "pyproj/_crs.pyx":605
 *     """
 *     def __cinit__(self):
 *         self._axis_list = None             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self):
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->_axis_list);
  __Pyx_DECREF(__pyx_v_self->_axis_list);
  __pyx_v_self->_axis_list = Py_None;

  /* "pyproj/_crs.pyx":604
 * 
 *     """
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._axis_list = None
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":607
 *         self._axis_list = None
 * 
 *     def __init__(self):             # <<<<<<<<<<<<<<
 *         raise RuntimeError("CoordinateSystem is not initializable.")
 * 
 */

/* Python wrapper */
static int __pyx_pw_6pyproj_4_crs_16CoordinateSystem_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_6pyproj_4_crs_16CoordinateSystem_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 0))) return -1;
  __pyx_r = __pyx_pf_6pyproj_4_crs_16CoordinateSystem_2__init__(((struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6pyproj_4_crs_16CoordinateSystem_2__init__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "pyproj/_crs.pyx":608
 * 
 *     def __init__(self):
 *         raise RuntimeError("CoordinateSystem is not initializable.")             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(0, 608, __pyx_L1_error)

  /* "pyproj/_crs.pyx":607
 *         self._axis_list = None
 * 
 *     def __init__(self):             # <<<<<<<<<<<<<<
 *         raise RuntimeError("CoordinateSystem is not initializable.")
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.CoordinateSystem.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":611
 * 
 *     @staticmethod
 *     cdef CoordinateSystem create(PJ_CONTEXT* context, PJ* coord_system_pj):             # <<<<<<<<<<<<<<
 *         cdef CoordinateSystem coord_system = CoordinateSystem.__new__(CoordinateSystem)
 *         coord_system.context = context
 */

static struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *__pyx_f_6pyproj_4_crs_16CoordinateSystem_create(PJ_CONTEXT *__pyx_v_context, PJ *__pyx_v_coord_system_pj) {
  struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *__pyx_v_coord_system = 0;
  PJ_COORDINATE_SYSTEM_TYPE __pyx_v_cs_type;
  struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("create", 0);

  /* "pyproj/_crs.pyx":612
 *     @staticmethod
 *     cdef CoordinateSystem create(PJ_CONTEXT* context, PJ* coord_system_pj):
 *         cdef CoordinateSystem coord_system = CoordinateSystem.__new__(CoordinateSystem)             # <<<<<<<<<<<<<<
 *         coord_system.context = context
 *         coord_system.projobj = coord_system_pj
 */
  __pyx_t_1 = ((PyObject *)__pyx_tp_new_6pyproj_4_crs_CoordinateSystem(((PyTypeObject *)__pyx_ptype_6pyproj_4_crs_CoordinateSystem), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 612, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  __pyx_v_coord_system = ((struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":613
 *     cdef CoordinateSystem create(PJ_CONTEXT* context, PJ* coord_system_pj):
 *         cdef CoordinateSystem coord_system = CoordinateSystem.__new__(CoordinateSystem)
 *         coord_system.context = context             # <<<<<<<<<<<<<<
 *         coord_system.projobj = coord_system_pj
 *         cdef PJ_COORDINATE_SYSTEM_TYPE cs_type = proj_cs_get_type(
 */
  __pyx_v_coord_system->__pyx_base.__pyx_base.context = __pyx_v_context;

  /* "pyproj/_crs.pyx":614
 *         cdef CoordinateSystem coord_system = CoordinateSystem.__new__(CoordinateSystem)
 *         coord_system.context = context
 *         coord_system.projobj = coord_system_pj             # <<<<<<<<<<<<<<
 *         cdef PJ_COORDINATE_SYSTEM_TYPE cs_type = proj_cs_get_type(
 *             coord_system.context,
 */
  __pyx_v_coord_system->__pyx_base.__pyx_base.projobj = __pyx_v_coord_system_pj;

  /* "pyproj/_crs.pyx":615
 *         coord_system.context = context
 *         coord_system.projobj = coord_system_pj
 *         cdef PJ_COORDINATE_SYSTEM_TYPE cs_type = proj_cs_get_type(             # <<<<<<<<<<<<<<
 *             coord_system.context,
 *             coord_system.projobj,
 */
  __pyx_v_cs_type = proj_cs_get_type(__pyx_v_coord_system->__pyx_base.__pyx_base.context, __pyx_v_coord_system->__pyx_base.__pyx_base.projobj);

  /* "pyproj/_crs.pyx":619
 *             coord_system.projobj,
 *         )
 *         coord_system.name = _COORD_SYSTEM_TYPE_MAP[cs_type]             # <<<<<<<<<<<<<<
 *         return coord_system
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_COORD_SYSTEM_TYPE_MAP); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 619, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_From_PJ_COORDINATE_SYSTEM_TYPE(__pyx_v_cs_type); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 619, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 619, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_GOTREF(__pyx_v_coord_system->__pyx_base.__pyx_base.name);
  __Pyx_DECREF(__pyx_v_coord_system->__pyx_base.__pyx_base.name);
  __pyx_v_coord_system->__pyx_base.__pyx_base.name = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":620
 *         )
 *         coord_system.name = _COORD_SYSTEM_TYPE_MAP[cs_type]
 *         return coord_system             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __Pyx_INCREF(((PyObject *)__pyx_v_coord_system));
  __pyx_r = __pyx_v_coord_system;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":611
 * 
 *     @staticmethod
 *     cdef CoordinateSystem create(PJ_CONTEXT* context, PJ* coord_system_pj):             # <<<<<<<<<<<<<<
 *         cdef CoordinateSystem coord_system = CoordinateSystem.__new__(CoordinateSystem)
 *         coord_system.context = context
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("pyproj._crs.CoordinateSystem.create", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_coord_system);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":623
 * 
 *     @property
 *     def axis_list(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_16CoordinateSystem_9axis_list_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_16CoordinateSystem_9axis_list_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_16CoordinateSystem_9axis_list___get__(((struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_16CoordinateSystem_9axis_list___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *__pyx_v_self) {
  int __pyx_v_num_axes;
  long __pyx_v_axis_idx;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_t_5;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "pyproj/_crs.pyx":630
 *             The Axis list for the coordinate system.
 *         """
 *         if self._axis_list is not None:             # <<<<<<<<<<<<<<
 *             return self._axis_list
 *         self._axis_list = []
 */
  __pyx_t_1 = (__pyx_v_self->_axis_list != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":631
 *         """
 *         if self._axis_list is not None:
 *             return self._axis_list             # <<<<<<<<<<<<<<
 *         self._axis_list = []
 *         cdef int num_axes = 0
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_self->_axis_list);
    __pyx_r = __pyx_v_self->_axis_list;
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":630
 *             The Axis list for the coordinate system.
 *         """
 *         if self._axis_list is not None:             # <<<<<<<<<<<<<<
 *             return self._axis_list
 *         self._axis_list = []
 */
  }

  /* "pyproj/_crs.pyx":632
 *         if self._axis_list is not None:
 *             return self._axis_list
 *         self._axis_list = []             # <<<<<<<<<<<<<<
 *         cdef int num_axes = 0
 *         num_axes = proj_cs_get_axis_count(
 */
  __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 632, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_GOTREF(__pyx_v_self->_axis_list);
  __Pyx_DECREF(__pyx_v_self->_axis_list);
  __pyx_v_self->_axis_list = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":633
 *             return self._axis_list
 *         self._axis_list = []
 *         cdef int num_axes = 0             # <<<<<<<<<<<<<<
 *         num_axes = proj_cs_get_axis_count(
 *             self.context,
 */
  __pyx_v_num_axes = 0;

  /* "pyproj/_crs.pyx":634
 *         self._axis_list = []
 *         cdef int num_axes = 0
 *         num_axes = proj_cs_get_axis_count(             # <<<<<<<<<<<<<<
 *             self.context,
 *             self.projobj
 */
  __pyx_v_num_axes = proj_cs_get_axis_count(__pyx_v_self->__pyx_base.__pyx_base.context, __pyx_v_self->__pyx_base.__pyx_base.projobj);

  /* "pyproj/_crs.pyx":638
 *             self.projobj
 *         )
 *         for axis_idx from 0 <= axis_idx < num_axes:             # <<<<<<<<<<<<<<
 *             self._axis_list.append(
 *                 Axis.create(
 */
  __pyx_t_4 = __pyx_v_num_axes;
  for (__pyx_v_axis_idx = 0; __pyx_v_axis_idx < __pyx_t_4; __pyx_v_axis_idx++) {

    /* "pyproj/_crs.pyx":640
 *         for axis_idx from 0 <= axis_idx < num_axes:
 *             self._axis_list.append(
 *                 Axis.create(             # <<<<<<<<<<<<<<
 *                     self.context,
 *                     self.projobj,
 */
    __pyx_t_3 = ((PyObject *)__pyx_f_6pyproj_4_crs_4Axis_create(__pyx_v_self->__pyx_base.__pyx_base.context, __pyx_v_self->__pyx_base.__pyx_base.projobj, __pyx_v_axis_idx)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 640, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);

    /* "pyproj/_crs.pyx":639
 *         )
 *         for axis_idx from 0 <= axis_idx < num_axes:
 *             self._axis_list.append(             # <<<<<<<<<<<<<<
 *                 Axis.create(
 *                     self.context,
 */
    __pyx_t_5 = __Pyx_PyObject_Append(__pyx_v_self->_axis_list, __pyx_t_3); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 639, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }

  /* "pyproj/_crs.pyx":646
 *                 )
 *             )
 *         return self._axis_list             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_axis_list);
  __pyx_r = __pyx_v_self->_axis_list;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":623
 * 
 *     @property
 *     def axis_list(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("pyproj._crs.CoordinateSystem.axis_list.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":649
 * 
 *     @staticmethod
 *     def from_string(coordinate_system_string):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.5.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_16CoordinateSystem_5from_string(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_16CoordinateSystem_4from_string[] = "CoordinateSystem.from_string(coordinate_system_string)\n\n        .. versionadded:: 2.5.0\n\n        .. note:: Only works with PROJ JSON.\n\n        Create a Coordinate System from a string.\n\n        Parameters\n        ----------\n        coordinate_system_string: str\n            Coordinate System string.\n\n        Returns\n        -------\n        CoordinateSystem\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_16CoordinateSystem_5from_string = {"from_string", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_16CoordinateSystem_5from_string, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_16CoordinateSystem_4from_string};
static PyObject *__pyx_pw_6pyproj_4_crs_16CoordinateSystem_5from_string(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_coordinate_system_string = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_string (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_coordinate_system_string,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_coordinate_system_string)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "from_string") < 0)) __PYX_ERR(0, 649, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_coordinate_system_string = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_string", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 649, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.CoordinateSystem.from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_16CoordinateSystem_4from_string(__pyx_v_coordinate_system_string);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_16CoordinateSystem_4from_string(PyObject *__pyx_v_coordinate_system_string) {
  PJ_CONTEXT *__pyx_v_context;
  PJ *__pyx_v_coordinate_system_pj;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  char const *__pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  __Pyx_RefNannySetupContext("from_string", 0);

  /* "pyproj/_crs.pyx":666
 *         CoordinateSystem
 *         """
 *         cdef PJ_CONTEXT* context = proj_context_create()             # <<<<<<<<<<<<<<
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* coordinate_system_pj = proj_create(
 */
  __pyx_v_context = proj_context_create();

  /* "pyproj/_crs.pyx":667
 *         """
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)             # <<<<<<<<<<<<<<
 *         cdef PJ* coordinate_system_pj = proj_create(
 *             context,
 */
  __pyx_f_6pyproj_8_datadir_pyproj_context_initialize(__pyx_v_context, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 667, __pyx_L1_error)

  /* "pyproj/_crs.pyx":670
 *         cdef PJ* coordinate_system_pj = proj_create(
 *             context,
 *             cstrencode(coordinate_system_string)             # <<<<<<<<<<<<<<
 *         )
 *         if coordinate_system_pj == NULL or proj_cs_get_type(
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cstrencode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 670, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_v_coordinate_system_string) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_coordinate_system_string);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 670, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 670, __pyx_L1_error)

  /* "pyproj/_crs.pyx":668
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* coordinate_system_pj = proj_create(             # <<<<<<<<<<<<<<
 *             context,
 *             cstrencode(coordinate_system_string)
 */
  __pyx_v_coordinate_system_pj = proj_create(__pyx_v_context, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":672
 *             cstrencode(coordinate_system_string)
 *         )
 *         if coordinate_system_pj == NULL or proj_cs_get_type(             # <<<<<<<<<<<<<<
 *             context,
 *             coordinate_system_pj,
 */
  __pyx_t_6 = ((__pyx_v_coordinate_system_pj == NULL) != 0);
  if (!__pyx_t_6) {
  } else {
    __pyx_t_5 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }

  /* "pyproj/_crs.pyx":675
 *             context,
 *             coordinate_system_pj,
 *         ) == PJ_CS_TYPE_UNKNOWN:             # <<<<<<<<<<<<<<
 *             proj_destroy(coordinate_system_pj)
 *             proj_context_destroy(context)
 */
  __pyx_t_6 = ((proj_cs_get_type(__pyx_v_context, __pyx_v_coordinate_system_pj) == PJ_CS_TYPE_UNKNOWN) != 0);
  __pyx_t_5 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;

  /* "pyproj/_crs.pyx":672
 *             cstrencode(coordinate_system_string)
 *         )
 *         if coordinate_system_pj == NULL or proj_cs_get_type(             # <<<<<<<<<<<<<<
 *             context,
 *             coordinate_system_pj,
 */
  if (unlikely(__pyx_t_5)) {

    /* "pyproj/_crs.pyx":676
 *             coordinate_system_pj,
 *         ) == PJ_CS_TYPE_UNKNOWN:
 *             proj_destroy(coordinate_system_pj)             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             raise CRSError(
 */
    proj_destroy(__pyx_v_coordinate_system_pj);

    /* "pyproj/_crs.pyx":677
 *         ) == PJ_CS_TYPE_UNKNOWN:
 *             proj_destroy(coordinate_system_pj)
 *             proj_context_destroy(context)             # <<<<<<<<<<<<<<
 *             raise CRSError(
 *                 "Invalid coordinate system string: {}".format(
 */
    (void)(proj_context_destroy(__pyx_v_context));

    /* "pyproj/_crs.pyx":678
 *             proj_destroy(coordinate_system_pj)
 *             proj_context_destroy(context)
 *             raise CRSError(             # <<<<<<<<<<<<<<
 *                 "Invalid coordinate system string: {}".format(
 *                     pystrdecode(coordinate_system_string)
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 678, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);

    /* "pyproj/_crs.pyx":679
 *             proj_context_destroy(context)
 *             raise CRSError(
 *                 "Invalid coordinate system string: {}".format(             # <<<<<<<<<<<<<<
 *                     pystrdecode(coordinate_system_string)
 *                 )
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_Invalid_coordinate_system_string, __pyx_n_s_format); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 679, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);

    /* "pyproj/_crs.pyx":680
 *             raise CRSError(
 *                 "Invalid coordinate system string: {}".format(
 *                     pystrdecode(coordinate_system_string)             # <<<<<<<<<<<<<<
 *                 )
 *             )
 */
    __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_pystrdecode); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 680, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) {
      __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_9);
      if (likely(__pyx_t_10)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9);
        __Pyx_INCREF(__pyx_t_10);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_9, function);
      }
    }
    __pyx_t_8 = (__pyx_t_10) ? __Pyx_PyObject_Call2Args(__pyx_t_9, __pyx_t_10, __pyx_v_coordinate_system_string) : __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_v_coordinate_system_string);
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 680, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_7);
      if (likely(__pyx_t_9)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_9);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_7, function);
      }
    }
    __pyx_t_3 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_9, __pyx_t_8) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_8);
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 679, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_1 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_7, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 678, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 678, __pyx_L1_error)

    /* "pyproj/_crs.pyx":672
 *             cstrencode(coordinate_system_string)
 *         )
 *         if coordinate_system_pj == NULL or proj_cs_get_type(             # <<<<<<<<<<<<<<
 *             context,
 *             coordinate_system_pj,
 */
  }

  /* "pyproj/_crs.pyx":683
 *                 )
 *             )
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         return CoordinateSystem.create(context, coordinate_system_pj)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 683, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_clear); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 683, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 683, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":684
 *             )
 *         CRSError.clear()
 *         return CoordinateSystem.create(context, coordinate_system_pj)             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_6pyproj_4_crs_16CoordinateSystem_create(__pyx_v_context, __pyx_v_coordinate_system_pj)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":649
 * 
 *     @staticmethod
 *     def from_string(coordinate_system_string):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.5.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("pyproj._crs.CoordinateSystem.from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":687
 * 
 *     @staticmethod
 *     def from_json_dict(coordinate_system_dict):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.5.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_16CoordinateSystem_7from_json_dict(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_16CoordinateSystem_6from_json_dict[] = "CoordinateSystem.from_json_dict(coordinate_system_dict)\n\n        .. versionadded:: 2.5.0\n\n        Create Coordinate System from a JSON dictionary.\n\n        Parameters\n        ----------\n        coordinate_system_dict: str\n            Coordinate System dictionary.\n\n        Returns\n        -------\n        CoordinateSystem\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_16CoordinateSystem_7from_json_dict = {"from_json_dict", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_16CoordinateSystem_7from_json_dict, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_16CoordinateSystem_6from_json_dict};
static PyObject *__pyx_pw_6pyproj_4_crs_16CoordinateSystem_7from_json_dict(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_coordinate_system_dict = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_json_dict (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_coordinate_system_dict,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_coordinate_system_dict)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "from_json_dict") < 0)) __PYX_ERR(0, 687, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_coordinate_system_dict = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_json_dict", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 687, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.CoordinateSystem.from_json_dict", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_16CoordinateSystem_6from_json_dict(__pyx_v_coordinate_system_dict);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_16CoordinateSystem_6from_json_dict(PyObject *__pyx_v_coordinate_system_dict) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("from_json_dict", 0);

  /* "pyproj/_crs.pyx":702
 *         CoordinateSystem
 *         """
 *         return CoordinateSystem.from_string(json.dumps(coordinate_system_dict))             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateSystem), __pyx_n_s_from_string); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 702, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_json); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 702, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_dumps); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 702, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_5, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_4, __pyx_v_coordinate_system_dict) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_coordinate_system_dict);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 702, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 702, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":687
 * 
 *     @staticmethod
 *     def from_json_dict(coordinate_system_dict):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.5.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs.CoordinateSystem.from_json_dict", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":705
 * 
 *     @staticmethod
 *     def from_json(coordinate_system_json_str):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.5.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_16CoordinateSystem_9from_json(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_16CoordinateSystem_8from_json[] = "CoordinateSystem.from_json(coordinate_system_json_str)\n\n        .. versionadded:: 2.5.0\n\n        Create Coordinate System from a JSON string.\n\n        Parameters\n        ----------\n        coordinate_system_json_str: str\n            Coordinate System JSON string.\n\n        Returns\n        -------\n        CoordinateSystem\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_16CoordinateSystem_9from_json = {"from_json", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_16CoordinateSystem_9from_json, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_16CoordinateSystem_8from_json};
static PyObject *__pyx_pw_6pyproj_4_crs_16CoordinateSystem_9from_json(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_coordinate_system_json_str = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_json (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_coordinate_system_json_str,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_coordinate_system_json_str)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "from_json") < 0)) __PYX_ERR(0, 705, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_coordinate_system_json_str = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_json", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 705, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.CoordinateSystem.from_json", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_16CoordinateSystem_8from_json(__pyx_v_coordinate_system_json_str);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_16CoordinateSystem_8from_json(PyObject *__pyx_v_coordinate_system_json_str) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("from_json", 0);

  /* "pyproj/_crs.pyx":720
 *         CoordinateSystem
 *         """
 *         return CoordinateSystem.from_json_dict(             # <<<<<<<<<<<<<<
 *             _load_proj_json(coordinate_system_json_str)
 *         )
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateSystem), __pyx_n_s_from_json_dict); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 720, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);

  /* "pyproj/_crs.pyx":721
 *         """
 *         return CoordinateSystem.from_json_dict(
 *             _load_proj_json(coordinate_system_json_str)             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_load_proj_json); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 721, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
    }
  }
  __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_coordinate_system_json_str) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_coordinate_system_json_str);
  __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 721, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 720, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":705
 * 
 *     @staticmethod
 *     def from_json(coordinate_system_json_str):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.5.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs.CoordinateSystem.from_json", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":71
 * 
 * cdef class CoordinateSystem(_CRSParts):
 *     cdef readonly object _axis_list             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_16CoordinateSystem_10_axis_list_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_16CoordinateSystem_10_axis_list_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_16CoordinateSystem_10_axis_list___get__(((struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_16CoordinateSystem_10_axis_list___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_axis_list);
  __pyx_r = __pyx_v_self->_axis_list;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_16CoordinateSystem_11__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_6pyproj_4_crs_16CoordinateSystem_10__reduce_cython__[] = "CoordinateSystem.__reduce_cython__(self)";
static PyObject *__pyx_pw_6pyproj_4_crs_16CoordinateSystem_11__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_16CoordinateSystem_10__reduce_cython__(((struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_16CoordinateSystem_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__13, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.CoordinateSystem.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_16CoordinateSystem_13__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static char __pyx_doc_6pyproj_4_crs_16CoordinateSystem_12__setstate_cython__[] = "CoordinateSystem.__setstate_cython__(self, __pyx_state)";
static PyObject *__pyx_pw_6pyproj_4_crs_16CoordinateSystem_13__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_16CoordinateSystem_12__setstate_cython__(((struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_16CoordinateSystem_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__14, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.CoordinateSystem.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":745
 * 
 *     """
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         # load in ellipsoid information if applicable
 *         self.semi_major_metre = float("NaN")
 */

/* Python wrapper */
static int __pyx_pw_6pyproj_4_crs_9Ellipsoid_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_6pyproj_4_crs_9Ellipsoid_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1;
  __pyx_r = __pyx_pf_6pyproj_4_crs_9Ellipsoid___cinit__(((struct __pyx_obj_6pyproj_4_crs_Ellipsoid *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6pyproj_4_crs_9Ellipsoid___cinit__(struct __pyx_obj_6pyproj_4_crs_Ellipsoid *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  double __pyx_t_1;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "pyproj/_crs.pyx":747
 *     def __cinit__(self):
 *         # load in ellipsoid information if applicable
 *         self.semi_major_metre = float("NaN")             # <<<<<<<<<<<<<<
 *         self.semi_minor_metre = float("NaN")
 *         self.is_semi_minor_computed = False
 */
  __pyx_t_1 = __Pyx_PyObject_AsDouble(__pyx_n_u_NaN); if (unlikely(__pyx_t_1 == ((double)((double)-1)) && PyErr_Occurred())) __PYX_ERR(0, 747, __pyx_L1_error)
  __pyx_v_self->semi_major_metre = __pyx_t_1;

  /* "pyproj/_crs.pyx":748
 *         # load in ellipsoid information if applicable
 *         self.semi_major_metre = float("NaN")
 *         self.semi_minor_metre = float("NaN")             # <<<<<<<<<<<<<<
 *         self.is_semi_minor_computed = False
 *         self.inverse_flattening = float("NaN")
 */
  __pyx_t_1 = __Pyx_PyObject_AsDouble(__pyx_n_u_NaN); if (unlikely(__pyx_t_1 == ((double)((double)-1)) && PyErr_Occurred())) __PYX_ERR(0, 748, __pyx_L1_error)
  __pyx_v_self->semi_minor_metre = __pyx_t_1;

  /* "pyproj/_crs.pyx":749
 *         self.semi_major_metre = float("NaN")
 *         self.semi_minor_metre = float("NaN")
 *         self.is_semi_minor_computed = False             # <<<<<<<<<<<<<<
 *         self.inverse_flattening = float("NaN")
 * 
 */
  __Pyx_INCREF(Py_False);
  __Pyx_GIVEREF(Py_False);
  __Pyx_GOTREF(__pyx_v_self->is_semi_minor_computed);
  __Pyx_DECREF(__pyx_v_self->is_semi_minor_computed);
  __pyx_v_self->is_semi_minor_computed = Py_False;

  /* "pyproj/_crs.pyx":750
 *         self.semi_minor_metre = float("NaN")
 *         self.is_semi_minor_computed = False
 *         self.inverse_flattening = float("NaN")             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self):
 */
  __pyx_t_1 = __Pyx_PyObject_AsDouble(__pyx_n_u_NaN); if (unlikely(__pyx_t_1 == ((double)((double)-1)) && PyErr_Occurred())) __PYX_ERR(0, 750, __pyx_L1_error)
  __pyx_v_self->inverse_flattening = __pyx_t_1;

  /* "pyproj/_crs.pyx":745
 * 
 *     """
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         # load in ellipsoid information if applicable
 *         self.semi_major_metre = float("NaN")
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyproj._crs.Ellipsoid.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":752
 *         self.inverse_flattening = float("NaN")
 * 
 *     def __init__(self):             # <<<<<<<<<<<<<<
 *         raise RuntimeError(
 *             "Ellipsoid can only be initialized like 'Ellipsoid.from_*()'."
 */

/* Python wrapper */
static int __pyx_pw_6pyproj_4_crs_9Ellipsoid_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_6pyproj_4_crs_9Ellipsoid_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 0))) return -1;
  __pyx_r = __pyx_pf_6pyproj_4_crs_9Ellipsoid_2__init__(((struct __pyx_obj_6pyproj_4_crs_Ellipsoid *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6pyproj_4_crs_9Ellipsoid_2__init__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_Ellipsoid *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "pyproj/_crs.pyx":753
 * 
 *     def __init__(self):
 *         raise RuntimeError(             # <<<<<<<<<<<<<<
 *             "Ellipsoid can only be initialized like 'Ellipsoid.from_*()'."
 *         )
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__15, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 753, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(0, 753, __pyx_L1_error)

  /* "pyproj/_crs.pyx":752
 *         self.inverse_flattening = float("NaN")
 * 
 *     def __init__(self):             # <<<<<<<<<<<<<<
 *         raise RuntimeError(
 *             "Ellipsoid can only be initialized like 'Ellipsoid.from_*()'."
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.Ellipsoid.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":758
 * 
 *     @staticmethod
 *     cdef Ellipsoid create(PJ_CONTEXT* context, PJ* ellipsoid_pj):             # <<<<<<<<<<<<<<
 *         cdef Ellipsoid ellips = Ellipsoid.__new__(Ellipsoid)
 *         ellips.context = context
 */

static struct __pyx_obj_6pyproj_4_crs_Ellipsoid *__pyx_f_6pyproj_4_crs_9Ellipsoid_create(PJ_CONTEXT *__pyx_v_context, PJ *__pyx_v_ellipsoid_pj) {
  struct __pyx_obj_6pyproj_4_crs_Ellipsoid *__pyx_v_ellips = 0;
  int __pyx_v_is_semi_minor_computed;
  struct __pyx_obj_6pyproj_4_crs_Ellipsoid *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("create", 0);

  /* "pyproj/_crs.pyx":759
 *     @staticmethod
 *     cdef Ellipsoid create(PJ_CONTEXT* context, PJ* ellipsoid_pj):
 *         cdef Ellipsoid ellips = Ellipsoid.__new__(Ellipsoid)             # <<<<<<<<<<<<<<
 *         ellips.context = context
 *         ellips.projobj = ellipsoid_pj
 */
  __pyx_t_1 = ((PyObject *)__pyx_tp_new_6pyproj_4_crs_Ellipsoid(((PyTypeObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 759, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  __pyx_v_ellips = ((struct __pyx_obj_6pyproj_4_crs_Ellipsoid *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":760
 *     cdef Ellipsoid create(PJ_CONTEXT* context, PJ* ellipsoid_pj):
 *         cdef Ellipsoid ellips = Ellipsoid.__new__(Ellipsoid)
 *         ellips.context = context             # <<<<<<<<<<<<<<
 *         ellips.projobj = ellipsoid_pj
 *         cdef int is_semi_minor_computed = 0
 */
  __pyx_v_ellips->__pyx_base.__pyx_base.context = __pyx_v_context;

  /* "pyproj/_crs.pyx":761
 *         cdef Ellipsoid ellips = Ellipsoid.__new__(Ellipsoid)
 *         ellips.context = context
 *         ellips.projobj = ellipsoid_pj             # <<<<<<<<<<<<<<
 *         cdef int is_semi_minor_computed = 0
 *         proj_ellipsoid_get_parameters(
 */
  __pyx_v_ellips->__pyx_base.__pyx_base.projobj = __pyx_v_ellipsoid_pj;

  /* "pyproj/_crs.pyx":762
 *         ellips.context = context
 *         ellips.projobj = ellipsoid_pj
 *         cdef int is_semi_minor_computed = 0             # <<<<<<<<<<<<<<
 *         proj_ellipsoid_get_parameters(
 *             context,
 */
  __pyx_v_is_semi_minor_computed = 0;

  /* "pyproj/_crs.pyx":763
 *         ellips.projobj = ellipsoid_pj
 *         cdef int is_semi_minor_computed = 0
 *         proj_ellipsoid_get_parameters(             # <<<<<<<<<<<<<<
 *             context,
 *             ellipsoid_pj,
 */
  (void)(proj_ellipsoid_get_parameters(__pyx_v_context, __pyx_v_ellipsoid_pj, (&__pyx_v_ellips->semi_major_metre), (&__pyx_v_ellips->semi_minor_metre), (&__pyx_v_is_semi_minor_computed), (&__pyx_v_ellips->inverse_flattening)));

  /* "pyproj/_crs.pyx":771
 *             &ellips.inverse_flattening,
 *         )
 *         ellips.is_semi_minor_computed = is_semi_minor_computed == 1             # <<<<<<<<<<<<<<
 *         ellips._set_base_info()
 *         CRSError.clear()
 */
  __pyx_t_1 = __Pyx_PyBool_FromLong((__pyx_v_is_semi_minor_computed == 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 771, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_ellips->is_semi_minor_computed);
  __Pyx_DECREF(__pyx_v_ellips->is_semi_minor_computed);
  __pyx_v_ellips->is_semi_minor_computed = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":772
 *         )
 *         ellips.is_semi_minor_computed = is_semi_minor_computed == 1
 *         ellips._set_base_info()             # <<<<<<<<<<<<<<
 *         CRSError.clear()
 *         return ellips
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_6pyproj_4_crs_Ellipsoid *)__pyx_v_ellips->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base._set_base_info(((struct __pyx_obj_6pyproj_4_crs_Base *)__pyx_v_ellips)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 772, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":773
 *         ellips.is_semi_minor_computed = is_semi_minor_computed == 1
 *         ellips._set_base_info()
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         return ellips
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 773, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_clear); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 773, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 773, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":774
 *         ellips._set_base_info()
 *         CRSError.clear()
 *         return ellips             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __Pyx_INCREF(((PyObject *)__pyx_v_ellips));
  __pyx_r = __pyx_v_ellips;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":758
 * 
 *     @staticmethod
 *     cdef Ellipsoid create(PJ_CONTEXT* context, PJ* ellipsoid_pj):             # <<<<<<<<<<<<<<
 *         cdef Ellipsoid ellips = Ellipsoid.__new__(Ellipsoid)
 *         ellips.context = context
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("pyproj._crs.Ellipsoid.create", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_ellips);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":777
 * 
 *     @staticmethod
 *     def from_authority(auth_name, code):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_9Ellipsoid_5from_authority(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_9Ellipsoid_4from_authority[] = "Ellipsoid.from_authority(auth_name, code)\n\n        .. versionadded:: 2.2.0\n\n        Create an Ellipsoid from an authority code.\n\n        Parameters\n        ----------\n        auth_name: str\n            Name ot the authority.\n        code: str or int\n            The code used by the authority.\n\n        Returns\n        -------\n        Ellipsoid\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_9Ellipsoid_5from_authority = {"from_authority", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_9Ellipsoid_5from_authority, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_9Ellipsoid_4from_authority};
static PyObject *__pyx_pw_6pyproj_4_crs_9Ellipsoid_5from_authority(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_auth_name = 0;
  PyObject *__pyx_v_code = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_authority (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_auth_name,&__pyx_n_s_code,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_auth_name)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_code)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("from_authority", 1, 2, 2, 1); __PYX_ERR(0, 777, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "from_authority") < 0)) __PYX_ERR(0, 777, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_auth_name = values[0];
    __pyx_v_code = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_authority", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 777, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.Ellipsoid.from_authority", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_9Ellipsoid_4from_authority(__pyx_v_auth_name, __pyx_v_code);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_9Ellipsoid_4from_authority(PyObject *__pyx_v_auth_name, PyObject *__pyx_v_code) {
  PJ_CONTEXT *__pyx_v_context;
  PJ *__pyx_v_ellipsoid_pj;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  char const *__pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  char const *__pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  __Pyx_RefNannySetupContext("from_authority", 0);

  /* "pyproj/_crs.pyx":794
 *         Ellipsoid
 *         """
 *         cdef PJ_CONTEXT* context = proj_context_create()             # <<<<<<<<<<<<<<
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* ellipsoid_pj = proj_create_from_database(
 */
  __pyx_v_context = proj_context_create();

  /* "pyproj/_crs.pyx":795
 *         """
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)             # <<<<<<<<<<<<<<
 *         cdef PJ* ellipsoid_pj = proj_create_from_database(
 *             context,
 */
  __pyx_f_6pyproj_8_datadir_pyproj_context_initialize(__pyx_v_context, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 795, __pyx_L1_error)

  /* "pyproj/_crs.pyx":798
 *         cdef PJ* ellipsoid_pj = proj_create_from_database(
 *             context,
 *             cstrencode(auth_name),             # <<<<<<<<<<<<<<
 *             cstrencode(str(code)),
 *             PJ_CATEGORY_ELLIPSOID,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cstrencode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 798, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_v_auth_name) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_auth_name);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 798, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 798, __pyx_L1_error)

  /* "pyproj/_crs.pyx":799
 *             context,
 *             cstrencode(auth_name),
 *             cstrencode(str(code)),             # <<<<<<<<<<<<<<
 *             PJ_CATEGORY_ELLIPSOID,
 *             False,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cstrencode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyUnicode_Type)), __pyx_v_code); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_6, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_7 = __Pyx_PyObject_AsString(__pyx_t_2); if (unlikely((!__pyx_t_7) && PyErr_Occurred())) __PYX_ERR(0, 799, __pyx_L1_error)

  /* "pyproj/_crs.pyx":796
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* ellipsoid_pj = proj_create_from_database(             # <<<<<<<<<<<<<<
 *             context,
 *             cstrencode(auth_name),
 */
  __pyx_v_ellipsoid_pj = proj_create_from_database(__pyx_v_context, __pyx_t_4, __pyx_t_7, PJ_CATEGORY_ELLIPSOID, 0, NULL);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":805
 *         )
 * 
 *         if ellipsoid_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             raise CRSError(
 */
  __pyx_t_8 = ((__pyx_v_ellipsoid_pj == NULL) != 0);
  if (unlikely(__pyx_t_8)) {

    /* "pyproj/_crs.pyx":806
 * 
 *         if ellipsoid_pj == NULL:
 *             proj_context_destroy(context)             # <<<<<<<<<<<<<<
 *             raise CRSError(
 *                 "Invalid authority or code ({0}, {1})".format(auth_name, code)
 */
    (void)(proj_context_destroy(__pyx_v_context));

    /* "pyproj/_crs.pyx":807
 *         if ellipsoid_pj == NULL:
 *             proj_context_destroy(context)
 *             raise CRSError(             # <<<<<<<<<<<<<<
 *                 "Invalid authority or code ({0}, {1})".format(auth_name, code)
 *             )
 */
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 807, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);

    /* "pyproj/_crs.pyx":808
 *             proj_context_destroy(context)
 *             raise CRSError(
 *                 "Invalid authority or code ({0}, {1})".format(auth_name, code)             # <<<<<<<<<<<<<<
 *             )
 *         CRSError.clear()
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_Invalid_authority_or_code_0_1, __pyx_n_s_format); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 808, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    __pyx_t_9 = 0;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
        __pyx_t_9 = 1;
      }
    }
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_5)) {
      PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_v_auth_name, __pyx_v_code};
      __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 808, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_GOTREF(__pyx_t_3);
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
      PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_v_auth_name, __pyx_v_code};
      __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 808, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_GOTREF(__pyx_t_3);
    } else
    #endif
    {
      __pyx_t_10 = PyTuple_New(2+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 808, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      if (__pyx_t_6) {
        __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_6); __pyx_t_6 = NULL;
      }
      __Pyx_INCREF(__pyx_v_auth_name);
      __Pyx_GIVEREF(__pyx_v_auth_name);
      PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_9, __pyx_v_auth_name);
      __Pyx_INCREF(__pyx_v_code);
      __Pyx_GIVEREF(__pyx_v_code);
      PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_9, __pyx_v_code);
      __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_10, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 808, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_1, function);
      }
    }
    __pyx_t_2 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_5, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 807, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 807, __pyx_L1_error)

    /* "pyproj/_crs.pyx":805
 *         )
 * 
 *         if ellipsoid_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             raise CRSError(
 */
  }

  /* "pyproj/_crs.pyx":810
 *                 "Invalid authority or code ({0}, {1})".format(auth_name, code)
 *             )
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         return Ellipsoid.create(context, ellipsoid_pj)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 810, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_clear); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 810, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_1)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_1);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_2 = (__pyx_t_1) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 810, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":811
 *             )
 *         CRSError.clear()
 *         return Ellipsoid.create(context, ellipsoid_pj)             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_f_6pyproj_4_crs_9Ellipsoid_create(__pyx_v_context, __pyx_v_ellipsoid_pj)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 811, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":777
 * 
 *     @staticmethod
 *     def from_authority(auth_name, code):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("pyproj._crs.Ellipsoid.from_authority", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":814
 * 
 *     @staticmethod
 *     def from_epsg(code):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_9Ellipsoid_7from_epsg(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_9Ellipsoid_6from_epsg[] = "Ellipsoid.from_epsg(code)\n\n        .. versionadded:: 2.2.0\n\n        Create an Ellipsoid from an EPSG code.\n\n        Parameters\n        ----------\n        code: str or int\n            The code used by the EPSG.\n\n        Returns\n        -------\n        Ellipsoid\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_9Ellipsoid_7from_epsg = {"from_epsg", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_9Ellipsoid_7from_epsg, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_9Ellipsoid_6from_epsg};
static PyObject *__pyx_pw_6pyproj_4_crs_9Ellipsoid_7from_epsg(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_code = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_epsg (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_code,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_code)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "from_epsg") < 0)) __PYX_ERR(0, 814, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_code = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_epsg", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 814, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.Ellipsoid.from_epsg", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_9Ellipsoid_6from_epsg(__pyx_v_code);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_9Ellipsoid_6from_epsg(PyObject *__pyx_v_code) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("from_epsg", 0);

  /* "pyproj/_crs.pyx":829
 *         Ellipsoid
 *         """
 *         return Ellipsoid.from_authority("EPSG", code)             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid), __pyx_n_s_from_authority); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 829, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  __pyx_t_4 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_4 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_n_u_EPSG, __pyx_v_code};
    __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 829, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_n_u_EPSG, __pyx_v_code};
    __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 829, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  {
    __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 829, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__pyx_t_3) {
      __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
    }
    __Pyx_INCREF(__pyx_n_u_EPSG);
    __Pyx_GIVEREF(__pyx_n_u_EPSG);
    PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_n_u_EPSG);
    __Pyx_INCREF(__pyx_v_code);
    __Pyx_GIVEREF(__pyx_v_code);
    PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_code);
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 829, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":814
 * 
 *     @staticmethod
 *     def from_epsg(code):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs.Ellipsoid.from_epsg", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":832
 * 
 *     @staticmethod
 *     def _from_string(ellipsoid_string):             # <<<<<<<<<<<<<<
 *         """
 *         Create an Ellipsoid from a string.
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_9Ellipsoid_9_from_string(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_9Ellipsoid_8_from_string[] = "Ellipsoid._from_string(ellipsoid_string)\n\n        Create an Ellipsoid from a string.\n\n        Examples:\n          - urn:ogc:def:ellipsoid:EPSG::7001\n          - ELLIPSOID[\"Airy 1830\",6377563.396,299.3249646,\n            LENGTHUNIT[\"metre\",1],\n            ID[\"EPSG\",7001]]\n\n        Parameters\n        ----------\n        ellipsoid_string: str\n            Ellipsoid string.\n\n        Returns\n        -------\n        Ellipsoid\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_9Ellipsoid_9_from_string = {"_from_string", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_9Ellipsoid_9_from_string, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_9Ellipsoid_8_from_string};
static PyObject *__pyx_pw_6pyproj_4_crs_9Ellipsoid_9_from_string(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_ellipsoid_string = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_from_string (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ellipsoid_string,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ellipsoid_string)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_from_string") < 0)) __PYX_ERR(0, 832, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_ellipsoid_string = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_from_string", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 832, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.Ellipsoid._from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_9Ellipsoid_8_from_string(__pyx_v_ellipsoid_string);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_9Ellipsoid_8_from_string(PyObject *__pyx_v_ellipsoid_string) {
  PJ_CONTEXT *__pyx_v_context;
  PJ *__pyx_v_ellipsoid_pj;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  char const *__pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  __Pyx_RefNannySetupContext("_from_string", 0);

  /* "pyproj/_crs.pyx":851
 *         Ellipsoid
 *         """
 *         cdef PJ_CONTEXT* context = proj_context_create()             # <<<<<<<<<<<<<<
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* ellipsoid_pj = proj_create(
 */
  __pyx_v_context = proj_context_create();

  /* "pyproj/_crs.pyx":852
 *         """
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)             # <<<<<<<<<<<<<<
 *         cdef PJ* ellipsoid_pj = proj_create(
 *             context,
 */
  __pyx_f_6pyproj_8_datadir_pyproj_context_initialize(__pyx_v_context, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 852, __pyx_L1_error)

  /* "pyproj/_crs.pyx":855
 *         cdef PJ* ellipsoid_pj = proj_create(
 *             context,
 *             cstrencode(ellipsoid_string)             # <<<<<<<<<<<<<<
 *         )
 *         if ellipsoid_pj == NULL or proj_get_type(ellipsoid_pj) != PJ_TYPE_ELLIPSOID:
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cstrencode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 855, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_v_ellipsoid_string) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_ellipsoid_string);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 855, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 855, __pyx_L1_error)

  /* "pyproj/_crs.pyx":853
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* ellipsoid_pj = proj_create(             # <<<<<<<<<<<<<<
 *             context,
 *             cstrencode(ellipsoid_string)
 */
  __pyx_v_ellipsoid_pj = proj_create(__pyx_v_context, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":857
 *             cstrencode(ellipsoid_string)
 *         )
 *         if ellipsoid_pj == NULL or proj_get_type(ellipsoid_pj) != PJ_TYPE_ELLIPSOID:             # <<<<<<<<<<<<<<
 *             proj_destroy(ellipsoid_pj)
 *             proj_context_destroy(context)
 */
  __pyx_t_6 = ((__pyx_v_ellipsoid_pj == NULL) != 0);
  if (!__pyx_t_6) {
  } else {
    __pyx_t_5 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_6 = ((proj_get_type(__pyx_v_ellipsoid_pj) != PJ_TYPE_ELLIPSOID) != 0);
  __pyx_t_5 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (unlikely(__pyx_t_5)) {

    /* "pyproj/_crs.pyx":858
 *         )
 *         if ellipsoid_pj == NULL or proj_get_type(ellipsoid_pj) != PJ_TYPE_ELLIPSOID:
 *             proj_destroy(ellipsoid_pj)             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             raise CRSError(
 */
    proj_destroy(__pyx_v_ellipsoid_pj);

    /* "pyproj/_crs.pyx":859
 *         if ellipsoid_pj == NULL or proj_get_type(ellipsoid_pj) != PJ_TYPE_ELLIPSOID:
 *             proj_destroy(ellipsoid_pj)
 *             proj_context_destroy(context)             # <<<<<<<<<<<<<<
 *             raise CRSError(
 *                 "Invalid ellipsoid string: {}".format(
 */
    (void)(proj_context_destroy(__pyx_v_context));

    /* "pyproj/_crs.pyx":860
 *             proj_destroy(ellipsoid_pj)
 *             proj_context_destroy(context)
 *             raise CRSError(             # <<<<<<<<<<<<<<
 *                 "Invalid ellipsoid string: {}".format(
 *                     pystrdecode(ellipsoid_string)
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 860, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);

    /* "pyproj/_crs.pyx":861
 *             proj_context_destroy(context)
 *             raise CRSError(
 *                 "Invalid ellipsoid string: {}".format(             # <<<<<<<<<<<<<<
 *                     pystrdecode(ellipsoid_string)
 *                 )
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_Invalid_ellipsoid_string, __pyx_n_s_format); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 861, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);

    /* "pyproj/_crs.pyx":862
 *             raise CRSError(
 *                 "Invalid ellipsoid string: {}".format(
 *                     pystrdecode(ellipsoid_string)             # <<<<<<<<<<<<<<
 *                 )
 *             )
 */
    __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_pystrdecode); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 862, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) {
      __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_9);
      if (likely(__pyx_t_10)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9);
        __Pyx_INCREF(__pyx_t_10);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_9, function);
      }
    }
    __pyx_t_8 = (__pyx_t_10) ? __Pyx_PyObject_Call2Args(__pyx_t_9, __pyx_t_10, __pyx_v_ellipsoid_string) : __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_v_ellipsoid_string);
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 862, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_7);
      if (likely(__pyx_t_9)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_9);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_7, function);
      }
    }
    __pyx_t_3 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_9, __pyx_t_8) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_8);
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 861, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_1 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_7, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 860, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 860, __pyx_L1_error)

    /* "pyproj/_crs.pyx":857
 *             cstrencode(ellipsoid_string)
 *         )
 *         if ellipsoid_pj == NULL or proj_get_type(ellipsoid_pj) != PJ_TYPE_ELLIPSOID:             # <<<<<<<<<<<<<<
 *             proj_destroy(ellipsoid_pj)
 *             proj_context_destroy(context)
 */
  }

  /* "pyproj/_crs.pyx":865
 *                 )
 *             )
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         return Ellipsoid.create(context, ellipsoid_pj)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 865, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_clear); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 865, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 865, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":866
 *             )
 *         CRSError.clear()
 *         return Ellipsoid.create(context, ellipsoid_pj)             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_6pyproj_4_crs_9Ellipsoid_create(__pyx_v_context, __pyx_v_ellipsoid_pj)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 866, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":832
 * 
 *     @staticmethod
 *     def _from_string(ellipsoid_string):             # <<<<<<<<<<<<<<
 *         """
 *         Create an Ellipsoid from a string.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("pyproj._crs.Ellipsoid._from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":869
 * 
 *     @staticmethod
 *     def from_string(ellipsoid_string):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_9Ellipsoid_11from_string(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_9Ellipsoid_10from_string[] = "Ellipsoid.from_string(ellipsoid_string)\n\n        .. versionadded:: 2.2.0\n\n        Create an Ellipsoid from a string.\n\n        Examples:\n          - urn:ogc:def:ellipsoid:EPSG::7001\n          - ELLIPSOID[\"Airy 1830\",6377563.396,299.3249646,\n            LENGTHUNIT[\"metre\",1],\n            ID[\"EPSG\",7001]]\n          - WGS 84\n\n        Parameters\n        ----------\n        ellipsoid_string: str\n            Ellipsoid string.\n\n        Returns\n        -------\n        Ellipsoid\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_9Ellipsoid_11from_string = {"from_string", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_9Ellipsoid_11from_string, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_9Ellipsoid_10from_string};
static PyObject *__pyx_pw_6pyproj_4_crs_9Ellipsoid_11from_string(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_ellipsoid_string = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_string (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ellipsoid_string,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ellipsoid_string)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "from_string") < 0)) __PYX_ERR(0, 869, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_ellipsoid_string = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_string", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 869, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.Ellipsoid.from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_9Ellipsoid_10from_string(__pyx_v_ellipsoid_string);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_9Ellipsoid_10from_string(PyObject *__pyx_v_ellipsoid_string) {
  PyObject *__pyx_v_crs_err = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  int __pyx_t_15;
  char const *__pyx_t_16;
  PyObject *__pyx_t_17 = NULL;
  PyObject *__pyx_t_18 = NULL;
  PyObject *__pyx_t_19 = NULL;
  __Pyx_RefNannySetupContext("from_string", 0);

  /* "pyproj/_crs.pyx":891
 *         Ellipsoid
 *         """
 *         try:             # <<<<<<<<<<<<<<
 *             return Ellipsoid._from_string(ellipsoid_string)
 *         except CRSError as crs_err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "pyproj/_crs.pyx":892
 *         """
 *         try:
 *             return Ellipsoid._from_string(ellipsoid_string)             # <<<<<<<<<<<<<<
 *         except CRSError as crs_err:
 *             try:
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid), __pyx_n_s_from_string_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 892, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_6)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_6);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_v_ellipsoid_string) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_ellipsoid_string);
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 892, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L7_try_return;

      /* "pyproj/_crs.pyx":891
 *         Ellipsoid
 *         """
 *         try:             # <<<<<<<<<<<<<<
 *             return Ellipsoid._from_string(ellipsoid_string)
 *         except CRSError as crs_err:
 */
    }
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "pyproj/_crs.pyx":893
 *         try:
 *             return Ellipsoid._from_string(ellipsoid_string)
 *         except CRSError as crs_err:             # <<<<<<<<<<<<<<
 *             try:
 *                 return Ellipsoid.from_name(ellipsoid_string)
 */
    __Pyx_ErrFetch(&__pyx_t_4, &__pyx_t_5, &__pyx_t_6);
    __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 893, __pyx_L5_except_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_4, __pyx_t_7);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_ErrRestore(__pyx_t_4, __pyx_t_5, __pyx_t_6);
    __pyx_t_4 = 0; __pyx_t_5 = 0; __pyx_t_6 = 0;
    if (__pyx_t_8) {
      __Pyx_AddTraceback("pyproj._crs.Ellipsoid.from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_4) < 0) __PYX_ERR(0, 893, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      __pyx_v_crs_err = __pyx_t_5;
      /*try:*/ {

        /* "pyproj/_crs.pyx":894
 *             return Ellipsoid._from_string(ellipsoid_string)
 *         except CRSError as crs_err:
 *             try:             # <<<<<<<<<<<<<<
 *                 return Ellipsoid.from_name(ellipsoid_string)
 *             except CRSError:
 */
        {
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __Pyx_ExceptionSave(&__pyx_t_9, &__pyx_t_10, &__pyx_t_11);
          __Pyx_XGOTREF(__pyx_t_9);
          __Pyx_XGOTREF(__pyx_t_10);
          __Pyx_XGOTREF(__pyx_t_11);
          /*try:*/ {

            /* "pyproj/_crs.pyx":895
 *         except CRSError as crs_err:
 *             try:
 *                 return Ellipsoid.from_name(ellipsoid_string)             # <<<<<<<<<<<<<<
 *             except CRSError:
 *                 raise crs_err
 */
            __Pyx_XDECREF(__pyx_r);
            __pyx_t_12 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid), __pyx_n_s_from_name); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 895, __pyx_L16_error)
            __Pyx_GOTREF(__pyx_t_12);
            __pyx_t_13 = NULL;
            if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_12))) {
              __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_12);
              if (likely(__pyx_t_13)) {
                PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12);
                __Pyx_INCREF(__pyx_t_13);
                __Pyx_INCREF(function);
                __Pyx_DECREF_SET(__pyx_t_12, function);
              }
            }
            __pyx_t_7 = (__pyx_t_13) ? __Pyx_PyObject_Call2Args(__pyx_t_12, __pyx_t_13, __pyx_v_ellipsoid_string) : __Pyx_PyObject_CallOneArg(__pyx_t_12, __pyx_v_ellipsoid_string);
            __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
            if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 895, __pyx_L16_error)
            __Pyx_GOTREF(__pyx_t_7);
            __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
            __pyx_r = __pyx_t_7;
            __pyx_t_7 = 0;
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
            goto __pyx_L20_try_return;

            /* "pyproj/_crs.pyx":894
 *             return Ellipsoid._from_string(ellipsoid_string)
 *         except CRSError as crs_err:
 *             try:             # <<<<<<<<<<<<<<
 *                 return Ellipsoid.from_name(ellipsoid_string)
 *             except CRSError:
 */
          }
          __pyx_L16_error:;
          __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
          __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

          /* "pyproj/_crs.pyx":896
 *             try:
 *                 return Ellipsoid.from_name(ellipsoid_string)
 *             except CRSError:             # <<<<<<<<<<<<<<
 *                 raise crs_err
 * 
 */
          __Pyx_ErrFetch(&__pyx_t_7, &__pyx_t_12, &__pyx_t_13);
          __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 896, __pyx_L18_except_error)
          __Pyx_GOTREF(__pyx_t_14);
          __pyx_t_8 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_7, __pyx_t_14);
          __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
          __Pyx_ErrRestore(__pyx_t_7, __pyx_t_12, __pyx_t_13);
          __pyx_t_7 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0;
          if (__pyx_t_8) {
            __Pyx_AddTraceback("pyproj._crs.Ellipsoid.from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
            if (__Pyx_GetException(&__pyx_t_13, &__pyx_t_12, &__pyx_t_7) < 0) __PYX_ERR(0, 896, __pyx_L18_except_error)
            __Pyx_GOTREF(__pyx_t_13);
            __Pyx_GOTREF(__pyx_t_12);
            __Pyx_GOTREF(__pyx_t_7);

            /* "pyproj/_crs.pyx":897
 *                 return Ellipsoid.from_name(ellipsoid_string)
 *             except CRSError:
 *                 raise crs_err             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
            __Pyx_Raise(__pyx_v_crs_err, 0, 0, 0);
            __PYX_ERR(0, 897, __pyx_L18_except_error)
          }
          goto __pyx_L18_except_error;
          __pyx_L18_except_error:;

          /* "pyproj/_crs.pyx":894
 *             return Ellipsoid._from_string(ellipsoid_string)
 *         except CRSError as crs_err:
 *             try:             # <<<<<<<<<<<<<<
 *                 return Ellipsoid.from_name(ellipsoid_string)
 *             except CRSError:
 */
          __Pyx_XGIVEREF(__pyx_t_9);
          __Pyx_XGIVEREF(__pyx_t_10);
          __Pyx_XGIVEREF(__pyx_t_11);
          __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11);
          goto __pyx_L14_error;
          __pyx_L20_try_return:;
          __Pyx_XGIVEREF(__pyx_t_9);
          __Pyx_XGIVEREF(__pyx_t_10);
          __Pyx_XGIVEREF(__pyx_t_11);
          __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11);
          goto __pyx_L13_return;
        }
      }

      /* "pyproj/_crs.pyx":893
 *         try:
 *             return Ellipsoid._from_string(ellipsoid_string)
 *         except CRSError as crs_err:             # <<<<<<<<<<<<<<
 *             try:
 *                 return Ellipsoid.from_name(ellipsoid_string)
 */
      /*finally:*/ {
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_11 = 0; __pyx_t_10 = 0; __pyx_t_9 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0;
          __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
          __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
          __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_11, &__pyx_t_10, &__pyx_t_9) < 0)) __Pyx_ErrFetch(&__pyx_t_11, &__pyx_t_10, &__pyx_t_9);
          __Pyx_XGOTREF(__pyx_t_11);
          __Pyx_XGOTREF(__pyx_t_10);
          __Pyx_XGOTREF(__pyx_t_9);
          __Pyx_XGOTREF(__pyx_t_17);
          __Pyx_XGOTREF(__pyx_t_18);
          __Pyx_XGOTREF(__pyx_t_19);
          __pyx_t_8 = __pyx_lineno; __pyx_t_15 = __pyx_clineno; __pyx_t_16 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_crs_err);
            __pyx_v_crs_err = NULL;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_XGIVEREF(__pyx_t_18);
            __Pyx_XGIVEREF(__pyx_t_19);
            __Pyx_ExceptionReset(__pyx_t_17, __pyx_t_18, __pyx_t_19);
          }
          __Pyx_XGIVEREF(__pyx_t_11);
          __Pyx_XGIVEREF(__pyx_t_10);
          __Pyx_XGIVEREF(__pyx_t_9);
          __Pyx_ErrRestore(__pyx_t_11, __pyx_t_10, __pyx_t_9);
          __pyx_t_11 = 0; __pyx_t_10 = 0; __pyx_t_9 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0;
          __pyx_lineno = __pyx_t_8; __pyx_clineno = __pyx_t_15; __pyx_filename = __pyx_t_16;
          goto __pyx_L5_except_error;
        }
        __pyx_L13_return: {
          __pyx_t_19 = __pyx_r;
          __pyx_r = 0;
          __Pyx_DECREF(__pyx_v_crs_err);
          __pyx_v_crs_err = NULL;
          __pyx_r = __pyx_t_19;
          __pyx_t_19 = 0;
          goto __pyx_L6_except_return;
        }
      }
    }
    goto __pyx_L5_except_error;
    __pyx_L5_except_error:;

    /* "pyproj/_crs.pyx":891
 *         Ellipsoid
 *         """
 *         try:             # <<<<<<<<<<<<<<
 *             return Ellipsoid._from_string(ellipsoid_string)
 *         except CRSError as crs_err:
 */
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L7_try_return:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L0;
    __pyx_L6_except_return:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L0;
  }

  /* "pyproj/_crs.pyx":869
 * 
 *     @staticmethod
 *     def from_string(ellipsoid_string):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_AddTraceback("pyproj._crs.Ellipsoid.from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_crs_err);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":900
 * 
 *     @staticmethod
 *     def from_json_dict(ellipsoid_dict):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_9Ellipsoid_13from_json_dict(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_9Ellipsoid_12from_json_dict[] = "Ellipsoid.from_json_dict(ellipsoid_dict)\n\n        .. versionadded:: 2.4.0\n\n        Create Ellipsoid from a JSON dictionary.\n\n        Parameters\n        ----------\n        ellipsoid_dict: str\n            Ellipsoid dictionary.\n\n        Returns\n        -------\n        Ellipsoid\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_9Ellipsoid_13from_json_dict = {"from_json_dict", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_9Ellipsoid_13from_json_dict, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_9Ellipsoid_12from_json_dict};
static PyObject *__pyx_pw_6pyproj_4_crs_9Ellipsoid_13from_json_dict(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_ellipsoid_dict = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_json_dict (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ellipsoid_dict,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ellipsoid_dict)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "from_json_dict") < 0)) __PYX_ERR(0, 900, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_ellipsoid_dict = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_json_dict", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 900, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.Ellipsoid.from_json_dict", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_9Ellipsoid_12from_json_dict(__pyx_v_ellipsoid_dict);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_9Ellipsoid_12from_json_dict(PyObject *__pyx_v_ellipsoid_dict) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("from_json_dict", 0);

  /* "pyproj/_crs.pyx":915
 *         Ellipsoid
 *         """
 *         return Ellipsoid._from_string(json.dumps(ellipsoid_dict))             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid), __pyx_n_s_from_string_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 915, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_json); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 915, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_dumps); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 915, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_5, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_4, __pyx_v_ellipsoid_dict) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_ellipsoid_dict);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 915, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 915, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":900
 * 
 *     @staticmethod
 *     def from_json_dict(ellipsoid_dict):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs.Ellipsoid.from_json_dict", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":918
 * 
 *     @staticmethod
 *     def from_json(ellipsoid_json_str):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_9Ellipsoid_15from_json(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_9Ellipsoid_14from_json[] = "Ellipsoid.from_json(ellipsoid_json_str)\n\n        .. versionadded:: 2.4.0\n\n        Create Ellipsoid from a JSON string.\n\n        Parameters\n        ----------\n        ellipsoid_json_str: str\n            Ellipsoid JSON string.\n\n        Returns\n        -------\n        Ellipsoid\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_9Ellipsoid_15from_json = {"from_json", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_9Ellipsoid_15from_json, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_9Ellipsoid_14from_json};
static PyObject *__pyx_pw_6pyproj_4_crs_9Ellipsoid_15from_json(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_ellipsoid_json_str = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_json (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ellipsoid_json_str,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ellipsoid_json_str)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "from_json") < 0)) __PYX_ERR(0, 918, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_ellipsoid_json_str = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_json", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 918, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.Ellipsoid.from_json", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_9Ellipsoid_14from_json(__pyx_v_ellipsoid_json_str);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_9Ellipsoid_14from_json(PyObject *__pyx_v_ellipsoid_json_str) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("from_json", 0);

  /* "pyproj/_crs.pyx":933
 *         Ellipsoid
 *         """
 *         return Ellipsoid.from_json_dict(_load_proj_json(ellipsoid_json_str))             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid), __pyx_n_s_from_json_dict); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 933, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_load_proj_json); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 933, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
    }
  }
  __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_ellipsoid_json_str) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_ellipsoid_json_str);
  __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 933, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 933, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":918
 * 
 *     @staticmethod
 *     def from_json(ellipsoid_json_str):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs.Ellipsoid.from_json", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":936
 * 
 *     @staticmethod
 *     def _from_name(             # <<<<<<<<<<<<<<
 *         ellipsoid_name,
 *         auth_name,
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_9Ellipsoid_17_from_name(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_9Ellipsoid_16_from_name[] = "Ellipsoid._from_name(ellipsoid_name, auth_name)\n\n        .. versionadded:: 2.5.0\n\n        Create a Ellipsoid from a name.\n\n        Parameters\n        ----------\n        ellipsoid_name: str\n            Ellipsoid name.\n        auth_name: str\n            The authority name to refine search (e.g. 'EPSG').\n            If None, will search all authorities.\n\n        Returns\n        -------\n        Ellipsoid\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_9Ellipsoid_17_from_name = {"_from_name", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_9Ellipsoid_17_from_name, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_9Ellipsoid_16_from_name};
static PyObject *__pyx_pw_6pyproj_4_crs_9Ellipsoid_17_from_name(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_ellipsoid_name = 0;
  PyObject *__pyx_v_auth_name = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_from_name (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ellipsoid_name,&__pyx_n_s_auth_name,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ellipsoid_name)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_auth_name)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_from_name", 1, 2, 2, 1); __PYX_ERR(0, 936, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_from_name") < 0)) __PYX_ERR(0, 936, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_ellipsoid_name = values[0];
    __pyx_v_auth_name = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_from_name", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 936, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.Ellipsoid._from_name", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_9Ellipsoid_16_from_name(__pyx_v_ellipsoid_name, __pyx_v_auth_name);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_9Ellipsoid_16_from_name(PyObject *__pyx_v_ellipsoid_name, PyObject *__pyx_v_auth_name) {
  PJ_CONTEXT *__pyx_v_context;
  PJ *__pyx_v_ellipsoid_pj;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("_from_name", 0);

  /* "pyproj/_crs.pyx":957
 *         Ellipsoid
 *         """
 *         cdef PJ_CONTEXT* context = proj_context_create()             # <<<<<<<<<<<<<<
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* ellipsoid_pj = _from_name(
 */
  __pyx_v_context = proj_context_create();

  /* "pyproj/_crs.pyx":958
 *         """
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)             # <<<<<<<<<<<<<<
 *         cdef PJ* ellipsoid_pj = _from_name(
 *             context,
 */
  __pyx_f_6pyproj_8_datadir_pyproj_context_initialize(__pyx_v_context, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 958, __pyx_L1_error)

  /* "pyproj/_crs.pyx":959
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* ellipsoid_pj = _from_name(             # <<<<<<<<<<<<<<
 *             context,
 *             ellipsoid_name,
 */
  __pyx_v_ellipsoid_pj = __pyx_f_6pyproj_4_crs__from_name(__pyx_v_context, __pyx_v_ellipsoid_name, __pyx_v_auth_name, PJ_TYPE_ELLIPSOID);

  /* "pyproj/_crs.pyx":965
 *             PJ_TYPE_ELLIPSOID,
 *         )
 *         if ellipsoid_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             raise CRSError(
 */
  __pyx_t_1 = ((__pyx_v_ellipsoid_pj == NULL) != 0);
  if (unlikely(__pyx_t_1)) {

    /* "pyproj/_crs.pyx":966
 *         )
 *         if ellipsoid_pj == NULL:
 *             proj_context_destroy(context)             # <<<<<<<<<<<<<<
 *             raise CRSError(
 *                 "Invalid ellipsoid name: {}".format(
 */
    (void)(proj_context_destroy(__pyx_v_context));

    /* "pyproj/_crs.pyx":967
 *         if ellipsoid_pj == NULL:
 *             proj_context_destroy(context)
 *             raise CRSError(             # <<<<<<<<<<<<<<
 *                 "Invalid ellipsoid name: {}".format(
 *                     pystrdecode(ellipsoid_name)
 */
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 967, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);

    /* "pyproj/_crs.pyx":968
 *             proj_context_destroy(context)
 *             raise CRSError(
 *                 "Invalid ellipsoid name: {}".format(             # <<<<<<<<<<<<<<
 *                     pystrdecode(ellipsoid_name)
 *                 )
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_Invalid_ellipsoid_name, __pyx_n_s_format); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 968, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);

    /* "pyproj/_crs.pyx":969
 *             raise CRSError(
 *                 "Invalid ellipsoid name: {}".format(
 *                     pystrdecode(ellipsoid_name)             # <<<<<<<<<<<<<<
 *                 )
 *             )
 */
    __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_pystrdecode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 969, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7);
      if (likely(__pyx_t_8)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_8);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_7, function);
      }
    }
    __pyx_t_6 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_8, __pyx_v_ellipsoid_name) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_ellipsoid_name);
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 969, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_7, __pyx_t_6) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_6);
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 968, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_3, function);
      }
    }
    __pyx_t_2 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 967, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 967, __pyx_L1_error)

    /* "pyproj/_crs.pyx":965
 *             PJ_TYPE_ELLIPSOID,
 *         )
 *         if ellipsoid_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             raise CRSError(
 */
  }

  /* "pyproj/_crs.pyx":972
 *                 )
 *             )
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         return Ellipsoid.create(context, ellipsoid_pj)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 972, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_clear); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 972, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
    }
  }
  __pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 972, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":973
 *             )
 *         CRSError.clear()
 *         return Ellipsoid.create(context, ellipsoid_pj)             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_f_6pyproj_4_crs_9Ellipsoid_create(__pyx_v_context, __pyx_v_ellipsoid_pj)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 973, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":936
 * 
 *     @staticmethod
 *     def _from_name(             # <<<<<<<<<<<<<<
 *         ellipsoid_name,
 *         auth_name,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("pyproj._crs.Ellipsoid._from_name", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":976
 * 
 *     @staticmethod
 *     def from_name(             # <<<<<<<<<<<<<<
 *         ellipsoid_name,
 *         auth_name=None,
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_9Ellipsoid_19from_name(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_9Ellipsoid_18from_name[] = "Ellipsoid.from_name(ellipsoid_name, auth_name=None)\n\n        .. versionadded:: 2.5.0\n\n        Create a Ellipsoid from a name.\n\n        Examples:\n          - WGS 84\n\n        Parameters\n        ----------\n        ellipsoid_name: str\n            Ellipsoid name.\n        auth_name: str, optional\n            The authority name to refine search (e.g. 'EPSG').\n            If None, will search all authorities. Default is None.\n\n        Returns\n        -------\n        Ellipsoid\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_9Ellipsoid_19from_name = {"from_name", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_9Ellipsoid_19from_name, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_9Ellipsoid_18from_name};
static PyObject *__pyx_pw_6pyproj_4_crs_9Ellipsoid_19from_name(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_ellipsoid_name = 0;
  PyObject *__pyx_v_auth_name = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_name (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_ellipsoid_name,&__pyx_n_s_auth_name,0};
    PyObject* values[2] = {0,0};

    /* "pyproj/_crs.pyx":978
 *     def from_name(
 *         ellipsoid_name,
 *         auth_name=None,             # <<<<<<<<<<<<<<
 *     ):
 *         """
 */
    values[1] = ((PyObject *)Py_None);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ellipsoid_name)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_auth_name);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "from_name") < 0)) __PYX_ERR(0, 976, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_ellipsoid_name = values[0];
    __pyx_v_auth_name = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_name", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 976, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.Ellipsoid.from_name", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_9Ellipsoid_18from_name(__pyx_v_ellipsoid_name, __pyx_v_auth_name);

  /* "pyproj/_crs.pyx":976
 * 
 *     @staticmethod
 *     def from_name(             # <<<<<<<<<<<<<<
 *         ellipsoid_name,
 *         auth_name=None,
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_9Ellipsoid_18from_name(PyObject *__pyx_v_ellipsoid_name, PyObject *__pyx_v_auth_name) {
  PyObject *__pyx_v_ellipsoid_params = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_t_10;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  __Pyx_RefNannySetupContext("from_name", 0);

  /* "pyproj/_crs.pyx":1000
 *         Ellipsoid
 *         """
 *         try:             # <<<<<<<<<<<<<<
 *             return Ellipsoid._from_name(
 *                 ellipsoid_name=ellipsoid_name,
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "pyproj/_crs.pyx":1001
 *         """
 *         try:
 *             return Ellipsoid._from_name(             # <<<<<<<<<<<<<<
 *                 ellipsoid_name=ellipsoid_name,
 *                 auth_name=auth_name,
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid), __pyx_n_s_from_name_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1001, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_4);

      /* "pyproj/_crs.pyx":1002
 *         try:
 *             return Ellipsoid._from_name(
 *                 ellipsoid_name=ellipsoid_name,             # <<<<<<<<<<<<<<
 *                 auth_name=auth_name,
 *             )
 */
      __pyx_t_5 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1002, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_ellipsoid_name, __pyx_v_ellipsoid_name) < 0) __PYX_ERR(0, 1002, __pyx_L3_error)

      /* "pyproj/_crs.pyx":1003
 *             return Ellipsoid._from_name(
 *                 ellipsoid_name=ellipsoid_name,
 *                 auth_name=auth_name,             # <<<<<<<<<<<<<<
 *             )
 *         except CRSError:
 */
      if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_auth_name, __pyx_v_auth_name) < 0) __PYX_ERR(0, 1002, __pyx_L3_error)

      /* "pyproj/_crs.pyx":1001
 *         """
 *         try:
 *             return Ellipsoid._from_name(             # <<<<<<<<<<<<<<
 *                 ellipsoid_name=ellipsoid_name,
 *                 auth_name=auth_name,
 */
      __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1001, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_r = __pyx_t_6;
      __pyx_t_6 = 0;
      goto __pyx_L7_try_return;

      /* "pyproj/_crs.pyx":1000
 *         Ellipsoid
 *         """
 *         try:             # <<<<<<<<<<<<<<
 *             return Ellipsoid._from_name(
 *                 ellipsoid_name=ellipsoid_name,
 */
    }
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "pyproj/_crs.pyx":1005
 *                 auth_name=auth_name,
 *             )
 *         except CRSError:             # <<<<<<<<<<<<<<
 *             if auth_name not in ("PROJ", None):
 *                 raise
 */
    __Pyx_ErrFetch(&__pyx_t_6, &__pyx_t_5, &__pyx_t_4);
    __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1005, __pyx_L5_except_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_6, __pyx_t_7);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_ErrRestore(__pyx_t_6, __pyx_t_5, __pyx_t_4);
    __pyx_t_6 = 0; __pyx_t_5 = 0; __pyx_t_4 = 0;
    if (__pyx_t_8) {
      __Pyx_AddTraceback("pyproj._crs.Ellipsoid.from_name", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_5, &__pyx_t_6) < 0) __PYX_ERR(0, 1005, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_GOTREF(__pyx_t_6);

      /* "pyproj/_crs.pyx":1006
 *             )
 *         except CRSError:
 *             if auth_name not in ("PROJ", None):             # <<<<<<<<<<<<<<
 *                 raise
 *             pass
 */
      __Pyx_INCREF(__pyx_v_auth_name);
      __pyx_t_7 = __pyx_v_auth_name;
      __pyx_t_10 = (__Pyx_PyUnicode_Equals(__pyx_t_7, __pyx_n_u_PROJ, Py_NE)); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 1006, __pyx_L5_except_error)
      if (__pyx_t_10) {
      } else {
        __pyx_t_9 = __pyx_t_10;
        goto __pyx_L12_bool_binop_done;
      }
      __pyx_t_11 = PyObject_RichCompare(__pyx_t_7, Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_11); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1006, __pyx_L5_except_error)
      __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_11); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 1006, __pyx_L5_except_error)
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      __pyx_t_9 = __pyx_t_10;
      __pyx_L12_bool_binop_done:;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_10 = (__pyx_t_9 != 0);
      if (unlikely(__pyx_t_10)) {

        /* "pyproj/_crs.pyx":1007
 *         except CRSError:
 *             if auth_name not in ("PROJ", None):
 *                 raise             # <<<<<<<<<<<<<<
 *             pass
 * 
 */
        __Pyx_GIVEREF(__pyx_t_4);
        __Pyx_GIVEREF(__pyx_t_5);
        __Pyx_XGIVEREF(__pyx_t_6);
        __Pyx_ErrRestoreWithState(__pyx_t_4, __pyx_t_5, __pyx_t_6);
        __pyx_t_4 = 0; __pyx_t_5 = 0; __pyx_t_6 = 0; 
        __PYX_ERR(0, 1007, __pyx_L5_except_error)

        /* "pyproj/_crs.pyx":1006
 *             )
 *         except CRSError:
 *             if auth_name not in ("PROJ", None):             # <<<<<<<<<<<<<<
 *                 raise
 *             pass
 */
      }
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;
    __pyx_L5_except_error:;

    /* "pyproj/_crs.pyx":1000
 *         Ellipsoid
 *         """
 *         try:             # <<<<<<<<<<<<<<
 *             return Ellipsoid._from_name(
 *                 ellipsoid_name=ellipsoid_name,
 */
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L7_try_return:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L0;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
  }

  /* "pyproj/_crs.pyx":1011
 * 
 *         # add support for past names for PROJ ellipsoids
 *         try:             # <<<<<<<<<<<<<<
 *             ellipsoid_params = pj_ellps[
 *                 _PJ_ELLPS_NAME_MAP.get(ellipsoid_name, ellipsoid_name)
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_2, &__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_1);
    /*try:*/ {

      /* "pyproj/_crs.pyx":1012
 *         # add support for past names for PROJ ellipsoids
 *         try:
 *             ellipsoid_params = pj_ellps[             # <<<<<<<<<<<<<<
 *                 _PJ_ELLPS_NAME_MAP.get(ellipsoid_name, ellipsoid_name)
 *             ]
 */
      __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_pj_ellps); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1012, __pyx_L14_error)
      __Pyx_GOTREF(__pyx_t_6);

      /* "pyproj/_crs.pyx":1013
 *         try:
 *             ellipsoid_params = pj_ellps[
 *                 _PJ_ELLPS_NAME_MAP.get(ellipsoid_name, ellipsoid_name)             # <<<<<<<<<<<<<<
 *             ]
 *         except KeyError:
 */
      __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_PJ_ELLPS_NAME_MAP); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1013, __pyx_L14_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_get); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1013, __pyx_L14_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = NULL;
      __pyx_t_8 = 0;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_7);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_7, function);
          __pyx_t_8 = 1;
        }
      }
      #if CYTHON_FAST_PYCALL
      if (PyFunction_Check(__pyx_t_7)) {
        PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_v_ellipsoid_name, __pyx_v_ellipsoid_name};
        __pyx_t_5 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1013, __pyx_L14_error)
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_GOTREF(__pyx_t_5);
      } else
      #endif
      #if CYTHON_FAST_PYCCALL
      if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) {
        PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_v_ellipsoid_name, __pyx_v_ellipsoid_name};
        __pyx_t_5 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1013, __pyx_L14_error)
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_GOTREF(__pyx_t_5);
      } else
      #endif
      {
        __pyx_t_11 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1013, __pyx_L14_error)
        __Pyx_GOTREF(__pyx_t_11);
        if (__pyx_t_4) {
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_4); __pyx_t_4 = NULL;
        }
        __Pyx_INCREF(__pyx_v_ellipsoid_name);
        __Pyx_GIVEREF(__pyx_v_ellipsoid_name);
        PyTuple_SET_ITEM(__pyx_t_11, 0+__pyx_t_8, __pyx_v_ellipsoid_name);
        __Pyx_INCREF(__pyx_v_ellipsoid_name);
        __Pyx_GIVEREF(__pyx_v_ellipsoid_name);
        PyTuple_SET_ITEM(__pyx_t_11, 1+__pyx_t_8, __pyx_v_ellipsoid_name);
        __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_11, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1013, __pyx_L14_error)
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      }
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

      /* "pyproj/_crs.pyx":1012
 *         # add support for past names for PROJ ellipsoids
 *         try:
 *             ellipsoid_params = pj_ellps[             # <<<<<<<<<<<<<<
 *                 _PJ_ELLPS_NAME_MAP.get(ellipsoid_name, ellipsoid_name)
 *             ]
 */
      __pyx_t_7 = __Pyx_PyObject_GetItem(__pyx_t_6, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1012, __pyx_L14_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_v_ellipsoid_params = __pyx_t_7;
      __pyx_t_7 = 0;

      /* "pyproj/_crs.pyx":1011
 * 
 *         # add support for past names for PROJ ellipsoids
 *         try:             # <<<<<<<<<<<<<<
 *             ellipsoid_params = pj_ellps[
 *                 _PJ_ELLPS_NAME_MAP.get(ellipsoid_name, ellipsoid_name)
 */
    }
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L19_try_end;
    __pyx_L14_error:;
    __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "pyproj/_crs.pyx":1015
 *                 _PJ_ELLPS_NAME_MAP.get(ellipsoid_name, ellipsoid_name)
 *             ]
 *         except KeyError:             # <<<<<<<<<<<<<<
 *             raise CRSError("Invalid ellipsoid name: {}".format(ellipsoid_name))
 *         return CustomEllipsoid(
 */
    __pyx_t_8 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_KeyError);
    if (__pyx_t_8) {
      __Pyx_AddTraceback("pyproj._crs.Ellipsoid.from_name", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_5, &__pyx_t_6) < 0) __PYX_ERR(0, 1015, __pyx_L16_except_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_GOTREF(__pyx_t_6);

      /* "pyproj/_crs.pyx":1016
 *             ]
 *         except KeyError:
 *             raise CRSError("Invalid ellipsoid name: {}".format(ellipsoid_name))             # <<<<<<<<<<<<<<
 *         return CustomEllipsoid(
 *             name=ellipsoid_params["description"],
 */
      __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1016, __pyx_L16_except_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_Invalid_ellipsoid_name, __pyx_n_s_format); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 1016, __pyx_L16_except_error)
      __Pyx_GOTREF(__pyx_t_13);
      __pyx_t_14 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_13))) {
        __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_13);
        if (likely(__pyx_t_14)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_13);
          __Pyx_INCREF(__pyx_t_14);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_13, function);
        }
      }
      __pyx_t_12 = (__pyx_t_14) ? __Pyx_PyObject_Call2Args(__pyx_t_13, __pyx_t_14, __pyx_v_ellipsoid_name) : __Pyx_PyObject_CallOneArg(__pyx_t_13, __pyx_v_ellipsoid_name);
      __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
      if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1016, __pyx_L16_except_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      __pyx_t_13 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
        __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_4);
        if (likely(__pyx_t_13)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
          __Pyx_INCREF(__pyx_t_13);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_4, function);
        }
      }
      __pyx_t_11 = (__pyx_t_13) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_13, __pyx_t_12) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_12);
      __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1016, __pyx_L16_except_error)
      __Pyx_GOTREF(__pyx_t_11);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_Raise(__pyx_t_11, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
      __PYX_ERR(0, 1016, __pyx_L16_except_error)
    }
    goto __pyx_L16_except_error;
    __pyx_L16_except_error:;

    /* "pyproj/_crs.pyx":1011
 * 
 *         # add support for past names for PROJ ellipsoids
 *         try:             # <<<<<<<<<<<<<<
 *             ellipsoid_params = pj_ellps[
 *                 _PJ_ELLPS_NAME_MAP.get(ellipsoid_name, ellipsoid_name)
 */
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_2, __pyx_t_1);
    goto __pyx_L1_error;
    __pyx_L19_try_end:;
  }

  /* "pyproj/_crs.pyx":1017
 *         except KeyError:
 *             raise CRSError("Invalid ellipsoid name: {}".format(ellipsoid_name))
 *         return CustomEllipsoid(             # <<<<<<<<<<<<<<
 *             name=ellipsoid_params["description"],
 *             semi_major_axis=ellipsoid_params["a"],
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_CustomEllipsoid); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1017, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);

  /* "pyproj/_crs.pyx":1018
 *             raise CRSError("Invalid ellipsoid name: {}".format(ellipsoid_name))
 *         return CustomEllipsoid(
 *             name=ellipsoid_params["description"],             # <<<<<<<<<<<<<<
 *             semi_major_axis=ellipsoid_params["a"],
 *             semi_minor_axis=ellipsoid_params.get("b"),
 */
  __pyx_t_5 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1018, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_7 = __Pyx_PyObject_Dict_GetItem(__pyx_v_ellipsoid_params, __pyx_n_u_description); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1018, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_name, __pyx_t_7) < 0) __PYX_ERR(0, 1018, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "pyproj/_crs.pyx":1019
 *         return CustomEllipsoid(
 *             name=ellipsoid_params["description"],
 *             semi_major_axis=ellipsoid_params["a"],             # <<<<<<<<<<<<<<
 *             semi_minor_axis=ellipsoid_params.get("b"),
 *             inverse_flattening=ellipsoid_params.get("rf"),
 */
  __pyx_t_7 = __Pyx_PyObject_Dict_GetItem(__pyx_v_ellipsoid_params, __pyx_n_u_a); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1019, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_semi_major_axis, __pyx_t_7) < 0) __PYX_ERR(0, 1018, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "pyproj/_crs.pyx":1020
 *             name=ellipsoid_params["description"],
 *             semi_major_axis=ellipsoid_params["a"],
 *             semi_minor_axis=ellipsoid_params.get("b"),             # <<<<<<<<<<<<<<
 *             inverse_flattening=ellipsoid_params.get("rf"),
 *         )
 */
  __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_v_ellipsoid_params, __pyx_n_s_get); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1020, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_11))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_11);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_11);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_11, function);
    }
  }
  __pyx_t_7 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_11, __pyx_t_4, __pyx_n_u_b) : __Pyx_PyObject_CallOneArg(__pyx_t_11, __pyx_n_u_b);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1020, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_semi_minor_axis, __pyx_t_7) < 0) __PYX_ERR(0, 1018, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "pyproj/_crs.pyx":1021
 *             semi_major_axis=ellipsoid_params["a"],
 *             semi_minor_axis=ellipsoid_params.get("b"),
 *             inverse_flattening=ellipsoid_params.get("rf"),             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_v_ellipsoid_params, __pyx_n_s_get); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1021, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_11))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_11);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_11);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_11, function);
    }
  }
  __pyx_t_7 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_11, __pyx_t_4, __pyx_n_u_rf) : __Pyx_PyObject_CallOneArg(__pyx_t_11, __pyx_n_u_rf);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1021, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_inverse_flattening, __pyx_t_7) < 0) __PYX_ERR(0, 1018, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "pyproj/_crs.pyx":1017
 *         except KeyError:
 *             raise CRSError("Invalid ellipsoid name: {}".format(ellipsoid_name))
 *         return CustomEllipsoid(             # <<<<<<<<<<<<<<
 *             name=ellipsoid_params["description"],
 *             semi_major_axis=ellipsoid_params["a"],
 */
  __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_empty_tuple, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1017, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_r = __pyx_t_7;
  __pyx_t_7 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":976
 * 
 *     @staticmethod
 *     def from_name(             # <<<<<<<<<<<<<<
 *         ellipsoid_name,
 *         auth_name=None,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_AddTraceback("pyproj._crs.Ellipsoid.from_name", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_ellipsoid_params);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":43
 * 
 * cdef class Ellipsoid(_CRSParts):
 *     cdef readonly double semi_major_metre             # <<<<<<<<<<<<<<
 *     cdef readonly double semi_minor_metre
 *     cdef readonly object is_semi_minor_computed
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_9Ellipsoid_16semi_major_metre_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_9Ellipsoid_16semi_major_metre_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_9Ellipsoid_16semi_major_metre___get__(((struct __pyx_obj_6pyproj_4_crs_Ellipsoid *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_9Ellipsoid_16semi_major_metre___get__(struct __pyx_obj_6pyproj_4_crs_Ellipsoid *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->semi_major_metre); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 43, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.Ellipsoid.semi_major_metre.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":44
 * cdef class Ellipsoid(_CRSParts):
 *     cdef readonly double semi_major_metre
 *     cdef readonly double semi_minor_metre             # <<<<<<<<<<<<<<
 *     cdef readonly object is_semi_minor_computed
 *     cdef readonly double inverse_flattening
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_9Ellipsoid_16semi_minor_metre_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_9Ellipsoid_16semi_minor_metre_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_9Ellipsoid_16semi_minor_metre___get__(((struct __pyx_obj_6pyproj_4_crs_Ellipsoid *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_9Ellipsoid_16semi_minor_metre___get__(struct __pyx_obj_6pyproj_4_crs_Ellipsoid *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->semi_minor_metre); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 44, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.Ellipsoid.semi_minor_metre.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":45
 *     cdef readonly double semi_major_metre
 *     cdef readonly double semi_minor_metre
 *     cdef readonly object is_semi_minor_computed             # <<<<<<<<<<<<<<
 *     cdef readonly double inverse_flattening
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_9Ellipsoid_22is_semi_minor_computed_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_9Ellipsoid_22is_semi_minor_computed_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_9Ellipsoid_22is_semi_minor_computed___get__(((struct __pyx_obj_6pyproj_4_crs_Ellipsoid *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_9Ellipsoid_22is_semi_minor_computed___get__(struct __pyx_obj_6pyproj_4_crs_Ellipsoid *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->is_semi_minor_computed);
  __pyx_r = __pyx_v_self->is_semi_minor_computed;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":46
 *     cdef readonly double semi_minor_metre
 *     cdef readonly object is_semi_minor_computed
 *     cdef readonly double inverse_flattening             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_9Ellipsoid_18inverse_flattening_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_9Ellipsoid_18inverse_flattening_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_9Ellipsoid_18inverse_flattening___get__(((struct __pyx_obj_6pyproj_4_crs_Ellipsoid *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_9Ellipsoid_18inverse_flattening___get__(struct __pyx_obj_6pyproj_4_crs_Ellipsoid *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->inverse_flattening); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 46, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.Ellipsoid.inverse_flattening.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_9Ellipsoid_21__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_6pyproj_4_crs_9Ellipsoid_20__reduce_cython__[] = "Ellipsoid.__reduce_cython__(self)";
static PyObject *__pyx_pw_6pyproj_4_crs_9Ellipsoid_21__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_9Ellipsoid_20__reduce_cython__(((struct __pyx_obj_6pyproj_4_crs_Ellipsoid *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_9Ellipsoid_20__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_Ellipsoid *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__16, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.Ellipsoid.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_9Ellipsoid_23__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static char __pyx_doc_6pyproj_4_crs_9Ellipsoid_22__setstate_cython__[] = "Ellipsoid.__setstate_cython__(self, __pyx_state)";
static PyObject *__pyx_pw_6pyproj_4_crs_9Ellipsoid_23__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_9Ellipsoid_22__setstate_cython__(((struct __pyx_obj_6pyproj_4_crs_Ellipsoid *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_9Ellipsoid_22__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_Ellipsoid *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__17, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.Ellipsoid.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1039
 * 
 *     """
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self.unit_name = None
 * 
 */

/* Python wrapper */
static int __pyx_pw_6pyproj_4_crs_13PrimeMeridian_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_6pyproj_4_crs_13PrimeMeridian_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1;
  __pyx_r = __pyx_pf_6pyproj_4_crs_13PrimeMeridian___cinit__(((struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6pyproj_4_crs_13PrimeMeridian___cinit__(struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "pyproj/_crs.pyx":1040
 *     """
 *     def __cinit__(self):
 *         self.unit_name = None             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self):
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->unit_name);
  __Pyx_DECREF(__pyx_v_self->unit_name);
  __pyx_v_self->unit_name = Py_None;

  /* "pyproj/_crs.pyx":1039
 * 
 *     """
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self.unit_name = None
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1042
 *         self.unit_name = None
 * 
 *     def __init__(self):             # <<<<<<<<<<<<<<
 *         raise RuntimeError(
 *             "PrimeMeridian can only be initialized like 'PrimeMeridian.from_*()'."
 */

/* Python wrapper */
static int __pyx_pw_6pyproj_4_crs_13PrimeMeridian_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_6pyproj_4_crs_13PrimeMeridian_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 0))) return -1;
  __pyx_r = __pyx_pf_6pyproj_4_crs_13PrimeMeridian_2__init__(((struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6pyproj_4_crs_13PrimeMeridian_2__init__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "pyproj/_crs.pyx":1043
 * 
 *     def __init__(self):
 *         raise RuntimeError(             # <<<<<<<<<<<<<<
 *             "PrimeMeridian can only be initialized like 'PrimeMeridian.from_*()'."
 *         )
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__18, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1043, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(0, 1043, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1042
 *         self.unit_name = None
 * 
 *     def __init__(self):             # <<<<<<<<<<<<<<
 *         raise RuntimeError(
 *             "PrimeMeridian can only be initialized like 'PrimeMeridian.from_*()'."
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.PrimeMeridian.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1048
 * 
 *     @staticmethod
 *     cdef PrimeMeridian create(PJ_CONTEXT* context, PJ* prime_meridian_pj):             # <<<<<<<<<<<<<<
 *         cdef PrimeMeridian prime_meridian = PrimeMeridian.__new__(PrimeMeridian)
 *         prime_meridian.context = context
 */

static struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *__pyx_f_6pyproj_4_crs_13PrimeMeridian_create(PJ_CONTEXT *__pyx_v_context, PJ *__pyx_v_prime_meridian_pj) {
  struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *__pyx_v_prime_meridian = 0;
  char const *__pyx_v_unit_name;
  struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("create", 0);

  /* "pyproj/_crs.pyx":1049
 *     @staticmethod
 *     cdef PrimeMeridian create(PJ_CONTEXT* context, PJ* prime_meridian_pj):
 *         cdef PrimeMeridian prime_meridian = PrimeMeridian.__new__(PrimeMeridian)             # <<<<<<<<<<<<<<
 *         prime_meridian.context = context
 *         prime_meridian.projobj = prime_meridian_pj
 */
  __pyx_t_1 = ((PyObject *)__pyx_tp_new_6pyproj_4_crs_PrimeMeridian(((PyTypeObject *)__pyx_ptype_6pyproj_4_crs_PrimeMeridian), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1049, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  __pyx_v_prime_meridian = ((struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1050
 *     cdef PrimeMeridian create(PJ_CONTEXT* context, PJ* prime_meridian_pj):
 *         cdef PrimeMeridian prime_meridian = PrimeMeridian.__new__(PrimeMeridian)
 *         prime_meridian.context = context             # <<<<<<<<<<<<<<
 *         prime_meridian.projobj = prime_meridian_pj
 *         cdef const char * unit_name
 */
  __pyx_v_prime_meridian->__pyx_base.__pyx_base.context = __pyx_v_context;

  /* "pyproj/_crs.pyx":1051
 *         cdef PrimeMeridian prime_meridian = PrimeMeridian.__new__(PrimeMeridian)
 *         prime_meridian.context = context
 *         prime_meridian.projobj = prime_meridian_pj             # <<<<<<<<<<<<<<
 *         cdef const char * unit_name
 *         proj_prime_meridian_get_parameters(
 */
  __pyx_v_prime_meridian->__pyx_base.__pyx_base.projobj = __pyx_v_prime_meridian_pj;

  /* "pyproj/_crs.pyx":1053
 *         prime_meridian.projobj = prime_meridian_pj
 *         cdef const char * unit_name
 *         proj_prime_meridian_get_parameters(             # <<<<<<<<<<<<<<
 *             prime_meridian.context,
 *             prime_meridian.projobj,
 */
  (void)(proj_prime_meridian_get_parameters(__pyx_v_prime_meridian->__pyx_base.__pyx_base.context, __pyx_v_prime_meridian->__pyx_base.__pyx_base.projobj, (&__pyx_v_prime_meridian->longitude), (&__pyx_v_prime_meridian->unit_conversion_factor), (&__pyx_v_unit_name)));

  /* "pyproj/_crs.pyx":1060
 *             &unit_name,
 *         )
 *         prime_meridian.unit_name = decode_or_undefined(unit_name)             # <<<<<<<<<<<<<<
 *         prime_meridian._set_base_info()
 *         CRSError.clear()
 */
  __pyx_t_1 = __pyx_f_6pyproj_4_crs_decode_or_undefined(__pyx_v_unit_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1060, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_prime_meridian->unit_name);
  __Pyx_DECREF(__pyx_v_prime_meridian->unit_name);
  __pyx_v_prime_meridian->unit_name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1061
 *         )
 *         prime_meridian.unit_name = decode_or_undefined(unit_name)
 *         prime_meridian._set_base_info()             # <<<<<<<<<<<<<<
 *         CRSError.clear()
 *         return prime_meridian
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_6pyproj_4_crs_PrimeMeridian *)__pyx_v_prime_meridian->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base._set_base_info(((struct __pyx_obj_6pyproj_4_crs_Base *)__pyx_v_prime_meridian)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1061, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1062
 *         prime_meridian.unit_name = decode_or_undefined(unit_name)
 *         prime_meridian._set_base_info()
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         return prime_meridian
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1062, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_clear); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1062, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1062, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1063
 *         prime_meridian._set_base_info()
 *         CRSError.clear()
 *         return prime_meridian             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __Pyx_INCREF(((PyObject *)__pyx_v_prime_meridian));
  __pyx_r = __pyx_v_prime_meridian;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":1048
 * 
 *     @staticmethod
 *     cdef PrimeMeridian create(PJ_CONTEXT* context, PJ* prime_meridian_pj):             # <<<<<<<<<<<<<<
 *         cdef PrimeMeridian prime_meridian = PrimeMeridian.__new__(PrimeMeridian)
 *         prime_meridian.context = context
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("pyproj._crs.PrimeMeridian.create", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_prime_meridian);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1066
 * 
 *     @staticmethod
 *     def from_authority(auth_name, code):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_13PrimeMeridian_5from_authority(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_13PrimeMeridian_4from_authority[] = "PrimeMeridian.from_authority(auth_name, code)\n\n        .. versionadded:: 2.2.0\n\n        Create a PrimeMeridian from an authority code.\n\n        Parameters\n        ----------\n        auth_name: str\n            Name ot the authority.\n        code: str or int\n            The code used by the authority.\n\n        Returns\n        -------\n        PrimeMeridian\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_13PrimeMeridian_5from_authority = {"from_authority", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_13PrimeMeridian_5from_authority, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_13PrimeMeridian_4from_authority};
static PyObject *__pyx_pw_6pyproj_4_crs_13PrimeMeridian_5from_authority(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_auth_name = 0;
  PyObject *__pyx_v_code = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_authority (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_auth_name,&__pyx_n_s_code,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_auth_name)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_code)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("from_authority", 1, 2, 2, 1); __PYX_ERR(0, 1066, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "from_authority") < 0)) __PYX_ERR(0, 1066, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_auth_name = values[0];
    __pyx_v_code = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_authority", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1066, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.PrimeMeridian.from_authority", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_13PrimeMeridian_4from_authority(__pyx_v_auth_name, __pyx_v_code);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_13PrimeMeridian_4from_authority(PyObject *__pyx_v_auth_name, PyObject *__pyx_v_code) {
  PJ_CONTEXT *__pyx_v_context;
  PJ *__pyx_v_prime_meridian_pj;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  char const *__pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  char const *__pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  __Pyx_RefNannySetupContext("from_authority", 0);

  /* "pyproj/_crs.pyx":1083
 *         PrimeMeridian
 *         """
 *         cdef PJ_CONTEXT* context = proj_context_create()             # <<<<<<<<<<<<<<
 *         pyproj_context_initialize(context, True)
 * 
 */
  __pyx_v_context = proj_context_create();

  /* "pyproj/_crs.pyx":1084
 *         """
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)             # <<<<<<<<<<<<<<
 * 
 *         cdef PJ* prime_meridian_pj = proj_create_from_database(
 */
  __pyx_f_6pyproj_8_datadir_pyproj_context_initialize(__pyx_v_context, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1084, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1088
 *         cdef PJ* prime_meridian_pj = proj_create_from_database(
 *             context,
 *             cstrencode(auth_name),             # <<<<<<<<<<<<<<
 *             cstrencode(str(code)),
 *             PJ_CATEGORY_PRIME_MERIDIAN,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cstrencode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1088, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_v_auth_name) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_auth_name);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1088, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 1088, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1089
 *             context,
 *             cstrencode(auth_name),
 *             cstrencode(str(code)),             # <<<<<<<<<<<<<<
 *             PJ_CATEGORY_PRIME_MERIDIAN,
 *             False,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cstrencode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1089, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyUnicode_Type)), __pyx_v_code); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1089, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_6, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1089, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_7 = __Pyx_PyObject_AsString(__pyx_t_2); if (unlikely((!__pyx_t_7) && PyErr_Occurred())) __PYX_ERR(0, 1089, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1086
 *         pyproj_context_initialize(context, True)
 * 
 *         cdef PJ* prime_meridian_pj = proj_create_from_database(             # <<<<<<<<<<<<<<
 *             context,
 *             cstrencode(auth_name),
 */
  __pyx_v_prime_meridian_pj = proj_create_from_database(__pyx_v_context, __pyx_t_4, __pyx_t_7, PJ_CATEGORY_PRIME_MERIDIAN, 0, NULL);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":1095
 *         )
 * 
 *         if prime_meridian_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             raise CRSError(
 */
  __pyx_t_8 = ((__pyx_v_prime_meridian_pj == NULL) != 0);
  if (unlikely(__pyx_t_8)) {

    /* "pyproj/_crs.pyx":1096
 * 
 *         if prime_meridian_pj == NULL:
 *             proj_context_destroy(context)             # <<<<<<<<<<<<<<
 *             raise CRSError(
 *                 "Invalid authority or code ({0}, {1})".format(auth_name, code)
 */
    (void)(proj_context_destroy(__pyx_v_context));

    /* "pyproj/_crs.pyx":1097
 *         if prime_meridian_pj == NULL:
 *             proj_context_destroy(context)
 *             raise CRSError(             # <<<<<<<<<<<<<<
 *                 "Invalid authority or code ({0}, {1})".format(auth_name, code)
 *             )
 */
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1097, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);

    /* "pyproj/_crs.pyx":1098
 *             proj_context_destroy(context)
 *             raise CRSError(
 *                 "Invalid authority or code ({0}, {1})".format(auth_name, code)             # <<<<<<<<<<<<<<
 *             )
 *         CRSError.clear()
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_Invalid_authority_or_code_0_1, __pyx_n_s_format); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1098, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    __pyx_t_9 = 0;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
        __pyx_t_9 = 1;
      }
    }
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_5)) {
      PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_v_auth_name, __pyx_v_code};
      __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1098, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_GOTREF(__pyx_t_3);
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
      PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_v_auth_name, __pyx_v_code};
      __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1098, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_GOTREF(__pyx_t_3);
    } else
    #endif
    {
      __pyx_t_10 = PyTuple_New(2+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1098, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      if (__pyx_t_6) {
        __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_6); __pyx_t_6 = NULL;
      }
      __Pyx_INCREF(__pyx_v_auth_name);
      __Pyx_GIVEREF(__pyx_v_auth_name);
      PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_9, __pyx_v_auth_name);
      __Pyx_INCREF(__pyx_v_code);
      __Pyx_GIVEREF(__pyx_v_code);
      PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_9, __pyx_v_code);
      __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_10, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1098, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_1, function);
      }
    }
    __pyx_t_2 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_5, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1097, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1097, __pyx_L1_error)

    /* "pyproj/_crs.pyx":1095
 *         )
 * 
 *         if prime_meridian_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             raise CRSError(
 */
  }

  /* "pyproj/_crs.pyx":1100
 *                 "Invalid authority or code ({0}, {1})".format(auth_name, code)
 *             )
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         return PrimeMeridian.create(context, prime_meridian_pj)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_clear); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_1)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_1);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_2 = (__pyx_t_1) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":1101
 *             )
 *         CRSError.clear()
 *         return PrimeMeridian.create(context, prime_meridian_pj)             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_f_6pyproj_4_crs_13PrimeMeridian_create(__pyx_v_context, __pyx_v_prime_meridian_pj)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1101, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":1066
 * 
 *     @staticmethod
 *     def from_authority(auth_name, code):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("pyproj._crs.PrimeMeridian.from_authority", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1104
 * 
 *     @staticmethod
 *     def from_epsg(code):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_13PrimeMeridian_7from_epsg(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_13PrimeMeridian_6from_epsg[] = "PrimeMeridian.from_epsg(code)\n\n        .. versionadded:: 2.2.0\n\n        Create a PrimeMeridian from an EPSG code.\n\n        Parameters\n        ----------\n        code: str or int\n            The code used by EPSG.\n\n        Returns\n        -------\n        PrimeMeridian\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_13PrimeMeridian_7from_epsg = {"from_epsg", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_13PrimeMeridian_7from_epsg, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_13PrimeMeridian_6from_epsg};
static PyObject *__pyx_pw_6pyproj_4_crs_13PrimeMeridian_7from_epsg(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_code = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_epsg (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_code,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_code)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "from_epsg") < 0)) __PYX_ERR(0, 1104, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_code = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_epsg", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1104, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.PrimeMeridian.from_epsg", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_13PrimeMeridian_6from_epsg(__pyx_v_code);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_13PrimeMeridian_6from_epsg(PyObject *__pyx_v_code) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("from_epsg", 0);

  /* "pyproj/_crs.pyx":1119
 *         PrimeMeridian
 *         """
 *         return PrimeMeridian.from_authority("EPSG", code)             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6pyproj_4_crs_PrimeMeridian), __pyx_n_s_from_authority); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1119, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  __pyx_t_4 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_4 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_n_u_EPSG, __pyx_v_code};
    __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1119, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_n_u_EPSG, __pyx_v_code};
    __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1119, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  {
    __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1119, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__pyx_t_3) {
      __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
    }
    __Pyx_INCREF(__pyx_n_u_EPSG);
    __Pyx_GIVEREF(__pyx_n_u_EPSG);
    PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_n_u_EPSG);
    __Pyx_INCREF(__pyx_v_code);
    __Pyx_GIVEREF(__pyx_v_code);
    PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_code);
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1119, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":1104
 * 
 *     @staticmethod
 *     def from_epsg(code):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs.PrimeMeridian.from_epsg", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1122
 * 
 *     @staticmethod
 *     def _from_string(prime_meridian_string):             # <<<<<<<<<<<<<<
 *         """
 *         Create an PrimeMeridian from a string.
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_13PrimeMeridian_9_from_string(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_13PrimeMeridian_8_from_string[] = "PrimeMeridian._from_string(prime_meridian_string)\n\n        Create an PrimeMeridian from a string.\n\n        Examples:\n          - urn:ogc:def:meridian:EPSG::8901\n          - PRIMEM[\"Greenwich\",0,\n            ANGLEUNIT[\"degree\",0.0174532925199433],\n            ID[\"EPSG\",8901]]\n\n        Parameters\n        ----------\n        prime_meridian_string: str\n            prime meridian string.\n\n        Returns\n        -------\n        PrimeMeridian\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_13PrimeMeridian_9_from_string = {"_from_string", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_13PrimeMeridian_9_from_string, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_13PrimeMeridian_8_from_string};
static PyObject *__pyx_pw_6pyproj_4_crs_13PrimeMeridian_9_from_string(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_prime_meridian_string = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_from_string (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_prime_meridian_string,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_prime_meridian_string)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_from_string") < 0)) __PYX_ERR(0, 1122, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_prime_meridian_string = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_from_string", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1122, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.PrimeMeridian._from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_13PrimeMeridian_8_from_string(__pyx_v_prime_meridian_string);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_13PrimeMeridian_8_from_string(PyObject *__pyx_v_prime_meridian_string) {
  PJ_CONTEXT *__pyx_v_context;
  PJ *__pyx_v_prime_meridian_pj;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  char const *__pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  __Pyx_RefNannySetupContext("_from_string", 0);

  /* "pyproj/_crs.pyx":1141
 *         PrimeMeridian
 *         """
 *         cdef PJ_CONTEXT* context = proj_context_create()             # <<<<<<<<<<<<<<
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* prime_meridian_pj = proj_create(
 */
  __pyx_v_context = proj_context_create();

  /* "pyproj/_crs.pyx":1142
 *         """
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)             # <<<<<<<<<<<<<<
 *         cdef PJ* prime_meridian_pj = proj_create(
 *             context,
 */
  __pyx_f_6pyproj_8_datadir_pyproj_context_initialize(__pyx_v_context, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1142, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1145
 *         cdef PJ* prime_meridian_pj = proj_create(
 *             context,
 *             cstrencode(prime_meridian_string)             # <<<<<<<<<<<<<<
 *         )
 *         if (
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cstrencode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_v_prime_meridian_string) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_prime_meridian_string);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 1145, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1143
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* prime_meridian_pj = proj_create(             # <<<<<<<<<<<<<<
 *             context,
 *             cstrencode(prime_meridian_string)
 */
  __pyx_v_prime_meridian_pj = proj_create(__pyx_v_context, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1148
 *         )
 *         if (
 *             prime_meridian_pj == NULL or             # <<<<<<<<<<<<<<
 *             proj_get_type(prime_meridian_pj) != PJ_TYPE_PRIME_MERIDIAN
 *         ):
 */
  __pyx_t_6 = ((__pyx_v_prime_meridian_pj == NULL) != 0);
  if (!__pyx_t_6) {
  } else {
    __pyx_t_5 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }

  /* "pyproj/_crs.pyx":1149
 *         if (
 *             prime_meridian_pj == NULL or
 *             proj_get_type(prime_meridian_pj) != PJ_TYPE_PRIME_MERIDIAN             # <<<<<<<<<<<<<<
 *         ):
 *             proj_destroy(prime_meridian_pj)
 */
  __pyx_t_6 = ((proj_get_type(__pyx_v_prime_meridian_pj) != PJ_TYPE_PRIME_MERIDIAN) != 0);
  __pyx_t_5 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;

  /* "pyproj/_crs.pyx":1147
 *             cstrencode(prime_meridian_string)
 *         )
 *         if (             # <<<<<<<<<<<<<<
 *             prime_meridian_pj == NULL or
 *             proj_get_type(prime_meridian_pj) != PJ_TYPE_PRIME_MERIDIAN
 */
  if (unlikely(__pyx_t_5)) {

    /* "pyproj/_crs.pyx":1151
 *             proj_get_type(prime_meridian_pj) != PJ_TYPE_PRIME_MERIDIAN
 *         ):
 *             proj_destroy(prime_meridian_pj)             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             raise CRSError(
 */
    proj_destroy(__pyx_v_prime_meridian_pj);

    /* "pyproj/_crs.pyx":1152
 *         ):
 *             proj_destroy(prime_meridian_pj)
 *             proj_context_destroy(context)             # <<<<<<<<<<<<<<
 *             raise CRSError(
 *                 "Invalid prime meridian string: {}".format(
 */
    (void)(proj_context_destroy(__pyx_v_context));

    /* "pyproj/_crs.pyx":1153
 *             proj_destroy(prime_meridian_pj)
 *             proj_context_destroy(context)
 *             raise CRSError(             # <<<<<<<<<<<<<<
 *                 "Invalid prime meridian string: {}".format(
 *                     pystrdecode(prime_meridian_string)
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1153, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);

    /* "pyproj/_crs.pyx":1154
 *             proj_context_destroy(context)
 *             raise CRSError(
 *                 "Invalid prime meridian string: {}".format(             # <<<<<<<<<<<<<<
 *                     pystrdecode(prime_meridian_string)
 *                 )
 */
    __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_Invalid_prime_meridian_string, __pyx_n_s_format); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1154, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);

    /* "pyproj/_crs.pyx":1155
 *             raise CRSError(
 *                 "Invalid prime meridian string: {}".format(
 *                     pystrdecode(prime_meridian_string)             # <<<<<<<<<<<<<<
 *                 )
 *             )
 */
    __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_pystrdecode); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1155, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_9))) {
      __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_9);
      if (likely(__pyx_t_10)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9);
        __Pyx_INCREF(__pyx_t_10);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_9, function);
      }
    }
    __pyx_t_8 = (__pyx_t_10) ? __Pyx_PyObject_Call2Args(__pyx_t_9, __pyx_t_10, __pyx_v_prime_meridian_string) : __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_v_prime_meridian_string);
    __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1155, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_7);
      if (likely(__pyx_t_9)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_9);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_7, function);
      }
    }
    __pyx_t_3 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_9, __pyx_t_8) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_8);
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1154, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_1 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_7, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1153, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 1153, __pyx_L1_error)

    /* "pyproj/_crs.pyx":1147
 *             cstrencode(prime_meridian_string)
 *         )
 *         if (             # <<<<<<<<<<<<<<
 *             prime_meridian_pj == NULL or
 *             proj_get_type(prime_meridian_pj) != PJ_TYPE_PRIME_MERIDIAN
 */
  }

  /* "pyproj/_crs.pyx":1158
 *                 )
 *             )
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         return PrimeMeridian.create(context, prime_meridian_pj)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_clear); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1159
 *             )
 *         CRSError.clear()
 *         return PrimeMeridian.create(context, prime_meridian_pj)             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_6pyproj_4_crs_13PrimeMeridian_create(__pyx_v_context, __pyx_v_prime_meridian_pj)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":1122
 * 
 *     @staticmethod
 *     def _from_string(prime_meridian_string):             # <<<<<<<<<<<<<<
 *         """
 *         Create an PrimeMeridian from a string.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("pyproj._crs.PrimeMeridian._from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1162
 * 
 *     @staticmethod
 *     def from_string(prime_meridian_string):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_13PrimeMeridian_11from_string(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_13PrimeMeridian_10from_string[] = "PrimeMeridian.from_string(prime_meridian_string)\n\n        .. versionadded:: 2.2.0\n\n        Create an PrimeMeridian from a string.\n\n        Examples:\n          - urn:ogc:def:meridian:EPSG::8901\n          - PRIMEM[\"Greenwich\",0,\n            ANGLEUNIT[\"degree\",0.0174532925199433],\n            ID[\"EPSG\",8901]]\n          - Greenwich\n\n        Parameters\n        ----------\n        prime_meridian_string: str\n            prime meridian string.\n\n        Returns\n        -------\n        PrimeMeridian\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_13PrimeMeridian_11from_string = {"from_string", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_13PrimeMeridian_11from_string, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_13PrimeMeridian_10from_string};
static PyObject *__pyx_pw_6pyproj_4_crs_13PrimeMeridian_11from_string(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_prime_meridian_string = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_string (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_prime_meridian_string,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_prime_meridian_string)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "from_string") < 0)) __PYX_ERR(0, 1162, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_prime_meridian_string = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_string", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1162, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.PrimeMeridian.from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_13PrimeMeridian_10from_string(__pyx_v_prime_meridian_string);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_13PrimeMeridian_10from_string(PyObject *__pyx_v_prime_meridian_string) {
  PyObject *__pyx_v_crs_err = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  int __pyx_t_15;
  char const *__pyx_t_16;
  PyObject *__pyx_t_17 = NULL;
  PyObject *__pyx_t_18 = NULL;
  PyObject *__pyx_t_19 = NULL;
  __Pyx_RefNannySetupContext("from_string", 0);

  /* "pyproj/_crs.pyx":1184
 *         PrimeMeridian
 *         """
 *         try:             # <<<<<<<<<<<<<<
 *             return PrimeMeridian._from_string(prime_meridian_string)
 *         except CRSError as crs_err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "pyproj/_crs.pyx":1185
 *         """
 *         try:
 *             return PrimeMeridian._from_string(prime_meridian_string)             # <<<<<<<<<<<<<<
 *         except CRSError as crs_err:
 *             try:
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6pyproj_4_crs_PrimeMeridian), __pyx_n_s_from_string_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1185, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_6)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_6);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_v_prime_meridian_string) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_prime_meridian_string);
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1185, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L7_try_return;

      /* "pyproj/_crs.pyx":1184
 *         PrimeMeridian
 *         """
 *         try:             # <<<<<<<<<<<<<<
 *             return PrimeMeridian._from_string(prime_meridian_string)
 *         except CRSError as crs_err:
 */
    }
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "pyproj/_crs.pyx":1186
 *         try:
 *             return PrimeMeridian._from_string(prime_meridian_string)
 *         except CRSError as crs_err:             # <<<<<<<<<<<<<<
 *             try:
 *                 return PrimeMeridian.from_name(prime_meridian_string)
 */
    __Pyx_ErrFetch(&__pyx_t_4, &__pyx_t_5, &__pyx_t_6);
    __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1186, __pyx_L5_except_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_4, __pyx_t_7);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_ErrRestore(__pyx_t_4, __pyx_t_5, __pyx_t_6);
    __pyx_t_4 = 0; __pyx_t_5 = 0; __pyx_t_6 = 0;
    if (__pyx_t_8) {
      __Pyx_AddTraceback("pyproj._crs.PrimeMeridian.from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_4) < 0) __PYX_ERR(0, 1186, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      __pyx_v_crs_err = __pyx_t_5;
      /*try:*/ {

        /* "pyproj/_crs.pyx":1187
 *             return PrimeMeridian._from_string(prime_meridian_string)
 *         except CRSError as crs_err:
 *             try:             # <<<<<<<<<<<<<<
 *                 return PrimeMeridian.from_name(prime_meridian_string)
 *             except CRSError:
 */
        {
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __Pyx_ExceptionSave(&__pyx_t_9, &__pyx_t_10, &__pyx_t_11);
          __Pyx_XGOTREF(__pyx_t_9);
          __Pyx_XGOTREF(__pyx_t_10);
          __Pyx_XGOTREF(__pyx_t_11);
          /*try:*/ {

            /* "pyproj/_crs.pyx":1188
 *         except CRSError as crs_err:
 *             try:
 *                 return PrimeMeridian.from_name(prime_meridian_string)             # <<<<<<<<<<<<<<
 *             except CRSError:
 *                 raise crs_err
 */
            __Pyx_XDECREF(__pyx_r);
            __pyx_t_12 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6pyproj_4_crs_PrimeMeridian), __pyx_n_s_from_name); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1188, __pyx_L16_error)
            __Pyx_GOTREF(__pyx_t_12);
            __pyx_t_13 = NULL;
            if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_12))) {
              __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_12);
              if (likely(__pyx_t_13)) {
                PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12);
                __Pyx_INCREF(__pyx_t_13);
                __Pyx_INCREF(function);
                __Pyx_DECREF_SET(__pyx_t_12, function);
              }
            }
            __pyx_t_7 = (__pyx_t_13) ? __Pyx_PyObject_Call2Args(__pyx_t_12, __pyx_t_13, __pyx_v_prime_meridian_string) : __Pyx_PyObject_CallOneArg(__pyx_t_12, __pyx_v_prime_meridian_string);
            __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
            if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1188, __pyx_L16_error)
            __Pyx_GOTREF(__pyx_t_7);
            __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
            __pyx_r = __pyx_t_7;
            __pyx_t_7 = 0;
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
            goto __pyx_L20_try_return;

            /* "pyproj/_crs.pyx":1187
 *             return PrimeMeridian._from_string(prime_meridian_string)
 *         except CRSError as crs_err:
 *             try:             # <<<<<<<<<<<<<<
 *                 return PrimeMeridian.from_name(prime_meridian_string)
 *             except CRSError:
 */
          }
          __pyx_L16_error:;
          __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
          __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

          /* "pyproj/_crs.pyx":1189
 *             try:
 *                 return PrimeMeridian.from_name(prime_meridian_string)
 *             except CRSError:             # <<<<<<<<<<<<<<
 *                 raise crs_err
 * 
 */
          __Pyx_ErrFetch(&__pyx_t_7, &__pyx_t_12, &__pyx_t_13);
          __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1189, __pyx_L18_except_error)
          __Pyx_GOTREF(__pyx_t_14);
          __pyx_t_8 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_7, __pyx_t_14);
          __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
          __Pyx_ErrRestore(__pyx_t_7, __pyx_t_12, __pyx_t_13);
          __pyx_t_7 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0;
          if (__pyx_t_8) {
            __Pyx_AddTraceback("pyproj._crs.PrimeMeridian.from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
            if (__Pyx_GetException(&__pyx_t_13, &__pyx_t_12, &__pyx_t_7) < 0) __PYX_ERR(0, 1189, __pyx_L18_except_error)
            __Pyx_GOTREF(__pyx_t_13);
            __Pyx_GOTREF(__pyx_t_12);
            __Pyx_GOTREF(__pyx_t_7);

            /* "pyproj/_crs.pyx":1190
 *                 return PrimeMeridian.from_name(prime_meridian_string)
 *             except CRSError:
 *                 raise crs_err             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
            __Pyx_Raise(__pyx_v_crs_err, 0, 0, 0);
            __PYX_ERR(0, 1190, __pyx_L18_except_error)
          }
          goto __pyx_L18_except_error;
          __pyx_L18_except_error:;

          /* "pyproj/_crs.pyx":1187
 *             return PrimeMeridian._from_string(prime_meridian_string)
 *         except CRSError as crs_err:
 *             try:             # <<<<<<<<<<<<<<
 *                 return PrimeMeridian.from_name(prime_meridian_string)
 *             except CRSError:
 */
          __Pyx_XGIVEREF(__pyx_t_9);
          __Pyx_XGIVEREF(__pyx_t_10);
          __Pyx_XGIVEREF(__pyx_t_11);
          __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11);
          goto __pyx_L14_error;
          __pyx_L20_try_return:;
          __Pyx_XGIVEREF(__pyx_t_9);
          __Pyx_XGIVEREF(__pyx_t_10);
          __Pyx_XGIVEREF(__pyx_t_11);
          __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11);
          goto __pyx_L13_return;
        }
      }

      /* "pyproj/_crs.pyx":1186
 *         try:
 *             return PrimeMeridian._from_string(prime_meridian_string)
 *         except CRSError as crs_err:             # <<<<<<<<<<<<<<
 *             try:
 *                 return PrimeMeridian.from_name(prime_meridian_string)
 */
      /*finally:*/ {
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_11 = 0; __pyx_t_10 = 0; __pyx_t_9 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0;
          __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
          __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
          __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_11, &__pyx_t_10, &__pyx_t_9) < 0)) __Pyx_ErrFetch(&__pyx_t_11, &__pyx_t_10, &__pyx_t_9);
          __Pyx_XGOTREF(__pyx_t_11);
          __Pyx_XGOTREF(__pyx_t_10);
          __Pyx_XGOTREF(__pyx_t_9);
          __Pyx_XGOTREF(__pyx_t_17);
          __Pyx_XGOTREF(__pyx_t_18);
          __Pyx_XGOTREF(__pyx_t_19);
          __pyx_t_8 = __pyx_lineno; __pyx_t_15 = __pyx_clineno; __pyx_t_16 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_crs_err);
            __pyx_v_crs_err = NULL;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_XGIVEREF(__pyx_t_18);
            __Pyx_XGIVEREF(__pyx_t_19);
            __Pyx_ExceptionReset(__pyx_t_17, __pyx_t_18, __pyx_t_19);
          }
          __Pyx_XGIVEREF(__pyx_t_11);
          __Pyx_XGIVEREF(__pyx_t_10);
          __Pyx_XGIVEREF(__pyx_t_9);
          __Pyx_ErrRestore(__pyx_t_11, __pyx_t_10, __pyx_t_9);
          __pyx_t_11 = 0; __pyx_t_10 = 0; __pyx_t_9 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0;
          __pyx_lineno = __pyx_t_8; __pyx_clineno = __pyx_t_15; __pyx_filename = __pyx_t_16;
          goto __pyx_L5_except_error;
        }
        __pyx_L13_return: {
          __pyx_t_19 = __pyx_r;
          __pyx_r = 0;
          __Pyx_DECREF(__pyx_v_crs_err);
          __pyx_v_crs_err = NULL;
          __pyx_r = __pyx_t_19;
          __pyx_t_19 = 0;
          goto __pyx_L6_except_return;
        }
      }
    }
    goto __pyx_L5_except_error;
    __pyx_L5_except_error:;

    /* "pyproj/_crs.pyx":1184
 *         PrimeMeridian
 *         """
 *         try:             # <<<<<<<<<<<<<<
 *             return PrimeMeridian._from_string(prime_meridian_string)
 *         except CRSError as crs_err:
 */
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L7_try_return:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L0;
    __pyx_L6_except_return:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L0;
  }

  /* "pyproj/_crs.pyx":1162
 * 
 *     @staticmethod
 *     def from_string(prime_meridian_string):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_AddTraceback("pyproj._crs.PrimeMeridian.from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_crs_err);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1193
 * 
 *     @staticmethod
 *     def from_json_dict(prime_meridian_dict):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_13PrimeMeridian_13from_json_dict(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_13PrimeMeridian_12from_json_dict[] = "PrimeMeridian.from_json_dict(prime_meridian_dict)\n\n        .. versionadded:: 2.4.0\n\n        Create PrimeMeridian from a JSON dictionary.\n\n        Parameters\n        ----------\n        prime_meridian_dict: str\n            PrimeMeridian dictionary.\n\n        Returns\n        -------\n        PrimeMeridian\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_13PrimeMeridian_13from_json_dict = {"from_json_dict", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_13PrimeMeridian_13from_json_dict, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_13PrimeMeridian_12from_json_dict};
static PyObject *__pyx_pw_6pyproj_4_crs_13PrimeMeridian_13from_json_dict(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_prime_meridian_dict = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_json_dict (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_prime_meridian_dict,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_prime_meridian_dict)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "from_json_dict") < 0)) __PYX_ERR(0, 1193, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_prime_meridian_dict = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_json_dict", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1193, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.PrimeMeridian.from_json_dict", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_13PrimeMeridian_12from_json_dict(__pyx_v_prime_meridian_dict);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_13PrimeMeridian_12from_json_dict(PyObject *__pyx_v_prime_meridian_dict) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("from_json_dict", 0);

  /* "pyproj/_crs.pyx":1208
 *         PrimeMeridian
 *         """
 *         return PrimeMeridian._from_string(json.dumps(prime_meridian_dict))             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6pyproj_4_crs_PrimeMeridian), __pyx_n_s_from_string_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_json); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_dumps); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_5, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_4, __pyx_v_prime_meridian_dict) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_prime_meridian_dict);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":1193
 * 
 *     @staticmethod
 *     def from_json_dict(prime_meridian_dict):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs.PrimeMeridian.from_json_dict", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1211
 * 
 *     @staticmethod
 *     def from_json(prime_meridian_json_str):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_13PrimeMeridian_15from_json(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_13PrimeMeridian_14from_json[] = "PrimeMeridian.from_json(prime_meridian_json_str)\n\n        .. versionadded:: 2.4.0\n\n        Create PrimeMeridian from a JSON string.\n\n        Parameters\n        ----------\n        prime_meridian_json_str: str\n            PrimeMeridian JSON string.\n\n        Returns\n        -------\n        PrimeMeridian\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_13PrimeMeridian_15from_json = {"from_json", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_13PrimeMeridian_15from_json, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_13PrimeMeridian_14from_json};
static PyObject *__pyx_pw_6pyproj_4_crs_13PrimeMeridian_15from_json(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_prime_meridian_json_str = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_json (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_prime_meridian_json_str,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_prime_meridian_json_str)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "from_json") < 0)) __PYX_ERR(0, 1211, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_prime_meridian_json_str = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_json", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1211, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.PrimeMeridian.from_json", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_13PrimeMeridian_14from_json(__pyx_v_prime_meridian_json_str);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_13PrimeMeridian_14from_json(PyObject *__pyx_v_prime_meridian_json_str) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("from_json", 0);

  /* "pyproj/_crs.pyx":1226
 *         PrimeMeridian
 *         """
 *         return PrimeMeridian.from_json_dict(_load_proj_json(prime_meridian_json_str))             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6pyproj_4_crs_PrimeMeridian), __pyx_n_s_from_json_dict); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1226, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_load_proj_json); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1226, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
    }
  }
  __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_prime_meridian_json_str) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_prime_meridian_json_str);
  __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1226, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1226, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":1211
 * 
 *     @staticmethod
 *     def from_json(prime_meridian_json_str):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs.PrimeMeridian.from_json", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1229
 * 
 *     @staticmethod
 *     def from_name(             # <<<<<<<<<<<<<<
 *         prime_meridian_name,
 *         auth_name=None,
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_13PrimeMeridian_17from_name(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_13PrimeMeridian_16from_name[] = "PrimeMeridian.from_name(prime_meridian_name, auth_name=None)\n\n        .. versionadded:: 2.5.0\n\n        Create a Prime Meridian from a name.\n\n        Examples:\n          - Greenwich\n\n        Parameters\n        ----------\n        prime_meridian_name: str\n            Prime Meridian name.\n        auth_name: str, optional\n            The authority name to refine search (e.g. 'EPSG').\n            If None, will search all authorities. Default is None.\n\n        Returns\n        -------\n        PrimeMeridian\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_13PrimeMeridian_17from_name = {"from_name", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_13PrimeMeridian_17from_name, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_13PrimeMeridian_16from_name};
static PyObject *__pyx_pw_6pyproj_4_crs_13PrimeMeridian_17from_name(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_prime_meridian_name = 0;
  PyObject *__pyx_v_auth_name = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_name (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_prime_meridian_name,&__pyx_n_s_auth_name,0};
    PyObject* values[2] = {0,0};

    /* "pyproj/_crs.pyx":1231
 *     def from_name(
 *         prime_meridian_name,
 *         auth_name=None,             # <<<<<<<<<<<<<<
 *     ):
 *         """
 */
    values[1] = ((PyObject *)Py_None);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_prime_meridian_name)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_auth_name);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "from_name") < 0)) __PYX_ERR(0, 1229, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_prime_meridian_name = values[0];
    __pyx_v_auth_name = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_name", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1229, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.PrimeMeridian.from_name", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_13PrimeMeridian_16from_name(__pyx_v_prime_meridian_name, __pyx_v_auth_name);

  /* "pyproj/_crs.pyx":1229
 * 
 *     @staticmethod
 *     def from_name(             # <<<<<<<<<<<<<<
 *         prime_meridian_name,
 *         auth_name=None,
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_13PrimeMeridian_16from_name(PyObject *__pyx_v_prime_meridian_name, PyObject *__pyx_v_auth_name) {
  PJ_CONTEXT *__pyx_v_context;
  PJ *__pyx_v_prime_meridian_pj;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_RefNannySetupContext("from_name", 0);

  /* "pyproj/_crs.pyx":1253
 *         PrimeMeridian
 *         """
 *         cdef PJ_CONTEXT* context = proj_context_create()             # <<<<<<<<<<<<<<
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* prime_meridian_pj = _from_name(
 */
  __pyx_v_context = proj_context_create();

  /* "pyproj/_crs.pyx":1254
 *         """
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)             # <<<<<<<<<<<<<<
 *         cdef PJ* prime_meridian_pj = _from_name(
 *             context,
 */
  __pyx_f_6pyproj_8_datadir_pyproj_context_initialize(__pyx_v_context, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1254, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1255
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* prime_meridian_pj = _from_name(             # <<<<<<<<<<<<<<
 *             context,
 *             prime_meridian_name,
 */
  __pyx_v_prime_meridian_pj = __pyx_f_6pyproj_4_crs__from_name(__pyx_v_context, __pyx_v_prime_meridian_name, __pyx_v_auth_name, PJ_TYPE_PRIME_MERIDIAN);

  /* "pyproj/_crs.pyx":1261
 *             PJ_TYPE_PRIME_MERIDIAN,
 *         )
 *         if prime_meridian_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             raise CRSError(
 */
  __pyx_t_1 = ((__pyx_v_prime_meridian_pj == NULL) != 0);
  if (unlikely(__pyx_t_1)) {

    /* "pyproj/_crs.pyx":1262
 *         )
 *         if prime_meridian_pj == NULL:
 *             proj_context_destroy(context)             # <<<<<<<<<<<<<<
 *             raise CRSError(
 *                 "Invalid prime meridian name: {}".format(
 */
    (void)(proj_context_destroy(__pyx_v_context));

    /* "pyproj/_crs.pyx":1263
 *         if prime_meridian_pj == NULL:
 *             proj_context_destroy(context)
 *             raise CRSError(             # <<<<<<<<<<<<<<
 *                 "Invalid prime meridian name: {}".format(
 *                     pystrdecode(prime_meridian_name)
 */
    __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1263, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);

    /* "pyproj/_crs.pyx":1264
 *             proj_context_destroy(context)
 *             raise CRSError(
 *                 "Invalid prime meridian name: {}".format(             # <<<<<<<<<<<<<<
 *                     pystrdecode(prime_meridian_name)
 *                 )
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_Invalid_prime_meridian_name, __pyx_n_s_format); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1264, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);

    /* "pyproj/_crs.pyx":1265
 *             raise CRSError(
 *                 "Invalid prime meridian name: {}".format(
 *                     pystrdecode(prime_meridian_name)             # <<<<<<<<<<<<<<
 *                 )
 *             )
 */
    __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_pystrdecode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1265, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
      __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7);
      if (likely(__pyx_t_8)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
        __Pyx_INCREF(__pyx_t_8);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_7, function);
      }
    }
    __pyx_t_6 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_8, __pyx_v_prime_meridian_name) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_prime_meridian_name);
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1265, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    __pyx_t_4 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_7, __pyx_t_6) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_6);
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1264, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_3, function);
      }
    }
    __pyx_t_2 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1263, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1263, __pyx_L1_error)

    /* "pyproj/_crs.pyx":1261
 *             PJ_TYPE_PRIME_MERIDIAN,
 *         )
 *         if prime_meridian_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             raise CRSError(
 */
  }

  /* "pyproj/_crs.pyx":1268
 *                 )
 *             )
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         return PrimeMeridian.create(context, prime_meridian_pj)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1268, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_clear); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1268, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
    }
  }
  __pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1268, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":1269
 *             )
 *         CRSError.clear()
 *         return PrimeMeridian.create(context, prime_meridian_pj)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_f_6pyproj_4_crs_13PrimeMeridian_create(__pyx_v_context, __pyx_v_prime_meridian_pj)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1269, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":1229
 * 
 *     @staticmethod
 *     def from_name(             # <<<<<<<<<<<<<<
 *         prime_meridian_name,
 *         auth_name=None,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("pyproj._crs.PrimeMeridian.from_name", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":53
 * 
 * cdef class PrimeMeridian(_CRSParts):
 *     cdef readonly double longitude             # <<<<<<<<<<<<<<
 *     cdef readonly double unit_conversion_factor
 *     cdef readonly object unit_name
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_13PrimeMeridian_9longitude_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_13PrimeMeridian_9longitude_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_13PrimeMeridian_9longitude___get__(((struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_13PrimeMeridian_9longitude___get__(struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->longitude); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 53, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.PrimeMeridian.longitude.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":54
 * cdef class PrimeMeridian(_CRSParts):
 *     cdef readonly double longitude
 *     cdef readonly double unit_conversion_factor             # <<<<<<<<<<<<<<
 *     cdef readonly object unit_name
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_13PrimeMeridian_22unit_conversion_factor_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_13PrimeMeridian_22unit_conversion_factor_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_13PrimeMeridian_22unit_conversion_factor___get__(((struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_13PrimeMeridian_22unit_conversion_factor___get__(struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->unit_conversion_factor); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 54, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.PrimeMeridian.unit_conversion_factor.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":55
 *     cdef readonly double longitude
 *     cdef readonly double unit_conversion_factor
 *     cdef readonly object unit_name             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_13PrimeMeridian_9unit_name_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_13PrimeMeridian_9unit_name_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_13PrimeMeridian_9unit_name___get__(((struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_13PrimeMeridian_9unit_name___get__(struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->unit_name);
  __pyx_r = __pyx_v_self->unit_name;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_13PrimeMeridian_19__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_6pyproj_4_crs_13PrimeMeridian_18__reduce_cython__[] = "PrimeMeridian.__reduce_cython__(self)";
static PyObject *__pyx_pw_6pyproj_4_crs_13PrimeMeridian_19__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_13PrimeMeridian_18__reduce_cython__(((struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_13PrimeMeridian_18__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__19, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.PrimeMeridian.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_13PrimeMeridian_21__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static char __pyx_doc_6pyproj_4_crs_13PrimeMeridian_20__setstate_cython__[] = "PrimeMeridian.__setstate_cython__(self, __pyx_state)";
static PyObject *__pyx_pw_6pyproj_4_crs_13PrimeMeridian_21__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_13PrimeMeridian_20__setstate_cython__(((struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_13PrimeMeridian_20__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__20, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.PrimeMeridian.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1316
 * 
 *     """
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._ellipsoid = None
 *         self._prime_meridian = None
 */

/* Python wrapper */
static int __pyx_pw_6pyproj_4_crs_5Datum_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_6pyproj_4_crs_5Datum_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1;
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Datum___cinit__(((struct __pyx_obj_6pyproj_4_crs_Datum *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6pyproj_4_crs_5Datum___cinit__(struct __pyx_obj_6pyproj_4_crs_Datum *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "pyproj/_crs.pyx":1317
 *     """
 *     def __cinit__(self):
 *         self._ellipsoid = None             # <<<<<<<<<<<<<<
 *         self._prime_meridian = None
 * 
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->_ellipsoid);
  __Pyx_DECREF(__pyx_v_self->_ellipsoid);
  __pyx_v_self->_ellipsoid = Py_None;

  /* "pyproj/_crs.pyx":1318
 *     def __cinit__(self):
 *         self._ellipsoid = None
 *         self._prime_meridian = None             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self):
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->_prime_meridian);
  __Pyx_DECREF(__pyx_v_self->_prime_meridian);
  __pyx_v_self->_prime_meridian = Py_None;

  /* "pyproj/_crs.pyx":1316
 * 
 *     """
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._ellipsoid = None
 *         self._prime_meridian = None
 */

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1320
 *         self._prime_meridian = None
 * 
 *     def __init__(self):             # <<<<<<<<<<<<<<
 *         raise RuntimeError(
 *             "Datum can only be initialized like 'Datum.from_*()'."
 */

/* Python wrapper */
static int __pyx_pw_6pyproj_4_crs_5Datum_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_6pyproj_4_crs_5Datum_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 0))) return -1;
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Datum_2__init__(((struct __pyx_obj_6pyproj_4_crs_Datum *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6pyproj_4_crs_5Datum_2__init__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_Datum *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "pyproj/_crs.pyx":1321
 * 
 *     def __init__(self):
 *         raise RuntimeError(             # <<<<<<<<<<<<<<
 *             "Datum can only be initialized like 'Datum.from_*()'."
 *         )
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__21, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1321, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(0, 1321, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1320
 *         self._prime_meridian = None
 * 
 *     def __init__(self):             # <<<<<<<<<<<<<<
 *         raise RuntimeError(
 *             "Datum can only be initialized like 'Datum.from_*()'."
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.Datum.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1326
 * 
 *     @staticmethod
 *     cdef Datum create(PJ_CONTEXT* context, PJ* datum_pj):             # <<<<<<<<<<<<<<
 *         cdef Datum datum = Datum.__new__(Datum)
 *         datum.context = context
 */

static struct __pyx_obj_6pyproj_4_crs_Datum *__pyx_f_6pyproj_4_crs_5Datum_create(PJ_CONTEXT *__pyx_v_context, PJ *__pyx_v_datum_pj) {
  struct __pyx_obj_6pyproj_4_crs_Datum *__pyx_v_datum = 0;
  struct __pyx_obj_6pyproj_4_crs_Datum *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("create", 0);

  /* "pyproj/_crs.pyx":1327
 *     @staticmethod
 *     cdef Datum create(PJ_CONTEXT* context, PJ* datum_pj):
 *         cdef Datum datum = Datum.__new__(Datum)             # <<<<<<<<<<<<<<
 *         datum.context = context
 *         datum.projobj = datum_pj
 */
  __pyx_t_1 = ((PyObject *)__pyx_tp_new_6pyproj_4_crs_Datum(((PyTypeObject *)__pyx_ptype_6pyproj_4_crs_Datum), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1327, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  __pyx_v_datum = ((struct __pyx_obj_6pyproj_4_crs_Datum *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1328
 *     cdef Datum create(PJ_CONTEXT* context, PJ* datum_pj):
 *         cdef Datum datum = Datum.__new__(Datum)
 *         datum.context = context             # <<<<<<<<<<<<<<
 *         datum.projobj = datum_pj
 *         datum._set_base_info()
 */
  __pyx_v_datum->__pyx_base.__pyx_base.context = __pyx_v_context;

  /* "pyproj/_crs.pyx":1329
 *         cdef Datum datum = Datum.__new__(Datum)
 *         datum.context = context
 *         datum.projobj = datum_pj             # <<<<<<<<<<<<<<
 *         datum._set_base_info()
 *         datum.type_name = _DATUM_TYPE_MAP[proj_get_type(datum.projobj)]
 */
  __pyx_v_datum->__pyx_base.__pyx_base.projobj = __pyx_v_datum_pj;

  /* "pyproj/_crs.pyx":1330
 *         datum.context = context
 *         datum.projobj = datum_pj
 *         datum._set_base_info()             # <<<<<<<<<<<<<<
 *         datum.type_name = _DATUM_TYPE_MAP[proj_get_type(datum.projobj)]
 *         return datum
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_6pyproj_4_crs_Datum *)__pyx_v_datum->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base._set_base_info(((struct __pyx_obj_6pyproj_4_crs_Base *)__pyx_v_datum)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1330, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1331
 *         datum.projobj = datum_pj
 *         datum._set_base_info()
 *         datum.type_name = _DATUM_TYPE_MAP[proj_get_type(datum.projobj)]             # <<<<<<<<<<<<<<
 *         return datum
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_DATUM_TYPE_MAP); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_From_PJ_TYPE(proj_get_type(__pyx_v_datum->__pyx_base.__pyx_base.projobj)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_GOTREF(__pyx_v_datum->type_name);
  __Pyx_DECREF(__pyx_v_datum->type_name);
  __pyx_v_datum->type_name = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":1332
 *         datum._set_base_info()
 *         datum.type_name = _DATUM_TYPE_MAP[proj_get_type(datum.projobj)]
 *         return datum             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __Pyx_INCREF(((PyObject *)__pyx_v_datum));
  __pyx_r = __pyx_v_datum;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":1326
 * 
 *     @staticmethod
 *     cdef Datum create(PJ_CONTEXT* context, PJ* datum_pj):             # <<<<<<<<<<<<<<
 *         cdef Datum datum = Datum.__new__(Datum)
 *         datum.context = context
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("pyproj._crs.Datum.create", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_datum);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1335
 * 
 *     @staticmethod
 *     def from_authority(auth_name, code):             # <<<<<<<<<<<<<<
 *         """
 *         Create a Datum from an authority code.
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_5from_authority(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_5Datum_4from_authority[] = "Datum.from_authority(auth_name, code)\n\n        Create a Datum from an authority code.\n\n        Parameters\n        ----------\n        auth_name: str\n            Name ot the authority.\n        code: str or int\n            The code used by the authority.\n\n        Returns\n        -------\n        Datum\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_5Datum_5from_authority = {"from_authority", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_5Datum_5from_authority, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_5Datum_4from_authority};
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_5from_authority(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_auth_name = 0;
  PyObject *__pyx_v_code = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_authority (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_auth_name,&__pyx_n_s_code,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_auth_name)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_code)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("from_authority", 1, 2, 2, 1); __PYX_ERR(0, 1335, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "from_authority") < 0)) __PYX_ERR(0, 1335, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_auth_name = values[0];
    __pyx_v_code = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_authority", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1335, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.Datum.from_authority", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Datum_4from_authority(__pyx_v_auth_name, __pyx_v_code);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_4from_authority(PyObject *__pyx_v_auth_name, PyObject *__pyx_v_code) {
  PJ_CONTEXT *__pyx_v_context;
  PJ *__pyx_v_datum_pj;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  char const *__pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  char const *__pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  __Pyx_RefNannySetupContext("from_authority", 0);

  /* "pyproj/_crs.pyx":1350
 *         Datum
 *         """
 *         cdef PJ_CONTEXT* context = proj_context_create()             # <<<<<<<<<<<<<<
 *         pyproj_context_initialize(context, True)
 * 
 */
  __pyx_v_context = proj_context_create();

  /* "pyproj/_crs.pyx":1351
 *         """
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)             # <<<<<<<<<<<<<<
 * 
 *         cdef PJ* datum_pj = proj_create_from_database(
 */
  __pyx_f_6pyproj_8_datadir_pyproj_context_initialize(__pyx_v_context, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1351, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1355
 *         cdef PJ* datum_pj = proj_create_from_database(
 *             context,
 *             cstrencode(str(auth_name)),             # <<<<<<<<<<<<<<
 *             cstrencode(str(code)),
 *             PJ_CATEGORY_DATUM,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cstrencode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1355, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyUnicode_Type)), __pyx_v_auth_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1355, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1355, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_5 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 1355, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1356
 *             context,
 *             cstrencode(str(auth_name)),
 *             cstrencode(str(code)),             # <<<<<<<<<<<<<<
 *             PJ_CATEGORY_DATUM,
 *             False,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cstrencode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1356, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyUnicode_Type)), __pyx_v_code); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1356, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_6, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1356, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_7 = __Pyx_PyObject_AsString(__pyx_t_2); if (unlikely((!__pyx_t_7) && PyErr_Occurred())) __PYX_ERR(0, 1356, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1353
 *         pyproj_context_initialize(context, True)
 * 
 *         cdef PJ* datum_pj = proj_create_from_database(             # <<<<<<<<<<<<<<
 *             context,
 *             cstrencode(str(auth_name)),
 */
  __pyx_v_datum_pj = proj_create_from_database(__pyx_v_context, __pyx_t_5, __pyx_t_7, PJ_CATEGORY_DATUM, 0, NULL);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":1362
 *         )
 * 
 *         if datum_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             raise CRSError(
 */
  __pyx_t_8 = ((__pyx_v_datum_pj == NULL) != 0);
  if (unlikely(__pyx_t_8)) {

    /* "pyproj/_crs.pyx":1363
 * 
 *         if datum_pj == NULL:
 *             proj_context_destroy(context)             # <<<<<<<<<<<<<<
 *             raise CRSError(
 *                 "Invalid authority or code ({0}, {1})".format(auth_name, code)
 */
    (void)(proj_context_destroy(__pyx_v_context));

    /* "pyproj/_crs.pyx":1364
 *         if datum_pj == NULL:
 *             proj_context_destroy(context)
 *             raise CRSError(             # <<<<<<<<<<<<<<
 *                 "Invalid authority or code ({0}, {1})".format(auth_name, code)
 *             )
 */
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1364, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);

    /* "pyproj/_crs.pyx":1365
 *             proj_context_destroy(context)
 *             raise CRSError(
 *                 "Invalid authority or code ({0}, {1})".format(auth_name, code)             # <<<<<<<<<<<<<<
 *             )
 *         CRSError.clear()
 */
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_Invalid_authority_or_code_0_1, __pyx_n_s_format); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1365, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = NULL;
    __pyx_t_9 = 0;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
        __pyx_t_9 = 1;
      }
    }
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_4)) {
      PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_v_auth_name, __pyx_v_code};
      __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1365, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_GOTREF(__pyx_t_3);
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
      PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_v_auth_name, __pyx_v_code};
      __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1365, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_GOTREF(__pyx_t_3);
    } else
    #endif
    {
      __pyx_t_10 = PyTuple_New(2+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1365, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      if (__pyx_t_6) {
        __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_6); __pyx_t_6 = NULL;
      }
      __Pyx_INCREF(__pyx_v_auth_name);
      __Pyx_GIVEREF(__pyx_v_auth_name);
      PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_9, __pyx_v_auth_name);
      __Pyx_INCREF(__pyx_v_code);
      __Pyx_GIVEREF(__pyx_v_code);
      PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_9, __pyx_v_code);
      __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_10, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1365, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
      __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1);
      if (likely(__pyx_t_4)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_4);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_1, function);
      }
    }
    __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3);
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1364, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1364, __pyx_L1_error)

    /* "pyproj/_crs.pyx":1362
 *         )
 * 
 *         if datum_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             raise CRSError(
 */
  }

  /* "pyproj/_crs.pyx":1367
 *                 "Invalid authority or code ({0}, {1})".format(auth_name, code)
 *             )
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         return Datum.create(context, datum_pj)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1367, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_clear); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1367, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_1)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_1);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_2 = (__pyx_t_1) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1367, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":1368
 *             )
 *         CRSError.clear()
 *         return Datum.create(context, datum_pj)             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_f_6pyproj_4_crs_5Datum_create(__pyx_v_context, __pyx_v_datum_pj)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1368, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":1335
 * 
 *     @staticmethod
 *     def from_authority(auth_name, code):             # <<<<<<<<<<<<<<
 *         """
 *         Create a Datum from an authority code.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("pyproj._crs.Datum.from_authority", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1371
 * 
 *     @staticmethod
 *     def from_epsg(code):             # <<<<<<<<<<<<<<
 *         """
 *         Create a Datum from an EPSG code.
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_7from_epsg(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_5Datum_6from_epsg[] = "Datum.from_epsg(code)\n\n        Create a Datum from an EPSG code.\n\n        Parameters\n        ----------\n        code: str or int\n            The code used by EPSG.\n\n        Returns\n        -------\n        Datum\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_5Datum_7from_epsg = {"from_epsg", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_5Datum_7from_epsg, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_5Datum_6from_epsg};
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_7from_epsg(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_code = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_epsg (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_code,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_code)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "from_epsg") < 0)) __PYX_ERR(0, 1371, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_code = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_epsg", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1371, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.Datum.from_epsg", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Datum_6from_epsg(__pyx_v_code);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_6from_epsg(PyObject *__pyx_v_code) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("from_epsg", 0);

  /* "pyproj/_crs.pyx":1384
 *         Datum
 *         """
 *         return Datum.from_authority("EPSG", code)             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6pyproj_4_crs_Datum), __pyx_n_s_from_authority); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  __pyx_t_4 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_4 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_n_u_EPSG, __pyx_v_code};
    __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1384, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_n_u_EPSG, __pyx_v_code};
    __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1384, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  {
    __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1384, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__pyx_t_3) {
      __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
    }
    __Pyx_INCREF(__pyx_n_u_EPSG);
    __Pyx_GIVEREF(__pyx_n_u_EPSG);
    PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_n_u_EPSG);
    __Pyx_INCREF(__pyx_v_code);
    __Pyx_GIVEREF(__pyx_v_code);
    PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_code);
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1384, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":1371
 * 
 *     @staticmethod
 *     def from_epsg(code):             # <<<<<<<<<<<<<<
 *         """
 *         Create a Datum from an EPSG code.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs.Datum.from_epsg", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1387
 * 
 *     @staticmethod
 *     def _from_string(datum_string):             # <<<<<<<<<<<<<<
 *         """
 *         Create a Datum from a string.
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_9_from_string(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_5Datum_8_from_string[] = "Datum._from_string(datum_string)\n\n        Create a Datum from a string.\n\n        Examples:\n          - urn:ogc:def:datum:EPSG::6326\n          - DATUM[\"World Geodetic System 1984\",\n            ELLIPSOID[\"WGS 84\",6378137,298.257223563,\n            LENGTHUNIT[\"metre\",1]],\n            ID[\"EPSG\",6326]]\n\n        Parameters\n        ----------\n        datum_string: str\n            Datum string.\n\n        Returns\n        -------\n        Datum\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_5Datum_9_from_string = {"_from_string", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_5Datum_9_from_string, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_5Datum_8_from_string};
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_9_from_string(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_datum_string = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_from_string (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_datum_string,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_datum_string)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_from_string") < 0)) __PYX_ERR(0, 1387, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_datum_string = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_from_string", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1387, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.Datum._from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Datum_8_from_string(__pyx_v_datum_string);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_8_from_string(PyObject *__pyx_v_datum_string) {
  PJ_CONTEXT *__pyx_v_context;
  PJ *__pyx_v_datum_pj;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  char const *__pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PJ_TYPE __pyx_t_7;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  __Pyx_RefNannySetupContext("_from_string", 0);

  /* "pyproj/_crs.pyx":1407
 *         Datum
 *         """
 *         cdef PJ_CONTEXT* context = proj_context_create()             # <<<<<<<<<<<<<<
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* datum_pj = proj_create(
 */
  __pyx_v_context = proj_context_create();

  /* "pyproj/_crs.pyx":1408
 *         """
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)             # <<<<<<<<<<<<<<
 *         cdef PJ* datum_pj = proj_create(
 *             context,
 */
  __pyx_f_6pyproj_8_datadir_pyproj_context_initialize(__pyx_v_context, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1408, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1411
 *         cdef PJ* datum_pj = proj_create(
 *             context,
 *             cstrencode(datum_string)             # <<<<<<<<<<<<<<
 *         )
 *         if (
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cstrencode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1411, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_v_datum_string) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_datum_string);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1411, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 1411, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1409
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* datum_pj = proj_create(             # <<<<<<<<<<<<<<
 *             context,
 *             cstrencode(datum_string)
 */
  __pyx_v_datum_pj = proj_create(__pyx_v_context, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1414
 *         )
 *         if (
 *             datum_pj == NULL or             # <<<<<<<<<<<<<<
 *             proj_get_type(datum_pj) not in (
 *                 PJ_TYPE_GEODETIC_REFERENCE_FRAME,
 */
  __pyx_t_6 = ((__pyx_v_datum_pj == NULL) != 0);
  if (!__pyx_t_6) {
  } else {
    __pyx_t_5 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }

  /* "pyproj/_crs.pyx":1415
 *         if (
 *             datum_pj == NULL or
 *             proj_get_type(datum_pj) not in (             # <<<<<<<<<<<<<<
 *                 PJ_TYPE_GEODETIC_REFERENCE_FRAME,
 *                 PJ_TYPE_DYNAMIC_GEODETIC_REFERENCE_FRAME,
 */
  __pyx_t_7 = proj_get_type(__pyx_v_datum_pj);

  /* "pyproj/_crs.pyx":1416
 *             datum_pj == NULL or
 *             proj_get_type(datum_pj) not in (
 *                 PJ_TYPE_GEODETIC_REFERENCE_FRAME,             # <<<<<<<<<<<<<<
 *                 PJ_TYPE_DYNAMIC_GEODETIC_REFERENCE_FRAME,
 *                 PJ_TYPE_VERTICAL_REFERENCE_FRAME,
 */
  __pyx_t_8 = ((__pyx_t_7 != PJ_TYPE_GEODETIC_REFERENCE_FRAME) != 0);
  if (__pyx_t_8) {
  } else {
    __pyx_t_6 = __pyx_t_8;
    goto __pyx_L6_bool_binop_done;
  }

  /* "pyproj/_crs.pyx":1415
 *         if (
 *             datum_pj == NULL or
 *             proj_get_type(datum_pj) not in (             # <<<<<<<<<<<<<<
 *                 PJ_TYPE_GEODETIC_REFERENCE_FRAME,
 *                 PJ_TYPE_DYNAMIC_GEODETIC_REFERENCE_FRAME,
 */
  __pyx_t_8 = ((__pyx_t_7 != PJ_TYPE_DYNAMIC_GEODETIC_REFERENCE_FRAME) != 0);
  if (__pyx_t_8) {
  } else {
    __pyx_t_6 = __pyx_t_8;
    goto __pyx_L6_bool_binop_done;
  }

  /* "pyproj/_crs.pyx":1418
 *                 PJ_TYPE_GEODETIC_REFERENCE_FRAME,
 *                 PJ_TYPE_DYNAMIC_GEODETIC_REFERENCE_FRAME,
 *                 PJ_TYPE_VERTICAL_REFERENCE_FRAME,             # <<<<<<<<<<<<<<
 *                 PJ_TYPE_DYNAMIC_VERTICAL_REFERENCE_FRAME,
 *                 PJ_TYPE_DATUM_ENSEMBLE,
 */
  __pyx_t_8 = ((__pyx_t_7 != PJ_TYPE_VERTICAL_REFERENCE_FRAME) != 0);
  if (__pyx_t_8) {
  } else {
    __pyx_t_6 = __pyx_t_8;
    goto __pyx_L6_bool_binop_done;
  }

  /* "pyproj/_crs.pyx":1415
 *         if (
 *             datum_pj == NULL or
 *             proj_get_type(datum_pj) not in (             # <<<<<<<<<<<<<<
 *                 PJ_TYPE_GEODETIC_REFERENCE_FRAME,
 *                 PJ_TYPE_DYNAMIC_GEODETIC_REFERENCE_FRAME,
 */
  __pyx_t_8 = ((__pyx_t_7 != PJ_TYPE_DYNAMIC_VERTICAL_REFERENCE_FRAME) != 0);
  if (__pyx_t_8) {
  } else {
    __pyx_t_6 = __pyx_t_8;
    goto __pyx_L6_bool_binop_done;
  }

  /* "pyproj/_crs.pyx":1420
 *                 PJ_TYPE_VERTICAL_REFERENCE_FRAME,
 *                 PJ_TYPE_DYNAMIC_VERTICAL_REFERENCE_FRAME,
 *                 PJ_TYPE_DATUM_ENSEMBLE,             # <<<<<<<<<<<<<<
 *             )
 *         ):
 */
  __pyx_t_8 = ((__pyx_t_7 != PJ_TYPE_DATUM_ENSEMBLE) != 0);
  __pyx_t_6 = __pyx_t_8;
  __pyx_L6_bool_binop_done:;

  /* "pyproj/_crs.pyx":1415
 *         if (
 *             datum_pj == NULL or
 *             proj_get_type(datum_pj) not in (             # <<<<<<<<<<<<<<
 *                 PJ_TYPE_GEODETIC_REFERENCE_FRAME,
 *                 PJ_TYPE_DYNAMIC_GEODETIC_REFERENCE_FRAME,
 */
  __pyx_t_8 = (__pyx_t_6 != 0);
  __pyx_t_5 = __pyx_t_8;
  __pyx_L4_bool_binop_done:;

  /* "pyproj/_crs.pyx":1413
 *             cstrencode(datum_string)
 *         )
 *         if (             # <<<<<<<<<<<<<<
 *             datum_pj == NULL or
 *             proj_get_type(datum_pj) not in (
 */
  if (unlikely(__pyx_t_5)) {

    /* "pyproj/_crs.pyx":1423
 *             )
 *         ):
 *             proj_destroy(datum_pj)             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             raise CRSError(
 */
    proj_destroy(__pyx_v_datum_pj);

    /* "pyproj/_crs.pyx":1424
 *         ):
 *             proj_destroy(datum_pj)
 *             proj_context_destroy(context)             # <<<<<<<<<<<<<<
 *             raise CRSError(
 *                 "Invalid datum string: {}".format(
 */
    (void)(proj_context_destroy(__pyx_v_context));

    /* "pyproj/_crs.pyx":1425
 *             proj_destroy(datum_pj)
 *             proj_context_destroy(context)
 *             raise CRSError(             # <<<<<<<<<<<<<<
 *                 "Invalid datum string: {}".format(
 *                     pystrdecode(datum_string)
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1425, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);

    /* "pyproj/_crs.pyx":1426
 *             proj_context_destroy(context)
 *             raise CRSError(
 *                 "Invalid datum string: {}".format(             # <<<<<<<<<<<<<<
 *                     pystrdecode(datum_string)
 *                 )
 */
    __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_Invalid_datum_string, __pyx_n_s_format); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1426, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);

    /* "pyproj/_crs.pyx":1427
 *             raise CRSError(
 *                 "Invalid datum string: {}".format(
 *                     pystrdecode(datum_string)             # <<<<<<<<<<<<<<
 *                 )
 *             )
 */
    __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_n_s_pystrdecode); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1427, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __pyx_t_12 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_11))) {
      __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_11);
      if (likely(__pyx_t_12)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_11);
        __Pyx_INCREF(__pyx_t_12);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_11, function);
      }
    }
    __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_11, __pyx_t_12, __pyx_v_datum_string) : __Pyx_PyObject_CallOneArg(__pyx_t_11, __pyx_v_datum_string);
    __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
    if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1427, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __pyx_t_11 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) {
      __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_9);
      if (likely(__pyx_t_11)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9);
        __Pyx_INCREF(__pyx_t_11);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_9, function);
      }
    }
    __pyx_t_3 = (__pyx_t_11) ? __Pyx_PyObject_Call2Args(__pyx_t_9, __pyx_t_11, __pyx_t_10) : __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_10);
    __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1426, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_9)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_9);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_1 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_9, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1425, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 1425, __pyx_L1_error)

    /* "pyproj/_crs.pyx":1413
 *             cstrencode(datum_string)
 *         )
 *         if (             # <<<<<<<<<<<<<<
 *             datum_pj == NULL or
 *             proj_get_type(datum_pj) not in (
 */
  }

  /* "pyproj/_crs.pyx":1430
 *                 )
 *             )
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         return Datum.create(context, datum_pj)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1430, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_clear); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1430, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1430, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1431
 *             )
 *         CRSError.clear()
 *         return Datum.create(context, datum_pj)             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_6pyproj_4_crs_5Datum_create(__pyx_v_context, __pyx_v_datum_pj)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1431, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":1387
 * 
 *     @staticmethod
 *     def _from_string(datum_string):             # <<<<<<<<<<<<<<
 *         """
 *         Create a Datum from a string.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("pyproj._crs.Datum._from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1434
 * 
 *     @staticmethod
 *     def from_string(datum_string):             # <<<<<<<<<<<<<<
 *         """
 *         Create a Datum from a string.
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_11from_string(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_5Datum_10from_string[] = "Datum.from_string(datum_string)\n\n        Create a Datum from a string.\n\n        Examples:\n          - urn:ogc:def:datum:EPSG::6326\n          - DATUM[\"World Geodetic System 1984\",\n            ELLIPSOID[\"WGS 84\",6378137,298.257223563,\n            LENGTHUNIT[\"metre\",1]],\n            ID[\"EPSG\",6326]]\n          - World Geodetic System 1984\n\n        Parameters\n        ----------\n        datum_string: str\n            Datum string.\n\n        Returns\n        -------\n        Datum\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_5Datum_11from_string = {"from_string", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_5Datum_11from_string, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_5Datum_10from_string};
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_11from_string(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_datum_string = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_string (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_datum_string,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_datum_string)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "from_string") < 0)) __PYX_ERR(0, 1434, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_datum_string = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_string", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1434, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.Datum.from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Datum_10from_string(__pyx_v_datum_string);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_10from_string(PyObject *__pyx_v_datum_string) {
  PyObject *__pyx_v_crs_err = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  int __pyx_t_15;
  char const *__pyx_t_16;
  PyObject *__pyx_t_17 = NULL;
  PyObject *__pyx_t_18 = NULL;
  PyObject *__pyx_t_19 = NULL;
  __Pyx_RefNannySetupContext("from_string", 0);

  /* "pyproj/_crs.pyx":1455
 *         Datum
 *         """
 *         try:             # <<<<<<<<<<<<<<
 *             return Datum._from_string(datum_string)
 *         except CRSError as crs_err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "pyproj/_crs.pyx":1456
 *         """
 *         try:
 *             return Datum._from_string(datum_string)             # <<<<<<<<<<<<<<
 *         except CRSError as crs_err:
 *             try:
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6pyproj_4_crs_Datum), __pyx_n_s_from_string_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1456, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_6)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_6);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_v_datum_string) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_datum_string);
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1456, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L7_try_return;

      /* "pyproj/_crs.pyx":1455
 *         Datum
 *         """
 *         try:             # <<<<<<<<<<<<<<
 *             return Datum._from_string(datum_string)
 *         except CRSError as crs_err:
 */
    }
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "pyproj/_crs.pyx":1457
 *         try:
 *             return Datum._from_string(datum_string)
 *         except CRSError as crs_err:             # <<<<<<<<<<<<<<
 *             try:
 *                 return Datum.from_name(datum_string)
 */
    __Pyx_ErrFetch(&__pyx_t_4, &__pyx_t_5, &__pyx_t_6);
    __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1457, __pyx_L5_except_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_4, __pyx_t_7);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_ErrRestore(__pyx_t_4, __pyx_t_5, __pyx_t_6);
    __pyx_t_4 = 0; __pyx_t_5 = 0; __pyx_t_6 = 0;
    if (__pyx_t_8) {
      __Pyx_AddTraceback("pyproj._crs.Datum.from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_4) < 0) __PYX_ERR(0, 1457, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      __pyx_v_crs_err = __pyx_t_5;
      /*try:*/ {

        /* "pyproj/_crs.pyx":1458
 *             return Datum._from_string(datum_string)
 *         except CRSError as crs_err:
 *             try:             # <<<<<<<<<<<<<<
 *                 return Datum.from_name(datum_string)
 *             except CRSError:
 */
        {
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __Pyx_ExceptionSave(&__pyx_t_9, &__pyx_t_10, &__pyx_t_11);
          __Pyx_XGOTREF(__pyx_t_9);
          __Pyx_XGOTREF(__pyx_t_10);
          __Pyx_XGOTREF(__pyx_t_11);
          /*try:*/ {

            /* "pyproj/_crs.pyx":1459
 *         except CRSError as crs_err:
 *             try:
 *                 return Datum.from_name(datum_string)             # <<<<<<<<<<<<<<
 *             except CRSError:
 *                 raise crs_err
 */
            __Pyx_XDECREF(__pyx_r);
            __pyx_t_12 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6pyproj_4_crs_Datum), __pyx_n_s_from_name); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1459, __pyx_L16_error)
            __Pyx_GOTREF(__pyx_t_12);
            __pyx_t_13 = NULL;
            if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_12))) {
              __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_12);
              if (likely(__pyx_t_13)) {
                PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12);
                __Pyx_INCREF(__pyx_t_13);
                __Pyx_INCREF(function);
                __Pyx_DECREF_SET(__pyx_t_12, function);
              }
            }
            __pyx_t_7 = (__pyx_t_13) ? __Pyx_PyObject_Call2Args(__pyx_t_12, __pyx_t_13, __pyx_v_datum_string) : __Pyx_PyObject_CallOneArg(__pyx_t_12, __pyx_v_datum_string);
            __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
            if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1459, __pyx_L16_error)
            __Pyx_GOTREF(__pyx_t_7);
            __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
            __pyx_r = __pyx_t_7;
            __pyx_t_7 = 0;
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
            goto __pyx_L20_try_return;

            /* "pyproj/_crs.pyx":1458
 *             return Datum._from_string(datum_string)
 *         except CRSError as crs_err:
 *             try:             # <<<<<<<<<<<<<<
 *                 return Datum.from_name(datum_string)
 *             except CRSError:
 */
          }
          __pyx_L16_error:;
          __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
          __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

          /* "pyproj/_crs.pyx":1460
 *             try:
 *                 return Datum.from_name(datum_string)
 *             except CRSError:             # <<<<<<<<<<<<<<
 *                 raise crs_err
 * 
 */
          __Pyx_ErrFetch(&__pyx_t_7, &__pyx_t_12, &__pyx_t_13);
          __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1460, __pyx_L18_except_error)
          __Pyx_GOTREF(__pyx_t_14);
          __pyx_t_8 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_7, __pyx_t_14);
          __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
          __Pyx_ErrRestore(__pyx_t_7, __pyx_t_12, __pyx_t_13);
          __pyx_t_7 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0;
          if (__pyx_t_8) {
            __Pyx_AddTraceback("pyproj._crs.Datum.from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
            if (__Pyx_GetException(&__pyx_t_13, &__pyx_t_12, &__pyx_t_7) < 0) __PYX_ERR(0, 1460, __pyx_L18_except_error)
            __Pyx_GOTREF(__pyx_t_13);
            __Pyx_GOTREF(__pyx_t_12);
            __Pyx_GOTREF(__pyx_t_7);

            /* "pyproj/_crs.pyx":1461
 *                 return Datum.from_name(datum_string)
 *             except CRSError:
 *                 raise crs_err             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
            __Pyx_Raise(__pyx_v_crs_err, 0, 0, 0);
            __PYX_ERR(0, 1461, __pyx_L18_except_error)
          }
          goto __pyx_L18_except_error;
          __pyx_L18_except_error:;

          /* "pyproj/_crs.pyx":1458
 *             return Datum._from_string(datum_string)
 *         except CRSError as crs_err:
 *             try:             # <<<<<<<<<<<<<<
 *                 return Datum.from_name(datum_string)
 *             except CRSError:
 */
          __Pyx_XGIVEREF(__pyx_t_9);
          __Pyx_XGIVEREF(__pyx_t_10);
          __Pyx_XGIVEREF(__pyx_t_11);
          __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11);
          goto __pyx_L14_error;
          __pyx_L20_try_return:;
          __Pyx_XGIVEREF(__pyx_t_9);
          __Pyx_XGIVEREF(__pyx_t_10);
          __Pyx_XGIVEREF(__pyx_t_11);
          __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11);
          goto __pyx_L13_return;
        }
      }

      /* "pyproj/_crs.pyx":1457
 *         try:
 *             return Datum._from_string(datum_string)
 *         except CRSError as crs_err:             # <<<<<<<<<<<<<<
 *             try:
 *                 return Datum.from_name(datum_string)
 */
      /*finally:*/ {
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_11 = 0; __pyx_t_10 = 0; __pyx_t_9 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0;
          __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
          __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
          __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_11, &__pyx_t_10, &__pyx_t_9) < 0)) __Pyx_ErrFetch(&__pyx_t_11, &__pyx_t_10, &__pyx_t_9);
          __Pyx_XGOTREF(__pyx_t_11);
          __Pyx_XGOTREF(__pyx_t_10);
          __Pyx_XGOTREF(__pyx_t_9);
          __Pyx_XGOTREF(__pyx_t_17);
          __Pyx_XGOTREF(__pyx_t_18);
          __Pyx_XGOTREF(__pyx_t_19);
          __pyx_t_8 = __pyx_lineno; __pyx_t_15 = __pyx_clineno; __pyx_t_16 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_crs_err);
            __pyx_v_crs_err = NULL;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_XGIVEREF(__pyx_t_18);
            __Pyx_XGIVEREF(__pyx_t_19);
            __Pyx_ExceptionReset(__pyx_t_17, __pyx_t_18, __pyx_t_19);
          }
          __Pyx_XGIVEREF(__pyx_t_11);
          __Pyx_XGIVEREF(__pyx_t_10);
          __Pyx_XGIVEREF(__pyx_t_9);
          __Pyx_ErrRestore(__pyx_t_11, __pyx_t_10, __pyx_t_9);
          __pyx_t_11 = 0; __pyx_t_10 = 0; __pyx_t_9 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0;
          __pyx_lineno = __pyx_t_8; __pyx_clineno = __pyx_t_15; __pyx_filename = __pyx_t_16;
          goto __pyx_L5_except_error;
        }
        __pyx_L13_return: {
          __pyx_t_19 = __pyx_r;
          __pyx_r = 0;
          __Pyx_DECREF(__pyx_v_crs_err);
          __pyx_v_crs_err = NULL;
          __pyx_r = __pyx_t_19;
          __pyx_t_19 = 0;
          goto __pyx_L6_except_return;
        }
      }
    }
    goto __pyx_L5_except_error;
    __pyx_L5_except_error:;

    /* "pyproj/_crs.pyx":1455
 *         Datum
 *         """
 *         try:             # <<<<<<<<<<<<<<
 *             return Datum._from_string(datum_string)
 *         except CRSError as crs_err:
 */
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L7_try_return:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L0;
    __pyx_L6_except_return:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L0;
  }

  /* "pyproj/_crs.pyx":1434
 * 
 *     @staticmethod
 *     def from_string(datum_string):             # <<<<<<<<<<<<<<
 *         """
 *         Create a Datum from a string.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_AddTraceback("pyproj._crs.Datum.from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_crs_err);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1464
 * 
 *     @staticmethod
 *     def _from_name(             # <<<<<<<<<<<<<<
 *         datum_name,
 *         auth_name,
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_13_from_name(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_5Datum_12_from_name[] = "Datum._from_name(datum_name, auth_name, datum_type)\n\n        .. versionadded:: 2.5.0\n\n        Create a Datum from a name.\n\n        Parameters\n        ----------\n        datum_name: str\n            Datum name.\n        auth_name: str\n            The authority name to refine search (e.g. 'EPSG').\n            If None, will search all authorities.\n        datum_type: DatumType, optional\n            The datum type to create.\n\n        Returns\n        -------\n        Datum\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_5Datum_13_from_name = {"_from_name", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_5Datum_13_from_name, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_5Datum_12_from_name};
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_13_from_name(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_datum_name = 0;
  PyObject *__pyx_v_auth_name = 0;
  PyObject *__pyx_v_datum_type = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_from_name (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_datum_name,&__pyx_n_s_auth_name,&__pyx_n_s_datum_type,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_datum_name)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_auth_name)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_from_name", 1, 3, 3, 1); __PYX_ERR(0, 1464, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_datum_type)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_from_name", 1, 3, 3, 2); __PYX_ERR(0, 1464, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_from_name") < 0)) __PYX_ERR(0, 1464, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v_datum_name = values[0];
    __pyx_v_auth_name = values[1];
    __pyx_v_datum_type = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_from_name", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1464, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.Datum._from_name", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Datum_12_from_name(__pyx_v_datum_name, __pyx_v_auth_name, __pyx_v_datum_type);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_12_from_name(PyObject *__pyx_v_datum_name, PyObject *__pyx_v_auth_name, PyObject *__pyx_v_datum_type) {
  PyObject *__pyx_v_pj_datum_type = NULL;
  PJ_CONTEXT *__pyx_v_context;
  PJ *__pyx_v_datum_pj;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PJ_TYPE __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  __Pyx_RefNannySetupContext("_from_name", 0);

  /* "pyproj/_crs.pyx":1488
 *         Datum
 *         """
 *         pj_datum_type = _PJ_DATUM_TYPE_MAP[datum_type]             # <<<<<<<<<<<<<<
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_PJ_DATUM_TYPE_MAP); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1488, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_v_datum_type); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1488, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_pj_datum_type = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":1489
 *         """
 *         pj_datum_type = _PJ_DATUM_TYPE_MAP[datum_type]
 *         cdef PJ_CONTEXT* context = proj_context_create()             # <<<<<<<<<<<<<<
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* datum_pj = _from_name(
 */
  __pyx_v_context = proj_context_create();

  /* "pyproj/_crs.pyx":1490
 *         pj_datum_type = _PJ_DATUM_TYPE_MAP[datum_type]
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)             # <<<<<<<<<<<<<<
 *         cdef PJ* datum_pj = _from_name(
 *             context,
 */
  __pyx_f_6pyproj_8_datadir_pyproj_context_initialize(__pyx_v_context, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1490, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1495
 *             datum_name,
 *             auth_name,
 *             <PJ_TYPE>pj_datum_type,             # <<<<<<<<<<<<<<
 *         )
 *         if datum_pj == NULL:
 */
  __pyx_t_3 = ((PJ_TYPE)__Pyx_PyInt_As_PJ_TYPE(__pyx_v_pj_datum_type)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1495, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1491
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* datum_pj = _from_name(             # <<<<<<<<<<<<<<
 *             context,
 *             datum_name,
 */
  __pyx_v_datum_pj = __pyx_f_6pyproj_4_crs__from_name(__pyx_v_context, __pyx_v_datum_name, __pyx_v_auth_name, ((PJ_TYPE)__pyx_t_3));

  /* "pyproj/_crs.pyx":1497
 *             <PJ_TYPE>pj_datum_type,
 *         )
 *         if datum_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             raise CRSError(
 */
  __pyx_t_4 = ((__pyx_v_datum_pj == NULL) != 0);
  if (unlikely(__pyx_t_4)) {

    /* "pyproj/_crs.pyx":1498
 *         )
 *         if datum_pj == NULL:
 *             proj_context_destroy(context)             # <<<<<<<<<<<<<<
 *             raise CRSError(
 *                 "Invalid datum name: {}".format(
 */
    (void)(proj_context_destroy(__pyx_v_context));

    /* "pyproj/_crs.pyx":1499
 *         if datum_pj == NULL:
 *             proj_context_destroy(context)
 *             raise CRSError(             # <<<<<<<<<<<<<<
 *                 "Invalid datum name: {}".format(
 *                     pystrdecode(datum_name)
 */
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1499, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);

    /* "pyproj/_crs.pyx":1500
 *             proj_context_destroy(context)
 *             raise CRSError(
 *                 "Invalid datum name: {}".format(             # <<<<<<<<<<<<<<
 *                     pystrdecode(datum_name)
 *                 )
 */
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_Invalid_datum_name, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1500, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);

    /* "pyproj/_crs.pyx":1501
 *             raise CRSError(
 *                 "Invalid datum name: {}".format(
 *                     pystrdecode(datum_name)             # <<<<<<<<<<<<<<
 *                 )
 *             )
 */
    __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_pystrdecode); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1501, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_9 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_9)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_9);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_7 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_9, __pyx_v_datum_name) : __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_v_datum_name);
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1501, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
      __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_6);
      if (likely(__pyx_t_8)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
        __Pyx_INCREF(__pyx_t_8);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_6, function);
      }
    }
    __pyx_t_5 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_8, __pyx_t_7) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_7);
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1500, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_1, function);
      }
    }
    __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_6, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_5);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1499, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1499, __pyx_L1_error)

    /* "pyproj/_crs.pyx":1497
 *             <PJ_TYPE>pj_datum_type,
 *         )
 *         if datum_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             raise CRSError(
 */
  }

  /* "pyproj/_crs.pyx":1504
 *                 )
 *             )
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         return Datum.create(context, datum_pj)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1504, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_clear); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1504, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_5);
    if (likely(__pyx_t_1)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_1);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_5, function);
    }
  }
  __pyx_t_2 = (__pyx_t_1) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_1) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1504, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":1505
 *             )
 *         CRSError.clear()
 *         return Datum.create(context, datum_pj)             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_f_6pyproj_4_crs_5Datum_create(__pyx_v_context, __pyx_v_datum_pj)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1505, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":1464
 * 
 *     @staticmethod
 *     def _from_name(             # <<<<<<<<<<<<<<
 *         datum_name,
 *         auth_name,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("pyproj._crs.Datum._from_name", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pj_datum_type);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1508
 * 
 *     @staticmethod
 *     def from_name(             # <<<<<<<<<<<<<<
 *         datum_name,
 *         auth_name=None,
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_15from_name(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_5Datum_14from_name[] = "Datum.from_name(datum_name, auth_name=None, datum_type=DatumType.GEODETIC_REFERENCE_FRAME)\n\n        .. versionadded:: 2.5.0\n\n        Create a Datum from a name.\n\n        Examples:\n          - WGS 84\n          - World Geodetic System 1984\n\n        Parameters\n        ----------\n        datum_name: str\n            Datum name.\n        auth_name: str, optional\n            The authority name to refine search (e.g. 'EPSG').\n            If None, will search all authorities. Default is None.\n        datum_type: DatumType, optional\n            The datum type to create. Default is DatumType.GEODETIC_REFERENCE_FRAME.\n\n        Returns\n        -------\n        Datum\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_5Datum_15from_name = {"from_name", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_5Datum_15from_name, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_5Datum_14from_name};
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_15from_name(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_datum_name = 0;
  PyObject *__pyx_v_auth_name = 0;
  PyObject *__pyx_v_datum_type = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_name (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_datum_name,&__pyx_n_s_auth_name,&__pyx_n_s_datum_type,0};
    PyObject* values[3] = {0,0,0};

    /* "pyproj/_crs.pyx":1510
 *     def from_name(
 *         datum_name,
 *         auth_name=None,             # <<<<<<<<<<<<<<
 *         datum_type=DatumType.GEODETIC_REFERENCE_FRAME,
 *     ):
 */
    values[1] = ((PyObject *)Py_None);
    values[2] = __pyx_k__22;
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_datum_name)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_auth_name);
          if (value) { values[1] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_datum_type);
          if (value) { values[2] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "from_name") < 0)) __PYX_ERR(0, 1508, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_datum_name = values[0];
    __pyx_v_auth_name = values[1];
    __pyx_v_datum_type = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_name", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1508, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.Datum.from_name", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Datum_14from_name(__pyx_v_datum_name, __pyx_v_auth_name, __pyx_v_datum_type);

  /* "pyproj/_crs.pyx":1508
 * 
 *     @staticmethod
 *     def from_name(             # <<<<<<<<<<<<<<
 *         datum_name,
 *         auth_name=None,
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_14from_name(PyObject *__pyx_v_datum_name, PyObject *__pyx_v_auth_name, PyObject *__pyx_v_datum_type) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  int __pyx_t_9;
  int __pyx_t_10;
  int __pyx_t_11;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  __Pyx_RefNannySetupContext("from_name", 0);
  __Pyx_INCREF(__pyx_v_datum_name);
  __Pyx_INCREF(__pyx_v_datum_type);

  /* "pyproj/_crs.pyx":1536
 *         Datum
 *         """
 *         datum_type = DatumType.create(datum_type)             # <<<<<<<<<<<<<<
 *         try:
 *             return Datum._from_name(
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_DatumType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1536, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_create); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1536, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_v_datum_type) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_datum_type);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1536, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF_SET(__pyx_v_datum_type, __pyx_t_1);
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1537
 *         """
 *         datum_type = DatumType.create(datum_type)
 *         try:             # <<<<<<<<<<<<<<
 *             return Datum._from_name(
 *                 datum_name=datum_name,
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_4, &__pyx_t_5, &__pyx_t_6);
    __Pyx_XGOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_6);
    /*try:*/ {

      /* "pyproj/_crs.pyx":1538
 *         datum_type = DatumType.create(datum_type)
 *         try:
 *             return Datum._from_name(             # <<<<<<<<<<<<<<
 *                 datum_name=datum_name,
 *                 auth_name=auth_name,
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6pyproj_4_crs_Datum), __pyx_n_s_from_name_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1538, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_1);

      /* "pyproj/_crs.pyx":1539
 *         try:
 *             return Datum._from_name(
 *                 datum_name=datum_name,             # <<<<<<<<<<<<<<
 *                 auth_name=auth_name,
 *                 datum_type=datum_type,
 */
      __pyx_t_3 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1539, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_datum_name, __pyx_v_datum_name) < 0) __PYX_ERR(0, 1539, __pyx_L3_error)

      /* "pyproj/_crs.pyx":1540
 *             return Datum._from_name(
 *                 datum_name=datum_name,
 *                 auth_name=auth_name,             # <<<<<<<<<<<<<<
 *                 datum_type=datum_type,
 *             )
 */
      if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_auth_name, __pyx_v_auth_name) < 0) __PYX_ERR(0, 1539, __pyx_L3_error)

      /* "pyproj/_crs.pyx":1541
 *                 datum_name=datum_name,
 *                 auth_name=auth_name,
 *                 datum_type=datum_type,             # <<<<<<<<<<<<<<
 *             )
 *         except CRSError:
 */
      if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_datum_type, __pyx_v_datum_type) < 0) __PYX_ERR(0, 1539, __pyx_L3_error)

      /* "pyproj/_crs.pyx":1538
 *         datum_type = DatumType.create(datum_type)
 *         try:
 *             return Datum._from_name(             # <<<<<<<<<<<<<<
 *                 datum_name=datum_name,
 *                 auth_name=auth_name,
 */
      __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1538, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      goto __pyx_L7_try_return;

      /* "pyproj/_crs.pyx":1537
 *         """
 *         datum_type = DatumType.create(datum_type)
 *         try:             # <<<<<<<<<<<<<<
 *             return Datum._from_name(
 *                 datum_name=datum_name,
 */
    }
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "pyproj/_crs.pyx":1543
 *                 datum_type=datum_type,
 *             )
 *         except CRSError:             # <<<<<<<<<<<<<<
 *             if (
 *                 auth_name not in ("PROJ", None)
 */
    __Pyx_ErrFetch(&__pyx_t_2, &__pyx_t_3, &__pyx_t_1);
    __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1543, __pyx_L5_except_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_2, __pyx_t_7);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_ErrRestore(__pyx_t_2, __pyx_t_3, __pyx_t_1);
    __pyx_t_2 = 0; __pyx_t_3 = 0; __pyx_t_1 = 0;
    if (__pyx_t_8) {
      __Pyx_AddTraceback("pyproj._crs.Datum.from_name", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_3, &__pyx_t_2) < 0) __PYX_ERR(0, 1543, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_GOTREF(__pyx_t_2);

      /* "pyproj/_crs.pyx":1545
 *         except CRSError:
 *             if (
 *                 auth_name not in ("PROJ", None)             # <<<<<<<<<<<<<<
 *                 or datum_type!=DatumType.GEODETIC_REFERENCE_FRAME
 *             ):
 */
      __Pyx_INCREF(__pyx_v_auth_name);
      __pyx_t_7 = __pyx_v_auth_name;
      __pyx_t_11 = (__Pyx_PyUnicode_Equals(__pyx_t_7, __pyx_n_u_PROJ, Py_NE)); if (unlikely(__pyx_t_11 < 0)) __PYX_ERR(0, 1545, __pyx_L5_except_error)
      if (__pyx_t_11) {
      } else {
        __pyx_t_10 = __pyx_t_11;
        goto __pyx_L14_bool_binop_done;
      }
      __pyx_t_12 = PyObject_RichCompare(__pyx_t_7, Py_None, Py_NE); __Pyx_XGOTREF(__pyx_t_12); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1545, __pyx_L5_except_error)
      __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_t_12); if (unlikely(__pyx_t_11 < 0)) __PYX_ERR(0, 1545, __pyx_L5_except_error)
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __pyx_t_10 = __pyx_t_11;
      __pyx_L14_bool_binop_done:;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_11 = (__pyx_t_10 != 0);
      if (!__pyx_t_11) {
      } else {
        __pyx_t_9 = __pyx_t_11;
        goto __pyx_L12_bool_binop_done;
      }

      /* "pyproj/_crs.pyx":1546
 *             if (
 *                 auth_name not in ("PROJ", None)
 *                 or datum_type!=DatumType.GEODETIC_REFERENCE_FRAME             # <<<<<<<<<<<<<<
 *             ):
 *                 raise
 */
      __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_DatumType); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1546, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_GEODETIC_REFERENCE_FRAME); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1546, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_12);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_7 = PyObject_RichCompare(__pyx_v_datum_type, __pyx_t_12, Py_NE); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1546, __pyx_L5_except_error)
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_11 < 0)) __PYX_ERR(0, 1546, __pyx_L5_except_error)
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_9 = __pyx_t_11;
      __pyx_L12_bool_binop_done:;

      /* "pyproj/_crs.pyx":1544
 *             )
 *         except CRSError:
 *             if (             # <<<<<<<<<<<<<<
 *                 auth_name not in ("PROJ", None)
 *                 or datum_type!=DatumType.GEODETIC_REFERENCE_FRAME
 */
      if (unlikely(__pyx_t_9)) {

        /* "pyproj/_crs.pyx":1548
 *                 or datum_type!=DatumType.GEODETIC_REFERENCE_FRAME
 *             ):
 *                 raise             # <<<<<<<<<<<<<<
 *             pass
 *         # add support for PROJ datum aliases
 */
        __Pyx_GIVEREF(__pyx_t_1);
        __Pyx_GIVEREF(__pyx_t_3);
        __Pyx_XGIVEREF(__pyx_t_2);
        __Pyx_ErrRestoreWithState(__pyx_t_1, __pyx_t_3, __pyx_t_2);
        __pyx_t_1 = 0; __pyx_t_3 = 0; __pyx_t_2 = 0; 
        __PYX_ERR(0, 1548, __pyx_L5_except_error)

        /* "pyproj/_crs.pyx":1544
 *             )
 *         except CRSError:
 *             if (             # <<<<<<<<<<<<<<
 *                 auth_name not in ("PROJ", None)
 *                 or datum_type!=DatumType.GEODETIC_REFERENCE_FRAME
 */
      }
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      goto __pyx_L4_exception_handled;
    }
    goto __pyx_L5_except_error;
    __pyx_L5_except_error:;

    /* "pyproj/_crs.pyx":1537
 *         """
 *         datum_type = DatumType.create(datum_type)
 *         try:             # <<<<<<<<<<<<<<
 *             return Datum._from_name(
 *                 datum_name=datum_name,
 */
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_ExceptionReset(__pyx_t_4, __pyx_t_5, __pyx_t_6);
    goto __pyx_L1_error;
    __pyx_L7_try_return:;
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_ExceptionReset(__pyx_t_4, __pyx_t_5, __pyx_t_6);
    goto __pyx_L0;
    __pyx_L4_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_ExceptionReset(__pyx_t_4, __pyx_t_5, __pyx_t_6);
  }

  /* "pyproj/_crs.pyx":1552
 *         # add support for PROJ datum aliases
 *         # https://github.com/OSGeo/PROJ/issues/1823
 *         try:             # <<<<<<<<<<<<<<
 *             datum_name=_DATUM_NAME_MAP[datum_name.upper().replace(" ", "")]
 *         except KeyError:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_6, &__pyx_t_5, &__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_6);
    __Pyx_XGOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_4);
    /*try:*/ {

      /* "pyproj/_crs.pyx":1553
 *         # https://github.com/OSGeo/PROJ/issues/1823
 *         try:
 *             datum_name=_DATUM_NAME_MAP[datum_name.upper().replace(" ", "")]             # <<<<<<<<<<<<<<
 *         except KeyError:
 *             raise CRSError(
 */
      __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_DATUM_NAME_MAP); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1553, __pyx_L16_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_datum_name, __pyx_n_s_upper); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1553, __pyx_L16_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_7 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
        __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1);
        if (likely(__pyx_t_7)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
          __Pyx_INCREF(__pyx_t_7);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_1, function);
        }
      }
      __pyx_t_3 = (__pyx_t_7) ? __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_7) : __Pyx_PyObject_CallNoArg(__pyx_t_1);
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1553, __pyx_L16_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_replace); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1553, __pyx_L16_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__25, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1553, __pyx_L16_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_1 = __Pyx_PyObject_GetItem(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1553, __pyx_L16_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF_SET(__pyx_v_datum_name, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "pyproj/_crs.pyx":1552
 *         # add support for PROJ datum aliases
 *         # https://github.com/OSGeo/PROJ/issues/1823
 *         try:             # <<<<<<<<<<<<<<
 *             datum_name=_DATUM_NAME_MAP[datum_name.upper().replace(" ", "")]
 *         except KeyError:
 */
    }
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    goto __pyx_L21_try_end;
    __pyx_L16_error:;
    __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

    /* "pyproj/_crs.pyx":1554
 *         try:
 *             datum_name=_DATUM_NAME_MAP[datum_name.upper().replace(" ", "")]
 *         except KeyError:             # <<<<<<<<<<<<<<
 *             raise CRSError(
 *                 "Invalid datum name: {}".format(datum_name)
 */
    __pyx_t_8 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_KeyError);
    if (__pyx_t_8) {
      __Pyx_AddTraceback("pyproj._crs.Datum.from_name", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_3, &__pyx_t_2) < 0) __PYX_ERR(0, 1554, __pyx_L18_except_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_GOTREF(__pyx_t_2);

      /* "pyproj/_crs.pyx":1555
 *             datum_name=_DATUM_NAME_MAP[datum_name.upper().replace(" ", "")]
 *         except KeyError:
 *             raise CRSError(             # <<<<<<<<<<<<<<
 *                 "Invalid datum name: {}".format(datum_name)
 *             )
 */
      __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1555, __pyx_L18_except_error)
      __Pyx_GOTREF(__pyx_t_12);

      /* "pyproj/_crs.pyx":1556
 *         except KeyError:
 *             raise CRSError(
 *                 "Invalid datum name: {}".format(datum_name)             # <<<<<<<<<<<<<<
 *             )
 *         return Datum.from_name(
 */
      __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_Invalid_datum_name, __pyx_n_s_format); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 1556, __pyx_L18_except_error)
      __Pyx_GOTREF(__pyx_t_14);
      __pyx_t_15 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_14))) {
        __pyx_t_15 = PyMethod_GET_SELF(__pyx_t_14);
        if (likely(__pyx_t_15)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_14);
          __Pyx_INCREF(__pyx_t_15);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_14, function);
        }
      }
      __pyx_t_13 = (__pyx_t_15) ? __Pyx_PyObject_Call2Args(__pyx_t_14, __pyx_t_15, __pyx_v_datum_name) : __Pyx_PyObject_CallOneArg(__pyx_t_14, __pyx_v_datum_name);
      __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
      if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 1556, __pyx_L18_except_error)
      __Pyx_GOTREF(__pyx_t_13);
      __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
      __pyx_t_14 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_12))) {
        __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_12);
        if (likely(__pyx_t_14)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12);
          __Pyx_INCREF(__pyx_t_14);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_12, function);
        }
      }
      __pyx_t_7 = (__pyx_t_14) ? __Pyx_PyObject_Call2Args(__pyx_t_12, __pyx_t_14, __pyx_t_13) : __Pyx_PyObject_CallOneArg(__pyx_t_12, __pyx_t_13);
      __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
      __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
      if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1555, __pyx_L18_except_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
      __Pyx_Raise(__pyx_t_7, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __PYX_ERR(0, 1555, __pyx_L18_except_error)
    }
    goto __pyx_L18_except_error;
    __pyx_L18_except_error:;

    /* "pyproj/_crs.pyx":1552
 *         # add support for PROJ datum aliases
 *         # https://github.com/OSGeo/PROJ/issues/1823
 *         try:             # <<<<<<<<<<<<<<
 *             datum_name=_DATUM_NAME_MAP[datum_name.upper().replace(" ", "")]
 *         except KeyError:
 */
    __Pyx_XGIVEREF(__pyx_t_6);
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_6, __pyx_t_5, __pyx_t_4);
    goto __pyx_L1_error;
    __pyx_L21_try_end:;
  }

  /* "pyproj/_crs.pyx":1558
 *                 "Invalid datum name: {}".format(datum_name)
 *             )
 *         return Datum.from_name(             # <<<<<<<<<<<<<<
 *             datum_name=datum_name,
 *             auth_name=auth_name,
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6pyproj_4_crs_Datum), __pyx_n_s_from_name); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1558, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);

  /* "pyproj/_crs.pyx":1559
 *             )
 *         return Datum.from_name(
 *             datum_name=datum_name,             # <<<<<<<<<<<<<<
 *             auth_name=auth_name,
 *             datum_type=datum_type,
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1559, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_datum_name, __pyx_v_datum_name) < 0) __PYX_ERR(0, 1559, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1560
 *         return Datum.from_name(
 *             datum_name=datum_name,
 *             auth_name=auth_name,             # <<<<<<<<<<<<<<
 *             datum_type=datum_type,
 *         )
 */
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_auth_name, __pyx_v_auth_name) < 0) __PYX_ERR(0, 1559, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1561
 *             datum_name=datum_name,
 *             auth_name=auth_name,
 *             datum_type=datum_type,             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_datum_type, __pyx_v_datum_type) < 0) __PYX_ERR(0, 1559, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1558
 *                 "Invalid datum name: {}".format(datum_name)
 *             )
 *         return Datum.from_name(             # <<<<<<<<<<<<<<
 *             datum_name=datum_name,
 *             auth_name=auth_name,
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_empty_tuple, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1558, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":1508
 * 
 *     @staticmethod
 *     def from_name(             # <<<<<<<<<<<<<<
 *         datum_name,
 *         auth_name=None,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_XDECREF(__pyx_t_15);
  __Pyx_AddTraceback("pyproj._crs.Datum.from_name", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_datum_name);
  __Pyx_XDECREF(__pyx_v_datum_type);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1565
 * 
 *     @staticmethod
 *     def from_json_dict(datum_dict):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_17from_json_dict(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_5Datum_16from_json_dict[] = "Datum.from_json_dict(datum_dict)\n\n        .. versionadded:: 2.4.0\n\n        Create Datum from a JSON dictionary.\n\n        Parameters\n        ----------\n        datum_dict: str\n            Datum dictionary.\n\n        Returns\n        -------\n        Datum\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_5Datum_17from_json_dict = {"from_json_dict", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_5Datum_17from_json_dict, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_5Datum_16from_json_dict};
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_17from_json_dict(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_datum_dict = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_json_dict (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_datum_dict,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_datum_dict)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "from_json_dict") < 0)) __PYX_ERR(0, 1565, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_datum_dict = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_json_dict", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1565, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.Datum.from_json_dict", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Datum_16from_json_dict(__pyx_v_datum_dict);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_16from_json_dict(PyObject *__pyx_v_datum_dict) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("from_json_dict", 0);

  /* "pyproj/_crs.pyx":1580
 *         Datum
 *         """
 *         return Datum._from_string(json.dumps(datum_dict))             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6pyproj_4_crs_Datum), __pyx_n_s_from_string_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_json); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_dumps); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_5, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_4, __pyx_v_datum_dict) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_datum_dict);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":1565
 * 
 *     @staticmethod
 *     def from_json_dict(datum_dict):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs.Datum.from_json_dict", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1583
 * 
 *     @staticmethod
 *     def from_json(datum_json_str):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_19from_json(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_5Datum_18from_json[] = "Datum.from_json(datum_json_str)\n\n        .. versionadded:: 2.4.0\n\n        Create Datum from a JSON string.\n\n        Parameters\n        ----------\n        datum_json_str: str\n            Datum JSON string.\n\n        Returns\n        -------\n        Datum\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_5Datum_19from_json = {"from_json", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_5Datum_19from_json, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_5Datum_18from_json};
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_19from_json(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_datum_json_str = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_json (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_datum_json_str,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_datum_json_str)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "from_json") < 0)) __PYX_ERR(0, 1583, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_datum_json_str = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_json", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1583, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.Datum.from_json", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Datum_18from_json(__pyx_v_datum_json_str);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_18from_json(PyObject *__pyx_v_datum_json_str) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("from_json", 0);

  /* "pyproj/_crs.pyx":1598
 *         Datum
 *         """
 *         return Datum.from_json_dict(_load_proj_json(datum_json_str))             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6pyproj_4_crs_Datum), __pyx_n_s_from_json_dict); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1598, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_load_proj_json); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1598, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
    }
  }
  __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_datum_json_str) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_datum_json_str);
  __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1598, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1598, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":1583
 * 
 *     @staticmethod
 *     def from_json(datum_json_str):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs.Datum.from_json", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1601
 * 
 *     @property
 *     def ellipsoid(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_9ellipsoid_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_9ellipsoid_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Datum_9ellipsoid___get__(((struct __pyx_obj_6pyproj_4_crs_Datum *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_9ellipsoid___get__(struct __pyx_obj_6pyproj_4_crs_Datum *__pyx_v_self) {
  PJ_CONTEXT *__pyx_v_context;
  PJ *__pyx_v_ellipsoid_pj;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "pyproj/_crs.pyx":1608
 *             The ellipsoid object with associated attributes.
 *         """
 *         if self._ellipsoid is not None:             # <<<<<<<<<<<<<<
 *             return None if self._ellipsoid is False else self._ellipsoid
 *         cdef PJ_CONTEXT* context = proj_context_create()
 */
  __pyx_t_1 = (__pyx_v_self->_ellipsoid != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":1609
 *         """
 *         if self._ellipsoid is not None:
 *             return None if self._ellipsoid is False else self._ellipsoid             # <<<<<<<<<<<<<<
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = (__pyx_v_self->_ellipsoid == Py_False);
    if ((__pyx_t_2 != 0)) {
      __Pyx_INCREF(Py_None);
      __pyx_t_3 = Py_None;
    } else {
      __Pyx_INCREF(__pyx_v_self->_ellipsoid);
      __pyx_t_3 = __pyx_v_self->_ellipsoid;
    }
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":1608
 *             The ellipsoid object with associated attributes.
 *         """
 *         if self._ellipsoid is not None:             # <<<<<<<<<<<<<<
 *             return None if self._ellipsoid is False else self._ellipsoid
 *         cdef PJ_CONTEXT* context = proj_context_create()
 */
  }

  /* "pyproj/_crs.pyx":1610
 *         if self._ellipsoid is not None:
 *             return None if self._ellipsoid is False else self._ellipsoid
 *         cdef PJ_CONTEXT* context = proj_context_create()             # <<<<<<<<<<<<<<
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* ellipsoid_pj = proj_get_ellipsoid(
 */
  __pyx_v_context = proj_context_create();

  /* "pyproj/_crs.pyx":1611
 *             return None if self._ellipsoid is False else self._ellipsoid
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)             # <<<<<<<<<<<<<<
 *         cdef PJ* ellipsoid_pj = proj_get_ellipsoid(
 *             context,
 */
  __pyx_f_6pyproj_8_datadir_pyproj_context_initialize(__pyx_v_context, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1611, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1612
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* ellipsoid_pj = proj_get_ellipsoid(             # <<<<<<<<<<<<<<
 *             context,
 *             self.projobj,
 */
  __pyx_v_ellipsoid_pj = proj_get_ellipsoid(__pyx_v_context, __pyx_v_self->__pyx_base.__pyx_base.projobj);

  /* "pyproj/_crs.pyx":1616
 *             self.projobj,
 *         )
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         if ellipsoid_pj == NULL:
 *             proj_context_destroy(context)
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1616, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_clear); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1616, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_5, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1616, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":1617
 *         )
 *         CRSError.clear()
 *         if ellipsoid_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             self._ellipsoid = False
 */
  __pyx_t_2 = ((__pyx_v_ellipsoid_pj == NULL) != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":1618
 *         CRSError.clear()
 *         if ellipsoid_pj == NULL:
 *             proj_context_destroy(context)             # <<<<<<<<<<<<<<
 *             self._ellipsoid = False
 *             return None
 */
    (void)(proj_context_destroy(__pyx_v_context));

    /* "pyproj/_crs.pyx":1619
 *         if ellipsoid_pj == NULL:
 *             proj_context_destroy(context)
 *             self._ellipsoid = False             # <<<<<<<<<<<<<<
 *             return None
 *         self._ellipsoid = Ellipsoid.create(context, ellipsoid_pj)
 */
    __Pyx_INCREF(Py_False);
    __Pyx_GIVEREF(Py_False);
    __Pyx_GOTREF(__pyx_v_self->_ellipsoid);
    __Pyx_DECREF(__pyx_v_self->_ellipsoid);
    __pyx_v_self->_ellipsoid = Py_False;

    /* "pyproj/_crs.pyx":1620
 *             proj_context_destroy(context)
 *             self._ellipsoid = False
 *             return None             # <<<<<<<<<<<<<<
 *         self._ellipsoid = Ellipsoid.create(context, ellipsoid_pj)
 *         return self._ellipsoid
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":1617
 *         )
 *         CRSError.clear()
 *         if ellipsoid_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             self._ellipsoid = False
 */
  }

  /* "pyproj/_crs.pyx":1621
 *             self._ellipsoid = False
 *             return None
 *         self._ellipsoid = Ellipsoid.create(context, ellipsoid_pj)             # <<<<<<<<<<<<<<
 *         return self._ellipsoid
 * 
 */
  __pyx_t_3 = ((PyObject *)__pyx_f_6pyproj_4_crs_9Ellipsoid_create(__pyx_v_context, __pyx_v_ellipsoid_pj)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1621, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_GOTREF(__pyx_v_self->_ellipsoid);
  __Pyx_DECREF(__pyx_v_self->_ellipsoid);
  __pyx_v_self->_ellipsoid = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":1622
 *             return None
 *         self._ellipsoid = Ellipsoid.create(context, ellipsoid_pj)
 *         return self._ellipsoid             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_ellipsoid);
  __pyx_r = __pyx_v_self->_ellipsoid;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":1601
 * 
 *     @property
 *     def ellipsoid(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs.Datum.ellipsoid.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1625
 * 
 *     @property
 *     def prime_meridian(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_14prime_meridian_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_14prime_meridian_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Datum_14prime_meridian___get__(((struct __pyx_obj_6pyproj_4_crs_Datum *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_14prime_meridian___get__(struct __pyx_obj_6pyproj_4_crs_Datum *__pyx_v_self) {
  PJ_CONTEXT *__pyx_v_context;
  PJ *__pyx_v_prime_meridian_pj;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "pyproj/_crs.pyx":1632
 *             The CRS prime meridian object with associated attributes.
 *         """
 *         if self._prime_meridian is not None:             # <<<<<<<<<<<<<<
 *             return None if self._prime_meridian is False else self._prime_meridian
 *         cdef PJ_CONTEXT* context = proj_context_create()
 */
  __pyx_t_1 = (__pyx_v_self->_prime_meridian != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":1633
 *         """
 *         if self._prime_meridian is not None:
 *             return None if self._prime_meridian is False else self._prime_meridian             # <<<<<<<<<<<<<<
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = (__pyx_v_self->_prime_meridian == Py_False);
    if ((__pyx_t_2 != 0)) {
      __Pyx_INCREF(Py_None);
      __pyx_t_3 = Py_None;
    } else {
      __Pyx_INCREF(__pyx_v_self->_prime_meridian);
      __pyx_t_3 = __pyx_v_self->_prime_meridian;
    }
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":1632
 *             The CRS prime meridian object with associated attributes.
 *         """
 *         if self._prime_meridian is not None:             # <<<<<<<<<<<<<<
 *             return None if self._prime_meridian is False else self._prime_meridian
 *         cdef PJ_CONTEXT* context = proj_context_create()
 */
  }

  /* "pyproj/_crs.pyx":1634
 *         if self._prime_meridian is not None:
 *             return None if self._prime_meridian is False else self._prime_meridian
 *         cdef PJ_CONTEXT* context = proj_context_create()             # <<<<<<<<<<<<<<
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* prime_meridian_pj = proj_get_prime_meridian(
 */
  __pyx_v_context = proj_context_create();

  /* "pyproj/_crs.pyx":1635
 *             return None if self._prime_meridian is False else self._prime_meridian
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)             # <<<<<<<<<<<<<<
 *         cdef PJ* prime_meridian_pj = proj_get_prime_meridian(
 *             context,
 */
  __pyx_f_6pyproj_8_datadir_pyproj_context_initialize(__pyx_v_context, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1635, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1636
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* prime_meridian_pj = proj_get_prime_meridian(             # <<<<<<<<<<<<<<
 *             context,
 *             self.projobj,
 */
  __pyx_v_prime_meridian_pj = proj_get_prime_meridian(__pyx_v_context, __pyx_v_self->__pyx_base.__pyx_base.projobj);

  /* "pyproj/_crs.pyx":1640
 *             self.projobj,
 *         )
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         if prime_meridian_pj == NULL:
 *             proj_context_destroy(context)
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1640, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_clear); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1640, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_5, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1640, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":1641
 *         )
 *         CRSError.clear()
 *         if prime_meridian_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             self._prime_meridian = False
 */
  __pyx_t_2 = ((__pyx_v_prime_meridian_pj == NULL) != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":1642
 *         CRSError.clear()
 *         if prime_meridian_pj == NULL:
 *             proj_context_destroy(context)             # <<<<<<<<<<<<<<
 *             self._prime_meridian = False
 *             return None
 */
    (void)(proj_context_destroy(__pyx_v_context));

    /* "pyproj/_crs.pyx":1643
 *         if prime_meridian_pj == NULL:
 *             proj_context_destroy(context)
 *             self._prime_meridian = False             # <<<<<<<<<<<<<<
 *             return None
 *         self._prime_meridian = PrimeMeridian.create(
 */
    __Pyx_INCREF(Py_False);
    __Pyx_GIVEREF(Py_False);
    __Pyx_GOTREF(__pyx_v_self->_prime_meridian);
    __Pyx_DECREF(__pyx_v_self->_prime_meridian);
    __pyx_v_self->_prime_meridian = Py_False;

    /* "pyproj/_crs.pyx":1644
 *             proj_context_destroy(context)
 *             self._prime_meridian = False
 *             return None             # <<<<<<<<<<<<<<
 *         self._prime_meridian = PrimeMeridian.create(
 *             context,
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":1641
 *         )
 *         CRSError.clear()
 *         if prime_meridian_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             self._prime_meridian = False
 */
  }

  /* "pyproj/_crs.pyx":1645
 *             self._prime_meridian = False
 *             return None
 *         self._prime_meridian = PrimeMeridian.create(             # <<<<<<<<<<<<<<
 *             context,
 *             prime_meridian_pj,
 */
  __pyx_t_3 = ((PyObject *)__pyx_f_6pyproj_4_crs_13PrimeMeridian_create(__pyx_v_context, __pyx_v_prime_meridian_pj)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1645, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_GOTREF(__pyx_v_self->_prime_meridian);
  __Pyx_DECREF(__pyx_v_self->_prime_meridian);
  __pyx_v_self->_prime_meridian = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":1649
 *             prime_meridian_pj,
 *         )
 *         return self._prime_meridian             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_prime_meridian);
  __pyx_r = __pyx_v_self->_prime_meridian;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":1625
 * 
 *     @property
 *     def prime_meridian(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs.Datum.prime_meridian.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":62
 * 
 * cdef class Datum(_CRSParts):
 *     cdef readonly object type_name             # <<<<<<<<<<<<<<
 *     cdef readonly object _ellipsoid
 *     cdef readonly object _prime_meridian
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_9type_name_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_9type_name_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Datum_9type_name___get__(((struct __pyx_obj_6pyproj_4_crs_Datum *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_9type_name___get__(struct __pyx_obj_6pyproj_4_crs_Datum *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->type_name);
  __pyx_r = __pyx_v_self->type_name;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":63
 * cdef class Datum(_CRSParts):
 *     cdef readonly object type_name
 *     cdef readonly object _ellipsoid             # <<<<<<<<<<<<<<
 *     cdef readonly object _prime_meridian
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_10_ellipsoid_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_10_ellipsoid_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Datum_10_ellipsoid___get__(((struct __pyx_obj_6pyproj_4_crs_Datum *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_10_ellipsoid___get__(struct __pyx_obj_6pyproj_4_crs_Datum *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_ellipsoid);
  __pyx_r = __pyx_v_self->_ellipsoid;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":64
 *     cdef readonly object type_name
 *     cdef readonly object _ellipsoid
 *     cdef readonly object _prime_meridian             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_15_prime_meridian_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_15_prime_meridian_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Datum_15_prime_meridian___get__(((struct __pyx_obj_6pyproj_4_crs_Datum *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_15_prime_meridian___get__(struct __pyx_obj_6pyproj_4_crs_Datum *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_prime_meridian);
  __pyx_r = __pyx_v_self->_prime_meridian;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_21__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_6pyproj_4_crs_5Datum_20__reduce_cython__[] = "Datum.__reduce_cython__(self)";
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_21__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Datum_20__reduce_cython__(((struct __pyx_obj_6pyproj_4_crs_Datum *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_20__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_Datum *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__26, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.Datum.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_23__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static char __pyx_doc_6pyproj_4_crs_5Datum_22__setstate_cython__[] = "Datum.__setstate_cython__(self, __pyx_state)";
static PyObject *__pyx_pw_6pyproj_4_crs_5Datum_23__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Datum_22__setstate_cython__(((struct __pyx_obj_6pyproj_4_crs_Datum *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_5Datum_22__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_Datum *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__27, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.Datum.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1681
 * 
 *     """
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self.name = "undefined"
 *         self.auth_name = "undefined"
 */

/* Python wrapper */
static int __pyx_pw_6pyproj_4_crs_5Param_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_6pyproj_4_crs_5Param_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1;
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Param___cinit__(((struct __pyx_obj_6pyproj_4_crs_Param *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6pyproj_4_crs_5Param___cinit__(struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  double __pyx_t_1;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "pyproj/_crs.pyx":1682
 *     """
 *     def __cinit__(self):
 *         self.name = "undefined"             # <<<<<<<<<<<<<<
 *         self.auth_name = "undefined"
 *         self.code = "undefined"
 */
  __Pyx_INCREF(__pyx_n_u_undefined);
  __Pyx_GIVEREF(__pyx_n_u_undefined);
  __Pyx_GOTREF(__pyx_v_self->name);
  __Pyx_DECREF(__pyx_v_self->name);
  __pyx_v_self->name = __pyx_n_u_undefined;

  /* "pyproj/_crs.pyx":1683
 *     def __cinit__(self):
 *         self.name = "undefined"
 *         self.auth_name = "undefined"             # <<<<<<<<<<<<<<
 *         self.code = "undefined"
 *         self.value = "undefined"
 */
  __Pyx_INCREF(__pyx_n_u_undefined);
  __Pyx_GIVEREF(__pyx_n_u_undefined);
  __Pyx_GOTREF(__pyx_v_self->auth_name);
  __Pyx_DECREF(__pyx_v_self->auth_name);
  __pyx_v_self->auth_name = __pyx_n_u_undefined;

  /* "pyproj/_crs.pyx":1684
 *         self.name = "undefined"
 *         self.auth_name = "undefined"
 *         self.code = "undefined"             # <<<<<<<<<<<<<<
 *         self.value = "undefined"
 *         self.unit_conversion_factor = float("nan")
 */
  __Pyx_INCREF(__pyx_n_u_undefined);
  __Pyx_GIVEREF(__pyx_n_u_undefined);
  __Pyx_GOTREF(__pyx_v_self->code);
  __Pyx_DECREF(__pyx_v_self->code);
  __pyx_v_self->code = __pyx_n_u_undefined;

  /* "pyproj/_crs.pyx":1685
 *         self.auth_name = "undefined"
 *         self.code = "undefined"
 *         self.value = "undefined"             # <<<<<<<<<<<<<<
 *         self.unit_conversion_factor = float("nan")
 *         self.unit_name = "undefined"
 */
  __Pyx_INCREF(__pyx_n_u_undefined);
  __Pyx_GIVEREF(__pyx_n_u_undefined);
  __Pyx_GOTREF(__pyx_v_self->value);
  __Pyx_DECREF(__pyx_v_self->value);
  __pyx_v_self->value = __pyx_n_u_undefined;

  /* "pyproj/_crs.pyx":1686
 *         self.code = "undefined"
 *         self.value = "undefined"
 *         self.unit_conversion_factor = float("nan")             # <<<<<<<<<<<<<<
 *         self.unit_name = "undefined"
 *         self.unit_auth_name = "undefined"
 */
  __pyx_t_1 = __Pyx_PyObject_AsDouble(__pyx_n_u_nan); if (unlikely(__pyx_t_1 == ((double)((double)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1686, __pyx_L1_error)
  __pyx_v_self->unit_conversion_factor = __pyx_t_1;

  /* "pyproj/_crs.pyx":1687
 *         self.value = "undefined"
 *         self.unit_conversion_factor = float("nan")
 *         self.unit_name = "undefined"             # <<<<<<<<<<<<<<
 *         self.unit_auth_name = "undefined"
 *         self.unit_code = "undefined"
 */
  __Pyx_INCREF(__pyx_n_u_undefined);
  __Pyx_GIVEREF(__pyx_n_u_undefined);
  __Pyx_GOTREF(__pyx_v_self->unit_name);
  __Pyx_DECREF(__pyx_v_self->unit_name);
  __pyx_v_self->unit_name = __pyx_n_u_undefined;

  /* "pyproj/_crs.pyx":1688
 *         self.unit_conversion_factor = float("nan")
 *         self.unit_name = "undefined"
 *         self.unit_auth_name = "undefined"             # <<<<<<<<<<<<<<
 *         self.unit_code = "undefined"
 *         self.unit_category = "undefined"
 */
  __Pyx_INCREF(__pyx_n_u_undefined);
  __Pyx_GIVEREF(__pyx_n_u_undefined);
  __Pyx_GOTREF(__pyx_v_self->unit_auth_name);
  __Pyx_DECREF(__pyx_v_self->unit_auth_name);
  __pyx_v_self->unit_auth_name = __pyx_n_u_undefined;

  /* "pyproj/_crs.pyx":1689
 *         self.unit_name = "undefined"
 *         self.unit_auth_name = "undefined"
 *         self.unit_code = "undefined"             # <<<<<<<<<<<<<<
 *         self.unit_category = "undefined"
 * 
 */
  __Pyx_INCREF(__pyx_n_u_undefined);
  __Pyx_GIVEREF(__pyx_n_u_undefined);
  __Pyx_GOTREF(__pyx_v_self->unit_code);
  __Pyx_DECREF(__pyx_v_self->unit_code);
  __pyx_v_self->unit_code = __pyx_n_u_undefined;

  /* "pyproj/_crs.pyx":1690
 *         self.unit_auth_name = "undefined"
 *         self.unit_code = "undefined"
 *         self.unit_category = "undefined"             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __Pyx_INCREF(__pyx_n_u_undefined);
  __Pyx_GIVEREF(__pyx_n_u_undefined);
  __Pyx_GOTREF(__pyx_v_self->unit_category);
  __Pyx_DECREF(__pyx_v_self->unit_category);
  __pyx_v_self->unit_category = __pyx_n_u_undefined;

  /* "pyproj/_crs.pyx":1681
 * 
 *     """
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self.name = "undefined"
 *         self.auth_name = "undefined"
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyproj._crs.Param.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1693
 * 
 *     @staticmethod
 *     cdef Param create(PJ_CONTEXT* context, PJ* projobj, int param_idx):             # <<<<<<<<<<<<<<
 *         cdef Param param = Param()
 *         cdef char *out_name
 */

static struct __pyx_obj_6pyproj_4_crs_Param *__pyx_f_6pyproj_4_crs_5Param_create(PJ_CONTEXT *__pyx_v_context, PJ *__pyx_v_projobj, int __pyx_v_param_idx) {
  struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_param = 0;
  char *__pyx_v_out_name;
  char *__pyx_v_out_auth_name;
  char *__pyx_v_out_code;
  char *__pyx_v_out_value_string;
  char *__pyx_v_out_unit_name;
  char *__pyx_v_out_unit_auth_name;
  char *__pyx_v_out_unit_code;
  char *__pyx_v_out_unit_category;
  double __pyx_v_value_double;
  PyObject *__pyx_v_value_string = NULL;
  struct __pyx_obj_6pyproj_4_crs_Param *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("create", 0);

  /* "pyproj/_crs.pyx":1694
 *     @staticmethod
 *     cdef Param create(PJ_CONTEXT* context, PJ* projobj, int param_idx):
 *         cdef Param param = Param()             # <<<<<<<<<<<<<<
 *         cdef char *out_name
 *         cdef char *out_auth_name
 */
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_6pyproj_4_crs_Param)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1694, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_param = ((struct __pyx_obj_6pyproj_4_crs_Param *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1705
 *         cdef char *out_unit_category
 *         cdef double value_double
 *         proj_coordoperation_get_param(             # <<<<<<<<<<<<<<
 *             context,
 *             projobj,
 */
  (void)(proj_coordoperation_get_param(__pyx_v_context, __pyx_v_projobj, __pyx_v_param_idx, (&__pyx_v_out_name), (&__pyx_v_out_auth_name), (&__pyx_v_out_code), (&__pyx_v_value_double), (&__pyx_v_out_value_string), (&__pyx_v_param->unit_conversion_factor), (&__pyx_v_out_unit_name), (&__pyx_v_out_unit_auth_name), (&__pyx_v_out_unit_code), (&__pyx_v_out_unit_category)));

  /* "pyproj/_crs.pyx":1720
 *             &out_unit_category
 *         )
 *         param.name = decode_or_undefined(out_name)             # <<<<<<<<<<<<<<
 *         param.auth_name = decode_or_undefined(out_auth_name)
 *         param.code = decode_or_undefined(out_code)
 */
  __pyx_t_1 = __pyx_f_6pyproj_4_crs_decode_or_undefined(__pyx_v_out_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1720, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_param->name);
  __Pyx_DECREF(__pyx_v_param->name);
  __pyx_v_param->name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1721
 *         )
 *         param.name = decode_or_undefined(out_name)
 *         param.auth_name = decode_or_undefined(out_auth_name)             # <<<<<<<<<<<<<<
 *         param.code = decode_or_undefined(out_code)
 *         param.unit_name = decode_or_undefined(out_unit_name)
 */
  __pyx_t_1 = __pyx_f_6pyproj_4_crs_decode_or_undefined(__pyx_v_out_auth_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1721, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_param->auth_name);
  __Pyx_DECREF(__pyx_v_param->auth_name);
  __pyx_v_param->auth_name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1722
 *         param.name = decode_or_undefined(out_name)
 *         param.auth_name = decode_or_undefined(out_auth_name)
 *         param.code = decode_or_undefined(out_code)             # <<<<<<<<<<<<<<
 *         param.unit_name = decode_or_undefined(out_unit_name)
 *         param.unit_auth_name = decode_or_undefined(out_unit_auth_name)
 */
  __pyx_t_1 = __pyx_f_6pyproj_4_crs_decode_or_undefined(__pyx_v_out_code); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1722, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_param->code);
  __Pyx_DECREF(__pyx_v_param->code);
  __pyx_v_param->code = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1723
 *         param.auth_name = decode_or_undefined(out_auth_name)
 *         param.code = decode_or_undefined(out_code)
 *         param.unit_name = decode_or_undefined(out_unit_name)             # <<<<<<<<<<<<<<
 *         param.unit_auth_name = decode_or_undefined(out_unit_auth_name)
 *         param.unit_code = decode_or_undefined(out_unit_code)
 */
  __pyx_t_1 = __pyx_f_6pyproj_4_crs_decode_or_undefined(__pyx_v_out_unit_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1723, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_param->unit_name);
  __Pyx_DECREF(__pyx_v_param->unit_name);
  __pyx_v_param->unit_name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1724
 *         param.code = decode_or_undefined(out_code)
 *         param.unit_name = decode_or_undefined(out_unit_name)
 *         param.unit_auth_name = decode_or_undefined(out_unit_auth_name)             # <<<<<<<<<<<<<<
 *         param.unit_code = decode_or_undefined(out_unit_code)
 *         param.unit_category = decode_or_undefined(out_unit_category)
 */
  __pyx_t_1 = __pyx_f_6pyproj_4_crs_decode_or_undefined(__pyx_v_out_unit_auth_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1724, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_param->unit_auth_name);
  __Pyx_DECREF(__pyx_v_param->unit_auth_name);
  __pyx_v_param->unit_auth_name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1725
 *         param.unit_name = decode_or_undefined(out_unit_name)
 *         param.unit_auth_name = decode_or_undefined(out_unit_auth_name)
 *         param.unit_code = decode_or_undefined(out_unit_code)             # <<<<<<<<<<<<<<
 *         param.unit_category = decode_or_undefined(out_unit_category)
 *         value_string = cstrdecode(out_value_string)
 */
  __pyx_t_1 = __pyx_f_6pyproj_4_crs_decode_or_undefined(__pyx_v_out_unit_code); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1725, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_param->unit_code);
  __Pyx_DECREF(__pyx_v_param->unit_code);
  __pyx_v_param->unit_code = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1726
 *         param.unit_auth_name = decode_or_undefined(out_unit_auth_name)
 *         param.unit_code = decode_or_undefined(out_unit_code)
 *         param.unit_category = decode_or_undefined(out_unit_category)             # <<<<<<<<<<<<<<
 *         value_string = cstrdecode(out_value_string)
 *         param.value = value_double if value_string is None else value_string
 */
  __pyx_t_1 = __pyx_f_6pyproj_4_crs_decode_or_undefined(__pyx_v_out_unit_category); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1726, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_param->unit_category);
  __Pyx_DECREF(__pyx_v_param->unit_category);
  __pyx_v_param->unit_category = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1727
 *         param.unit_code = decode_or_undefined(out_unit_code)
 *         param.unit_category = decode_or_undefined(out_unit_category)
 *         value_string = cstrdecode(out_value_string)             # <<<<<<<<<<<<<<
 *         param.value = value_double if value_string is None else value_string
 *         return param
 */
  __pyx_t_1 = __pyx_f_6pyproj_4_crs_cstrdecode(__pyx_v_out_value_string); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1727, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_value_string = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1728
 *         param.unit_category = decode_or_undefined(out_unit_category)
 *         value_string = cstrdecode(out_value_string)
 *         param.value = value_double if value_string is None else value_string             # <<<<<<<<<<<<<<
 *         return param
 * 
 */
  __pyx_t_2 = (__pyx_v_value_string == Py_None);
  if ((__pyx_t_2 != 0)) {
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_value_double); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1728, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
  } else {
    __Pyx_INCREF(__pyx_v_value_string);
    __pyx_t_1 = __pyx_v_value_string;
  }
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_param->value);
  __Pyx_DECREF(__pyx_v_param->value);
  __pyx_v_param->value = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1729
 *         value_string = cstrdecode(out_value_string)
 *         param.value = value_double if value_string is None else value_string
 *         return param             # <<<<<<<<<<<<<<
 * 
 *     def __str__(self):
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __Pyx_INCREF(((PyObject *)__pyx_v_param));
  __pyx_r = __pyx_v_param;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":1693
 * 
 *     @staticmethod
 *     cdef Param create(PJ_CONTEXT* context, PJ* projobj, int param_idx):             # <<<<<<<<<<<<<<
 *         cdef Param param = Param()
 *         cdef char *out_name
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("pyproj._crs.Param.create", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_param);
  __Pyx_XDECREF(__pyx_v_value_string);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1731
 *         return param
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return "{auth_name}:{auth_code}".format(self.auth_name, self.auth_code)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5Param_3__str__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_5Param_3__str__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Param_2__str__(((struct __pyx_obj_6pyproj_4_crs_Param *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_5Param_2__str__(struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  __Pyx_RefNannySetupContext("__str__", 0);

  /* "pyproj/_crs.pyx":1732
 * 
 *     def __str__(self):
 *         return "{auth_name}:{auth_code}".format(self.auth_name, self.auth_code)             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_auth_name_auth_code, __pyx_n_s_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1732, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_auth_code); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1732, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = NULL;
  __pyx_t_5 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_5 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_v_self->auth_name, __pyx_t_3};
    __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1732, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_v_self->auth_name, __pyx_t_3};
    __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1732, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  } else
  #endif
  {
    __pyx_t_6 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1732, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__pyx_t_4) {
      __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL;
    }
    __Pyx_INCREF(__pyx_v_self->auth_name);
    __Pyx_GIVEREF(__pyx_v_self->auth_name);
    PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_v_self->auth_name);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_t_3);
    __pyx_t_3 = 0;
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1732, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":1731
 *         return param
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return "{auth_name}:{auth_code}".format(self.auth_name, self.auth_code)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("pyproj._crs.Param.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1734
 *         return "{auth_name}:{auth_code}".format(self.auth_name, self.auth_code)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return ("Param(name={name}, auth_name={auth_name}, code={code}, "
 *                 "value={value}, unit_name={unit_name}, "
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5Param_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_5Param_5__repr__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Param_4__repr__(((struct __pyx_obj_6pyproj_4_crs_Param *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_5Param_4__repr__(struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "pyproj/_crs.pyx":1735
 * 
 *     def __repr__(self):
 *         return ("Param(name={name}, auth_name={auth_name}, code={code}, "             # <<<<<<<<<<<<<<
 *                 "value={value}, unit_name={unit_name}, "
 *                 "unit_auth_name={unit_auth_name}, unit_code={unit_code}, "
 */
  __Pyx_XDECREF(__pyx_r);

  /* "pyproj/_crs.pyx":1738
 *                 "value={value}, unit_name={unit_name}, "
 *                 "unit_auth_name={unit_auth_name}, unit_code={unit_code}, "
 *                 "unit_category={unit_category})").format(             # <<<<<<<<<<<<<<
 *             name=self.name,
 *             auth_name=self.auth_name,
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_Param_name_name_auth_name_auth_n, __pyx_n_s_format); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1738, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);

  /* "pyproj/_crs.pyx":1739
 *                 "unit_auth_name={unit_auth_name}, unit_code={unit_code}, "
 *                 "unit_category={unit_category})").format(
 *             name=self.name,             # <<<<<<<<<<<<<<
 *             auth_name=self.auth_name,
 *             code=self.code,
 */
  __pyx_t_2 = __Pyx_PyDict_NewPresized(8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1739, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_name, __pyx_v_self->name) < 0) __PYX_ERR(0, 1739, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1740
 *                 "unit_category={unit_category})").format(
 *             name=self.name,
 *             auth_name=self.auth_name,             # <<<<<<<<<<<<<<
 *             code=self.code,
 *             value=self.value,
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_auth_name, __pyx_v_self->auth_name) < 0) __PYX_ERR(0, 1739, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1741
 *             name=self.name,
 *             auth_name=self.auth_name,
 *             code=self.code,             # <<<<<<<<<<<<<<
 *             value=self.value,
 *             unit_name=self.unit_name,
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_code, __pyx_v_self->code) < 0) __PYX_ERR(0, 1739, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1742
 *             auth_name=self.auth_name,
 *             code=self.code,
 *             value=self.value,             # <<<<<<<<<<<<<<
 *             unit_name=self.unit_name,
 *             unit_auth_name=self.unit_auth_name,
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_value, __pyx_v_self->value) < 0) __PYX_ERR(0, 1739, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1743
 *             code=self.code,
 *             value=self.value,
 *             unit_name=self.unit_name,             # <<<<<<<<<<<<<<
 *             unit_auth_name=self.unit_auth_name,
 *             unit_code=self.unit_code,
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_unit_name, __pyx_v_self->unit_name) < 0) __PYX_ERR(0, 1739, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1744
 *             value=self.value,
 *             unit_name=self.unit_name,
 *             unit_auth_name=self.unit_auth_name,             # <<<<<<<<<<<<<<
 *             unit_code=self.unit_code,
 *             unit_category=self.unit_category,
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_unit_auth_name, __pyx_v_self->unit_auth_name) < 0) __PYX_ERR(0, 1739, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1745
 *             unit_name=self.unit_name,
 *             unit_auth_name=self.unit_auth_name,
 *             unit_code=self.unit_code,             # <<<<<<<<<<<<<<
 *             unit_category=self.unit_category,
 *         )
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_unit_code, __pyx_v_self->unit_code) < 0) __PYX_ERR(0, 1739, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1746
 *             unit_auth_name=self.unit_auth_name,
 *             unit_code=self.unit_code,
 *             unit_category=self.unit_category,             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_unit_category, __pyx_v_self->unit_category) < 0) __PYX_ERR(0, 1739, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1738
 *                 "value={value}, unit_name={unit_name}, "
 *                 "unit_auth_name={unit_auth_name}, unit_code={unit_code}, "
 *                 "unit_category={unit_category})").format(             # <<<<<<<<<<<<<<
 *             name=self.name,
 *             auth_name=self.auth_name,
 */
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1738, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":1734
 *         return "{auth_name}:{auth_code}".format(self.auth_name, self.auth_code)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return ("Param(name={name}, auth_name={auth_name}, code={code}, "
 *                 "value={value}, unit_name={unit_name}, "
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("pyproj._crs.Param.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":78
 * 
 * cdef class Param:
 *     cdef readonly object name             # <<<<<<<<<<<<<<
 *     cdef readonly object auth_name
 *     cdef readonly object code
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5Param_4name_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_5Param_4name_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Param_4name___get__(((struct __pyx_obj_6pyproj_4_crs_Param *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_5Param_4name___get__(struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->name);
  __pyx_r = __pyx_v_self->name;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":79
 * cdef class Param:
 *     cdef readonly object name
 *     cdef readonly object auth_name             # <<<<<<<<<<<<<<
 *     cdef readonly object code
 *     cdef readonly object value
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5Param_9auth_name_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_5Param_9auth_name_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Param_9auth_name___get__(((struct __pyx_obj_6pyproj_4_crs_Param *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_5Param_9auth_name___get__(struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->auth_name);
  __pyx_r = __pyx_v_self->auth_name;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":80
 *     cdef readonly object name
 *     cdef readonly object auth_name
 *     cdef readonly object code             # <<<<<<<<<<<<<<
 *     cdef readonly object value
 *     cdef readonly double unit_conversion_factor
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5Param_4code_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_5Param_4code_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Param_4code___get__(((struct __pyx_obj_6pyproj_4_crs_Param *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_5Param_4code___get__(struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->code);
  __pyx_r = __pyx_v_self->code;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":81
 *     cdef readonly object auth_name
 *     cdef readonly object code
 *     cdef readonly object value             # <<<<<<<<<<<<<<
 *     cdef readonly double unit_conversion_factor
 *     cdef readonly object unit_name
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5Param_5value_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_5Param_5value_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Param_5value___get__(((struct __pyx_obj_6pyproj_4_crs_Param *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_5Param_5value___get__(struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->value);
  __pyx_r = __pyx_v_self->value;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":82
 *     cdef readonly object code
 *     cdef readonly object value
 *     cdef readonly double unit_conversion_factor             # <<<<<<<<<<<<<<
 *     cdef readonly object unit_name
 *     cdef readonly object unit_auth_name
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5Param_22unit_conversion_factor_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_5Param_22unit_conversion_factor_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Param_22unit_conversion_factor___get__(((struct __pyx_obj_6pyproj_4_crs_Param *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_5Param_22unit_conversion_factor___get__(struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->unit_conversion_factor); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 82, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.Param.unit_conversion_factor.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":83
 *     cdef readonly object value
 *     cdef readonly double unit_conversion_factor
 *     cdef readonly object unit_name             # <<<<<<<<<<<<<<
 *     cdef readonly object unit_auth_name
 *     cdef readonly object unit_code
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5Param_9unit_name_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_5Param_9unit_name_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Param_9unit_name___get__(((struct __pyx_obj_6pyproj_4_crs_Param *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_5Param_9unit_name___get__(struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->unit_name);
  __pyx_r = __pyx_v_self->unit_name;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":84
 *     cdef readonly double unit_conversion_factor
 *     cdef readonly object unit_name
 *     cdef readonly object unit_auth_name             # <<<<<<<<<<<<<<
 *     cdef readonly object unit_code
 *     cdef readonly object unit_category
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5Param_14unit_auth_name_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_5Param_14unit_auth_name_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Param_14unit_auth_name___get__(((struct __pyx_obj_6pyproj_4_crs_Param *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_5Param_14unit_auth_name___get__(struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->unit_auth_name);
  __pyx_r = __pyx_v_self->unit_auth_name;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":85
 *     cdef readonly object unit_name
 *     cdef readonly object unit_auth_name
 *     cdef readonly object unit_code             # <<<<<<<<<<<<<<
 *     cdef readonly object unit_category
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5Param_9unit_code_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_5Param_9unit_code_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Param_9unit_code___get__(((struct __pyx_obj_6pyproj_4_crs_Param *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_5Param_9unit_code___get__(struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->unit_code);
  __pyx_r = __pyx_v_self->unit_code;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":86
 *     cdef readonly object unit_auth_name
 *     cdef readonly object unit_code
 *     cdef readonly object unit_category             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5Param_13unit_category_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_5Param_13unit_category_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Param_13unit_category___get__(((struct __pyx_obj_6pyproj_4_crs_Param *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_5Param_13unit_category___get__(struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->unit_category);
  __pyx_r = __pyx_v_self->unit_category;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5Param_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_6pyproj_4_crs_5Param_6__reduce_cython__[] = "Param.__reduce_cython__(self)";
static PyObject *__pyx_pw_6pyproj_4_crs_5Param_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Param_6__reduce_cython__(((struct __pyx_obj_6pyproj_4_crs_Param *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_5Param_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__28, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.Param.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_5Param_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static char __pyx_doc_6pyproj_4_crs_5Param_8__setstate_cython__[] = "Param.__setstate_cython__(self, __pyx_state)";
static PyObject *__pyx_pw_6pyproj_4_crs_5Param_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_5Param_8__setstate_cython__(((struct __pyx_obj_6pyproj_4_crs_Param *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_5Param_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_Param *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__29, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.Param.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1774
 * 
 *     """
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self.short_name = "undefined"
 *         self.full_name = "undefined"
 */

/* Python wrapper */
static int __pyx_pw_6pyproj_4_crs_4Grid_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_6pyproj_4_crs_4Grid_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1;
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Grid___cinit__(((struct __pyx_obj_6pyproj_4_crs_Grid *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6pyproj_4_crs_4Grid___cinit__(struct __pyx_obj_6pyproj_4_crs_Grid *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "pyproj/_crs.pyx":1775
 *     """
 *     def __cinit__(self):
 *         self.short_name = "undefined"             # <<<<<<<<<<<<<<
 *         self.full_name = "undefined"
 *         self.package_name = "undefined"
 */
  __Pyx_INCREF(__pyx_n_u_undefined);
  __Pyx_GIVEREF(__pyx_n_u_undefined);
  __Pyx_GOTREF(__pyx_v_self->short_name);
  __Pyx_DECREF(__pyx_v_self->short_name);
  __pyx_v_self->short_name = __pyx_n_u_undefined;

  /* "pyproj/_crs.pyx":1776
 *     def __cinit__(self):
 *         self.short_name = "undefined"
 *         self.full_name = "undefined"             # <<<<<<<<<<<<<<
 *         self.package_name = "undefined"
 *         self.url = "undefined"
 */
  __Pyx_INCREF(__pyx_n_u_undefined);
  __Pyx_GIVEREF(__pyx_n_u_undefined);
  __Pyx_GOTREF(__pyx_v_self->full_name);
  __Pyx_DECREF(__pyx_v_self->full_name);
  __pyx_v_self->full_name = __pyx_n_u_undefined;

  /* "pyproj/_crs.pyx":1777
 *         self.short_name = "undefined"
 *         self.full_name = "undefined"
 *         self.package_name = "undefined"             # <<<<<<<<<<<<<<
 *         self.url = "undefined"
 *         self.direct_download = False
 */
  __Pyx_INCREF(__pyx_n_u_undefined);
  __Pyx_GIVEREF(__pyx_n_u_undefined);
  __Pyx_GOTREF(__pyx_v_self->package_name);
  __Pyx_DECREF(__pyx_v_self->package_name);
  __pyx_v_self->package_name = __pyx_n_u_undefined;

  /* "pyproj/_crs.pyx":1778
 *         self.full_name = "undefined"
 *         self.package_name = "undefined"
 *         self.url = "undefined"             # <<<<<<<<<<<<<<
 *         self.direct_download = False
 *         self.open_license = False
 */
  __Pyx_INCREF(__pyx_n_u_undefined);
  __Pyx_GIVEREF(__pyx_n_u_undefined);
  __Pyx_GOTREF(__pyx_v_self->url);
  __Pyx_DECREF(__pyx_v_self->url);
  __pyx_v_self->url = __pyx_n_u_undefined;

  /* "pyproj/_crs.pyx":1779
 *         self.package_name = "undefined"
 *         self.url = "undefined"
 *         self.direct_download = False             # <<<<<<<<<<<<<<
 *         self.open_license = False
 *         self.available = False
 */
  __Pyx_INCREF(Py_False);
  __Pyx_GIVEREF(Py_False);
  __Pyx_GOTREF(__pyx_v_self->direct_download);
  __Pyx_DECREF(__pyx_v_self->direct_download);
  __pyx_v_self->direct_download = Py_False;

  /* "pyproj/_crs.pyx":1780
 *         self.url = "undefined"
 *         self.direct_download = False
 *         self.open_license = False             # <<<<<<<<<<<<<<
 *         self.available = False
 * 
 */
  __Pyx_INCREF(Py_False);
  __Pyx_GIVEREF(Py_False);
  __Pyx_GOTREF(__pyx_v_self->open_license);
  __Pyx_DECREF(__pyx_v_self->open_license);
  __pyx_v_self->open_license = Py_False;

  /* "pyproj/_crs.pyx":1781
 *         self.direct_download = False
 *         self.open_license = False
 *         self.available = False             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __Pyx_INCREF(Py_False);
  __Pyx_GIVEREF(Py_False);
  __Pyx_GOTREF(__pyx_v_self->available);
  __Pyx_DECREF(__pyx_v_self->available);
  __pyx_v_self->available = Py_False;

  /* "pyproj/_crs.pyx":1774
 * 
 *     """
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self.short_name = "undefined"
 *         self.full_name = "undefined"
 */

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1784
 * 
 *     @staticmethod
 *     cdef Grid create(PJ_CONTEXT* context, PJ* projobj, int grid_idx):             # <<<<<<<<<<<<<<
 *         cdef Grid grid = Grid()
 *         cdef char *out_short_name
 */

static struct __pyx_obj_6pyproj_4_crs_Grid *__pyx_f_6pyproj_4_crs_4Grid_create(PJ_CONTEXT *__pyx_v_context, PJ *__pyx_v_projobj, int __pyx_v_grid_idx) {
  struct __pyx_obj_6pyproj_4_crs_Grid *__pyx_v_grid = 0;
  char *__pyx_v_out_short_name;
  char *__pyx_v_out_full_name;
  char *__pyx_v_out_package_name;
  char *__pyx_v_out_url;
  int __pyx_v_direct_download;
  int __pyx_v_open_license;
  int __pyx_v_available;
  struct __pyx_obj_6pyproj_4_crs_Grid *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("create", 0);

  /* "pyproj/_crs.pyx":1785
 *     @staticmethod
 *     cdef Grid create(PJ_CONTEXT* context, PJ* projobj, int grid_idx):
 *         cdef Grid grid = Grid()             # <<<<<<<<<<<<<<
 *         cdef char *out_short_name
 *         cdef char *out_full_name
 */
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_6pyproj_4_crs_Grid)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1785, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_grid = ((struct __pyx_obj_6pyproj_4_crs_Grid *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1790
 *         cdef char *out_package_name
 *         cdef char *out_url
 *         cdef int direct_download = 0             # <<<<<<<<<<<<<<
 *         cdef int open_license = 0
 *         cdef int available = 0
 */
  __pyx_v_direct_download = 0;

  /* "pyproj/_crs.pyx":1791
 *         cdef char *out_url
 *         cdef int direct_download = 0
 *         cdef int open_license = 0             # <<<<<<<<<<<<<<
 *         cdef int available = 0
 *         proj_coordoperation_get_grid_used(
 */
  __pyx_v_open_license = 0;

  /* "pyproj/_crs.pyx":1792
 *         cdef int direct_download = 0
 *         cdef int open_license = 0
 *         cdef int available = 0             # <<<<<<<<<<<<<<
 *         proj_coordoperation_get_grid_used(
 *             context,
 */
  __pyx_v_available = 0;

  /* "pyproj/_crs.pyx":1793
 *         cdef int open_license = 0
 *         cdef int available = 0
 *         proj_coordoperation_get_grid_used(             # <<<<<<<<<<<<<<
 *             context,
 *             projobj,
 */
  (void)(proj_coordoperation_get_grid_used(__pyx_v_context, __pyx_v_projobj, __pyx_v_grid_idx, (&__pyx_v_out_short_name), (&__pyx_v_out_full_name), (&__pyx_v_out_package_name), (&__pyx_v_out_url), (&__pyx_v_direct_download), (&__pyx_v_open_license), (&__pyx_v_available)));

  /* "pyproj/_crs.pyx":1805
 *             &available
 *         )
 *         grid.short_name = decode_or_undefined(out_short_name)             # <<<<<<<<<<<<<<
 *         grid.full_name = decode_or_undefined(out_full_name)
 *         grid.package_name = decode_or_undefined(out_package_name)
 */
  __pyx_t_1 = __pyx_f_6pyproj_4_crs_decode_or_undefined(__pyx_v_out_short_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1805, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_grid->short_name);
  __Pyx_DECREF(__pyx_v_grid->short_name);
  __pyx_v_grid->short_name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1806
 *         )
 *         grid.short_name = decode_or_undefined(out_short_name)
 *         grid.full_name = decode_or_undefined(out_full_name)             # <<<<<<<<<<<<<<
 *         grid.package_name = decode_or_undefined(out_package_name)
 *         grid.url = decode_or_undefined(out_url)
 */
  __pyx_t_1 = __pyx_f_6pyproj_4_crs_decode_or_undefined(__pyx_v_out_full_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1806, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_grid->full_name);
  __Pyx_DECREF(__pyx_v_grid->full_name);
  __pyx_v_grid->full_name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1807
 *         grid.short_name = decode_or_undefined(out_short_name)
 *         grid.full_name = decode_or_undefined(out_full_name)
 *         grid.package_name = decode_or_undefined(out_package_name)             # <<<<<<<<<<<<<<
 *         grid.url = decode_or_undefined(out_url)
 *         grid.direct_download = direct_download == 1
 */
  __pyx_t_1 = __pyx_f_6pyproj_4_crs_decode_or_undefined(__pyx_v_out_package_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1807, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_grid->package_name);
  __Pyx_DECREF(__pyx_v_grid->package_name);
  __pyx_v_grid->package_name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1808
 *         grid.full_name = decode_or_undefined(out_full_name)
 *         grid.package_name = decode_or_undefined(out_package_name)
 *         grid.url = decode_or_undefined(out_url)             # <<<<<<<<<<<<<<
 *         grid.direct_download = direct_download == 1
 *         grid.open_license = open_license == 1
 */
  __pyx_t_1 = __pyx_f_6pyproj_4_crs_decode_or_undefined(__pyx_v_out_url); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1808, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_grid->url);
  __Pyx_DECREF(__pyx_v_grid->url);
  __pyx_v_grid->url = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1809
 *         grid.package_name = decode_or_undefined(out_package_name)
 *         grid.url = decode_or_undefined(out_url)
 *         grid.direct_download = direct_download == 1             # <<<<<<<<<<<<<<
 *         grid.open_license = open_license == 1
 *         grid.available = available == 1
 */
  __pyx_t_1 = __Pyx_PyBool_FromLong((__pyx_v_direct_download == 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1809, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_grid->direct_download);
  __Pyx_DECREF(__pyx_v_grid->direct_download);
  __pyx_v_grid->direct_download = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1810
 *         grid.url = decode_or_undefined(out_url)
 *         grid.direct_download = direct_download == 1
 *         grid.open_license = open_license == 1             # <<<<<<<<<<<<<<
 *         grid.available = available == 1
 *         CRSError.clear()
 */
  __pyx_t_1 = __Pyx_PyBool_FromLong((__pyx_v_open_license == 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1810, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_grid->open_license);
  __Pyx_DECREF(__pyx_v_grid->open_license);
  __pyx_v_grid->open_license = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1811
 *         grid.direct_download = direct_download == 1
 *         grid.open_license = open_license == 1
 *         grid.available = available == 1             # <<<<<<<<<<<<<<
 *         CRSError.clear()
 *         return grid
 */
  __pyx_t_1 = __Pyx_PyBool_FromLong((__pyx_v_available == 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1811, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_grid->available);
  __Pyx_DECREF(__pyx_v_grid->available);
  __pyx_v_grid->available = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1812
 *         grid.open_license = open_license == 1
 *         grid.available = available == 1
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         return grid
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_clear); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1813
 *         grid.available = available == 1
 *         CRSError.clear()
 *         return grid             # <<<<<<<<<<<<<<
 * 
 *     def __str__(self):
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __Pyx_INCREF(((PyObject *)__pyx_v_grid));
  __pyx_r = __pyx_v_grid;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":1784
 * 
 *     @staticmethod
 *     cdef Grid create(PJ_CONTEXT* context, PJ* projobj, int grid_idx):             # <<<<<<<<<<<<<<
 *         cdef Grid grid = Grid()
 *         cdef char *out_short_name
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("pyproj._crs.Grid.create", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_grid);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1815
 *         return grid
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return self.full_name
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Grid_3__str__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4Grid_3__str__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Grid_2__str__(((struct __pyx_obj_6pyproj_4_crs_Grid *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Grid_2__str__(struct __pyx_obj_6pyproj_4_crs_Grid *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__", 0);

  /* "pyproj/_crs.pyx":1816
 * 
 *     def __str__(self):
 *         return self.full_name             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->full_name);
  __pyx_r = __pyx_v_self->full_name;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":1815
 *         return grid
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return self.full_name
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1818
 *         return self.full_name
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return ("Grid(short_name={short_name}, full_name={full_name}, "
 *                 "package_name={package_name}, url={url}, "
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Grid_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4Grid_5__repr__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Grid_4__repr__(((struct __pyx_obj_6pyproj_4_crs_Grid *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Grid_4__repr__(struct __pyx_obj_6pyproj_4_crs_Grid *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "pyproj/_crs.pyx":1819
 * 
 *     def __repr__(self):
 *         return ("Grid(short_name={short_name}, full_name={full_name}, "             # <<<<<<<<<<<<<<
 *                 "package_name={package_name}, url={url}, "
 *                 "direct_download={direct_download}, open_license={open_license}, "
 */
  __Pyx_XDECREF(__pyx_r);

  /* "pyproj/_crs.pyx":1822
 *                 "package_name={package_name}, url={url}, "
 *                 "direct_download={direct_download}, open_license={open_license}, "
 *                 "available={available})").format(             # <<<<<<<<<<<<<<
 *             short_name=self.short_name,
 *             full_name=self.full_name,
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_Grid_short_name_short_name_full, __pyx_n_s_format); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1822, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);

  /* "pyproj/_crs.pyx":1823
 *                 "direct_download={direct_download}, open_license={open_license}, "
 *                 "available={available})").format(
 *             short_name=self.short_name,             # <<<<<<<<<<<<<<
 *             full_name=self.full_name,
 *             package_name=self.package_name,
 */
  __pyx_t_2 = __Pyx_PyDict_NewPresized(7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1823, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_short_name, __pyx_v_self->short_name) < 0) __PYX_ERR(0, 1823, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1824
 *                 "available={available})").format(
 *             short_name=self.short_name,
 *             full_name=self.full_name,             # <<<<<<<<<<<<<<
 *             package_name=self.package_name,
 *             url=self.url,
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_full_name, __pyx_v_self->full_name) < 0) __PYX_ERR(0, 1823, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1825
 *             short_name=self.short_name,
 *             full_name=self.full_name,
 *             package_name=self.package_name,             # <<<<<<<<<<<<<<
 *             url=self.url,
 *             direct_download=self.direct_download,
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_package_name, __pyx_v_self->package_name) < 0) __PYX_ERR(0, 1823, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1826
 *             full_name=self.full_name,
 *             package_name=self.package_name,
 *             url=self.url,             # <<<<<<<<<<<<<<
 *             direct_download=self.direct_download,
 *             open_license=self.open_license,
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_url, __pyx_v_self->url) < 0) __PYX_ERR(0, 1823, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1827
 *             package_name=self.package_name,
 *             url=self.url,
 *             direct_download=self.direct_download,             # <<<<<<<<<<<<<<
 *             open_license=self.open_license,
 *             available=self.available
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_direct_download, __pyx_v_self->direct_download) < 0) __PYX_ERR(0, 1823, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1828
 *             url=self.url,
 *             direct_download=self.direct_download,
 *             open_license=self.open_license,             # <<<<<<<<<<<<<<
 *             available=self.available
 *         )
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_open_license, __pyx_v_self->open_license) < 0) __PYX_ERR(0, 1823, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1829
 *             direct_download=self.direct_download,
 *             open_license=self.open_license,
 *             available=self.available             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_available, __pyx_v_self->available) < 0) __PYX_ERR(0, 1823, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1822
 *                 "package_name={package_name}, url={url}, "
 *                 "direct_download={direct_download}, open_license={open_license}, "
 *                 "available={available})").format(             # <<<<<<<<<<<<<<
 *             short_name=self.short_name,
 *             full_name=self.full_name,
 */
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1822, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":1818
 *         return self.full_name
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return ("Grid(short_name={short_name}, full_name={full_name}, "
 *                 "package_name={package_name}, url={url}, "
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("pyproj._crs.Grid.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":93
 * 
 * cdef class Grid:
 *     cdef readonly object short_name             # <<<<<<<<<<<<<<
 *     cdef readonly object full_name
 *     cdef readonly object package_name
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Grid_10short_name_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4Grid_10short_name_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Grid_10short_name___get__(((struct __pyx_obj_6pyproj_4_crs_Grid *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Grid_10short_name___get__(struct __pyx_obj_6pyproj_4_crs_Grid *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->short_name);
  __pyx_r = __pyx_v_self->short_name;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":94
 * cdef class Grid:
 *     cdef readonly object short_name
 *     cdef readonly object full_name             # <<<<<<<<<<<<<<
 *     cdef readonly object package_name
 *     cdef readonly object url
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Grid_9full_name_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4Grid_9full_name_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Grid_9full_name___get__(((struct __pyx_obj_6pyproj_4_crs_Grid *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Grid_9full_name___get__(struct __pyx_obj_6pyproj_4_crs_Grid *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->full_name);
  __pyx_r = __pyx_v_self->full_name;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":95
 *     cdef readonly object short_name
 *     cdef readonly object full_name
 *     cdef readonly object package_name             # <<<<<<<<<<<<<<
 *     cdef readonly object url
 *     cdef readonly object direct_download
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Grid_12package_name_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4Grid_12package_name_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Grid_12package_name___get__(((struct __pyx_obj_6pyproj_4_crs_Grid *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Grid_12package_name___get__(struct __pyx_obj_6pyproj_4_crs_Grid *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->package_name);
  __pyx_r = __pyx_v_self->package_name;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":96
 *     cdef readonly object full_name
 *     cdef readonly object package_name
 *     cdef readonly object url             # <<<<<<<<<<<<<<
 *     cdef readonly object direct_download
 *     cdef readonly object open_license
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Grid_3url_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4Grid_3url_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Grid_3url___get__(((struct __pyx_obj_6pyproj_4_crs_Grid *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Grid_3url___get__(struct __pyx_obj_6pyproj_4_crs_Grid *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->url);
  __pyx_r = __pyx_v_self->url;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":97
 *     cdef readonly object package_name
 *     cdef readonly object url
 *     cdef readonly object direct_download             # <<<<<<<<<<<<<<
 *     cdef readonly object open_license
 *     cdef readonly object available
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Grid_15direct_download_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4Grid_15direct_download_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Grid_15direct_download___get__(((struct __pyx_obj_6pyproj_4_crs_Grid *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Grid_15direct_download___get__(struct __pyx_obj_6pyproj_4_crs_Grid *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->direct_download);
  __pyx_r = __pyx_v_self->direct_download;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":98
 *     cdef readonly object url
 *     cdef readonly object direct_download
 *     cdef readonly object open_license             # <<<<<<<<<<<<<<
 *     cdef readonly object available
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Grid_12open_license_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4Grid_12open_license_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Grid_12open_license___get__(((struct __pyx_obj_6pyproj_4_crs_Grid *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Grid_12open_license___get__(struct __pyx_obj_6pyproj_4_crs_Grid *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->open_license);
  __pyx_r = __pyx_v_self->open_license;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":99
 *     cdef readonly object direct_download
 *     cdef readonly object open_license
 *     cdef readonly object available             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Grid_9available_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4Grid_9available_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Grid_9available___get__(((struct __pyx_obj_6pyproj_4_crs_Grid *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Grid_9available___get__(struct __pyx_obj_6pyproj_4_crs_Grid *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->available);
  __pyx_r = __pyx_v_self->available;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Grid_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_6pyproj_4_crs_4Grid_6__reduce_cython__[] = "Grid.__reduce_cython__(self)";
static PyObject *__pyx_pw_6pyproj_4_crs_4Grid_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Grid_6__reduce_cython__(((struct __pyx_obj_6pyproj_4_crs_Grid *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Grid_6__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_Grid *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__30, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.Grid.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4Grid_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static char __pyx_doc_6pyproj_4_crs_4Grid_8__setstate_cython__[] = "Grid.__setstate_cython__(self, __pyx_state)";
static PyObject *__pyx_pw_6pyproj_4_crs_4Grid_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4Grid_8__setstate_cython__(((struct __pyx_obj_6pyproj_4_crs_Grid *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4Grid_8__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_Grid *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__31, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.Grid.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1875
 * 
 *     """
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._params = None
 *         self._grids = None
 */

/* Python wrapper */
static int __pyx_pw_6pyproj_4_crs_19CoordinateOperation_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_6pyproj_4_crs_19CoordinateOperation_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1;
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation___cinit__(((struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6pyproj_4_crs_19CoordinateOperation___cinit__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  double __pyx_t_1;
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "pyproj/_crs.pyx":1876
 *     """
 *     def __cinit__(self):
 *         self._params = None             # <<<<<<<<<<<<<<
 *         self._grids = None
 *         self._area_of_use = None
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->_params);
  __Pyx_DECREF(__pyx_v_self->_params);
  __pyx_v_self->_params = Py_None;

  /* "pyproj/_crs.pyx":1877
 *     def __cinit__(self):
 *         self._params = None
 *         self._grids = None             # <<<<<<<<<<<<<<
 *         self._area_of_use = None
 *         self.method_name = "undefined"
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->_grids);
  __Pyx_DECREF(__pyx_v_self->_grids);
  __pyx_v_self->_grids = Py_None;

  /* "pyproj/_crs.pyx":1878
 *         self._params = None
 *         self._grids = None
 *         self._area_of_use = None             # <<<<<<<<<<<<<<
 *         self.method_name = "undefined"
 *         self.method_auth_name = "undefined"
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->_area_of_use);
  __Pyx_DECREF(__pyx_v_self->_area_of_use);
  __pyx_v_self->_area_of_use = Py_None;

  /* "pyproj/_crs.pyx":1879
 *         self._grids = None
 *         self._area_of_use = None
 *         self.method_name = "undefined"             # <<<<<<<<<<<<<<
 *         self.method_auth_name = "undefined"
 *         self.method_code = "undefined"
 */
  __Pyx_INCREF(__pyx_n_u_undefined);
  __Pyx_GIVEREF(__pyx_n_u_undefined);
  __Pyx_GOTREF(__pyx_v_self->method_name);
  __Pyx_DECREF(__pyx_v_self->method_name);
  __pyx_v_self->method_name = __pyx_n_u_undefined;

  /* "pyproj/_crs.pyx":1880
 *         self._area_of_use = None
 *         self.method_name = "undefined"
 *         self.method_auth_name = "undefined"             # <<<<<<<<<<<<<<
 *         self.method_code = "undefined"
 *         self.is_instantiable = False
 */
  __Pyx_INCREF(__pyx_n_u_undefined);
  __Pyx_GIVEREF(__pyx_n_u_undefined);
  __Pyx_GOTREF(__pyx_v_self->method_auth_name);
  __Pyx_DECREF(__pyx_v_self->method_auth_name);
  __pyx_v_self->method_auth_name = __pyx_n_u_undefined;

  /* "pyproj/_crs.pyx":1881
 *         self.method_name = "undefined"
 *         self.method_auth_name = "undefined"
 *         self.method_code = "undefined"             # <<<<<<<<<<<<<<
 *         self.is_instantiable = False
 *         self.has_ballpark_transformation = False
 */
  __Pyx_INCREF(__pyx_n_u_undefined);
  __Pyx_GIVEREF(__pyx_n_u_undefined);
  __Pyx_GOTREF(__pyx_v_self->method_code);
  __Pyx_DECREF(__pyx_v_self->method_code);
  __pyx_v_self->method_code = __pyx_n_u_undefined;

  /* "pyproj/_crs.pyx":1882
 *         self.method_auth_name = "undefined"
 *         self.method_code = "undefined"
 *         self.is_instantiable = False             # <<<<<<<<<<<<<<
 *         self.has_ballpark_transformation = False
 *         self.accuracy = float("nan")
 */
  __Pyx_INCREF(Py_False);
  __Pyx_GIVEREF(Py_False);
  __Pyx_GOTREF(__pyx_v_self->is_instantiable);
  __Pyx_DECREF(__pyx_v_self->is_instantiable);
  __pyx_v_self->is_instantiable = Py_False;

  /* "pyproj/_crs.pyx":1883
 *         self.method_code = "undefined"
 *         self.is_instantiable = False
 *         self.has_ballpark_transformation = False             # <<<<<<<<<<<<<<
 *         self.accuracy = float("nan")
 *         self._towgs84 = None
 */
  __Pyx_INCREF(Py_False);
  __Pyx_GIVEREF(Py_False);
  __Pyx_GOTREF(__pyx_v_self->has_ballpark_transformation);
  __Pyx_DECREF(__pyx_v_self->has_ballpark_transformation);
  __pyx_v_self->has_ballpark_transformation = Py_False;

  /* "pyproj/_crs.pyx":1884
 *         self.is_instantiable = False
 *         self.has_ballpark_transformation = False
 *         self.accuracy = float("nan")             # <<<<<<<<<<<<<<
 *         self._towgs84 = None
 *         self._operations = None
 */
  __pyx_t_1 = __Pyx_PyObject_AsDouble(__pyx_n_u_nan); if (unlikely(__pyx_t_1 == ((double)((double)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1884, __pyx_L1_error)
  __pyx_v_self->accuracy = __pyx_t_1;

  /* "pyproj/_crs.pyx":1885
 *         self.has_ballpark_transformation = False
 *         self.accuracy = float("nan")
 *         self._towgs84 = None             # <<<<<<<<<<<<<<
 *         self._operations = None
 * 
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->_towgs84);
  __Pyx_DECREF(__pyx_v_self->_towgs84);
  __pyx_v_self->_towgs84 = Py_None;

  /* "pyproj/_crs.pyx":1886
 *         self.accuracy = float("nan")
 *         self._towgs84 = None
 *         self._operations = None             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self):
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->_operations);
  __Pyx_DECREF(__pyx_v_self->_operations);
  __pyx_v_self->_operations = Py_None;

  /* "pyproj/_crs.pyx":1875
 * 
 *     """
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._params = None
 *         self._grids = None
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyproj._crs.CoordinateOperation.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1888
 *         self._operations = None
 * 
 *     def __init__(self):             # <<<<<<<<<<<<<<
 *         raise RuntimeError(
 *             "CoordinateOperation can only be initialized like "
 */

/* Python wrapper */
static int __pyx_pw_6pyproj_4_crs_19CoordinateOperation_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_6pyproj_4_crs_19CoordinateOperation_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 0))) return -1;
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_2__init__(((struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6pyproj_4_crs_19CoordinateOperation_2__init__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "pyproj/_crs.pyx":1889
 * 
 *     def __init__(self):
 *         raise RuntimeError(             # <<<<<<<<<<<<<<
 *             "CoordinateOperation can only be initialized like "
 *             "CoordinateOperation.from_*()'."
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__32, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1889, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(0, 1889, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1888
 *         self._operations = None
 * 
 *     def __init__(self):             # <<<<<<<<<<<<<<
 *         raise RuntimeError(
 *             "CoordinateOperation can only be initialized like "
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.CoordinateOperation.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1895
 * 
 *     @staticmethod
 *     cdef CoordinateOperation create(PJ_CONTEXT* context, PJ* coord_operation_pj):             # <<<<<<<<<<<<<<
 *         cdef CoordinateOperation coord_operation = CoordinateOperation.__new__(
 *             CoordinateOperation
 */

static struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_f_6pyproj_4_crs_19CoordinateOperation_create(PJ_CONTEXT *__pyx_v_context, PJ *__pyx_v_coord_operation_pj) {
  struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_coord_operation = 0;
  char *__pyx_v_out_method_name;
  char *__pyx_v_out_method_auth_name;
  char *__pyx_v_out_method_code;
  PJ_TYPE __pyx_v_operation_type;
  struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("create", 0);

  /* "pyproj/_crs.pyx":1896
 *     @staticmethod
 *     cdef CoordinateOperation create(PJ_CONTEXT* context, PJ* coord_operation_pj):
 *         cdef CoordinateOperation coord_operation = CoordinateOperation.__new__(             # <<<<<<<<<<<<<<
 *             CoordinateOperation
 *         )
 */
  __pyx_t_1 = ((PyObject *)__pyx_tp_new_6pyproj_4_crs_CoordinateOperation(((PyTypeObject *)__pyx_ptype_6pyproj_4_crs_CoordinateOperation), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1896, __pyx_L1_error)
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  __pyx_v_coord_operation = ((struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1899
 *             CoordinateOperation
 *         )
 *         coord_operation.context = context             # <<<<<<<<<<<<<<
 *         coord_operation.projobj = coord_operation_pj
 *         cdef char *out_method_name = NULL
 */
  __pyx_v_coord_operation->__pyx_base.__pyx_base.context = __pyx_v_context;

  /* "pyproj/_crs.pyx":1900
 *         )
 *         coord_operation.context = context
 *         coord_operation.projobj = coord_operation_pj             # <<<<<<<<<<<<<<
 *         cdef char *out_method_name = NULL
 *         cdef char *out_method_auth_name = NULL
 */
  __pyx_v_coord_operation->__pyx_base.__pyx_base.projobj = __pyx_v_coord_operation_pj;

  /* "pyproj/_crs.pyx":1901
 *         coord_operation.context = context
 *         coord_operation.projobj = coord_operation_pj
 *         cdef char *out_method_name = NULL             # <<<<<<<<<<<<<<
 *         cdef char *out_method_auth_name = NULL
 *         cdef char *out_method_code = NULL
 */
  __pyx_v_out_method_name = NULL;

  /* "pyproj/_crs.pyx":1902
 *         coord_operation.projobj = coord_operation_pj
 *         cdef char *out_method_name = NULL
 *         cdef char *out_method_auth_name = NULL             # <<<<<<<<<<<<<<
 *         cdef char *out_method_code = NULL
 *         proj_coordoperation_get_method_info(
 */
  __pyx_v_out_method_auth_name = NULL;

  /* "pyproj/_crs.pyx":1903
 *         cdef char *out_method_name = NULL
 *         cdef char *out_method_auth_name = NULL
 *         cdef char *out_method_code = NULL             # <<<<<<<<<<<<<<
 *         proj_coordoperation_get_method_info(
 *             coord_operation.context,
 */
  __pyx_v_out_method_code = NULL;

  /* "pyproj/_crs.pyx":1904
 *         cdef char *out_method_auth_name = NULL
 *         cdef char *out_method_code = NULL
 *         proj_coordoperation_get_method_info(             # <<<<<<<<<<<<<<
 *             coord_operation.context,
 *             coord_operation.projobj,
 */
  (void)(proj_coordoperation_get_method_info(__pyx_v_coord_operation->__pyx_base.__pyx_base.context, __pyx_v_coord_operation->__pyx_base.__pyx_base.projobj, (&__pyx_v_out_method_name), (&__pyx_v_out_method_auth_name), (&__pyx_v_out_method_code)));

  /* "pyproj/_crs.pyx":1911
 *             &out_method_code
 *         )
 *         coord_operation._set_base_info()             # <<<<<<<<<<<<<<
 *         coord_operation.method_name = decode_or_undefined(out_method_name)
 *         coord_operation.method_auth_name = decode_or_undefined(out_method_auth_name)
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_6pyproj_4_crs_CoordinateOperation *)__pyx_v_coord_operation->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base._set_base_info(((struct __pyx_obj_6pyproj_4_crs_Base *)__pyx_v_coord_operation)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1911, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1912
 *         )
 *         coord_operation._set_base_info()
 *         coord_operation.method_name = decode_or_undefined(out_method_name)             # <<<<<<<<<<<<<<
 *         coord_operation.method_auth_name = decode_or_undefined(out_method_auth_name)
 *         coord_operation.method_code = decode_or_undefined(out_method_code)
 */
  __pyx_t_1 = __pyx_f_6pyproj_4_crs_decode_or_undefined(__pyx_v_out_method_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1912, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_coord_operation->method_name);
  __Pyx_DECREF(__pyx_v_coord_operation->method_name);
  __pyx_v_coord_operation->method_name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1913
 *         coord_operation._set_base_info()
 *         coord_operation.method_name = decode_or_undefined(out_method_name)
 *         coord_operation.method_auth_name = decode_or_undefined(out_method_auth_name)             # <<<<<<<<<<<<<<
 *         coord_operation.method_code = decode_or_undefined(out_method_code)
 *         coord_operation.accuracy = proj_coordoperation_get_accuracy(
 */
  __pyx_t_1 = __pyx_f_6pyproj_4_crs_decode_or_undefined(__pyx_v_out_method_auth_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1913, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_coord_operation->method_auth_name);
  __Pyx_DECREF(__pyx_v_coord_operation->method_auth_name);
  __pyx_v_coord_operation->method_auth_name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1914
 *         coord_operation.method_name = decode_or_undefined(out_method_name)
 *         coord_operation.method_auth_name = decode_or_undefined(out_method_auth_name)
 *         coord_operation.method_code = decode_or_undefined(out_method_code)             # <<<<<<<<<<<<<<
 *         coord_operation.accuracy = proj_coordoperation_get_accuracy(
 *             coord_operation.context,
 */
  __pyx_t_1 = __pyx_f_6pyproj_4_crs_decode_or_undefined(__pyx_v_out_method_code); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1914, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_coord_operation->method_code);
  __Pyx_DECREF(__pyx_v_coord_operation->method_code);
  __pyx_v_coord_operation->method_code = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1915
 *         coord_operation.method_auth_name = decode_or_undefined(out_method_auth_name)
 *         coord_operation.method_code = decode_or_undefined(out_method_code)
 *         coord_operation.accuracy = proj_coordoperation_get_accuracy(             # <<<<<<<<<<<<<<
 *             coord_operation.context,
 *             coord_operation.projobj
 */
  __pyx_v_coord_operation->accuracy = proj_coordoperation_get_accuracy(__pyx_v_coord_operation->__pyx_base.__pyx_base.context, __pyx_v_coord_operation->__pyx_base.__pyx_base.projobj);

  /* "pyproj/_crs.pyx":1922
 *             coord_operation.context,
 *             coord_operation.projobj
 *         ) == 1             # <<<<<<<<<<<<<<
 *         coord_operation.has_ballpark_transformation = \
 *             proj_coordoperation_has_ballpark_transformation(
 */
  __pyx_t_1 = __Pyx_PyBool_FromLong((proj_coordoperation_is_instantiable(__pyx_v_coord_operation->__pyx_base.__pyx_base.context, __pyx_v_coord_operation->__pyx_base.__pyx_base.projobj) == 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1922, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);

  /* "pyproj/_crs.pyx":1919
 *             coord_operation.projobj
 *         )
 *         coord_operation.is_instantiable = proj_coordoperation_is_instantiable(             # <<<<<<<<<<<<<<
 *             coord_operation.context,
 *             coord_operation.projobj
 */
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_coord_operation->is_instantiable);
  __Pyx_DECREF(__pyx_v_coord_operation->is_instantiable);
  __pyx_v_coord_operation->is_instantiable = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1927
 *                 coord_operation.context,
 *                 coord_operation.projobj
 *             ) == 1             # <<<<<<<<<<<<<<
 *         cdef PJ_TYPE operation_type = proj_get_type(coord_operation.projobj)
 *         coord_operation.type_name = _COORDINATE_OPERATION_TYPE_MAP[operation_type]
 */
  __pyx_t_1 = __Pyx_PyBool_FromLong((proj_coordoperation_has_ballpark_transformation(__pyx_v_coord_operation->__pyx_base.__pyx_base.context, __pyx_v_coord_operation->__pyx_base.__pyx_base.projobj) == 1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1927, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);

  /* "pyproj/_crs.pyx":1923
 *             coord_operation.projobj
 *         ) == 1
 *         coord_operation.has_ballpark_transformation = \             # <<<<<<<<<<<<<<
 *             proj_coordoperation_has_ballpark_transformation(
 *                 coord_operation.context,
 */
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_coord_operation->has_ballpark_transformation);
  __Pyx_DECREF(__pyx_v_coord_operation->has_ballpark_transformation);
  __pyx_v_coord_operation->has_ballpark_transformation = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1928
 *                 coord_operation.projobj
 *             ) == 1
 *         cdef PJ_TYPE operation_type = proj_get_type(coord_operation.projobj)             # <<<<<<<<<<<<<<
 *         coord_operation.type_name = _COORDINATE_OPERATION_TYPE_MAP[operation_type]
 *         CRSError.clear()
 */
  __pyx_v_operation_type = proj_get_type(__pyx_v_coord_operation->__pyx_base.__pyx_base.projobj);

  /* "pyproj/_crs.pyx":1929
 *             ) == 1
 *         cdef PJ_TYPE operation_type = proj_get_type(coord_operation.projobj)
 *         coord_operation.type_name = _COORDINATE_OPERATION_TYPE_MAP[operation_type]             # <<<<<<<<<<<<<<
 *         CRSError.clear()
 *         return coord_operation
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_COORDINATE_OPERATION_TYPE_MAP); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1929, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_From_PJ_TYPE(__pyx_v_operation_type); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1929, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1929, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_GOTREF(__pyx_v_coord_operation->type_name);
  __Pyx_DECREF(__pyx_v_coord_operation->type_name);
  __pyx_v_coord_operation->type_name = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":1930
 *         cdef PJ_TYPE operation_type = proj_get_type(coord_operation.projobj)
 *         coord_operation.type_name = _COORDINATE_OPERATION_TYPE_MAP[operation_type]
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         return coord_operation
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1930, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_clear); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1930, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
    }
  }
  __pyx_t_3 = (__pyx_t_2) ? __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_2) : __Pyx_PyObject_CallNoArg(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1930, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":1931
 *         coord_operation.type_name = _COORDINATE_OPERATION_TYPE_MAP[operation_type]
 *         CRSError.clear()
 *         return coord_operation             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __Pyx_INCREF(((PyObject *)__pyx_v_coord_operation));
  __pyx_r = __pyx_v_coord_operation;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":1895
 * 
 *     @staticmethod
 *     cdef CoordinateOperation create(PJ_CONTEXT* context, PJ* coord_operation_pj):             # <<<<<<<<<<<<<<
 *         cdef CoordinateOperation coord_operation = CoordinateOperation.__new__(
 *             CoordinateOperation
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("pyproj._crs.CoordinateOperation.create", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_coord_operation);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1934
 * 
 *     @staticmethod
 *     def from_authority(auth_name, code, use_proj_alternative_grid_names=False):             # <<<<<<<<<<<<<<
 *         """
 *         Create a CoordinateOperation from an authority code.
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_5from_authority(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_19CoordinateOperation_4from_authority[] = "CoordinateOperation.from_authority(auth_name, code, use_proj_alternative_grid_names=False)\n\n        Create a CoordinateOperation from an authority code.\n\n        Parameters\n        ----------\n        auth_name: str\n            Name ot the authority.\n        code: str or int\n            The code used by the authority.\n        use_proj_alternative_grid_names: bool, optional\n            Use the PROJ alternative grid names. Default is False.\n\n        Returns\n        -------\n        CoordinateOperation\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_19CoordinateOperation_5from_authority = {"from_authority", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_19CoordinateOperation_5from_authority, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_19CoordinateOperation_4from_authority};
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_5from_authority(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_auth_name = 0;
  PyObject *__pyx_v_code = 0;
  PyObject *__pyx_v_use_proj_alternative_grid_names = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_authority (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_auth_name,&__pyx_n_s_code,&__pyx_n_s_use_proj_alternative_grid_names,0};
    PyObject* values[3] = {0,0,0};
    values[2] = ((PyObject *)Py_False);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_auth_name)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_code)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("from_authority", 0, 2, 3, 1); __PYX_ERR(0, 1934, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_use_proj_alternative_grid_names);
          if (value) { values[2] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "from_authority") < 0)) __PYX_ERR(0, 1934, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_auth_name = values[0];
    __pyx_v_code = values[1];
    __pyx_v_use_proj_alternative_grid_names = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_authority", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1934, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.CoordinateOperation.from_authority", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_4from_authority(__pyx_v_auth_name, __pyx_v_code, __pyx_v_use_proj_alternative_grid_names);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_4from_authority(PyObject *__pyx_v_auth_name, PyObject *__pyx_v_code, PyObject *__pyx_v_use_proj_alternative_grid_names) {
  PJ_CONTEXT *__pyx_v_context;
  PJ *__pyx_v_coord_operation_pj;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  char const *__pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  char const *__pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  __Pyx_RefNannySetupContext("from_authority", 0);

  /* "pyproj/_crs.pyx":1951
 *         CoordinateOperation
 *         """
 *         cdef PJ_CONTEXT* context = proj_context_create()             # <<<<<<<<<<<<<<
 *         pyproj_context_initialize(context, True)
 * 
 */
  __pyx_v_context = proj_context_create();

  /* "pyproj/_crs.pyx":1952
 *         """
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)             # <<<<<<<<<<<<<<
 * 
 *         cdef PJ* coord_operation_pj = proj_create_from_database(
 */
  __pyx_f_6pyproj_8_datadir_pyproj_context_initialize(__pyx_v_context, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1952, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1956
 *         cdef PJ* coord_operation_pj = proj_create_from_database(
 *             context,
 *             cstrencode(auth_name),             # <<<<<<<<<<<<<<
 *             cstrencode(str(code)),
 *             PJ_CATEGORY_COORDINATE_OPERATION,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cstrencode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1956, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_v_auth_name) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_auth_name);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1956, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 1956, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1957
 *             context,
 *             cstrencode(auth_name),
 *             cstrencode(str(code)),             # <<<<<<<<<<<<<<
 *             PJ_CATEGORY_COORDINATE_OPERATION,
 *             use_proj_alternative_grid_names,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_cstrencode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1957, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyUnicode_Type)), __pyx_v_code); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1957, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_2 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_6, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1957, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_7 = __Pyx_PyObject_AsString(__pyx_t_2); if (unlikely((!__pyx_t_7) && PyErr_Occurred())) __PYX_ERR(0, 1957, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1959
 *             cstrencode(str(code)),
 *             PJ_CATEGORY_COORDINATE_OPERATION,
 *             use_proj_alternative_grid_names,             # <<<<<<<<<<<<<<
 *             NULL,
 *         )
 */
  __pyx_t_8 = __Pyx_PyInt_As_int(__pyx_v_use_proj_alternative_grid_names); if (unlikely((__pyx_t_8 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1959, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1954
 *         pyproj_context_initialize(context, True)
 * 
 *         cdef PJ* coord_operation_pj = proj_create_from_database(             # <<<<<<<<<<<<<<
 *             context,
 *             cstrencode(auth_name),
 */
  __pyx_v_coord_operation_pj = proj_create_from_database(__pyx_v_context, __pyx_t_4, __pyx_t_7, PJ_CATEGORY_COORDINATE_OPERATION, __pyx_t_8, NULL);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":1963
 *         )
 * 
 *         if coord_operation_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             raise CRSError(
 */
  __pyx_t_9 = ((__pyx_v_coord_operation_pj == NULL) != 0);
  if (unlikely(__pyx_t_9)) {

    /* "pyproj/_crs.pyx":1964
 * 
 *         if coord_operation_pj == NULL:
 *             proj_context_destroy(context)             # <<<<<<<<<<<<<<
 *             raise CRSError(
 *                 "Invalid authority or code ({0}, {1})".format(auth_name, code)
 */
    (void)(proj_context_destroy(__pyx_v_context));

    /* "pyproj/_crs.pyx":1965
 *         if coord_operation_pj == NULL:
 *             proj_context_destroy(context)
 *             raise CRSError(             # <<<<<<<<<<<<<<
 *                 "Invalid authority or code ({0}, {1})".format(auth_name, code)
 *             )
 */
    __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1965, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);

    /* "pyproj/_crs.pyx":1966
 *             proj_context_destroy(context)
 *             raise CRSError(
 *                 "Invalid authority or code ({0}, {1})".format(auth_name, code)             # <<<<<<<<<<<<<<
 *             )
 *         CRSError.clear()
 */
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_Invalid_authority_or_code_0_1, __pyx_n_s_format); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1966, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = NULL;
    __pyx_t_8 = 0;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
        __pyx_t_8 = 1;
      }
    }
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_5)) {
      PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_v_auth_name, __pyx_v_code};
      __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1966, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_GOTREF(__pyx_t_3);
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
      PyObject *__pyx_temp[3] = {__pyx_t_6, __pyx_v_auth_name, __pyx_v_code};
      __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1966, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_GOTREF(__pyx_t_3);
    } else
    #endif
    {
      __pyx_t_10 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1966, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      if (__pyx_t_6) {
        __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_6); __pyx_t_6 = NULL;
      }
      __Pyx_INCREF(__pyx_v_auth_name);
      __Pyx_GIVEREF(__pyx_v_auth_name);
      PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_8, __pyx_v_auth_name);
      __Pyx_INCREF(__pyx_v_code);
      __Pyx_GIVEREF(__pyx_v_code);
      PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_8, __pyx_v_code);
      __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_10, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1966, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    }
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_1, function);
      }
    }
    __pyx_t_2 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_5, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1965, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1965, __pyx_L1_error)

    /* "pyproj/_crs.pyx":1963
 *         )
 * 
 *         if coord_operation_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             raise CRSError(
 */
  }

  /* "pyproj/_crs.pyx":1968
 *                 "Invalid authority or code ({0}, {1})".format(auth_name, code)
 *             )
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         return CoordinateOperation.create(context, coord_operation_pj)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1968, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_clear); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1968, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_1)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_1);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_2 = (__pyx_t_1) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1968, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":1969
 *             )
 *         CRSError.clear()
 *         return CoordinateOperation.create(context, coord_operation_pj)             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((PyObject *)__pyx_f_6pyproj_4_crs_19CoordinateOperation_create(__pyx_v_context, __pyx_v_coord_operation_pj)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1969, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":1934
 * 
 *     @staticmethod
 *     def from_authority(auth_name, code, use_proj_alternative_grid_names=False):             # <<<<<<<<<<<<<<
 *         """
 *         Create a CoordinateOperation from an authority code.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("pyproj._crs.CoordinateOperation.from_authority", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1972
 * 
 *     @staticmethod
 *     def from_epsg(code, use_proj_alternative_grid_names=False):             # <<<<<<<<<<<<<<
 *         """
 *         Create a CoordinateOperation from an EPSG code.
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_7from_epsg(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_19CoordinateOperation_6from_epsg[] = "CoordinateOperation.from_epsg(code, use_proj_alternative_grid_names=False)\n\n        Create a CoordinateOperation from an EPSG code.\n\n        Parameters\n        ----------\n        code: str or int\n            The code used by EPSG.\n        use_proj_alternative_grid_names: bool, optional\n            Use the PROJ alternative grid names. Default is False.\n\n        Returns\n        -------\n        CoordinateOperation\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_19CoordinateOperation_7from_epsg = {"from_epsg", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_19CoordinateOperation_7from_epsg, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_19CoordinateOperation_6from_epsg};
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_7from_epsg(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_code = 0;
  PyObject *__pyx_v_use_proj_alternative_grid_names = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_epsg (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_code,&__pyx_n_s_use_proj_alternative_grid_names,0};
    PyObject* values[2] = {0,0};
    values[1] = ((PyObject *)Py_False);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_code)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_use_proj_alternative_grid_names);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "from_epsg") < 0)) __PYX_ERR(0, 1972, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_code = values[0];
    __pyx_v_use_proj_alternative_grid_names = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_epsg", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1972, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.CoordinateOperation.from_epsg", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_6from_epsg(__pyx_v_code, __pyx_v_use_proj_alternative_grid_names);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_6from_epsg(PyObject *__pyx_v_code, PyObject *__pyx_v_use_proj_alternative_grid_names) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("from_epsg", 0);

  /* "pyproj/_crs.pyx":1987
 *         CoordinateOperation
 *         """
 *         return CoordinateOperation.from_authority(             # <<<<<<<<<<<<<<
 *             "EPSG", code, use_proj_alternative_grid_names
 *         )
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateOperation), __pyx_n_s_from_authority); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1987, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);

  /* "pyproj/_crs.pyx":1988
 *         """
 *         return CoordinateOperation.from_authority(
 *             "EPSG", code, use_proj_alternative_grid_names             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  __pyx_t_3 = NULL;
  __pyx_t_4 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_4 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_n_u_EPSG, __pyx_v_code, __pyx_v_use_proj_alternative_grid_names};
    __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 3+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1987, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[4] = {__pyx_t_3, __pyx_n_u_EPSG, __pyx_v_code, __pyx_v_use_proj_alternative_grid_names};
    __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 3+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1987, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  {
    __pyx_t_5 = PyTuple_New(3+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1987, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__pyx_t_3) {
      __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
    }
    __Pyx_INCREF(__pyx_n_u_EPSG);
    __Pyx_GIVEREF(__pyx_n_u_EPSG);
    PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_n_u_EPSG);
    __Pyx_INCREF(__pyx_v_code);
    __Pyx_GIVEREF(__pyx_v_code);
    PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_code);
    __Pyx_INCREF(__pyx_v_use_proj_alternative_grid_names);
    __Pyx_GIVEREF(__pyx_v_use_proj_alternative_grid_names);
    PyTuple_SET_ITEM(__pyx_t_5, 2+__pyx_t_4, __pyx_v_use_proj_alternative_grid_names);
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1987, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":1972
 * 
 *     @staticmethod
 *     def from_epsg(code, use_proj_alternative_grid_names=False):             # <<<<<<<<<<<<<<
 *         """
 *         Create a CoordinateOperation from an EPSG code.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs.CoordinateOperation.from_epsg", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":1992
 * 
 *     @staticmethod
 *     def _from_string(coordinate_operation_string):             # <<<<<<<<<<<<<<
 *         """
 *         Create a CoordinateOperation from a string.
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_9_from_string(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_19CoordinateOperation_8_from_string[] = "CoordinateOperation._from_string(coordinate_operation_string)\n\n        Create a CoordinateOperation from a string.\n\n        Example:\n          - urn:ogc:def:coordinateOperation:EPSG::1671\n\n        Parameters\n        ----------\n        coordinate_operation_string: str\n            Coordinate operation string.\n\n        Returns\n        -------\n        CoordinateOperation\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_19CoordinateOperation_9_from_string = {"_from_string", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_19CoordinateOperation_9_from_string, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_19CoordinateOperation_8_from_string};
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_9_from_string(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_coordinate_operation_string = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_from_string (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_coordinate_operation_string,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_coordinate_operation_string)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_from_string") < 0)) __PYX_ERR(0, 1992, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_coordinate_operation_string = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_from_string", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1992, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.CoordinateOperation._from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_8_from_string(__pyx_v_coordinate_operation_string);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_8_from_string(PyObject *__pyx_v_coordinate_operation_string) {
  PJ_CONTEXT *__pyx_v_context;
  PJ *__pyx_v_coord_operation_pj;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  char const *__pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  PJ_TYPE __pyx_t_7;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  __Pyx_RefNannySetupContext("_from_string", 0);

  /* "pyproj/_crs.pyx":2008
 *         CoordinateOperation
 *         """
 *         cdef PJ_CONTEXT* context = proj_context_create()             # <<<<<<<<<<<<<<
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* coord_operation_pj = proj_create(
 */
  __pyx_v_context = proj_context_create();

  /* "pyproj/_crs.pyx":2009
 *         """
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)             # <<<<<<<<<<<<<<
 *         cdef PJ* coord_operation_pj = proj_create(
 *             context,
 */
  __pyx_f_6pyproj_8_datadir_pyproj_context_initialize(__pyx_v_context, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2009, __pyx_L1_error)

  /* "pyproj/_crs.pyx":2012
 *         cdef PJ* coord_operation_pj = proj_create(
 *             context,
 *             cstrencode(coordinate_operation_string)             # <<<<<<<<<<<<<<
 *         )
 *         if (
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cstrencode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2012, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_v_coordinate_operation_string) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_coordinate_operation_string);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2012, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 2012, __pyx_L1_error)

  /* "pyproj/_crs.pyx":2010
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* coord_operation_pj = proj_create(             # <<<<<<<<<<<<<<
 *             context,
 *             cstrencode(coordinate_operation_string)
 */
  __pyx_v_coord_operation_pj = proj_create(__pyx_v_context, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":2015
 *         )
 *         if (
 *             coord_operation_pj == NULL or             # <<<<<<<<<<<<<<
 *             proj_get_type(coord_operation_pj) not in (
 *                 PJ_TYPE_CONVERSION,
 */
  __pyx_t_6 = ((__pyx_v_coord_operation_pj == NULL) != 0);
  if (!__pyx_t_6) {
  } else {
    __pyx_t_5 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }

  /* "pyproj/_crs.pyx":2016
 *         if (
 *             coord_operation_pj == NULL or
 *             proj_get_type(coord_operation_pj) not in (             # <<<<<<<<<<<<<<
 *                 PJ_TYPE_CONVERSION,
 *                 PJ_TYPE_TRANSFORMATION,
 */
  __pyx_t_7 = proj_get_type(__pyx_v_coord_operation_pj);

  /* "pyproj/_crs.pyx":2017
 *             coord_operation_pj == NULL or
 *             proj_get_type(coord_operation_pj) not in (
 *                 PJ_TYPE_CONVERSION,             # <<<<<<<<<<<<<<
 *                 PJ_TYPE_TRANSFORMATION,
 *                 PJ_TYPE_CONCATENATED_OPERATION,
 */
  __pyx_t_8 = ((__pyx_t_7 != PJ_TYPE_CONVERSION) != 0);
  if (__pyx_t_8) {
  } else {
    __pyx_t_6 = __pyx_t_8;
    goto __pyx_L6_bool_binop_done;
  }

  /* "pyproj/_crs.pyx":2016
 *         if (
 *             coord_operation_pj == NULL or
 *             proj_get_type(coord_operation_pj) not in (             # <<<<<<<<<<<<<<
 *                 PJ_TYPE_CONVERSION,
 *                 PJ_TYPE_TRANSFORMATION,
 */
  __pyx_t_8 = ((__pyx_t_7 != PJ_TYPE_TRANSFORMATION) != 0);
  if (__pyx_t_8) {
  } else {
    __pyx_t_6 = __pyx_t_8;
    goto __pyx_L6_bool_binop_done;
  }

  /* "pyproj/_crs.pyx":2019
 *                 PJ_TYPE_CONVERSION,
 *                 PJ_TYPE_TRANSFORMATION,
 *                 PJ_TYPE_CONCATENATED_OPERATION,             # <<<<<<<<<<<<<<
 *                 PJ_TYPE_OTHER_COORDINATE_OPERATION,
 *             )
 */
  __pyx_t_8 = ((__pyx_t_7 != PJ_TYPE_CONCATENATED_OPERATION) != 0);
  if (__pyx_t_8) {
  } else {
    __pyx_t_6 = __pyx_t_8;
    goto __pyx_L6_bool_binop_done;
  }

  /* "pyproj/_crs.pyx":2016
 *         if (
 *             coord_operation_pj == NULL or
 *             proj_get_type(coord_operation_pj) not in (             # <<<<<<<<<<<<<<
 *                 PJ_TYPE_CONVERSION,
 *                 PJ_TYPE_TRANSFORMATION,
 */
  __pyx_t_8 = ((__pyx_t_7 != PJ_TYPE_OTHER_COORDINATE_OPERATION) != 0);
  __pyx_t_6 = __pyx_t_8;
  __pyx_L6_bool_binop_done:;
  __pyx_t_8 = (__pyx_t_6 != 0);
  __pyx_t_5 = __pyx_t_8;
  __pyx_L4_bool_binop_done:;

  /* "pyproj/_crs.pyx":2014
 *             cstrencode(coordinate_operation_string)
 *         )
 *         if (             # <<<<<<<<<<<<<<
 *             coord_operation_pj == NULL or
 *             proj_get_type(coord_operation_pj) not in (
 */
  if (unlikely(__pyx_t_5)) {

    /* "pyproj/_crs.pyx":2023
 *             )
 *         ):
 *             proj_destroy(coord_operation_pj)             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             raise CRSError(
 */
    proj_destroy(__pyx_v_coord_operation_pj);

    /* "pyproj/_crs.pyx":2024
 *         ):
 *             proj_destroy(coord_operation_pj)
 *             proj_context_destroy(context)             # <<<<<<<<<<<<<<
 *             raise CRSError(
 *                 "Invalid coordinate operation string: {}".format(
 */
    (void)(proj_context_destroy(__pyx_v_context));

    /* "pyproj/_crs.pyx":2025
 *             proj_destroy(coord_operation_pj)
 *             proj_context_destroy(context)
 *             raise CRSError(             # <<<<<<<<<<<<<<
 *                 "Invalid coordinate operation string: {}".format(
 *                     pystrdecode(coordinate_operation_string)
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2025, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);

    /* "pyproj/_crs.pyx":2026
 *             proj_context_destroy(context)
 *             raise CRSError(
 *                 "Invalid coordinate operation string: {}".format(             # <<<<<<<<<<<<<<
 *                     pystrdecode(coordinate_operation_string)
 *                 )
 */
    __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_Invalid_coordinate_operation_str, __pyx_n_s_format); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2026, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);

    /* "pyproj/_crs.pyx":2027
 *             raise CRSError(
 *                 "Invalid coordinate operation string: {}".format(
 *                     pystrdecode(coordinate_operation_string)             # <<<<<<<<<<<<<<
 *                 )
 *             )
 */
    __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_n_s_pystrdecode); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 2027, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_11);
    __pyx_t_12 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_11))) {
      __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_11);
      if (likely(__pyx_t_12)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_11);
        __Pyx_INCREF(__pyx_t_12);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_11, function);
      }
    }
    __pyx_t_10 = (__pyx_t_12) ? __Pyx_PyObject_Call2Args(__pyx_t_11, __pyx_t_12, __pyx_v_coordinate_operation_string) : __Pyx_PyObject_CallOneArg(__pyx_t_11, __pyx_v_coordinate_operation_string);
    __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
    if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2027, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __pyx_t_11 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_9))) {
      __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_9);
      if (likely(__pyx_t_11)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_9);
        __Pyx_INCREF(__pyx_t_11);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_9, function);
      }
    }
    __pyx_t_3 = (__pyx_t_11) ? __Pyx_PyObject_Call2Args(__pyx_t_9, __pyx_t_11, __pyx_t_10) : __Pyx_PyObject_CallOneArg(__pyx_t_9, __pyx_t_10);
    __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2026, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __pyx_t_9 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_9)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_9);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_1 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_9, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2025, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 2025, __pyx_L1_error)

    /* "pyproj/_crs.pyx":2014
 *             cstrencode(coordinate_operation_string)
 *         )
 *         if (             # <<<<<<<<<<<<<<
 *             coord_operation_pj == NULL or
 *             proj_get_type(coord_operation_pj) not in (
 */
  }

  /* "pyproj/_crs.pyx":2030
 *                 )
 *             )
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         return CoordinateOperation.create(context, coord_operation_pj)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2030, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_clear); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2030, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2030, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":2031
 *             )
 *         CRSError.clear()
 *         return CoordinateOperation.create(context, coord_operation_pj)             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((PyObject *)__pyx_f_6pyproj_4_crs_19CoordinateOperation_create(__pyx_v_context, __pyx_v_coord_operation_pj)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2031, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":1992
 * 
 *     @staticmethod
 *     def _from_string(coordinate_operation_string):             # <<<<<<<<<<<<<<
 *         """
 *         Create a CoordinateOperation from a string.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("pyproj._crs.CoordinateOperation._from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2034
 * 
 *     @staticmethod
 *     def from_string(coordinate_operation_string):             # <<<<<<<<<<<<<<
 *         """
 *         Create a CoordinateOperation from a string.
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_11from_string(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_19CoordinateOperation_10from_string[] = "CoordinateOperation.from_string(coordinate_operation_string)\n\n        Create a CoordinateOperation from a string.\n\n        Example:\n          - urn:ogc:def:coordinateOperation:EPSG::1671\n          - UTM zone 14N\n          - +proj=utm +zone=14\n\n        Parameters\n        ----------\n        coordinate_operation_string: str\n            Coordinate operation string.\n\n        Returns\n        -------\n        CoordinateOperation\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_19CoordinateOperation_11from_string = {"from_string", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_19CoordinateOperation_11from_string, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_19CoordinateOperation_10from_string};
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_11from_string(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_coordinate_operation_string = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_string (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_coordinate_operation_string,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_coordinate_operation_string)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "from_string") < 0)) __PYX_ERR(0, 2034, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_coordinate_operation_string = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_string", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2034, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.CoordinateOperation.from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_10from_string(__pyx_v_coordinate_operation_string);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_10from_string(PyObject *__pyx_v_coordinate_operation_string) {
  PyObject *__pyx_v_crs_err = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  int __pyx_t_15;
  char const *__pyx_t_16;
  PyObject *__pyx_t_17 = NULL;
  PyObject *__pyx_t_18 = NULL;
  PyObject *__pyx_t_19 = NULL;
  __Pyx_RefNannySetupContext("from_string", 0);

  /* "pyproj/_crs.pyx":2052
 *         CoordinateOperation
 *         """
 *         try:             # <<<<<<<<<<<<<<
 *             return CoordinateOperation._from_string(coordinate_operation_string)
 *         except CRSError as crs_err:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_1);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "pyproj/_crs.pyx":2053
 *         """
 *         try:
 *             return CoordinateOperation._from_string(coordinate_operation_string)             # <<<<<<<<<<<<<<
 *         except CRSError as crs_err:
 *             try:
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateOperation), __pyx_n_s_from_string_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2053, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = NULL;
      if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_6)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_6);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_v_coordinate_operation_string) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_coordinate_operation_string);
      __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2053, __pyx_L3_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L7_try_return;

      /* "pyproj/_crs.pyx":2052
 *         CoordinateOperation
 *         """
 *         try:             # <<<<<<<<<<<<<<
 *             return CoordinateOperation._from_string(coordinate_operation_string)
 *         except CRSError as crs_err:
 */
    }
    __pyx_L3_error:;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;

    /* "pyproj/_crs.pyx":2054
 *         try:
 *             return CoordinateOperation._from_string(coordinate_operation_string)
 *         except CRSError as crs_err:             # <<<<<<<<<<<<<<
 *             try:
 *                 return CoordinateOperation.from_name(coordinate_operation_string)
 */
    __Pyx_ErrFetch(&__pyx_t_4, &__pyx_t_5, &__pyx_t_6);
    __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2054, __pyx_L5_except_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_4, __pyx_t_7);
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_ErrRestore(__pyx_t_4, __pyx_t_5, __pyx_t_6);
    __pyx_t_4 = 0; __pyx_t_5 = 0; __pyx_t_6 = 0;
    if (__pyx_t_8) {
      __Pyx_AddTraceback("pyproj._crs.CoordinateOperation.from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_4) < 0) __PYX_ERR(0, 2054, __pyx_L5_except_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      __pyx_v_crs_err = __pyx_t_5;
      /*try:*/ {

        /* "pyproj/_crs.pyx":2055
 *             return CoordinateOperation._from_string(coordinate_operation_string)
 *         except CRSError as crs_err:
 *             try:             # <<<<<<<<<<<<<<
 *                 return CoordinateOperation.from_name(coordinate_operation_string)
 *             except CRSError:
 */
        {
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __Pyx_ExceptionSave(&__pyx_t_9, &__pyx_t_10, &__pyx_t_11);
          __Pyx_XGOTREF(__pyx_t_9);
          __Pyx_XGOTREF(__pyx_t_10);
          __Pyx_XGOTREF(__pyx_t_11);
          /*try:*/ {

            /* "pyproj/_crs.pyx":2056
 *         except CRSError as crs_err:
 *             try:
 *                 return CoordinateOperation.from_name(coordinate_operation_string)             # <<<<<<<<<<<<<<
 *             except CRSError:
 *                 raise crs_err
 */
            __Pyx_XDECREF(__pyx_r);
            __pyx_t_12 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateOperation), __pyx_n_s_from_name); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2056, __pyx_L16_error)
            __Pyx_GOTREF(__pyx_t_12);
            __pyx_t_13 = NULL;
            if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_12))) {
              __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_12);
              if (likely(__pyx_t_13)) {
                PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_12);
                __Pyx_INCREF(__pyx_t_13);
                __Pyx_INCREF(function);
                __Pyx_DECREF_SET(__pyx_t_12, function);
              }
            }
            __pyx_t_7 = (__pyx_t_13) ? __Pyx_PyObject_Call2Args(__pyx_t_12, __pyx_t_13, __pyx_v_coordinate_operation_string) : __Pyx_PyObject_CallOneArg(__pyx_t_12, __pyx_v_coordinate_operation_string);
            __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
            if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2056, __pyx_L16_error)
            __Pyx_GOTREF(__pyx_t_7);
            __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
            __pyx_r = __pyx_t_7;
            __pyx_t_7 = 0;
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
            __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
            goto __pyx_L20_try_return;

            /* "pyproj/_crs.pyx":2055
 *             return CoordinateOperation._from_string(coordinate_operation_string)
 *         except CRSError as crs_err:
 *             try:             # <<<<<<<<<<<<<<
 *                 return CoordinateOperation.from_name(coordinate_operation_string)
 *             except CRSError:
 */
          }
          __pyx_L16_error:;
          __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
          __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;

          /* "pyproj/_crs.pyx":2057
 *             try:
 *                 return CoordinateOperation.from_name(coordinate_operation_string)
 *             except CRSError:             # <<<<<<<<<<<<<<
 *                 raise crs_err
 * 
 */
          __Pyx_ErrFetch(&__pyx_t_7, &__pyx_t_12, &__pyx_t_13);
          __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 2057, __pyx_L18_except_error)
          __Pyx_GOTREF(__pyx_t_14);
          __pyx_t_8 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_7, __pyx_t_14);
          __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
          __Pyx_ErrRestore(__pyx_t_7, __pyx_t_12, __pyx_t_13);
          __pyx_t_7 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0;
          if (__pyx_t_8) {
            __Pyx_AddTraceback("pyproj._crs.CoordinateOperation.from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
            if (__Pyx_GetException(&__pyx_t_13, &__pyx_t_12, &__pyx_t_7) < 0) __PYX_ERR(0, 2057, __pyx_L18_except_error)
            __Pyx_GOTREF(__pyx_t_13);
            __Pyx_GOTREF(__pyx_t_12);
            __Pyx_GOTREF(__pyx_t_7);

            /* "pyproj/_crs.pyx":2058
 *                 return CoordinateOperation.from_name(coordinate_operation_string)
 *             except CRSError:
 *                 raise crs_err             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
            __Pyx_Raise(__pyx_v_crs_err, 0, 0, 0);
            __PYX_ERR(0, 2058, __pyx_L18_except_error)
          }
          goto __pyx_L18_except_error;
          __pyx_L18_except_error:;

          /* "pyproj/_crs.pyx":2055
 *             return CoordinateOperation._from_string(coordinate_operation_string)
 *         except CRSError as crs_err:
 *             try:             # <<<<<<<<<<<<<<
 *                 return CoordinateOperation.from_name(coordinate_operation_string)
 *             except CRSError:
 */
          __Pyx_XGIVEREF(__pyx_t_9);
          __Pyx_XGIVEREF(__pyx_t_10);
          __Pyx_XGIVEREF(__pyx_t_11);
          __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11);
          goto __pyx_L14_error;
          __pyx_L20_try_return:;
          __Pyx_XGIVEREF(__pyx_t_9);
          __Pyx_XGIVEREF(__pyx_t_10);
          __Pyx_XGIVEREF(__pyx_t_11);
          __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11);
          goto __pyx_L13_return;
        }
      }

      /* "pyproj/_crs.pyx":2054
 *         try:
 *             return CoordinateOperation._from_string(coordinate_operation_string)
 *         except CRSError as crs_err:             # <<<<<<<<<<<<<<
 *             try:
 *                 return CoordinateOperation.from_name(coordinate_operation_string)
 */
      /*finally:*/ {
        __pyx_L14_error:;
        /*exception exit:*/{
          __Pyx_PyThreadState_declare
          __Pyx_PyThreadState_assign
          __pyx_t_11 = 0; __pyx_t_10 = 0; __pyx_t_9 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0;
          __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
          __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
          __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
          __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
          if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_17, &__pyx_t_18, &__pyx_t_19);
          if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_11, &__pyx_t_10, &__pyx_t_9) < 0)) __Pyx_ErrFetch(&__pyx_t_11, &__pyx_t_10, &__pyx_t_9);
          __Pyx_XGOTREF(__pyx_t_11);
          __Pyx_XGOTREF(__pyx_t_10);
          __Pyx_XGOTREF(__pyx_t_9);
          __Pyx_XGOTREF(__pyx_t_17);
          __Pyx_XGOTREF(__pyx_t_18);
          __Pyx_XGOTREF(__pyx_t_19);
          __pyx_t_8 = __pyx_lineno; __pyx_t_15 = __pyx_clineno; __pyx_t_16 = __pyx_filename;
          {
            __Pyx_DECREF(__pyx_v_crs_err);
            __pyx_v_crs_err = NULL;
          }
          if (PY_MAJOR_VERSION >= 3) {
            __Pyx_XGIVEREF(__pyx_t_17);
            __Pyx_XGIVEREF(__pyx_t_18);
            __Pyx_XGIVEREF(__pyx_t_19);
            __Pyx_ExceptionReset(__pyx_t_17, __pyx_t_18, __pyx_t_19);
          }
          __Pyx_XGIVEREF(__pyx_t_11);
          __Pyx_XGIVEREF(__pyx_t_10);
          __Pyx_XGIVEREF(__pyx_t_9);
          __Pyx_ErrRestore(__pyx_t_11, __pyx_t_10, __pyx_t_9);
          __pyx_t_11 = 0; __pyx_t_10 = 0; __pyx_t_9 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0; __pyx_t_19 = 0;
          __pyx_lineno = __pyx_t_8; __pyx_clineno = __pyx_t_15; __pyx_filename = __pyx_t_16;
          goto __pyx_L5_except_error;
        }
        __pyx_L13_return: {
          __pyx_t_19 = __pyx_r;
          __pyx_r = 0;
          __Pyx_DECREF(__pyx_v_crs_err);
          __pyx_v_crs_err = NULL;
          __pyx_r = __pyx_t_19;
          __pyx_t_19 = 0;
          goto __pyx_L6_except_return;
        }
      }
    }
    goto __pyx_L5_except_error;
    __pyx_L5_except_error:;

    /* "pyproj/_crs.pyx":2052
 *         CoordinateOperation
 *         """
 *         try:             # <<<<<<<<<<<<<<
 *             return CoordinateOperation._from_string(coordinate_operation_string)
 *         except CRSError as crs_err:
 */
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L7_try_return:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L0;
    __pyx_L6_except_return:;
    __Pyx_XGIVEREF(__pyx_t_1);
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
    goto __pyx_L0;
  }

  /* "pyproj/_crs.pyx":2034
 * 
 *     @staticmethod
 *     def from_string(coordinate_operation_string):             # <<<<<<<<<<<<<<
 *         """
 *         Create a CoordinateOperation from a string.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_AddTraceback("pyproj._crs.CoordinateOperation.from_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_crs_err);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2061
 * 
 *     @staticmethod
 *     def from_json_dict(coordinate_operation_dict):             # <<<<<<<<<<<<<<
 *         """
 *         Create CoordinateOperation from a JSON dictionary.
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_13from_json_dict(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_19CoordinateOperation_12from_json_dict[] = "CoordinateOperation.from_json_dict(coordinate_operation_dict)\n\n        Create CoordinateOperation from a JSON dictionary.\n\n        .. versionadded:: 2.4.0\n\n        Parameters\n        ----------\n        coordinate_operation_dict: str\n            CoordinateOperation dictionary.\n\n        Returns\n        -------\n        CoordinateOperation\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_19CoordinateOperation_13from_json_dict = {"from_json_dict", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_19CoordinateOperation_13from_json_dict, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_19CoordinateOperation_12from_json_dict};
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_13from_json_dict(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_coordinate_operation_dict = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_json_dict (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_coordinate_operation_dict,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_coordinate_operation_dict)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "from_json_dict") < 0)) __PYX_ERR(0, 2061, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_coordinate_operation_dict = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_json_dict", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2061, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.CoordinateOperation.from_json_dict", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_12from_json_dict(__pyx_v_coordinate_operation_dict);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_12from_json_dict(PyObject *__pyx_v_coordinate_operation_dict) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("from_json_dict", 0);

  /* "pyproj/_crs.pyx":2076
 *         CoordinateOperation
 *         """
 *         return CoordinateOperation._from_string(json.dumps(coordinate_operation_dict))             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateOperation), __pyx_n_s_from_string_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2076, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_json); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2076, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_dumps); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2076, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_5, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_4, __pyx_v_coordinate_operation_dict) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_v_coordinate_operation_dict);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2076, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2076, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2061
 * 
 *     @staticmethod
 *     def from_json_dict(coordinate_operation_dict):             # <<<<<<<<<<<<<<
 *         """
 *         Create CoordinateOperation from a JSON dictionary.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs.CoordinateOperation.from_json_dict", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2079
 * 
 *     @staticmethod
 *     def from_json(coordinate_operation_json_str):             # <<<<<<<<<<<<<<
 *         """
 *         Create CoordinateOperation from a JSON string.
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_15from_json(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_19CoordinateOperation_14from_json[] = "CoordinateOperation.from_json(coordinate_operation_json_str)\n\n        Create CoordinateOperation from a JSON string.\n\n        .. versionadded:: 2.4.0\n\n        Parameters\n        ----------\n        coordinate_operation_json_str: str\n            CoordinateOperation JSON string.\n\n        Returns\n        -------\n        CoordinateOperation\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_19CoordinateOperation_15from_json = {"from_json", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_19CoordinateOperation_15from_json, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_19CoordinateOperation_14from_json};
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_15from_json(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_coordinate_operation_json_str = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_json (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_coordinate_operation_json_str,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_coordinate_operation_json_str)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "from_json") < 0)) __PYX_ERR(0, 2079, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_coordinate_operation_json_str = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_json", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2079, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.CoordinateOperation.from_json", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_14from_json(__pyx_v_coordinate_operation_json_str);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_14from_json(PyObject *__pyx_v_coordinate_operation_json_str) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("from_json", 0);

  /* "pyproj/_crs.pyx":2094
 *         CoordinateOperation
 *         """
 *         return CoordinateOperation.from_json_dict(             # <<<<<<<<<<<<<<
 *             _load_proj_json(coordinate_operation_json_str
 *         ))
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateOperation), __pyx_n_s_from_json_dict); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2094, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);

  /* "pyproj/_crs.pyx":2095
 *         """
 *         return CoordinateOperation.from_json_dict(
 *             _load_proj_json(coordinate_operation_json_str             # <<<<<<<<<<<<<<
 *         ))
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_load_proj_json); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2095, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
    }
  }
  __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_coordinate_operation_json_str) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_coordinate_operation_json_str);
  __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2095, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2094, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2079
 * 
 *     @staticmethod
 *     def from_json(coordinate_operation_json_str):             # <<<<<<<<<<<<<<
 *         """
 *         Create CoordinateOperation from a JSON string.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs.CoordinateOperation.from_json", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2099
 * 
 *     @staticmethod
 *     def from_name(             # <<<<<<<<<<<<<<
 *         coordinate_operation_name,
 *         auth_name=None,
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_17from_name(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_19CoordinateOperation_16from_name[] = "CoordinateOperation.from_name(coordinate_operation_name, auth_name=None, coordinate_operation_type=CoordinateOperationType.CONVERSION)\n\n        .. versionadded:: 2.5.0\n\n        Create a Coordinate Operation from a name.\n\n        Examples:\n          - UTM zone 14N\n\n        Parameters\n        ----------\n        coordinate_operation_name: str\n            Coordinate Operation name.\n        auth_name: str, optional\n            The authority name to refine search (e.g. 'EPSG').\n            If None, will search all authorities. Default is None.\n        coordinate_operation_type: CoordinateOperationType, optional\n            The coordinate operation type to create.\n            Default is CoordinateOperationType.CONVERSION.\n\n        Returns\n        -------\n        CoordinateOperation\n        ";
static PyMethodDef __pyx_mdef_6pyproj_4_crs_19CoordinateOperation_17from_name = {"from_name", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_19CoordinateOperation_17from_name, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_19CoordinateOperation_16from_name};
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_17from_name(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_coordinate_operation_name = 0;
  PyObject *__pyx_v_auth_name = 0;
  PyObject *__pyx_v_coordinate_operation_type = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("from_name (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_coordinate_operation_name,&__pyx_n_s_auth_name,&__pyx_n_s_coordinate_operation_type,0};
    PyObject* values[3] = {0,0,0};

    /* "pyproj/_crs.pyx":2101
 *     def from_name(
 *         coordinate_operation_name,
 *         auth_name=None,             # <<<<<<<<<<<<<<
 *         coordinate_operation_type=CoordinateOperationType.CONVERSION,
 *     ):
 */
    values[1] = ((PyObject *)Py_None);
    values[2] = __pyx_k__33;
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_coordinate_operation_name)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_auth_name);
          if (value) { values[1] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_coordinate_operation_type);
          if (value) { values[2] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "from_name") < 0)) __PYX_ERR(0, 2099, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_coordinate_operation_name = values[0];
    __pyx_v_auth_name = values[1];
    __pyx_v_coordinate_operation_type = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("from_name", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2099, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.CoordinateOperation.from_name", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_16from_name(__pyx_v_coordinate_operation_name, __pyx_v_auth_name, __pyx_v_coordinate_operation_type);

  /* "pyproj/_crs.pyx":2099
 * 
 *     @staticmethod
 *     def from_name(             # <<<<<<<<<<<<<<
 *         coordinate_operation_name,
 *         auth_name=None,
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_16from_name(PyObject *__pyx_v_coordinate_operation_name, PyObject *__pyx_v_auth_name, PyObject *__pyx_v_coordinate_operation_type) {
  PyObject *__pyx_v_pj_coordinate_operation_type = NULL;
  PJ_CONTEXT *__pyx_v_context;
  PJ *__pyx_v_coordinate_operation_pj;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PJ_TYPE __pyx_t_5;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  __Pyx_RefNannySetupContext("from_name", 0);

  /* "pyproj/_crs.pyx":2127
 *         CoordinateOperation
 *         """
 *         pj_coordinate_operation_type = _PJ_COORDINATE_OPERATION_TYPE_MAP[             # <<<<<<<<<<<<<<
 *             CoordinateOperationType.create(coordinate_operation_type)
 *         ]
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_PJ_COORDINATE_OPERATION_TYPE_MA); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2127, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);

  /* "pyproj/_crs.pyx":2128
 *         """
 *         pj_coordinate_operation_type = _PJ_COORDINATE_OPERATION_TYPE_MAP[
 *             CoordinateOperationType.create(coordinate_operation_type)             # <<<<<<<<<<<<<<
 *         ]
 *         cdef PJ_CONTEXT* context = proj_context_create()
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_CoordinateOperationType); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2128, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_create); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2128, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
    }
  }
  __pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_3, __pyx_v_coordinate_operation_type) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_coordinate_operation_type);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2128, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "pyproj/_crs.pyx":2127
 *         CoordinateOperation
 *         """
 *         pj_coordinate_operation_type = _PJ_COORDINATE_OPERATION_TYPE_MAP[             # <<<<<<<<<<<<<<
 *             CoordinateOperationType.create(coordinate_operation_type)
 *         ]
 */
  __pyx_t_4 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2127, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_pj_coordinate_operation_type = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "pyproj/_crs.pyx":2130
 *             CoordinateOperationType.create(coordinate_operation_type)
 *         ]
 *         cdef PJ_CONTEXT* context = proj_context_create()             # <<<<<<<<<<<<<<
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* coordinate_operation_pj = _from_name(
 */
  __pyx_v_context = proj_context_create();

  /* "pyproj/_crs.pyx":2131
 *         ]
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)             # <<<<<<<<<<<<<<
 *         cdef PJ* coordinate_operation_pj = _from_name(
 *             context,
 */
  __pyx_f_6pyproj_8_datadir_pyproj_context_initialize(__pyx_v_context, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2131, __pyx_L1_error)

  /* "pyproj/_crs.pyx":2136
 *             coordinate_operation_name,
 *             auth_name,
 *             <PJ_TYPE>pj_coordinate_operation_type,             # <<<<<<<<<<<<<<
 *         )
 *         if coordinate_operation_pj == NULL:
 */
  __pyx_t_5 = ((PJ_TYPE)__Pyx_PyInt_As_PJ_TYPE(__pyx_v_pj_coordinate_operation_type)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2136, __pyx_L1_error)

  /* "pyproj/_crs.pyx":2132
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* coordinate_operation_pj = _from_name(             # <<<<<<<<<<<<<<
 *             context,
 *             coordinate_operation_name,
 */
  __pyx_v_coordinate_operation_pj = __pyx_f_6pyproj_4_crs__from_name(__pyx_v_context, __pyx_v_coordinate_operation_name, __pyx_v_auth_name, ((PJ_TYPE)__pyx_t_5));

  /* "pyproj/_crs.pyx":2138
 *             <PJ_TYPE>pj_coordinate_operation_type,
 *         )
 *         if coordinate_operation_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             raise CRSError(
 */
  __pyx_t_6 = ((__pyx_v_coordinate_operation_pj == NULL) != 0);
  if (unlikely(__pyx_t_6)) {

    /* "pyproj/_crs.pyx":2139
 *         )
 *         if coordinate_operation_pj == NULL:
 *             proj_context_destroy(context)             # <<<<<<<<<<<<<<
 *             raise CRSError(
 *                 "Invalid coordinate operation name: {}".format(
 */
    (void)(proj_context_destroy(__pyx_v_context));

    /* "pyproj/_crs.pyx":2140
 *         if coordinate_operation_pj == NULL:
 *             proj_context_destroy(context)
 *             raise CRSError(             # <<<<<<<<<<<<<<
 *                 "Invalid coordinate operation name: {}".format(
 *                     pystrdecode(coordinate_operation_name)
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2140, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);

    /* "pyproj/_crs.pyx":2141
 *             proj_context_destroy(context)
 *             raise CRSError(
 *                 "Invalid coordinate operation name: {}".format(             # <<<<<<<<<<<<<<
 *                     pystrdecode(coordinate_operation_name)
 *                 )
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_Invalid_coordinate_operation_nam, __pyx_n_s_format); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2141, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);

    /* "pyproj/_crs.pyx":2142
 *             raise CRSError(
 *                 "Invalid coordinate operation name: {}".format(
 *                     pystrdecode(coordinate_operation_name)             # <<<<<<<<<<<<<<
 *                 )
 *             )
 */
    __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_pystrdecode); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2142, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_9 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_9)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_9);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_7 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_9, __pyx_v_coordinate_operation_name) : __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_v_coordinate_operation_name);
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2142, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
      __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_3);
      if (likely(__pyx_t_8)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
        __Pyx_INCREF(__pyx_t_8);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_3, function);
      }
    }
    __pyx_t_1 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_8, __pyx_t_7) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_7);
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2141, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_3)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_3);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_4 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_t_1) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_1);
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2140, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 2140, __pyx_L1_error)

    /* "pyproj/_crs.pyx":2138
 *             <PJ_TYPE>pj_coordinate_operation_type,
 *         )
 *         if coordinate_operation_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             raise CRSError(
 */
  }

  /* "pyproj/_crs.pyx":2145
 *                 )
 *             )
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         return CoordinateOperation.create(context, coordinate_operation_pj)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_clear); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
    }
  }
  __pyx_t_4 = (__pyx_t_2) ? __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_2) : __Pyx_PyObject_CallNoArg(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "pyproj/_crs.pyx":2146
 *             )
 *         CRSError.clear()
 *         return CoordinateOperation.create(context, coordinate_operation_pj)             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_4 = ((PyObject *)__pyx_f_6pyproj_4_crs_19CoordinateOperation_create(__pyx_v_context, __pyx_v_coordinate_operation_pj)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2146, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2099
 * 
 *     @staticmethod
 *     def from_name(             # <<<<<<<<<<<<<<
 *         coordinate_operation_name,
 *         auth_name=None,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("pyproj._crs.CoordinateOperation.from_name", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_pj_coordinate_operation_type);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2149
 * 
 *     @property
 *     def params(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_6params_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_6params_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_6params___get__(((struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_6params___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self) {
  int __pyx_v_num_params;
  long __pyx_v_param_idx;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "pyproj/_crs.pyx":2156
 *             The coordinate operation parameters.
 *         """
 *         if self._params is not None:             # <<<<<<<<<<<<<<
 *             return self._params
 *         self._params = []
 */
  __pyx_t_1 = (__pyx_v_self->_params != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2157
 *         """
 *         if self._params is not None:
 *             return self._params             # <<<<<<<<<<<<<<
 *         self._params = []
 *         cdef int num_params = 0
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_self->_params);
    __pyx_r = __pyx_v_self->_params;
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2156
 *             The coordinate operation parameters.
 *         """
 *         if self._params is not None:             # <<<<<<<<<<<<<<
 *             return self._params
 *         self._params = []
 */
  }

  /* "pyproj/_crs.pyx":2158
 *         if self._params is not None:
 *             return self._params
 *         self._params = []             # <<<<<<<<<<<<<<
 *         cdef int num_params = 0
 *         num_params = proj_coordoperation_get_param_count(
 */
  __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_GOTREF(__pyx_v_self->_params);
  __Pyx_DECREF(__pyx_v_self->_params);
  __pyx_v_self->_params = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":2159
 *             return self._params
 *         self._params = []
 *         cdef int num_params = 0             # <<<<<<<<<<<<<<
 *         num_params = proj_coordoperation_get_param_count(
 *             self.context,
 */
  __pyx_v_num_params = 0;

  /* "pyproj/_crs.pyx":2160
 *         self._params = []
 *         cdef int num_params = 0
 *         num_params = proj_coordoperation_get_param_count(             # <<<<<<<<<<<<<<
 *             self.context,
 *             self.projobj
 */
  __pyx_v_num_params = proj_coordoperation_get_param_count(__pyx_v_self->__pyx_base.__pyx_base.context, __pyx_v_self->__pyx_base.__pyx_base.projobj);

  /* "pyproj/_crs.pyx":2164
 *             self.projobj
 *         )
 *         for param_idx from 0 <= param_idx < num_params:             # <<<<<<<<<<<<<<
 *             self._params.append(
 *                 Param.create(
 */
  __pyx_t_4 = __pyx_v_num_params;
  for (__pyx_v_param_idx = 0; __pyx_v_param_idx < __pyx_t_4; __pyx_v_param_idx++) {

    /* "pyproj/_crs.pyx":2166
 *         for param_idx from 0 <= param_idx < num_params:
 *             self._params.append(
 *                 Param.create(             # <<<<<<<<<<<<<<
 *                     self.context,
 *                     self.projobj,
 */
    __pyx_t_3 = ((PyObject *)__pyx_f_6pyproj_4_crs_5Param_create(__pyx_v_self->__pyx_base.__pyx_base.context, __pyx_v_self->__pyx_base.__pyx_base.projobj, __pyx_v_param_idx)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2166, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);

    /* "pyproj/_crs.pyx":2165
 *         )
 *         for param_idx from 0 <= param_idx < num_params:
 *             self._params.append(             # <<<<<<<<<<<<<<
 *                 Param.create(
 *                     self.context,
 */
    __pyx_t_5 = __Pyx_PyObject_Append(__pyx_v_self->_params, __pyx_t_3); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 2165, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }

  /* "pyproj/_crs.pyx":2172
 *                 )
 *             )
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         return self._params
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2172, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_clear); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2172, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_7, function);
    }
  }
  __pyx_t_3 = (__pyx_t_6) ? __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_6) : __Pyx_PyObject_CallNoArg(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2172, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":2173
 *             )
 *         CRSError.clear()
 *         return self._params             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_params);
  __pyx_r = __pyx_v_self->_params;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2149
 * 
 *     @property
 *     def params(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("pyproj._crs.CoordinateOperation.params.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2176
 * 
 *     @property
 *     def grids(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_5grids_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_5grids_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_5grids___get__(((struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_5grids___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self) {
  int __pyx_v_num_grids;
  long __pyx_v_grid_idx;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "pyproj/_crs.pyx":2183
 *             The coordinate operation grids.
 *         """
 *         if self._grids is not None:             # <<<<<<<<<<<<<<
 *             return self._grids
 *         self._grids = []
 */
  __pyx_t_1 = (__pyx_v_self->_grids != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2184
 *         """
 *         if self._grids is not None:
 *             return self._grids             # <<<<<<<<<<<<<<
 *         self._grids = []
 *         cdef int num_grids = 0
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_self->_grids);
    __pyx_r = __pyx_v_self->_grids;
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2183
 *             The coordinate operation grids.
 *         """
 *         if self._grids is not None:             # <<<<<<<<<<<<<<
 *             return self._grids
 *         self._grids = []
 */
  }

  /* "pyproj/_crs.pyx":2185
 *         if self._grids is not None:
 *             return self._grids
 *         self._grids = []             # <<<<<<<<<<<<<<
 *         cdef int num_grids = 0
 *         num_grids = proj_coordoperation_get_grid_used_count(
 */
  __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2185, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_GOTREF(__pyx_v_self->_grids);
  __Pyx_DECREF(__pyx_v_self->_grids);
  __pyx_v_self->_grids = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":2186
 *             return self._grids
 *         self._grids = []
 *         cdef int num_grids = 0             # <<<<<<<<<<<<<<
 *         num_grids = proj_coordoperation_get_grid_used_count(
 *             self.context,
 */
  __pyx_v_num_grids = 0;

  /* "pyproj/_crs.pyx":2187
 *         self._grids = []
 *         cdef int num_grids = 0
 *         num_grids = proj_coordoperation_get_grid_used_count(             # <<<<<<<<<<<<<<
 *             self.context,
 *             self.projobj
 */
  __pyx_v_num_grids = proj_coordoperation_get_grid_used_count(__pyx_v_self->__pyx_base.__pyx_base.context, __pyx_v_self->__pyx_base.__pyx_base.projobj);

  /* "pyproj/_crs.pyx":2191
 *             self.projobj
 *         )
 *         for grid_idx from 0 <= grid_idx < num_grids:             # <<<<<<<<<<<<<<
 *             self._grids.append(
 *                 Grid.create(
 */
  __pyx_t_4 = __pyx_v_num_grids;
  for (__pyx_v_grid_idx = 0; __pyx_v_grid_idx < __pyx_t_4; __pyx_v_grid_idx++) {

    /* "pyproj/_crs.pyx":2193
 *         for grid_idx from 0 <= grid_idx < num_grids:
 *             self._grids.append(
 *                 Grid.create(             # <<<<<<<<<<<<<<
 *                     self.context,
 *                     self.projobj,
 */
    __pyx_t_3 = ((PyObject *)__pyx_f_6pyproj_4_crs_4Grid_create(__pyx_v_self->__pyx_base.__pyx_base.context, __pyx_v_self->__pyx_base.__pyx_base.projobj, __pyx_v_grid_idx)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2193, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);

    /* "pyproj/_crs.pyx":2192
 *         )
 *         for grid_idx from 0 <= grid_idx < num_grids:
 *             self._grids.append(             # <<<<<<<<<<<<<<
 *                 Grid.create(
 *                     self.context,
 */
    __pyx_t_5 = __Pyx_PyObject_Append(__pyx_v_self->_grids, __pyx_t_3); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 2192, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }

  /* "pyproj/_crs.pyx":2199
 *                 )
 *             )
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         return self._grids
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2199, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_clear); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2199, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_7);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_7, function);
    }
  }
  __pyx_t_3 = (__pyx_t_6) ? __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_6) : __Pyx_PyObject_CallNoArg(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2199, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":2200
 *             )
 *         CRSError.clear()
 *         return self._grids             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_grids);
  __pyx_r = __pyx_v_self->_grids;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2176
 * 
 *     @property
 *     def grids(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("pyproj._crs.CoordinateOperation.grids.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2203
 * 
 *     @property
 *     def area_of_use(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_11area_of_use_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_11area_of_use_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_11area_of_use___get__(((struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_11area_of_use___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "pyproj/_crs.pyx":2210
 *             The area of use object with associated attributes.
 *         """
 *         if self._area_of_use is not None:             # <<<<<<<<<<<<<<
 *             return self._area_of_use
 *         self._area_of_use = AreaOfUse.create(self.context, self.projobj)
 */
  __pyx_t_1 = (__pyx_v_self->_area_of_use != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2211
 *         """
 *         if self._area_of_use is not None:
 *             return self._area_of_use             # <<<<<<<<<<<<<<
 *         self._area_of_use = AreaOfUse.create(self.context, self.projobj)
 *         return self._area_of_use
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_self->_area_of_use);
    __pyx_r = __pyx_v_self->_area_of_use;
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2210
 *             The area of use object with associated attributes.
 *         """
 *         if self._area_of_use is not None:             # <<<<<<<<<<<<<<
 *             return self._area_of_use
 *         self._area_of_use = AreaOfUse.create(self.context, self.projobj)
 */
  }

  /* "pyproj/_crs.pyx":2212
 *         if self._area_of_use is not None:
 *             return self._area_of_use
 *         self._area_of_use = AreaOfUse.create(self.context, self.projobj)             # <<<<<<<<<<<<<<
 *         return self._area_of_use
 * 
 */
  __pyx_t_3 = ((PyObject *)__pyx_f_6pyproj_4_crs_9AreaOfUse_create(__pyx_v_self->__pyx_base.__pyx_base.context, __pyx_v_self->__pyx_base.__pyx_base.projobj)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2212, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_GOTREF(__pyx_v_self->_area_of_use);
  __Pyx_DECREF(__pyx_v_self->_area_of_use);
  __pyx_v_self->_area_of_use = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":2213
 *             return self._area_of_use
 *         self._area_of_use = AreaOfUse.create(self.context, self.projobj)
 *         return self._area_of_use             # <<<<<<<<<<<<<<
 * 
 *     def to_proj4(self, version=ProjVersion.PROJ_5):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_area_of_use);
  __pyx_r = __pyx_v_self->_area_of_use;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2203
 * 
 *     @property
 *     def area_of_use(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("pyproj._crs.CoordinateOperation.area_of_use.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2215
 *         return self._area_of_use
 * 
 *     def to_proj4(self, version=ProjVersion.PROJ_5):             # <<<<<<<<<<<<<<
 *         """
 *         Convert the projection to a PROJ string.
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_19to_proj4(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_19CoordinateOperation_18to_proj4[] = "CoordinateOperation.to_proj4(self, version=ProjVersion.PROJ_5)\n\n        Convert the projection to a PROJ string.\n\n        Parameters\n        ----------\n        version: pyproj.enums.ProjVersion\n            The version of the PROJ string output.\n            Default is :attr:`pyproj.enums.ProjVersion.PROJ_5`.\n\n        Returns\n        -------\n        str:\n            The PROJ string.\n\n        ";
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_19to_proj4(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_version = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_proj4 (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_version,0};
    PyObject* values[1] = {0};
    values[0] = __pyx_k__34;
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_version);
          if (value) { values[0] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "to_proj4") < 0)) __PYX_ERR(0, 2215, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_version = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("to_proj4", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2215, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs.CoordinateOperation.to_proj4", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_18to_proj4(((struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *)__pyx_v_self), __pyx_v_version);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_18to_proj4(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self, PyObject *__pyx_v_version) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("to_proj4", 0);

  /* "pyproj/_crs.pyx":2231
 * 
 *         """
 *         return _to_proj4(self.context, self.projobj, version)             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_6pyproj_4_crs__to_proj4(__pyx_v_self->__pyx_base.__pyx_base.context, __pyx_v_self->__pyx_base.__pyx_base.projobj, __pyx_v_version); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2231, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2215
 *         return self._area_of_use
 * 
 *     def to_proj4(self, version=ProjVersion.PROJ_5):             # <<<<<<<<<<<<<<
 *         """
 *         Convert the projection to a PROJ string.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.CoordinateOperation.to_proj4", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2234
 * 
 *     @property
 *     def towgs84(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_7towgs84_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_7towgs84_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_7towgs84___get__(((struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_7towgs84___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self) {
  PyObject *__pyx_v_towgs84_dict = NULL;
  PyObject *__pyx_v_param = NULL;
  PyObject *__pyx_8genexpr1__pyx_v_val = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  Py_ssize_t __pyx_t_6;
  PyObject *(*__pyx_t_7)(PyObject *);
  Py_ssize_t __pyx_t_8;
  int __pyx_t_9;
  int __pyx_t_10;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "pyproj/_crs.pyx":2242
 * 
 *         """
 *         if self._towgs84 is not None:             # <<<<<<<<<<<<<<
 *             return self._towgs84
 *         towgs84_dict = OrderedDict(
 */
  __pyx_t_1 = (__pyx_v_self->_towgs84 != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2243
 *         """
 *         if self._towgs84 is not None:
 *             return self._towgs84             # <<<<<<<<<<<<<<
 *         towgs84_dict = OrderedDict(
 *             (
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_self->_towgs84);
    __pyx_r = __pyx_v_self->_towgs84;
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2242
 * 
 *         """
 *         if self._towgs84 is not None:             # <<<<<<<<<<<<<<
 *             return self._towgs84
 *         towgs84_dict = OrderedDict(
 */
  }

  /* "pyproj/_crs.pyx":2244
 *         if self._towgs84 is not None:
 *             return self._towgs84
 *         towgs84_dict = OrderedDict(             # <<<<<<<<<<<<<<
 *             (
 *                 ('X-axis translation', None),
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_OrderedDict); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2244, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);

  /* "pyproj/_crs.pyx":2246
 *         towgs84_dict = OrderedDict(
 *             (
 *                 ('X-axis translation', None),             # <<<<<<<<<<<<<<
 *                 ('Y-axis translation', None),
 *                 ('Z-axis translation', None),
 */
  __pyx_t_5 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
    }
  }
  __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_tuple__42) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_tuple__42);
  __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2244, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_towgs84_dict = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":2255
 *             )
 *         )
 *         for param in self.params:             # <<<<<<<<<<<<<<
 *             if param.name in towgs84_dict:
 *                 towgs84_dict[param.name] = param.value
 */
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_params); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) {
    __pyx_t_4 = __pyx_t_3; __Pyx_INCREF(__pyx_t_4); __pyx_t_6 = 0;
    __pyx_t_7 = NULL;
  } else {
    __pyx_t_6 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2255, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_7 = Py_TYPE(__pyx_t_4)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2255, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  for (;;) {
    if (likely(!__pyx_t_7)) {
      if (likely(PyList_CheckExact(__pyx_t_4))) {
        if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_4)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_3 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_6); __Pyx_INCREF(__pyx_t_3); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(0, 2255, __pyx_L1_error)
        #else
        __pyx_t_3 = PySequence_ITEM(__pyx_t_4, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2255, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        #endif
      } else {
        if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_4)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_6); __Pyx_INCREF(__pyx_t_3); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(0, 2255, __pyx_L1_error)
        #else
        __pyx_t_3 = PySequence_ITEM(__pyx_t_4, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2255, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        #endif
      }
    } else {
      __pyx_t_3 = __pyx_t_7(__pyx_t_4);
      if (unlikely(!__pyx_t_3)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
          else __PYX_ERR(0, 2255, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_XDECREF_SET(__pyx_v_param, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "pyproj/_crs.pyx":2256
 *         )
 *         for param in self.params:
 *             if param.name in towgs84_dict:             # <<<<<<<<<<<<<<
 *                 towgs84_dict[param.name] = param.value
 *         self._towgs84 = [val for val in towgs84_dict.values() if val is not None]
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_param, __pyx_n_s_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2256, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_3, __pyx_v_towgs84_dict, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 2256, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_1 = (__pyx_t_2 != 0);
    if (__pyx_t_1) {

      /* "pyproj/_crs.pyx":2257
 *         for param in self.params:
 *             if param.name in towgs84_dict:
 *                 towgs84_dict[param.name] = param.value             # <<<<<<<<<<<<<<
 *         self._towgs84 = [val for val in towgs84_dict.values() if val is not None]
 *         return self._towgs84
 */
      __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_param, __pyx_n_s_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2257, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_param, __pyx_n_s_name); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2257, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      if (unlikely(PyObject_SetItem(__pyx_v_towgs84_dict, __pyx_t_5, __pyx_t_3) < 0)) __PYX_ERR(0, 2257, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

      /* "pyproj/_crs.pyx":2256
 *         )
 *         for param in self.params:
 *             if param.name in towgs84_dict:             # <<<<<<<<<<<<<<
 *                 towgs84_dict[param.name] = param.value
 *         self._towgs84 = [val for val in towgs84_dict.values() if val is not None]
 */
    }

    /* "pyproj/_crs.pyx":2255
 *             )
 *         )
 *         for param in self.params:             # <<<<<<<<<<<<<<
 *             if param.name in towgs84_dict:
 *                 towgs84_dict[param.name] = param.value
 */
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "pyproj/_crs.pyx":2258
 *             if param.name in towgs84_dict:
 *                 towgs84_dict[param.name] = param.value
 *         self._towgs84 = [val for val in towgs84_dict.values() if val is not None]             # <<<<<<<<<<<<<<
 *         return self._towgs84
 * 
 */
  { /* enter inner scope */
    __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2258, __pyx_L9_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = 0;
    if (unlikely(__pyx_v_towgs84_dict == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "values");
      __PYX_ERR(0, 2258, __pyx_L9_error)
    }
    __pyx_t_5 = __Pyx_dict_iterator(__pyx_v_towgs84_dict, 0, __pyx_n_s_values, (&__pyx_t_8), (&__pyx_t_9)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2258, __pyx_L9_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_XDECREF(__pyx_t_3);
    __pyx_t_3 = __pyx_t_5;
    __pyx_t_5 = 0;
    while (1) {
      __pyx_t_10 = __Pyx_dict_iter_next(__pyx_t_3, __pyx_t_8, &__pyx_t_6, NULL, &__pyx_t_5, NULL, __pyx_t_9);
      if (unlikely(__pyx_t_10 == 0)) break;
      if (unlikely(__pyx_t_10 == -1)) __PYX_ERR(0, 2258, __pyx_L9_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_XDECREF_SET(__pyx_8genexpr1__pyx_v_val, __pyx_t_5);
      __pyx_t_5 = 0;
      __pyx_t_1 = (__pyx_8genexpr1__pyx_v_val != Py_None);
      __pyx_t_2 = (__pyx_t_1 != 0);
      if (__pyx_t_2) {
        if (unlikely(__Pyx_ListComp_Append(__pyx_t_4, (PyObject*)__pyx_8genexpr1__pyx_v_val))) __PYX_ERR(0, 2258, __pyx_L9_error)
      }
    }
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_val); __pyx_8genexpr1__pyx_v_val = 0;
    goto __pyx_L13_exit_scope;
    __pyx_L9_error:;
    __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_val); __pyx_8genexpr1__pyx_v_val = 0;
    goto __pyx_L1_error;
    __pyx_L13_exit_scope:;
  } /* exit inner scope */
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_GOTREF(__pyx_v_self->_towgs84);
  __Pyx_DECREF(__pyx_v_self->_towgs84);
  __pyx_v_self->_towgs84 = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "pyproj/_crs.pyx":2259
 *                 towgs84_dict[param.name] = param.value
 *         self._towgs84 = [val for val in towgs84_dict.values() if val is not None]
 *         return self._towgs84             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_towgs84);
  __pyx_r = __pyx_v_self->_towgs84;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2234
 * 
 *     @property
 *     def towgs84(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs.CoordinateOperation.towgs84.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_towgs84_dict);
  __Pyx_XDECREF(__pyx_v_param);
  __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_val);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2262
 * 
 *     @property
 *     def operations(self):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_10operations_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_10operations_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_10operations___get__(((struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_10operations___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "pyproj/_crs.pyx":2272
 * 
 *         """
 *         if self._operations is not None:             # <<<<<<<<<<<<<<
 *             return self._operations
 *         self._operations = _get_concatenated_operations(self.context, self.projobj)
 */
  __pyx_t_1 = (__pyx_v_self->_operations != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2273
 *         """
 *         if self._operations is not None:
 *             return self._operations             # <<<<<<<<<<<<<<
 *         self._operations = _get_concatenated_operations(self.context, self.projobj)
 *         return self._operations
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_self->_operations);
    __pyx_r = __pyx_v_self->_operations;
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2272
 * 
 *         """
 *         if self._operations is not None:             # <<<<<<<<<<<<<<
 *             return self._operations
 *         self._operations = _get_concatenated_operations(self.context, self.projobj)
 */
  }

  /* "pyproj/_crs.pyx":2274
 *         if self._operations is not None:
 *             return self._operations
 *         self._operations = _get_concatenated_operations(self.context, self.projobj)             # <<<<<<<<<<<<<<
 *         return self._operations
 * 
 */
  __pyx_t_3 = __pyx_f_6pyproj_4_crs__get_concatenated_operations(__pyx_v_self->__pyx_base.__pyx_base.context, __pyx_v_self->__pyx_base.__pyx_base.projobj); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2274, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_GOTREF(__pyx_v_self->_operations);
  __Pyx_DECREF(__pyx_v_self->_operations);
  __pyx_v_self->_operations = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":2275
 *             return self._operations
 *         self._operations = _get_concatenated_operations(self.context, self.projobj)
 *         return self._operations             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_operations);
  __pyx_r = __pyx_v_self->_operations;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2262
 * 
 *     @property
 *     def operations(self):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("pyproj._crs.CoordinateOperation.operations.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2277
 *         return self._operations
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return (
 *             "<Coordinate Operation: {type_name}>\n"
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_21__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_21__repr__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_20__repr__(((struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_20__repr__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "pyproj/_crs.pyx":2278
 * 
 *     def __repr__(self):
 *         return (             # <<<<<<<<<<<<<<
 *             "<Coordinate Operation: {type_name}>\n"
 *             "Name: {name}\n"
 */
  __Pyx_XDECREF(__pyx_r);

  /* "pyproj/_crs.pyx":2283
 *             "Method: {method_name}\n"
 *             "Area of Use:\n{area_of_use}"
 *         ).format(             # <<<<<<<<<<<<<<
 *             type_name=self.type_name,
 *             name=self.name,
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_Coordinate_Operation_type_name, __pyx_n_s_format); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2283, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);

  /* "pyproj/_crs.pyx":2284
 *             "Area of Use:\n{area_of_use}"
 *         ).format(
 *             type_name=self.type_name,             # <<<<<<<<<<<<<<
 *             name=self.name,
 *             method_name=self.method_name,
 */
  __pyx_t_2 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2284, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_type_name, __pyx_v_self->type_name) < 0) __PYX_ERR(0, 2284, __pyx_L1_error)

  /* "pyproj/_crs.pyx":2285
 *         ).format(
 *             type_name=self.type_name,
 *             name=self.name,             # <<<<<<<<<<<<<<
 *             method_name=self.method_name,
 *             area_of_use=self.area_of_use or "- undefined",
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_name, __pyx_v_self->__pyx_base.__pyx_base.name) < 0) __PYX_ERR(0, 2284, __pyx_L1_error)

  /* "pyproj/_crs.pyx":2286
 *             type_name=self.type_name,
 *             name=self.name,
 *             method_name=self.method_name,             # <<<<<<<<<<<<<<
 *             area_of_use=self.area_of_use or "- undefined",
 *         )
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_method_name, __pyx_v_self->method_name) < 0) __PYX_ERR(0, 2284, __pyx_L1_error)

  /* "pyproj/_crs.pyx":2287
 *             name=self.name,
 *             method_name=self.method_name,
 *             area_of_use=self.area_of_use or "- undefined",             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_area_of_use); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2287, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2287, __pyx_L1_error)
  if (!__pyx_t_5) {
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  } else {
    __Pyx_INCREF(__pyx_t_4);
    __pyx_t_3 = __pyx_t_4;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    goto __pyx_L3_bool_binop_done;
  }
  __Pyx_INCREF(__pyx_kp_u_undefined_2);
  __pyx_t_3 = __pyx_kp_u_undefined_2;
  __pyx_L3_bool_binop_done:;
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_area_of_use, __pyx_t_3) < 0) __PYX_ERR(0, 2284, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":2283
 *             "Method: {method_name}\n"
 *             "Area of Use:\n{area_of_use}"
 *         ).format(             # <<<<<<<<<<<<<<
 *             type_name=self.type_name,
 *             name=self.name,
 */
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2283, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2277
 *         return self._operations
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return (
 *             "<Coordinate Operation: {type_name}>\n"
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("pyproj._crs.CoordinateOperation.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":106
 * 
 * cdef class CoordinateOperation(_CRSParts):
 *     cdef readonly object _params             # <<<<<<<<<<<<<<
 *     cdef readonly object _grids
 *     cdef readonly object _area_of_use
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_7_params_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_7_params_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_7_params___get__(((struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_7_params___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_params);
  __pyx_r = __pyx_v_self->_params;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":107
 * cdef class CoordinateOperation(_CRSParts):
 *     cdef readonly object _params
 *     cdef readonly object _grids             # <<<<<<<<<<<<<<
 *     cdef readonly object _area_of_use
 *     cdef readonly object method_name
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_6_grids_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_6_grids_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_6_grids___get__(((struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_6_grids___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_grids);
  __pyx_r = __pyx_v_self->_grids;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":108
 *     cdef readonly object _params
 *     cdef readonly object _grids
 *     cdef readonly object _area_of_use             # <<<<<<<<<<<<<<
 *     cdef readonly object method_name
 *     cdef readonly object method_auth_name
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_12_area_of_use_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_12_area_of_use_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_12_area_of_use___get__(((struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_12_area_of_use___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_area_of_use);
  __pyx_r = __pyx_v_self->_area_of_use;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":109
 *     cdef readonly object _grids
 *     cdef readonly object _area_of_use
 *     cdef readonly object method_name             # <<<<<<<<<<<<<<
 *     cdef readonly object method_auth_name
 *     cdef readonly object method_code
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_11method_name_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_11method_name_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_11method_name___get__(((struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_11method_name___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->method_name);
  __pyx_r = __pyx_v_self->method_name;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":110
 *     cdef readonly object _area_of_use
 *     cdef readonly object method_name
 *     cdef readonly object method_auth_name             # <<<<<<<<<<<<<<
 *     cdef readonly object method_code
 *     cdef readonly double accuracy
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_16method_auth_name_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_16method_auth_name_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_16method_auth_name___get__(((struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_16method_auth_name___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->method_auth_name);
  __pyx_r = __pyx_v_self->method_auth_name;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":111
 *     cdef readonly object method_name
 *     cdef readonly object method_auth_name
 *     cdef readonly object method_code             # <<<<<<<<<<<<<<
 *     cdef readonly double accuracy
 *     cdef readonly object is_instantiable
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_11method_code_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_11method_code_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_11method_code___get__(((struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_11method_code___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->method_code);
  __pyx_r = __pyx_v_self->method_code;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":112
 *     cdef readonly object method_auth_name
 *     cdef readonly object method_code
 *     cdef readonly double accuracy             # <<<<<<<<<<<<<<
 *     cdef readonly object is_instantiable
 *     cdef readonly object has_ballpark_transformation
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_8accuracy_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_8accuracy_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_8accuracy___get__(((struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_8accuracy___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->accuracy); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 112, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.CoordinateOperation.accuracy.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":113
 *     cdef readonly object method_code
 *     cdef readonly double accuracy
 *     cdef readonly object is_instantiable             # <<<<<<<<<<<<<<
 *     cdef readonly object has_ballpark_transformation
 *     cdef readonly object _towgs84
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_15is_instantiable_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_15is_instantiable_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_15is_instantiable___get__(((struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_15is_instantiable___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->is_instantiable);
  __pyx_r = __pyx_v_self->is_instantiable;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":114
 *     cdef readonly double accuracy
 *     cdef readonly object is_instantiable
 *     cdef readonly object has_ballpark_transformation             # <<<<<<<<<<<<<<
 *     cdef readonly object _towgs84
 *     cdef readonly object _operations
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_27has_ballpark_transformation_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_27has_ballpark_transformation_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_27has_ballpark_transformation___get__(((struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_27has_ballpark_transformation___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->has_ballpark_transformation);
  __pyx_r = __pyx_v_self->has_ballpark_transformation;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":115
 *     cdef readonly object is_instantiable
 *     cdef readonly object has_ballpark_transformation
 *     cdef readonly object _towgs84             # <<<<<<<<<<<<<<
 *     cdef readonly object _operations
 *     cdef readonly type_name
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_8_towgs84_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_8_towgs84_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_8_towgs84___get__(((struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_8_towgs84___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_towgs84);
  __pyx_r = __pyx_v_self->_towgs84;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":116
 *     cdef readonly object has_ballpark_transformation
 *     cdef readonly object _towgs84
 *     cdef readonly object _operations             # <<<<<<<<<<<<<<
 *     cdef readonly type_name
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_11_operations_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_11_operations_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_11_operations___get__(((struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_11_operations___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_operations);
  __pyx_r = __pyx_v_self->_operations;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":117
 *     cdef readonly object _towgs84
 *     cdef readonly object _operations
 *     cdef readonly type_name             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_9type_name_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_9type_name_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_9type_name___get__(((struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_9type_name___get__(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->type_name);
  __pyx_r = __pyx_v_self->type_name;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_23__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_6pyproj_4_crs_19CoordinateOperation_22__reduce_cython__[] = "CoordinateOperation.__reduce_cython__(self)";
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_23__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_22__reduce_cython__(((struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_22__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__43, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.CoordinateOperation.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_25__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static char __pyx_doc_6pyproj_4_crs_19CoordinateOperation_24__setstate_cython__[] = "CoordinateOperation.__setstate_cython__(self, __pyx_state)";
static PyObject *__pyx_pw_6pyproj_4_crs_19CoordinateOperation_25__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_19CoordinateOperation_24__setstate_cython__(((struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_19CoordinateOperation_24__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__44, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs.CoordinateOperation.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2316
 *     python CRS class.
 *     """
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._ellipsoid = None
 *         self._area_of_use = None
 */

/* Python wrapper */
static int __pyx_pw_6pyproj_4_crs_4_CRS_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_6pyproj_4_crs_4_CRS_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1;
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS___cinit__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6pyproj_4_crs_4_CRS___cinit__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "pyproj/_crs.pyx":2317
 *     """
 *     def __cinit__(self):
 *         self._ellipsoid = None             # <<<<<<<<<<<<<<
 *         self._area_of_use = None
 *         self._prime_meridian = None
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->_ellipsoid);
  __Pyx_DECREF(__pyx_v_self->_ellipsoid);
  __pyx_v_self->_ellipsoid = Py_None;

  /* "pyproj/_crs.pyx":2318
 *     def __cinit__(self):
 *         self._ellipsoid = None
 *         self._area_of_use = None             # <<<<<<<<<<<<<<
 *         self._prime_meridian = None
 *         self._datum = None
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->_area_of_use);
  __Pyx_DECREF(__pyx_v_self->_area_of_use);
  __pyx_v_self->_area_of_use = Py_None;

  /* "pyproj/_crs.pyx":2319
 *         self._ellipsoid = None
 *         self._area_of_use = None
 *         self._prime_meridian = None             # <<<<<<<<<<<<<<
 *         self._datum = None
 *         self._sub_crs_list = None
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->_prime_meridian);
  __Pyx_DECREF(__pyx_v_self->_prime_meridian);
  __pyx_v_self->_prime_meridian = Py_None;

  /* "pyproj/_crs.pyx":2320
 *         self._area_of_use = None
 *         self._prime_meridian = None
 *         self._datum = None             # <<<<<<<<<<<<<<
 *         self._sub_crs_list = None
 *         self._source_crs = None
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->_datum);
  __Pyx_DECREF(__pyx_v_self->_datum);
  __pyx_v_self->_datum = Py_None;

  /* "pyproj/_crs.pyx":2321
 *         self._prime_meridian = None
 *         self._datum = None
 *         self._sub_crs_list = None             # <<<<<<<<<<<<<<
 *         self._source_crs = None
 *         self._target_crs = None
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->_sub_crs_list);
  __Pyx_DECREF(__pyx_v_self->_sub_crs_list);
  __pyx_v_self->_sub_crs_list = Py_None;

  /* "pyproj/_crs.pyx":2322
 *         self._datum = None
 *         self._sub_crs_list = None
 *         self._source_crs = None             # <<<<<<<<<<<<<<
 *         self._target_crs = None
 *         self._geodetic_crs = None
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->_source_crs);
  __Pyx_DECREF(__pyx_v_self->_source_crs);
  __pyx_v_self->_source_crs = Py_None;

  /* "pyproj/_crs.pyx":2323
 *         self._sub_crs_list = None
 *         self._source_crs = None
 *         self._target_crs = None             # <<<<<<<<<<<<<<
 *         self._geodetic_crs = None
 *         self._coordinate_system = None
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->_target_crs);
  __Pyx_DECREF(__pyx_v_self->_target_crs);
  __pyx_v_self->_target_crs = Py_None;

  /* "pyproj/_crs.pyx":2324
 *         self._source_crs = None
 *         self._target_crs = None
 *         self._geodetic_crs = None             # <<<<<<<<<<<<<<
 *         self._coordinate_system = None
 *         self._coordinate_operation = None
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->_geodetic_crs);
  __Pyx_DECREF(__pyx_v_self->_geodetic_crs);
  __pyx_v_self->_geodetic_crs = Py_None;

  /* "pyproj/_crs.pyx":2325
 *         self._target_crs = None
 *         self._geodetic_crs = None
 *         self._coordinate_system = None             # <<<<<<<<<<<<<<
 *         self._coordinate_operation = None
 *         self.type_name = "undefined"
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->_coordinate_system);
  __Pyx_DECREF(__pyx_v_self->_coordinate_system);
  __pyx_v_self->_coordinate_system = Py_None;

  /* "pyproj/_crs.pyx":2326
 *         self._geodetic_crs = None
 *         self._coordinate_system = None
 *         self._coordinate_operation = None             # <<<<<<<<<<<<<<
 *         self.type_name = "undefined"
 * 
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->_coordinate_operation);
  __Pyx_DECREF(__pyx_v_self->_coordinate_operation);
  __pyx_v_self->_coordinate_operation = Py_None;

  /* "pyproj/_crs.pyx":2327
 *         self._coordinate_system = None
 *         self._coordinate_operation = None
 *         self.type_name = "undefined"             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, proj_string):
 */
  __Pyx_INCREF(__pyx_n_u_undefined);
  __Pyx_GIVEREF(__pyx_n_u_undefined);
  __Pyx_GOTREF(__pyx_v_self->type_name);
  __Pyx_DECREF(__pyx_v_self->type_name);
  __pyx_v_self->type_name = __pyx_n_u_undefined;

  /* "pyproj/_crs.pyx":2316
 *     python CRS class.
 *     """
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._ellipsoid = None
 *         self._area_of_use = None
 */

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2329
 *         self.type_name = "undefined"
 * 
 *     def __init__(self, proj_string):             # <<<<<<<<<<<<<<
 *         self.context = proj_context_create()
 *         pyproj_context_initialize(self.context, False)
 */

/* Python wrapper */
static int __pyx_pw_6pyproj_4_crs_4_CRS_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_6pyproj_4_crs_4_CRS_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_proj_string = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_proj_string,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_proj_string)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 2329, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_proj_string = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2329, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs._CRS.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_2__init__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self), __pyx_v_proj_string);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_6pyproj_4_crs_4_CRS_2__init__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self, PyObject *__pyx_v_proj_string) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  char const *__pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "pyproj/_crs.pyx":2330
 * 
 *     def __init__(self, proj_string):
 *         self.context = proj_context_create()             # <<<<<<<<<<<<<<
 *         pyproj_context_initialize(self.context, False)
 *         # initialize projection
 */
  __pyx_v_self->__pyx_base.context = proj_context_create();

  /* "pyproj/_crs.pyx":2331
 *     def __init__(self, proj_string):
 *         self.context = proj_context_create()
 *         pyproj_context_initialize(self.context, False)             # <<<<<<<<<<<<<<
 *         # initialize projection
 *         self.projobj = proj_create(
 */
  __pyx_f_6pyproj_8_datadir_pyproj_context_initialize(__pyx_v_self->__pyx_base.context, 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2331, __pyx_L1_error)

  /* "pyproj/_crs.pyx":2335
 *         self.projobj = proj_create(
 *             self.context,
 *             cstrencode(proj_string),             # <<<<<<<<<<<<<<
 *         )
 *         if self.projobj == NULL:
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_cstrencode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2335, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_v_proj_string) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_proj_string);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2335, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 2335, __pyx_L1_error)

  /* "pyproj/_crs.pyx":2333
 *         pyproj_context_initialize(self.context, False)
 *         # initialize projection
 *         self.projobj = proj_create(             # <<<<<<<<<<<<<<
 *             self.context,
 *             cstrencode(proj_string),
 */
  __pyx_v_self->__pyx_base.projobj = proj_create(__pyx_v_self->__pyx_base.context, __pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":2337
 *             cstrencode(proj_string),
 *         )
 *         if self.projobj == NULL:             # <<<<<<<<<<<<<<
 *             raise CRSError(
 *                 "Invalid projection: {}".format(pystrdecode(proj_string)))
 */
  __pyx_t_5 = ((__pyx_v_self->__pyx_base.projobj == NULL) != 0);
  if (unlikely(__pyx_t_5)) {

    /* "pyproj/_crs.pyx":2338
 *         )
 *         if self.projobj == NULL:
 *             raise CRSError(             # <<<<<<<<<<<<<<
 *                 "Invalid projection: {}".format(pystrdecode(proj_string)))
 *         # make sure the input is a CRS
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2338, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);

    /* "pyproj/_crs.pyx":2339
 *         if self.projobj == NULL:
 *             raise CRSError(
 *                 "Invalid projection: {}".format(pystrdecode(proj_string)))             # <<<<<<<<<<<<<<
 *         # make sure the input is a CRS
 *         if not proj_is_crs(self.projobj):
 */
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_Invalid_projection, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2339, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_pystrdecode); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2339, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_9 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) {
      __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8);
      if (likely(__pyx_t_9)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
        __Pyx_INCREF(__pyx_t_9);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_8, function);
      }
    }
    __pyx_t_7 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_9, __pyx_v_proj_string) : __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_v_proj_string);
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2339, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __pyx_t_8 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
      __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_6);
      if (likely(__pyx_t_8)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
        __Pyx_INCREF(__pyx_t_8);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_6, function);
      }
    }
    __pyx_t_3 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_8, __pyx_t_7) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_7);
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2339, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_1 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_6, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2338, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 2338, __pyx_L1_error)

    /* "pyproj/_crs.pyx":2337
 *             cstrencode(proj_string),
 *         )
 *         if self.projobj == NULL:             # <<<<<<<<<<<<<<
 *             raise CRSError(
 *                 "Invalid projection: {}".format(pystrdecode(proj_string)))
 */
  }

  /* "pyproj/_crs.pyx":2341
 *                 "Invalid projection: {}".format(pystrdecode(proj_string)))
 *         # make sure the input is a CRS
 *         if not proj_is_crs(self.projobj):             # <<<<<<<<<<<<<<
 *             raise CRSError("Input is not a CRS: {}".format(proj_string))
 *         # set proj information
 */
  __pyx_t_5 = ((!(proj_is_crs(__pyx_v_self->__pyx_base.projobj) != 0)) != 0);
  if (unlikely(__pyx_t_5)) {

    /* "pyproj/_crs.pyx":2342
 *         # make sure the input is a CRS
 *         if not proj_is_crs(self.projobj):
 *             raise CRSError("Input is not a CRS: {}".format(proj_string))             # <<<<<<<<<<<<<<
 *         # set proj information
 *         self.srs = pystrdecode(proj_string)
 */
    __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2342, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_kp_u_Input_is_not_a_CRS, __pyx_n_s_format); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2342, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = NULL;
    if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
      __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6);
      if (likely(__pyx_t_7)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6);
        __Pyx_INCREF(__pyx_t_7);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_6, function);
      }
    }
    __pyx_t_3 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_6, __pyx_t_7, __pyx_v_proj_string) : __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_v_proj_string);
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2342, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_6 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
      __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2);
      if (likely(__pyx_t_6)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
        __Pyx_INCREF(__pyx_t_6);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_2, function);
      }
    }
    __pyx_t_1 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_6, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2342, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 2342, __pyx_L1_error)

    /* "pyproj/_crs.pyx":2341
 *                 "Invalid projection: {}".format(pystrdecode(proj_string)))
 *         # make sure the input is a CRS
 *         if not proj_is_crs(self.projobj):             # <<<<<<<<<<<<<<
 *             raise CRSError("Input is not a CRS: {}".format(proj_string))
 *         # set proj information
 */
  }

  /* "pyproj/_crs.pyx":2344
 *             raise CRSError("Input is not a CRS: {}".format(proj_string))
 *         # set proj information
 *         self.srs = pystrdecode(proj_string)             # <<<<<<<<<<<<<<
 *         self._type = proj_get_type(self.projobj)
 *         self.type_name = _CRS_TYPE_MAP[self._type]
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_pystrdecode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2344, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_v_proj_string) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_proj_string);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2344, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->srs);
  __Pyx_DECREF(__pyx_v_self->srs);
  __pyx_v_self->srs = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":2345
 *         # set proj information
 *         self.srs = pystrdecode(proj_string)
 *         self._type = proj_get_type(self.projobj)             # <<<<<<<<<<<<<<
 *         self.type_name = _CRS_TYPE_MAP[self._type]
 *         self._set_base_info()
 */
  __pyx_v_self->_type = proj_get_type(__pyx_v_self->__pyx_base.projobj);

  /* "pyproj/_crs.pyx":2346
 *         self.srs = pystrdecode(proj_string)
 *         self._type = proj_get_type(self.projobj)
 *         self.type_name = _CRS_TYPE_MAP[self._type]             # <<<<<<<<<<<<<<
 *         self._set_base_info()
 *         CRSError.clear()
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_CRS_TYPE_MAP); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2346, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_From_PJ_TYPE(__pyx_v_self->_type); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2346, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2346, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_GOTREF(__pyx_v_self->type_name);
  __Pyx_DECREF(__pyx_v_self->type_name);
  __pyx_v_self->type_name = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":2347
 *         self._type = proj_get_type(self.projobj)
 *         self.type_name = _CRS_TYPE_MAP[self._type]
 *         self._set_base_info()             # <<<<<<<<<<<<<<
 *         CRSError.clear()
 * 
 */
  __pyx_t_3 = ((struct __pyx_vtabstruct_6pyproj_4_crs__CRS *)__pyx_v_self->__pyx_base.__pyx_vtab)->__pyx_base._set_base_info(((struct __pyx_obj_6pyproj_4_crs_Base *)__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2347, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":2348
 *         self.type_name = _CRS_TYPE_MAP[self._type]
 *         self._set_base_info()
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2348, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_clear); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2348, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
    }
  }
  __pyx_t_3 = (__pyx_t_2) ? __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_2) : __Pyx_PyObject_CallNoArg(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2348, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":2329
 *         self.type_name = "undefined"
 * 
 *     def __init__(self, proj_string):             # <<<<<<<<<<<<<<
 *         self.context = proj_context_create()
 *         pyproj_context_initialize(self.context, False)
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("pyproj._crs._CRS.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2351
 * 
 *     @property
 *     def axis_info(self):             # <<<<<<<<<<<<<<
 *         """
 *         Retrieves all relevant axis information in the CRS.
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_9axis_info_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_9axis_info_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_9axis_info___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_9axis_info___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PyObject *__pyx_v_axis_info_list = NULL;
  PyObject *__pyx_v_sub_crs = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  PyObject *(*__pyx_t_7)(PyObject *);
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "pyproj/_crs.pyx":2362
 *             The list of axis information.
 *         """
 *         axis_info_list = []             # <<<<<<<<<<<<<<
 *         if self.coordinate_system:
 *             axis_info_list.extend(self.coordinate_system.axis_list)
 */
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2362, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_axis_info_list = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":2363
 *         """
 *         axis_info_list = []
 *         if self.coordinate_system:             # <<<<<<<<<<<<<<
 *             axis_info_list.extend(self.coordinate_system.axis_list)
 *         elif self.is_bound and self.source_crs:
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_coordinate_system); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2363, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 2363, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2364
 *         axis_info_list = []
 *         if self.coordinate_system:
 *             axis_info_list.extend(self.coordinate_system.axis_list)             # <<<<<<<<<<<<<<
 *         elif self.is_bound and self.source_crs:
 *             axis_info_list.extend(self.source_crs.axis_info)
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_coordinate_system); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2364, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_axis_list); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2364, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_4 = __Pyx_PyList_Extend(__pyx_v_axis_info_list, __pyx_t_3); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 2364, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "pyproj/_crs.pyx":2363
 *         """
 *         axis_info_list = []
 *         if self.coordinate_system:             # <<<<<<<<<<<<<<
 *             axis_info_list.extend(self.coordinate_system.axis_list)
 *         elif self.is_bound and self.source_crs:
 */
    goto __pyx_L3;
  }

  /* "pyproj/_crs.pyx":2365
 *         if self.coordinate_system:
 *             axis_info_list.extend(self.coordinate_system.axis_list)
 *         elif self.is_bound and self.source_crs:             # <<<<<<<<<<<<<<
 *             axis_info_list.extend(self.source_crs.axis_info)
 *         else:
 */
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_is_bound); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2365, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2365, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_5) {
  } else {
    __pyx_t_2 = __pyx_t_5;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_source_crs); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2365, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2365, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_2 = __pyx_t_5;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2366
 *             axis_info_list.extend(self.coordinate_system.axis_list)
 *         elif self.is_bound and self.source_crs:
 *             axis_info_list.extend(self.source_crs.axis_info)             # <<<<<<<<<<<<<<
 *         else:
 *             for sub_crs in self.sub_crs_list:
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_source_crs); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2366, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_axis_info); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2366, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_4 = __Pyx_PyList_Extend(__pyx_v_axis_info_list, __pyx_t_1); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 2366, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "pyproj/_crs.pyx":2365
 *         if self.coordinate_system:
 *             axis_info_list.extend(self.coordinate_system.axis_list)
 *         elif self.is_bound and self.source_crs:             # <<<<<<<<<<<<<<
 *             axis_info_list.extend(self.source_crs.axis_info)
 *         else:
 */
    goto __pyx_L3;
  }

  /* "pyproj/_crs.pyx":2368
 *             axis_info_list.extend(self.source_crs.axis_info)
 *         else:
 *             for sub_crs in self.sub_crs_list:             # <<<<<<<<<<<<<<
 *                 axis_info_list.extend(sub_crs.axis_info)
 *         return axis_info_list
 */
  /*else*/ {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_sub_crs_list); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2368, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) {
      __pyx_t_3 = __pyx_t_1; __Pyx_INCREF(__pyx_t_3); __pyx_t_6 = 0;
      __pyx_t_7 = NULL;
    } else {
      __pyx_t_6 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2368, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_7 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2368, __pyx_L1_error)
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    for (;;) {
      if (likely(!__pyx_t_7)) {
        if (likely(PyList_CheckExact(__pyx_t_3))) {
          if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_3)) break;
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_1 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_6); __Pyx_INCREF(__pyx_t_1); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(0, 2368, __pyx_L1_error)
          #else
          __pyx_t_1 = PySequence_ITEM(__pyx_t_3, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2368, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          #endif
        } else {
          if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_3)) break;
          #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
          __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_6); __Pyx_INCREF(__pyx_t_1); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(0, 2368, __pyx_L1_error)
          #else
          __pyx_t_1 = PySequence_ITEM(__pyx_t_3, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2368, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_1);
          #endif
        }
      } else {
        __pyx_t_1 = __pyx_t_7(__pyx_t_3);
        if (unlikely(!__pyx_t_1)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
            else __PYX_ERR(0, 2368, __pyx_L1_error)
          }
          break;
        }
        __Pyx_GOTREF(__pyx_t_1);
      }
      __Pyx_XDECREF_SET(__pyx_v_sub_crs, __pyx_t_1);
      __pyx_t_1 = 0;

      /* "pyproj/_crs.pyx":2369
 *         else:
 *             for sub_crs in self.sub_crs_list:
 *                 axis_info_list.extend(sub_crs.axis_info)             # <<<<<<<<<<<<<<
 *         return axis_info_list
 * 
 */
      __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_sub_crs, __pyx_n_s_axis_info); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2369, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_4 = __Pyx_PyList_Extend(__pyx_v_axis_info_list, __pyx_t_1); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 2369, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

      /* "pyproj/_crs.pyx":2368
 *             axis_info_list.extend(self.source_crs.axis_info)
 *         else:
 *             for sub_crs in self.sub_crs_list:             # <<<<<<<<<<<<<<
 *                 axis_info_list.extend(sub_crs.axis_info)
 *         return axis_info_list
 */
    }
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "pyproj/_crs.pyx":2370
 *             for sub_crs in self.sub_crs_list:
 *                 axis_info_list.extend(sub_crs.axis_info)
 *         return axis_info_list             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_axis_info_list);
  __pyx_r = __pyx_v_axis_info_list;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2351
 * 
 *     @property
 *     def axis_info(self):             # <<<<<<<<<<<<<<
 *         """
 *         Retrieves all relevant axis information in the CRS.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("pyproj._crs._CRS.axis_info.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_axis_info_list);
  __Pyx_XDECREF(__pyx_v_sub_crs);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2373
 * 
 *     @property
 *     def area_of_use(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_11area_of_use_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_11area_of_use_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_11area_of_use___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_11area_of_use___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "pyproj/_crs.pyx":2380
 *             The area of use object with associated attributes.
 *         """
 *         if self._area_of_use is not None:             # <<<<<<<<<<<<<<
 *             return self._area_of_use
 *         self._area_of_use = AreaOfUse.create(self.context, self.projobj)
 */
  __pyx_t_1 = (__pyx_v_self->_area_of_use != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2381
 *         """
 *         if self._area_of_use is not None:
 *             return self._area_of_use             # <<<<<<<<<<<<<<
 *         self._area_of_use = AreaOfUse.create(self.context, self.projobj)
 *         return self._area_of_use
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_self->_area_of_use);
    __pyx_r = __pyx_v_self->_area_of_use;
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2380
 *             The area of use object with associated attributes.
 *         """
 *         if self._area_of_use is not None:             # <<<<<<<<<<<<<<
 *             return self._area_of_use
 *         self._area_of_use = AreaOfUse.create(self.context, self.projobj)
 */
  }

  /* "pyproj/_crs.pyx":2382
 *         if self._area_of_use is not None:
 *             return self._area_of_use
 *         self._area_of_use = AreaOfUse.create(self.context, self.projobj)             # <<<<<<<<<<<<<<
 *         return self._area_of_use
 * 
 */
  __pyx_t_3 = ((PyObject *)__pyx_f_6pyproj_4_crs_9AreaOfUse_create(__pyx_v_self->__pyx_base.context, __pyx_v_self->__pyx_base.projobj)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_GOTREF(__pyx_v_self->_area_of_use);
  __Pyx_DECREF(__pyx_v_self->_area_of_use);
  __pyx_v_self->_area_of_use = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":2383
 *             return self._area_of_use
 *         self._area_of_use = AreaOfUse.create(self.context, self.projobj)
 *         return self._area_of_use             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_area_of_use);
  __pyx_r = __pyx_v_self->_area_of_use;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2373
 * 
 *     @property
 *     def area_of_use(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("pyproj._crs._CRS.area_of_use.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2386
 * 
 *     @property
 *     def ellipsoid(self):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_9ellipsoid_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_9ellipsoid_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_9ellipsoid___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_9ellipsoid___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PJ_CONTEXT *__pyx_v_context;
  PJ *__pyx_v_ellipsoid_pj;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "pyproj/_crs.pyx":2395
 *             The ellipsoid object with associated attributes.
 *         """
 *         if self._ellipsoid is not None:             # <<<<<<<<<<<<<<
 *             return None if self._ellipsoid is False else self._ellipsoid
 *         cdef PJ_CONTEXT* context = proj_context_create()
 */
  __pyx_t_1 = (__pyx_v_self->_ellipsoid != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2396
 *         """
 *         if self._ellipsoid is not None:
 *             return None if self._ellipsoid is False else self._ellipsoid             # <<<<<<<<<<<<<<
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = (__pyx_v_self->_ellipsoid == Py_False);
    if ((__pyx_t_2 != 0)) {
      __Pyx_INCREF(Py_None);
      __pyx_t_3 = Py_None;
    } else {
      __Pyx_INCREF(__pyx_v_self->_ellipsoid);
      __pyx_t_3 = __pyx_v_self->_ellipsoid;
    }
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2395
 *             The ellipsoid object with associated attributes.
 *         """
 *         if self._ellipsoid is not None:             # <<<<<<<<<<<<<<
 *             return None if self._ellipsoid is False else self._ellipsoid
 *         cdef PJ_CONTEXT* context = proj_context_create()
 */
  }

  /* "pyproj/_crs.pyx":2397
 *         if self._ellipsoid is not None:
 *             return None if self._ellipsoid is False else self._ellipsoid
 *         cdef PJ_CONTEXT* context = proj_context_create()             # <<<<<<<<<<<<<<
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* ellipsoid_pj = proj_get_ellipsoid(
 */
  __pyx_v_context = proj_context_create();

  /* "pyproj/_crs.pyx":2398
 *             return None if self._ellipsoid is False else self._ellipsoid
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)             # <<<<<<<<<<<<<<
 *         cdef PJ* ellipsoid_pj = proj_get_ellipsoid(
 *             context,
 */
  __pyx_f_6pyproj_8_datadir_pyproj_context_initialize(__pyx_v_context, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2398, __pyx_L1_error)

  /* "pyproj/_crs.pyx":2399
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* ellipsoid_pj = proj_get_ellipsoid(             # <<<<<<<<<<<<<<
 *             context,
 *             self.projobj
 */
  __pyx_v_ellipsoid_pj = proj_get_ellipsoid(__pyx_v_context, __pyx_v_self->__pyx_base.projobj);

  /* "pyproj/_crs.pyx":2403
 *             self.projobj
 *         )
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         if ellipsoid_pj == NULL:
 *             proj_context_destroy(context)
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_clear); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_5, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":2404
 *         )
 *         CRSError.clear()
 *         if ellipsoid_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             self._ellipsoid = False
 */
  __pyx_t_2 = ((__pyx_v_ellipsoid_pj == NULL) != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2405
 *         CRSError.clear()
 *         if ellipsoid_pj == NULL:
 *             proj_context_destroy(context)             # <<<<<<<<<<<<<<
 *             self._ellipsoid = False
 *             return None
 */
    (void)(proj_context_destroy(__pyx_v_context));

    /* "pyproj/_crs.pyx":2406
 *         if ellipsoid_pj == NULL:
 *             proj_context_destroy(context)
 *             self._ellipsoid = False             # <<<<<<<<<<<<<<
 *             return None
 *         self._ellipsoid = Ellipsoid.create(context, ellipsoid_pj)
 */
    __Pyx_INCREF(Py_False);
    __Pyx_GIVEREF(Py_False);
    __Pyx_GOTREF(__pyx_v_self->_ellipsoid);
    __Pyx_DECREF(__pyx_v_self->_ellipsoid);
    __pyx_v_self->_ellipsoid = Py_False;

    /* "pyproj/_crs.pyx":2407
 *             proj_context_destroy(context)
 *             self._ellipsoid = False
 *             return None             # <<<<<<<<<<<<<<
 *         self._ellipsoid = Ellipsoid.create(context, ellipsoid_pj)
 *         return self._ellipsoid
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2404
 *         )
 *         CRSError.clear()
 *         if ellipsoid_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             self._ellipsoid = False
 */
  }

  /* "pyproj/_crs.pyx":2408
 *             self._ellipsoid = False
 *             return None
 *         self._ellipsoid = Ellipsoid.create(context, ellipsoid_pj)             # <<<<<<<<<<<<<<
 *         return self._ellipsoid
 * 
 */
  __pyx_t_3 = ((PyObject *)__pyx_f_6pyproj_4_crs_9Ellipsoid_create(__pyx_v_context, __pyx_v_ellipsoid_pj)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2408, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_GOTREF(__pyx_v_self->_ellipsoid);
  __Pyx_DECREF(__pyx_v_self->_ellipsoid);
  __pyx_v_self->_ellipsoid = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":2409
 *             return None
 *         self._ellipsoid = Ellipsoid.create(context, ellipsoid_pj)
 *         return self._ellipsoid             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_ellipsoid);
  __pyx_r = __pyx_v_self->_ellipsoid;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2386
 * 
 *     @property
 *     def ellipsoid(self):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs._CRS.ellipsoid.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2412
 * 
 *     @property
 *     def prime_meridian(self):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_14prime_meridian_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_14prime_meridian_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_14prime_meridian___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_14prime_meridian___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PJ_CONTEXT *__pyx_v_context;
  PJ *__pyx_v_prime_meridian_pj;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "pyproj/_crs.pyx":2421
 *             The prime meridian object with associated attributes.
 *         """
 *         if self._prime_meridian is not None:             # <<<<<<<<<<<<<<
 *             return None if self._prime_meridian is True else self._prime_meridian
 *         cdef PJ_CONTEXT* context = proj_context_create()
 */
  __pyx_t_1 = (__pyx_v_self->_prime_meridian != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2422
 *         """
 *         if self._prime_meridian is not None:
 *             return None if self._prime_meridian is True else self._prime_meridian             # <<<<<<<<<<<<<<
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = (__pyx_v_self->_prime_meridian == Py_True);
    if ((__pyx_t_2 != 0)) {
      __Pyx_INCREF(Py_None);
      __pyx_t_3 = Py_None;
    } else {
      __Pyx_INCREF(__pyx_v_self->_prime_meridian);
      __pyx_t_3 = __pyx_v_self->_prime_meridian;
    }
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2421
 *             The prime meridian object with associated attributes.
 *         """
 *         if self._prime_meridian is not None:             # <<<<<<<<<<<<<<
 *             return None if self._prime_meridian is True else self._prime_meridian
 *         cdef PJ_CONTEXT* context = proj_context_create()
 */
  }

  /* "pyproj/_crs.pyx":2423
 *         if self._prime_meridian is not None:
 *             return None if self._prime_meridian is True else self._prime_meridian
 *         cdef PJ_CONTEXT* context = proj_context_create()             # <<<<<<<<<<<<<<
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* prime_meridian_pj = proj_get_prime_meridian(
 */
  __pyx_v_context = proj_context_create();

  /* "pyproj/_crs.pyx":2424
 *             return None if self._prime_meridian is True else self._prime_meridian
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)             # <<<<<<<<<<<<<<
 *         cdef PJ* prime_meridian_pj = proj_get_prime_meridian(
 *             context,
 */
  __pyx_f_6pyproj_8_datadir_pyproj_context_initialize(__pyx_v_context, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2424, __pyx_L1_error)

  /* "pyproj/_crs.pyx":2425
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* prime_meridian_pj = proj_get_prime_meridian(             # <<<<<<<<<<<<<<
 *             context,
 *             self.projobj,
 */
  __pyx_v_prime_meridian_pj = proj_get_prime_meridian(__pyx_v_context, __pyx_v_self->__pyx_base.projobj);

  /* "pyproj/_crs.pyx":2429
 *             self.projobj,
 *         )
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         if prime_meridian_pj == NULL:
 *             proj_context_destroy(context)
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2429, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_clear); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2429, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_5, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2429, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":2430
 *         )
 *         CRSError.clear()
 *         if prime_meridian_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             self._prime_meridian = False
 */
  __pyx_t_2 = ((__pyx_v_prime_meridian_pj == NULL) != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2431
 *         CRSError.clear()
 *         if prime_meridian_pj == NULL:
 *             proj_context_destroy(context)             # <<<<<<<<<<<<<<
 *             self._prime_meridian = False
 *             return None
 */
    (void)(proj_context_destroy(__pyx_v_context));

    /* "pyproj/_crs.pyx":2432
 *         if prime_meridian_pj == NULL:
 *             proj_context_destroy(context)
 *             self._prime_meridian = False             # <<<<<<<<<<<<<<
 *             return None
 *         self._prime_meridian = PrimeMeridian.create(context, prime_meridian_pj)
 */
    __Pyx_INCREF(Py_False);
    __Pyx_GIVEREF(Py_False);
    __Pyx_GOTREF(__pyx_v_self->_prime_meridian);
    __Pyx_DECREF(__pyx_v_self->_prime_meridian);
    __pyx_v_self->_prime_meridian = Py_False;

    /* "pyproj/_crs.pyx":2433
 *             proj_context_destroy(context)
 *             self._prime_meridian = False
 *             return None             # <<<<<<<<<<<<<<
 *         self._prime_meridian = PrimeMeridian.create(context, prime_meridian_pj)
 *         return self._prime_meridian
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2430
 *         )
 *         CRSError.clear()
 *         if prime_meridian_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             self._prime_meridian = False
 */
  }

  /* "pyproj/_crs.pyx":2434
 *             self._prime_meridian = False
 *             return None
 *         self._prime_meridian = PrimeMeridian.create(context, prime_meridian_pj)             # <<<<<<<<<<<<<<
 *         return self._prime_meridian
 * 
 */
  __pyx_t_3 = ((PyObject *)__pyx_f_6pyproj_4_crs_13PrimeMeridian_create(__pyx_v_context, __pyx_v_prime_meridian_pj)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2434, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_GOTREF(__pyx_v_self->_prime_meridian);
  __Pyx_DECREF(__pyx_v_self->_prime_meridian);
  __pyx_v_self->_prime_meridian = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":2435
 *             return None
 *         self._prime_meridian = PrimeMeridian.create(context, prime_meridian_pj)
 *         return self._prime_meridian             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_prime_meridian);
  __pyx_r = __pyx_v_self->_prime_meridian;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2412
 * 
 *     @property
 *     def prime_meridian(self):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs._CRS.prime_meridian.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2438
 * 
 *     @property
 *     def datum(self):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_5datum_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_5datum_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_5datum___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_5datum___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PJ_CONTEXT *__pyx_v_context;
  PJ *__pyx_v_datum_pj;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "pyproj/_crs.pyx":2446
 *         Datum
 *         """
 *         if self._datum is not None:             # <<<<<<<<<<<<<<
 *             return None if self._datum is False else self._datum
 *         cdef PJ_CONTEXT* context = proj_context_create()
 */
  __pyx_t_1 = (__pyx_v_self->_datum != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2447
 *         """
 *         if self._datum is not None:
 *             return None if self._datum is False else self._datum             # <<<<<<<<<<<<<<
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = (__pyx_v_self->_datum == Py_False);
    if ((__pyx_t_2 != 0)) {
      __Pyx_INCREF(Py_None);
      __pyx_t_3 = Py_None;
    } else {
      __Pyx_INCREF(__pyx_v_self->_datum);
      __pyx_t_3 = __pyx_v_self->_datum;
    }
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2446
 *         Datum
 *         """
 *         if self._datum is not None:             # <<<<<<<<<<<<<<
 *             return None if self._datum is False else self._datum
 *         cdef PJ_CONTEXT* context = proj_context_create()
 */
  }

  /* "pyproj/_crs.pyx":2448
 *         if self._datum is not None:
 *             return None if self._datum is False else self._datum
 *         cdef PJ_CONTEXT* context = proj_context_create()             # <<<<<<<<<<<<<<
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* datum_pj = proj_crs_get_datum(
 */
  __pyx_v_context = proj_context_create();

  /* "pyproj/_crs.pyx":2449
 *             return None if self._datum is False else self._datum
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)             # <<<<<<<<<<<<<<
 *         cdef PJ* datum_pj = proj_crs_get_datum(
 *             context,
 */
  __pyx_f_6pyproj_8_datadir_pyproj_context_initialize(__pyx_v_context, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2449, __pyx_L1_error)

  /* "pyproj/_crs.pyx":2450
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* datum_pj = proj_crs_get_datum(             # <<<<<<<<<<<<<<
 *             context,
 *             self.projobj,
 */
  __pyx_v_datum_pj = proj_crs_get_datum(__pyx_v_context, __pyx_v_self->__pyx_base.projobj);

  /* "pyproj/_crs.pyx":2454
 *             self.projobj,
 *         )
 *         if datum_pj == NULL:             # <<<<<<<<<<<<<<
 *             datum_pj = proj_crs_get_horizontal_datum(
 *                 context,
 */
  __pyx_t_2 = ((__pyx_v_datum_pj == NULL) != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2455
 *         )
 *         if datum_pj == NULL:
 *             datum_pj = proj_crs_get_horizontal_datum(             # <<<<<<<<<<<<<<
 *                 context,
 *                 self.projobj,
 */
    __pyx_v_datum_pj = proj_crs_get_horizontal_datum(__pyx_v_context, __pyx_v_self->__pyx_base.projobj);

    /* "pyproj/_crs.pyx":2454
 *             self.projobj,
 *         )
 *         if datum_pj == NULL:             # <<<<<<<<<<<<<<
 *             datum_pj = proj_crs_get_horizontal_datum(
 *                 context,
 */
  }

  /* "pyproj/_crs.pyx":2459
 *                 self.projobj,
 *             )
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         if datum_pj == NULL:
 *             proj_context_destroy(context)
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2459, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_clear); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2459, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_5, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2459, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":2460
 *             )
 *         CRSError.clear()
 *         if datum_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             self._datum = False
 */
  __pyx_t_2 = ((__pyx_v_datum_pj == NULL) != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2461
 *         CRSError.clear()
 *         if datum_pj == NULL:
 *             proj_context_destroy(context)             # <<<<<<<<<<<<<<
 *             self._datum = False
 *             return None
 */
    (void)(proj_context_destroy(__pyx_v_context));

    /* "pyproj/_crs.pyx":2462
 *         if datum_pj == NULL:
 *             proj_context_destroy(context)
 *             self._datum = False             # <<<<<<<<<<<<<<
 *             return None
 *         self._datum = Datum.create(context, datum_pj)
 */
    __Pyx_INCREF(Py_False);
    __Pyx_GIVEREF(Py_False);
    __Pyx_GOTREF(__pyx_v_self->_datum);
    __Pyx_DECREF(__pyx_v_self->_datum);
    __pyx_v_self->_datum = Py_False;

    /* "pyproj/_crs.pyx":2463
 *             proj_context_destroy(context)
 *             self._datum = False
 *             return None             # <<<<<<<<<<<<<<
 *         self._datum = Datum.create(context, datum_pj)
 *         return self._datum
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2460
 *             )
 *         CRSError.clear()
 *         if datum_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             self._datum = False
 */
  }

  /* "pyproj/_crs.pyx":2464
 *             self._datum = False
 *             return None
 *         self._datum = Datum.create(context, datum_pj)             # <<<<<<<<<<<<<<
 *         return self._datum
 * 
 */
  __pyx_t_3 = ((PyObject *)__pyx_f_6pyproj_4_crs_5Datum_create(__pyx_v_context, __pyx_v_datum_pj)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2464, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_GOTREF(__pyx_v_self->_datum);
  __Pyx_DECREF(__pyx_v_self->_datum);
  __pyx_v_self->_datum = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":2465
 *             return None
 *         self._datum = Datum.create(context, datum_pj)
 *         return self._datum             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_datum);
  __pyx_r = __pyx_v_self->_datum;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2438
 * 
 *     @property
 *     def datum(self):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs._CRS.datum.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2468
 * 
 *     @property
 *     def coordinate_system(self):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_17coordinate_system_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_17coordinate_system_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_17coordinate_system___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_17coordinate_system___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PJ_CONTEXT *__pyx_v_context;
  PJ *__pyx_v_coord_system_pj;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "pyproj/_crs.pyx":2476
 *         CoordinateSystem
 *         """
 *         if self._coordinate_system is not None:             # <<<<<<<<<<<<<<
 *             return None if self._coordinate_system is False else self._coordinate_system
 *         cdef PJ_CONTEXT* context = proj_context_create()
 */
  __pyx_t_1 = (__pyx_v_self->_coordinate_system != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2477
 *         """
 *         if self._coordinate_system is not None:
 *             return None if self._coordinate_system is False else self._coordinate_system             # <<<<<<<<<<<<<<
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = (__pyx_v_self->_coordinate_system == Py_False);
    if ((__pyx_t_2 != 0)) {
      __Pyx_INCREF(Py_None);
      __pyx_t_3 = Py_None;
    } else {
      __Pyx_INCREF(__pyx_v_self->_coordinate_system);
      __pyx_t_3 = __pyx_v_self->_coordinate_system;
    }
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2476
 *         CoordinateSystem
 *         """
 *         if self._coordinate_system is not None:             # <<<<<<<<<<<<<<
 *             return None if self._coordinate_system is False else self._coordinate_system
 *         cdef PJ_CONTEXT* context = proj_context_create()
 */
  }

  /* "pyproj/_crs.pyx":2478
 *         if self._coordinate_system is not None:
 *             return None if self._coordinate_system is False else self._coordinate_system
 *         cdef PJ_CONTEXT* context = proj_context_create()             # <<<<<<<<<<<<<<
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* coord_system_pj = proj_crs_get_coordinate_system(
 */
  __pyx_v_context = proj_context_create();

  /* "pyproj/_crs.pyx":2479
 *             return None if self._coordinate_system is False else self._coordinate_system
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)             # <<<<<<<<<<<<<<
 *         cdef PJ* coord_system_pj = proj_crs_get_coordinate_system(
 *             context,
 */
  __pyx_f_6pyproj_8_datadir_pyproj_context_initialize(__pyx_v_context, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2479, __pyx_L1_error)

  /* "pyproj/_crs.pyx":2480
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* coord_system_pj = proj_crs_get_coordinate_system(             # <<<<<<<<<<<<<<
 *             context,
 *             self.projobj
 */
  __pyx_v_coord_system_pj = proj_crs_get_coordinate_system(__pyx_v_context, __pyx_v_self->__pyx_base.projobj);

  /* "pyproj/_crs.pyx":2484
 *             self.projobj
 *         )
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         if coord_system_pj == NULL:
 *             proj_context_destroy(context)
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_clear); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_5, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":2485
 *         )
 *         CRSError.clear()
 *         if coord_system_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             self._coordinate_system = False
 */
  __pyx_t_2 = ((__pyx_v_coord_system_pj == NULL) != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2486
 *         CRSError.clear()
 *         if coord_system_pj == NULL:
 *             proj_context_destroy(context)             # <<<<<<<<<<<<<<
 *             self._coordinate_system = False
 *             return None
 */
    (void)(proj_context_destroy(__pyx_v_context));

    /* "pyproj/_crs.pyx":2487
 *         if coord_system_pj == NULL:
 *             proj_context_destroy(context)
 *             self._coordinate_system = False             # <<<<<<<<<<<<<<
 *             return None
 * 
 */
    __Pyx_INCREF(Py_False);
    __Pyx_GIVEREF(Py_False);
    __Pyx_GOTREF(__pyx_v_self->_coordinate_system);
    __Pyx_DECREF(__pyx_v_self->_coordinate_system);
    __pyx_v_self->_coordinate_system = Py_False;

    /* "pyproj/_crs.pyx":2488
 *             proj_context_destroy(context)
 *             self._coordinate_system = False
 *             return None             # <<<<<<<<<<<<<<
 * 
 *         self._coordinate_system = CoordinateSystem.create(
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2485
 *         )
 *         CRSError.clear()
 *         if coord_system_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy(context)
 *             self._coordinate_system = False
 */
  }

  /* "pyproj/_crs.pyx":2490
 *             return None
 * 
 *         self._coordinate_system = CoordinateSystem.create(             # <<<<<<<<<<<<<<
 *             context,
 *             coord_system_pj,
 */
  __pyx_t_3 = ((PyObject *)__pyx_f_6pyproj_4_crs_16CoordinateSystem_create(__pyx_v_context, __pyx_v_coord_system_pj)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2490, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_GOTREF(__pyx_v_self->_coordinate_system);
  __Pyx_DECREF(__pyx_v_self->_coordinate_system);
  __pyx_v_self->_coordinate_system = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":2494
 *             coord_system_pj,
 *         )
 *         return self._coordinate_system             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_coordinate_system);
  __pyx_r = __pyx_v_self->_coordinate_system;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2468
 * 
 *     @property
 *     def coordinate_system(self):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs._CRS.coordinate_system.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2497
 * 
 *     @property
 *     def coordinate_operation(self):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_20coordinate_operation_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_20coordinate_operation_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_20coordinate_operation___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_20coordinate_operation___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PJ_CONTEXT *__pyx_v_context;
  PJ *__pyx_v_coord_pj;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "pyproj/_crs.pyx":2505
 *         CoordinateOperation
 *         """
 *         if self._coordinate_operation is not None:             # <<<<<<<<<<<<<<
 *             return (
 *                 None
 */
  __pyx_t_1 = (__pyx_v_self->_coordinate_operation != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2506
 *         """
 *         if self._coordinate_operation is not None:
 *             return (             # <<<<<<<<<<<<<<
 *                 None
 *                 if self._coordinate_operation is False
 */
    __Pyx_XDECREF(__pyx_r);

    /* "pyproj/_crs.pyx":2508
 *             return (
 *                 None
 *                 if self._coordinate_operation is False             # <<<<<<<<<<<<<<
 *                 else self._coordinate_operation
 *             )
 */
    __pyx_t_2 = (__pyx_v_self->_coordinate_operation == Py_False);
    if ((__pyx_t_2 != 0)) {

      /* "pyproj/_crs.pyx":2507
 *         if self._coordinate_operation is not None:
 *             return (
 *                 None             # <<<<<<<<<<<<<<
 *                 if self._coordinate_operation is False
 *                 else self._coordinate_operation
 */
      __Pyx_INCREF(Py_None);
      __pyx_t_3 = Py_None;
    } else {

      /* "pyproj/_crs.pyx":2509
 *                 None
 *                 if self._coordinate_operation is False
 *                 else self._coordinate_operation             # <<<<<<<<<<<<<<
 *             )
 *         cdef PJ_CONTEXT* context = proj_context_create()
 */
      __Pyx_INCREF(__pyx_v_self->_coordinate_operation);
      __pyx_t_3 = __pyx_v_self->_coordinate_operation;
    }
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2505
 *         CoordinateOperation
 *         """
 *         if self._coordinate_operation is not None:             # <<<<<<<<<<<<<<
 *             return (
 *                 None
 */
  }

  /* "pyproj/_crs.pyx":2511
 *                 else self._coordinate_operation
 *             )
 *         cdef PJ_CONTEXT* context = proj_context_create()             # <<<<<<<<<<<<<<
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* coord_pj = proj_crs_get_coordoperation(
 */
  __pyx_v_context = proj_context_create();

  /* "pyproj/_crs.pyx":2512
 *             )
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)             # <<<<<<<<<<<<<<
 *         cdef PJ* coord_pj = proj_crs_get_coordoperation(
 *             context,
 */
  __pyx_f_6pyproj_8_datadir_pyproj_context_initialize(__pyx_v_context, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2512, __pyx_L1_error)

  /* "pyproj/_crs.pyx":2513
 *         cdef PJ_CONTEXT* context = proj_context_create()
 *         pyproj_context_initialize(context, True)
 *         cdef PJ* coord_pj = proj_crs_get_coordoperation(             # <<<<<<<<<<<<<<
 *             context,
 *             self.projobj
 */
  __pyx_v_coord_pj = proj_crs_get_coordoperation(__pyx_v_context, __pyx_v_self->__pyx_base.projobj);

  /* "pyproj/_crs.pyx":2517
 *             self.projobj
 *         )
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         if coord_pj == NULL:
 *             proj_context_destroy
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2517, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_clear); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2517, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_5, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2517, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":2518
 *         )
 *         CRSError.clear()
 *         if coord_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy
 *             self._coordinate_operation = False
 */
  __pyx_t_2 = ((__pyx_v_coord_pj == NULL) != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2519
 *         CRSError.clear()
 *         if coord_pj == NULL:
 *             proj_context_destroy             # <<<<<<<<<<<<<<
 *             self._coordinate_operation = False
 *             return None
 */
    (void)(proj_context_destroy);

    /* "pyproj/_crs.pyx":2520
 *         if coord_pj == NULL:
 *             proj_context_destroy
 *             self._coordinate_operation = False             # <<<<<<<<<<<<<<
 *             return None
 *         self._coordinate_operation = CoordinateOperation.create(
 */
    __Pyx_INCREF(Py_False);
    __Pyx_GIVEREF(Py_False);
    __Pyx_GOTREF(__pyx_v_self->_coordinate_operation);
    __Pyx_DECREF(__pyx_v_self->_coordinate_operation);
    __pyx_v_self->_coordinate_operation = Py_False;

    /* "pyproj/_crs.pyx":2521
 *             proj_context_destroy
 *             self._coordinate_operation = False
 *             return None             # <<<<<<<<<<<<<<
 *         self._coordinate_operation = CoordinateOperation.create(
 *             context,
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2518
 *         )
 *         CRSError.clear()
 *         if coord_pj == NULL:             # <<<<<<<<<<<<<<
 *             proj_context_destroy
 *             self._coordinate_operation = False
 */
  }

  /* "pyproj/_crs.pyx":2522
 *             self._coordinate_operation = False
 *             return None
 *         self._coordinate_operation = CoordinateOperation.create(             # <<<<<<<<<<<<<<
 *             context,
 *             coord_pj,
 */
  __pyx_t_3 = ((PyObject *)__pyx_f_6pyproj_4_crs_19CoordinateOperation_create(__pyx_v_context, __pyx_v_coord_pj)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2522, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_GOTREF(__pyx_v_self->_coordinate_operation);
  __Pyx_DECREF(__pyx_v_self->_coordinate_operation);
  __pyx_v_self->_coordinate_operation = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":2526
 *             coord_pj,
 *         )
 *         return self._coordinate_operation             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_coordinate_operation);
  __pyx_r = __pyx_v_self->_coordinate_operation;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2497
 * 
 *     @property
 *     def coordinate_operation(self):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs._CRS.coordinate_operation.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2529
 * 
 *     @property
 *     def source_crs(self):             # <<<<<<<<<<<<<<
 *         """
 *         The the base CRS of a BoundCRS or a DerivedCRS/ProjectedCRS,
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_10source_crs_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_10source_crs_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_10source_crs___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_10source_crs___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PJ *__pyx_v_projobj;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  char const *__pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "pyproj/_crs.pyx":2538
 *         _CRS
 *         """
 *         if self._source_crs is not None:             # <<<<<<<<<<<<<<
 *             return None if self._source_crs is False else self._source_crs
 *         cdef PJ * projobj = proj_get_source_crs(self.context, self.projobj)
 */
  __pyx_t_1 = (__pyx_v_self->_source_crs != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2539
 *         """
 *         if self._source_crs is not None:
 *             return None if self._source_crs is False else self._source_crs             # <<<<<<<<<<<<<<
 *         cdef PJ * projobj = proj_get_source_crs(self.context, self.projobj)
 *         CRSError.clear()
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = (__pyx_v_self->_source_crs == Py_False);
    if ((__pyx_t_2 != 0)) {
      __Pyx_INCREF(Py_None);
      __pyx_t_3 = Py_None;
    } else {
      __Pyx_INCREF(__pyx_v_self->_source_crs);
      __pyx_t_3 = __pyx_v_self->_source_crs;
    }
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2538
 *         _CRS
 *         """
 *         if self._source_crs is not None:             # <<<<<<<<<<<<<<
 *             return None if self._source_crs is False else self._source_crs
 *         cdef PJ * projobj = proj_get_source_crs(self.context, self.projobj)
 */
  }

  /* "pyproj/_crs.pyx":2540
 *         if self._source_crs is not None:
 *             return None if self._source_crs is False else self._source_crs
 *         cdef PJ * projobj = proj_get_source_crs(self.context, self.projobj)             # <<<<<<<<<<<<<<
 *         CRSError.clear()
 *         if projobj == NULL:
 */
  __pyx_v_projobj = proj_get_source_crs(__pyx_v_self->__pyx_base.context, __pyx_v_self->__pyx_base.projobj);

  /* "pyproj/_crs.pyx":2541
 *             return None if self._source_crs is False else self._source_crs
 *         cdef PJ * projobj = proj_get_source_crs(self.context, self.projobj)
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         if projobj == NULL:
 *             self._source_crs = False
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2541, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_clear); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2541, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_5, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2541, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":2542
 *         cdef PJ * projobj = proj_get_source_crs(self.context, self.projobj)
 *         CRSError.clear()
 *         if projobj == NULL:             # <<<<<<<<<<<<<<
 *             self._source_crs = False
 *             return None
 */
  __pyx_t_2 = ((__pyx_v_projobj == NULL) != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2543
 *         CRSError.clear()
 *         if projobj == NULL:
 *             self._source_crs = False             # <<<<<<<<<<<<<<
 *             return None
 *         try:
 */
    __Pyx_INCREF(Py_False);
    __Pyx_GIVEREF(Py_False);
    __Pyx_GOTREF(__pyx_v_self->_source_crs);
    __Pyx_DECREF(__pyx_v_self->_source_crs);
    __pyx_v_self->_source_crs = Py_False;

    /* "pyproj/_crs.pyx":2544
 *         if projobj == NULL:
 *             self._source_crs = False
 *             return None             # <<<<<<<<<<<<<<
 *         try:
 *             self._source_crs = _CRS(_to_wkt(self.context, projobj))
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2542
 *         cdef PJ * projobj = proj_get_source_crs(self.context, self.projobj)
 *         CRSError.clear()
 *         if projobj == NULL:             # <<<<<<<<<<<<<<
 *             self._source_crs = False
 *             return None
 */
  }

  /* "pyproj/_crs.pyx":2545
 *             self._source_crs = False
 *             return None
 *         try:             # <<<<<<<<<<<<<<
 *             self._source_crs = _CRS(_to_wkt(self.context, projobj))
 *         finally:
 */
  /*try:*/ {

    /* "pyproj/_crs.pyx":2546
 *             return None
 *         try:
 *             self._source_crs = _CRS(_to_wkt(self.context, projobj))             # <<<<<<<<<<<<<<
 *         finally:
 *             proj_destroy(projobj)
 */
    __pyx_t_3 = __pyx_f_6pyproj_4_crs__to_wkt(__pyx_v_self->__pyx_base.context, __pyx_v_projobj, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2546, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_6pyproj_4_crs__CRS), __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2546, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GIVEREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_v_self->_source_crs);
    __Pyx_DECREF(__pyx_v_self->_source_crs);
    __pyx_v_self->_source_crs = __pyx_t_5;
    __pyx_t_5 = 0;
  }

  /* "pyproj/_crs.pyx":2548
 *             self._source_crs = _CRS(_to_wkt(self.context, projobj))
 *         finally:
 *             proj_destroy(projobj)             # <<<<<<<<<<<<<<
 *         return self._source_crs
 * 
 */
  /*finally:*/ {
    /*normal exit:*/{
      proj_destroy(__pyx_v_projobj);
      goto __pyx_L7;
    }
    __pyx_L6_error:;
    /*exception exit:*/{
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __pyx_t_9 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
      if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_9, &__pyx_t_10, &__pyx_t_11) < 0)) __Pyx_ErrFetch(&__pyx_t_9, &__pyx_t_10, &__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_9);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_13);
      __Pyx_XGOTREF(__pyx_t_14);
      __pyx_t_6 = __pyx_lineno; __pyx_t_7 = __pyx_clineno; __pyx_t_8 = __pyx_filename;
      {
        proj_destroy(__pyx_v_projobj);
      }
      if (PY_MAJOR_VERSION >= 3) {
        __Pyx_XGIVEREF(__pyx_t_12);
        __Pyx_XGIVEREF(__pyx_t_13);
        __Pyx_XGIVEREF(__pyx_t_14);
        __Pyx_ExceptionReset(__pyx_t_12, __pyx_t_13, __pyx_t_14);
      }
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_ErrRestore(__pyx_t_9, __pyx_t_10, __pyx_t_11);
      __pyx_t_9 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0;
      __pyx_lineno = __pyx_t_6; __pyx_clineno = __pyx_t_7; __pyx_filename = __pyx_t_8;
      goto __pyx_L1_error;
    }
    __pyx_L7:;
  }

  /* "pyproj/_crs.pyx":2549
 *         finally:
 *             proj_destroy(projobj)
 *         return self._source_crs             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_source_crs);
  __pyx_r = __pyx_v_self->_source_crs;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2529
 * 
 *     @property
 *     def source_crs(self):             # <<<<<<<<<<<<<<
 *         """
 *         The the base CRS of a BoundCRS or a DerivedCRS/ProjectedCRS,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs._CRS.source_crs.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2552
 * 
 *     @property
 *     def target_crs(self):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_10target_crs_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_10target_crs_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_10target_crs___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_10target_crs___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PJ *__pyx_v_projobj;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  char const *__pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "pyproj/_crs.pyx":2561
 *             The hub CRS of a BoundCRS or the target CRS of a CoordinateOperation.
 *         """
 *         if self._target_crs is not None:             # <<<<<<<<<<<<<<
 *             return None if self._target_crs is False else self._target_crs
 *         cdef PJ * projobj = proj_get_target_crs(self.context, self.projobj)
 */
  __pyx_t_1 = (__pyx_v_self->_target_crs != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2562
 *         """
 *         if self._target_crs is not None:
 *             return None if self._target_crs is False else self._target_crs             # <<<<<<<<<<<<<<
 *         cdef PJ * projobj = proj_get_target_crs(self.context, self.projobj)
 *         CRSError.clear()
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = (__pyx_v_self->_target_crs == Py_False);
    if ((__pyx_t_2 != 0)) {
      __Pyx_INCREF(Py_None);
      __pyx_t_3 = Py_None;
    } else {
      __Pyx_INCREF(__pyx_v_self->_target_crs);
      __pyx_t_3 = __pyx_v_self->_target_crs;
    }
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2561
 *             The hub CRS of a BoundCRS or the target CRS of a CoordinateOperation.
 *         """
 *         if self._target_crs is not None:             # <<<<<<<<<<<<<<
 *             return None if self._target_crs is False else self._target_crs
 *         cdef PJ * projobj = proj_get_target_crs(self.context, self.projobj)
 */
  }

  /* "pyproj/_crs.pyx":2563
 *         if self._target_crs is not None:
 *             return None if self._target_crs is False else self._target_crs
 *         cdef PJ * projobj = proj_get_target_crs(self.context, self.projobj)             # <<<<<<<<<<<<<<
 *         CRSError.clear()
 *         if projobj == NULL:
 */
  __pyx_v_projobj = proj_get_target_crs(__pyx_v_self->__pyx_base.context, __pyx_v_self->__pyx_base.projobj);

  /* "pyproj/_crs.pyx":2564
 *             return None if self._target_crs is False else self._target_crs
 *         cdef PJ * projobj = proj_get_target_crs(self.context, self.projobj)
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         if projobj == NULL:
 *             self._target_crs = False
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_clear); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_5, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":2565
 *         cdef PJ * projobj = proj_get_target_crs(self.context, self.projobj)
 *         CRSError.clear()
 *         if projobj == NULL:             # <<<<<<<<<<<<<<
 *             self._target_crs = False
 *             return None
 */
  __pyx_t_2 = ((__pyx_v_projobj == NULL) != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2566
 *         CRSError.clear()
 *         if projobj == NULL:
 *             self._target_crs = False             # <<<<<<<<<<<<<<
 *             return None
 *         try:
 */
    __Pyx_INCREF(Py_False);
    __Pyx_GIVEREF(Py_False);
    __Pyx_GOTREF(__pyx_v_self->_target_crs);
    __Pyx_DECREF(__pyx_v_self->_target_crs);
    __pyx_v_self->_target_crs = Py_False;

    /* "pyproj/_crs.pyx":2567
 *         if projobj == NULL:
 *             self._target_crs = False
 *             return None             # <<<<<<<<<<<<<<
 *         try:
 *             self._target_crs = _CRS(_to_wkt(self.context, projobj))
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2565
 *         cdef PJ * projobj = proj_get_target_crs(self.context, self.projobj)
 *         CRSError.clear()
 *         if projobj == NULL:             # <<<<<<<<<<<<<<
 *             self._target_crs = False
 *             return None
 */
  }

  /* "pyproj/_crs.pyx":2568
 *             self._target_crs = False
 *             return None
 *         try:             # <<<<<<<<<<<<<<
 *             self._target_crs = _CRS(_to_wkt(self.context, projobj))
 *         finally:
 */
  /*try:*/ {

    /* "pyproj/_crs.pyx":2569
 *             return None
 *         try:
 *             self._target_crs = _CRS(_to_wkt(self.context, projobj))             # <<<<<<<<<<<<<<
 *         finally:
 *             proj_destroy(projobj)
 */
    __pyx_t_3 = __pyx_f_6pyproj_4_crs__to_wkt(__pyx_v_self->__pyx_base.context, __pyx_v_projobj, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2569, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_6pyproj_4_crs__CRS), __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2569, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GIVEREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_v_self->_target_crs);
    __Pyx_DECREF(__pyx_v_self->_target_crs);
    __pyx_v_self->_target_crs = __pyx_t_5;
    __pyx_t_5 = 0;
  }

  /* "pyproj/_crs.pyx":2571
 *             self._target_crs = _CRS(_to_wkt(self.context, projobj))
 *         finally:
 *             proj_destroy(projobj)             # <<<<<<<<<<<<<<
 *         return self._target_crs
 * 
 */
  /*finally:*/ {
    /*normal exit:*/{
      proj_destroy(__pyx_v_projobj);
      goto __pyx_L7;
    }
    __pyx_L6_error:;
    /*exception exit:*/{
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __pyx_t_9 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
      if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_9, &__pyx_t_10, &__pyx_t_11) < 0)) __Pyx_ErrFetch(&__pyx_t_9, &__pyx_t_10, &__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_9);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_13);
      __Pyx_XGOTREF(__pyx_t_14);
      __pyx_t_6 = __pyx_lineno; __pyx_t_7 = __pyx_clineno; __pyx_t_8 = __pyx_filename;
      {
        proj_destroy(__pyx_v_projobj);
      }
      if (PY_MAJOR_VERSION >= 3) {
        __Pyx_XGIVEREF(__pyx_t_12);
        __Pyx_XGIVEREF(__pyx_t_13);
        __Pyx_XGIVEREF(__pyx_t_14);
        __Pyx_ExceptionReset(__pyx_t_12, __pyx_t_13, __pyx_t_14);
      }
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_ErrRestore(__pyx_t_9, __pyx_t_10, __pyx_t_11);
      __pyx_t_9 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0;
      __pyx_lineno = __pyx_t_6; __pyx_clineno = __pyx_t_7; __pyx_filename = __pyx_t_8;
      goto __pyx_L1_error;
    }
    __pyx_L7:;
  }

  /* "pyproj/_crs.pyx":2572
 *         finally:
 *             proj_destroy(projobj)
 *         return self._target_crs             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_target_crs);
  __pyx_r = __pyx_v_self->_target_crs;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2552
 * 
 *     @property
 *     def target_crs(self):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs._CRS.target_crs.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2575
 * 
 *     @property
 *     def sub_crs_list(self):             # <<<<<<<<<<<<<<
 *         """
 *         If the CRS is a compound CRS, it will return a list of sub CRS objects.
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_12sub_crs_list_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_12sub_crs_list_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_12sub_crs_list___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_12sub_crs_list___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  int __pyx_v_iii;
  PJ *__pyx_v_projobj;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  char const *__pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "pyproj/_crs.pyx":2583
 *         List[_CRS]
 *         """
 *         if self._sub_crs_list is not None:             # <<<<<<<<<<<<<<
 *             return self._sub_crs_list
 *         cdef int iii = 0
 */
  __pyx_t_1 = (__pyx_v_self->_sub_crs_list != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2584
 *         """
 *         if self._sub_crs_list is not None:
 *             return self._sub_crs_list             # <<<<<<<<<<<<<<
 *         cdef int iii = 0
 *         cdef PJ * projobj = proj_crs_get_sub_crs(
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_self->_sub_crs_list);
    __pyx_r = __pyx_v_self->_sub_crs_list;
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2583
 *         List[_CRS]
 *         """
 *         if self._sub_crs_list is not None:             # <<<<<<<<<<<<<<
 *             return self._sub_crs_list
 *         cdef int iii = 0
 */
  }

  /* "pyproj/_crs.pyx":2585
 *         if self._sub_crs_list is not None:
 *             return self._sub_crs_list
 *         cdef int iii = 0             # <<<<<<<<<<<<<<
 *         cdef PJ * projobj = proj_crs_get_sub_crs(
 *             self.context,
 */
  __pyx_v_iii = 0;

  /* "pyproj/_crs.pyx":2586
 *             return self._sub_crs_list
 *         cdef int iii = 0
 *         cdef PJ * projobj = proj_crs_get_sub_crs(             # <<<<<<<<<<<<<<
 *             self.context,
 *             self.projobj,
 */
  __pyx_v_projobj = proj_crs_get_sub_crs(__pyx_v_self->__pyx_base.context, __pyx_v_self->__pyx_base.projobj, __pyx_v_iii);

  /* "pyproj/_crs.pyx":2591
 *             iii,
 *         )
 *         self._sub_crs_list = []             # <<<<<<<<<<<<<<
 *         while projobj != NULL:
 *             try:
 */
  __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2591, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_GOTREF(__pyx_v_self->_sub_crs_list);
  __Pyx_DECREF(__pyx_v_self->_sub_crs_list);
  __pyx_v_self->_sub_crs_list = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":2592
 *         )
 *         self._sub_crs_list = []
 *         while projobj != NULL:             # <<<<<<<<<<<<<<
 *             try:
 *                 self._sub_crs_list.append(_CRS(_to_wkt(self.context, projobj)))
 */
  while (1) {
    __pyx_t_2 = ((__pyx_v_projobj != NULL) != 0);
    if (!__pyx_t_2) break;

    /* "pyproj/_crs.pyx":2593
 *         self._sub_crs_list = []
 *         while projobj != NULL:
 *             try:             # <<<<<<<<<<<<<<
 *                 self._sub_crs_list.append(_CRS(_to_wkt(self.context, projobj)))
 *             finally:
 */
    /*try:*/ {

      /* "pyproj/_crs.pyx":2594
 *         while projobj != NULL:
 *             try:
 *                 self._sub_crs_list.append(_CRS(_to_wkt(self.context, projobj)))             # <<<<<<<<<<<<<<
 *             finally:
 *                 proj_destroy(projobj)  # deallocate temp proj
 */
      __pyx_t_3 = __pyx_f_6pyproj_4_crs__to_wkt(__pyx_v_self->__pyx_base.context, __pyx_v_projobj, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2594, __pyx_L9_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_6pyproj_4_crs__CRS), __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2594, __pyx_L9_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_5 = __Pyx_PyObject_Append(__pyx_v_self->_sub_crs_list, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 2594, __pyx_L9_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    }

    /* "pyproj/_crs.pyx":2596
 *                 self._sub_crs_list.append(_CRS(_to_wkt(self.context, projobj)))
 *             finally:
 *                 proj_destroy(projobj)  # deallocate temp proj             # <<<<<<<<<<<<<<
 *             iii += 1
 *             projobj = proj_crs_get_sub_crs(
 */
    /*finally:*/ {
      /*normal exit:*/{
        proj_destroy(__pyx_v_projobj);
        goto __pyx_L10;
      }
      __pyx_L9_error:;
      /*exception exit:*/{
        __Pyx_PyThreadState_declare
        __Pyx_PyThreadState_assign
        __pyx_t_9 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0;
        __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
        if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
        if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_9, &__pyx_t_10, &__pyx_t_11) < 0)) __Pyx_ErrFetch(&__pyx_t_9, &__pyx_t_10, &__pyx_t_11);
        __Pyx_XGOTREF(__pyx_t_9);
        __Pyx_XGOTREF(__pyx_t_10);
        __Pyx_XGOTREF(__pyx_t_11);
        __Pyx_XGOTREF(__pyx_t_12);
        __Pyx_XGOTREF(__pyx_t_13);
        __Pyx_XGOTREF(__pyx_t_14);
        __pyx_t_6 = __pyx_lineno; __pyx_t_7 = __pyx_clineno; __pyx_t_8 = __pyx_filename;
        {
          proj_destroy(__pyx_v_projobj);
        }
        if (PY_MAJOR_VERSION >= 3) {
          __Pyx_XGIVEREF(__pyx_t_12);
          __Pyx_XGIVEREF(__pyx_t_13);
          __Pyx_XGIVEREF(__pyx_t_14);
          __Pyx_ExceptionReset(__pyx_t_12, __pyx_t_13, __pyx_t_14);
        }
        __Pyx_XGIVEREF(__pyx_t_9);
        __Pyx_XGIVEREF(__pyx_t_10);
        __Pyx_XGIVEREF(__pyx_t_11);
        __Pyx_ErrRestore(__pyx_t_9, __pyx_t_10, __pyx_t_11);
        __pyx_t_9 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0;
        __pyx_lineno = __pyx_t_6; __pyx_clineno = __pyx_t_7; __pyx_filename = __pyx_t_8;
        goto __pyx_L1_error;
      }
      __pyx_L10:;
    }

    /* "pyproj/_crs.pyx":2597
 *             finally:
 *                 proj_destroy(projobj)  # deallocate temp proj
 *             iii += 1             # <<<<<<<<<<<<<<
 *             projobj = proj_crs_get_sub_crs(
 *                 self.context,
 */
    __pyx_v_iii = (__pyx_v_iii + 1);

    /* "pyproj/_crs.pyx":2598
 *                 proj_destroy(projobj)  # deallocate temp proj
 *             iii += 1
 *             projobj = proj_crs_get_sub_crs(             # <<<<<<<<<<<<<<
 *                 self.context,
 *                 self.projobj,
 */
    __pyx_v_projobj = proj_crs_get_sub_crs(__pyx_v_self->__pyx_base.context, __pyx_v_self->__pyx_base.projobj, __pyx_v_iii);
  }

  /* "pyproj/_crs.pyx":2603
 *                 iii,
 *             )
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         return self._sub_crs_list
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2603, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_clear); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 2603, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_15);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_15))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_15);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_15);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_15, function);
    }
  }
  __pyx_t_4 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_15, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_15);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2603, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "pyproj/_crs.pyx":2604
 *             )
 *         CRSError.clear()
 *         return self._sub_crs_list             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_sub_crs_list);
  __pyx_r = __pyx_v_self->_sub_crs_list;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2575
 * 
 *     @property
 *     def sub_crs_list(self):             # <<<<<<<<<<<<<<
 *         """
 *         If the CRS is a compound CRS, it will return a list of sub CRS objects.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_15);
  __Pyx_AddTraceback("pyproj._crs._CRS.sub_crs_list.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2607
 * 
 *     @property
 *     def geodetic_crs(self):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_12geodetic_crs_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_12geodetic_crs_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_12geodetic_crs___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_12geodetic_crs___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PJ *__pyx_v_projobj;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_t_7;
  char const *__pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "pyproj/_crs.pyx":2617
 *         _CRS
 *         """
 *         if self._geodetic_crs is not None:             # <<<<<<<<<<<<<<
 *             return self._geodetic_crs if self. _geodetic_crs is not False else None
 *         cdef PJ * projobj = proj_crs_get_geodetic_crs(self.context, self.projobj)
 */
  __pyx_t_1 = (__pyx_v_self->_geodetic_crs != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2618
 *         """
 *         if self._geodetic_crs is not None:
 *             return self._geodetic_crs if self. _geodetic_crs is not False else None             # <<<<<<<<<<<<<<
 *         cdef PJ * projobj = proj_crs_get_geodetic_crs(self.context, self.projobj)
 *         CRSError.clear()
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = (__pyx_v_self->_geodetic_crs != Py_False);
    if ((__pyx_t_2 != 0)) {
      __Pyx_INCREF(__pyx_v_self->_geodetic_crs);
      __pyx_t_3 = __pyx_v_self->_geodetic_crs;
    } else {
      __Pyx_INCREF(Py_None);
      __pyx_t_3 = Py_None;
    }
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2617
 *         _CRS
 *         """
 *         if self._geodetic_crs is not None:             # <<<<<<<<<<<<<<
 *             return self._geodetic_crs if self. _geodetic_crs is not False else None
 *         cdef PJ * projobj = proj_crs_get_geodetic_crs(self.context, self.projobj)
 */
  }

  /* "pyproj/_crs.pyx":2619
 *         if self._geodetic_crs is not None:
 *             return self._geodetic_crs if self. _geodetic_crs is not False else None
 *         cdef PJ * projobj = proj_crs_get_geodetic_crs(self.context, self.projobj)             # <<<<<<<<<<<<<<
 *         CRSError.clear()
 *         if projobj == NULL:
 */
  __pyx_v_projobj = proj_crs_get_geodetic_crs(__pyx_v_self->__pyx_base.context, __pyx_v_self->__pyx_base.projobj);

  /* "pyproj/_crs.pyx":2620
 *             return self._geodetic_crs if self. _geodetic_crs is not False else None
 *         cdef PJ * projobj = proj_crs_get_geodetic_crs(self.context, self.projobj)
 *         CRSError.clear()             # <<<<<<<<<<<<<<
 *         if projobj == NULL:
 *             self._geodetic_crs = False
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2620, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_clear); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2620, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_5, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2620, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":2621
 *         cdef PJ * projobj = proj_crs_get_geodetic_crs(self.context, self.projobj)
 *         CRSError.clear()
 *         if projobj == NULL:             # <<<<<<<<<<<<<<
 *             self._geodetic_crs = False
 *             return None
 */
  __pyx_t_2 = ((__pyx_v_projobj == NULL) != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2622
 *         CRSError.clear()
 *         if projobj == NULL:
 *             self._geodetic_crs = False             # <<<<<<<<<<<<<<
 *             return None
 *         try:
 */
    __Pyx_INCREF(Py_False);
    __Pyx_GIVEREF(Py_False);
    __Pyx_GOTREF(__pyx_v_self->_geodetic_crs);
    __Pyx_DECREF(__pyx_v_self->_geodetic_crs);
    __pyx_v_self->_geodetic_crs = Py_False;

    /* "pyproj/_crs.pyx":2623
 *         if projobj == NULL:
 *             self._geodetic_crs = False
 *             return None             # <<<<<<<<<<<<<<
 *         try:
 *             self._geodetic_crs = _CRS(_to_wkt(self.context, projobj))
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2621
 *         cdef PJ * projobj = proj_crs_get_geodetic_crs(self.context, self.projobj)
 *         CRSError.clear()
 *         if projobj == NULL:             # <<<<<<<<<<<<<<
 *             self._geodetic_crs = False
 *             return None
 */
  }

  /* "pyproj/_crs.pyx":2624
 *             self._geodetic_crs = False
 *             return None
 *         try:             # <<<<<<<<<<<<<<
 *             self._geodetic_crs = _CRS(_to_wkt(self.context, projobj))
 *         finally:
 */
  /*try:*/ {

    /* "pyproj/_crs.pyx":2625
 *             return None
 *         try:
 *             self._geodetic_crs = _CRS(_to_wkt(self.context, projobj))             # <<<<<<<<<<<<<<
 *         finally:
 *             proj_destroy(projobj)  # deallocate temp proj
 */
    __pyx_t_3 = __pyx_f_6pyproj_4_crs__to_wkt(__pyx_v_self->__pyx_base.context, __pyx_v_projobj, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2625, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_6pyproj_4_crs__CRS), __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2625, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GIVEREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_v_self->_geodetic_crs);
    __Pyx_DECREF(__pyx_v_self->_geodetic_crs);
    __pyx_v_self->_geodetic_crs = __pyx_t_5;
    __pyx_t_5 = 0;
  }

  /* "pyproj/_crs.pyx":2627
 *             self._geodetic_crs = _CRS(_to_wkt(self.context, projobj))
 *         finally:
 *             proj_destroy(projobj)  # deallocate temp proj             # <<<<<<<<<<<<<<
 *         return self._geodetic_crs
 * 
 */
  /*finally:*/ {
    /*normal exit:*/{
      proj_destroy(__pyx_v_projobj);
      goto __pyx_L7;
    }
    __pyx_L6_error:;
    /*exception exit:*/{
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __pyx_t_9 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_12, &__pyx_t_13, &__pyx_t_14);
      if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_9, &__pyx_t_10, &__pyx_t_11) < 0)) __Pyx_ErrFetch(&__pyx_t_9, &__pyx_t_10, &__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_9);
      __Pyx_XGOTREF(__pyx_t_10);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_13);
      __Pyx_XGOTREF(__pyx_t_14);
      __pyx_t_6 = __pyx_lineno; __pyx_t_7 = __pyx_clineno; __pyx_t_8 = __pyx_filename;
      {
        proj_destroy(__pyx_v_projobj);
      }
      if (PY_MAJOR_VERSION >= 3) {
        __Pyx_XGIVEREF(__pyx_t_12);
        __Pyx_XGIVEREF(__pyx_t_13);
        __Pyx_XGIVEREF(__pyx_t_14);
        __Pyx_ExceptionReset(__pyx_t_12, __pyx_t_13, __pyx_t_14);
      }
      __Pyx_XGIVEREF(__pyx_t_9);
      __Pyx_XGIVEREF(__pyx_t_10);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_ErrRestore(__pyx_t_9, __pyx_t_10, __pyx_t_11);
      __pyx_t_9 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0;
      __pyx_lineno = __pyx_t_6; __pyx_clineno = __pyx_t_7; __pyx_filename = __pyx_t_8;
      goto __pyx_L1_error;
    }
    __pyx_L7:;
  }

  /* "pyproj/_crs.pyx":2628
 *         finally:
 *             proj_destroy(projobj)  # deallocate temp proj
 *         return self._geodetic_crs             # <<<<<<<<<<<<<<
 * 
 *     def to_proj4(self, version=ProjVersion.PROJ_4):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_geodetic_crs);
  __pyx_r = __pyx_v_self->_geodetic_crs;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2607
 * 
 *     @property
 *     def geodetic_crs(self):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyproj._crs._CRS.geodetic_crs.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2630
 *         return self._geodetic_crs
 * 
 *     def to_proj4(self, version=ProjVersion.PROJ_4):             # <<<<<<<<<<<<<<
 *         """
 *         Convert the projection to a PROJ string.
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_5to_proj4(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_4_CRS_4to_proj4[] = "_CRS.to_proj4(self, version=ProjVersion.PROJ_4)\n\n        Convert the projection to a PROJ string.\n\n        .. warning:: You will likely lose important projection\n          information when converting to a PROJ string from\n          another format. See:\n          https://proj.org/faq.html#what-is-the-best-format-for-describing-coordinate-reference-systems  # noqa: E501\n\n        Parameters\n        ----------\n        version: pyproj.enums.ProjVersion\n            The version of the PROJ string output.\n            Default is :attr:`pyproj.enums.ProjVersion.PROJ_4`.\n\n        Returns\n        -------\n        str\n        ";
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_5to_proj4(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_version = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_proj4 (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_version,0};
    PyObject* values[1] = {0};
    values[0] = __pyx_k__45;
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_version);
          if (value) { values[0] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "to_proj4") < 0)) __PYX_ERR(0, 2630, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_version = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("to_proj4", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2630, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs._CRS.to_proj4", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_4to_proj4(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self), __pyx_v_version);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_4to_proj4(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self, PyObject *__pyx_v_version) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("to_proj4", 0);

  /* "pyproj/_crs.pyx":2649
 *         str
 *         """
 *         warnings.warn(             # <<<<<<<<<<<<<<
 *             "You will likely lose important projection information when "
 *             "converting to a PROJ string from another format. See: "
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_warnings); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2649, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_warn); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2649, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_kp_u_You_will_likely_lose_important_p) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_kp_u_You_will_likely_lose_important_p);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2649, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":2655
 *             "coordinate-reference-systems"
 *         )
 *         return _to_proj4(self.context, self.projobj, version)             # <<<<<<<<<<<<<<
 * 
 *     def to_epsg(self, min_confidence=70):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_6pyproj_4_crs__to_proj4(__pyx_v_self->__pyx_base.context, __pyx_v_self->__pyx_base.projobj, __pyx_v_version); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2655, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2630
 *         return self._geodetic_crs
 * 
 *     def to_proj4(self, version=ProjVersion.PROJ_4):             # <<<<<<<<<<<<<<
 *         """
 *         Convert the projection to a PROJ string.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("pyproj._crs._CRS.to_proj4", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2657
 *         return _to_proj4(self.context, self.projobj, version)
 * 
 *     def to_epsg(self, min_confidence=70):             # <<<<<<<<<<<<<<
 *         """
 *         Return the EPSG code best matching the CRS
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_7to_epsg(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_4_CRS_6to_epsg[] = "_CRS.to_epsg(self, min_confidence=70)\n\n        Return the EPSG code best matching the CRS\n        or None if it a match is not found.\n\n        Example:\n\n        >>> from pyproj import CRS\n        >>> ccs = CRS(\"epsg:4328\")\n        >>> ccs.to_epsg()\n        4328\n\n        If the CRS is bound, you can attempt to get an epsg code from\n        the source CRS:\n\n        >>> from pyproj import CRS\n        >>> ccs = CRS(\"+proj=geocent +datum=WGS84 +towgs84=0,0,0\")\n        >>> ccs.to_epsg()\n        >>> ccs.source_crs.to_epsg()\n        4978\n        >>> ccs == CRS.from_epsg(4978)\n        False\n\n        Parameters\n        ----------\n        min_confidence: int, optional\n            A value between 0-100 where 100 is the most confident. Default is 70.\n            :ref:`min_confidence`\n\n\n        Returns\n        -------\n        Optional[int]:\n            The best matching EPSG code matching the confidence level.\n        ";
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_7to_epsg(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_min_confidence = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_epsg (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_min_confidence,0};
    PyObject* values[1] = {0};
    values[0] = ((PyObject *)__pyx_int_70);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_confidence);
          if (value) { values[0] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "to_epsg") < 0)) __PYX_ERR(0, 2657, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_min_confidence = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("to_epsg", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2657, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs._CRS.to_epsg", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_6to_epsg(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self), __pyx_v_min_confidence);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_6to_epsg(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self, PyObject *__pyx_v_min_confidence) {
  PyObject *__pyx_v_auth_info = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("to_epsg", 0);

  /* "pyproj/_crs.pyx":2692
 *             The best matching EPSG code matching the confidence level.
 *         """
 *         auth_info = self.to_authority(             # <<<<<<<<<<<<<<
 *             auth_name="EPSG",
 *             min_confidence=min_confidence
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_to_authority); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2692, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);

  /* "pyproj/_crs.pyx":2693
 *         """
 *         auth_info = self.to_authority(
 *             auth_name="EPSG",             # <<<<<<<<<<<<<<
 *             min_confidence=min_confidence
 *         )
 */
  __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2693, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_auth_name, __pyx_n_u_EPSG) < 0) __PYX_ERR(0, 2693, __pyx_L1_error)

  /* "pyproj/_crs.pyx":2694
 *         auth_info = self.to_authority(
 *             auth_name="EPSG",
 *             min_confidence=min_confidence             # <<<<<<<<<<<<<<
 *         )
 *         if auth_info is not None and auth_info[0].upper() == "EPSG":
 */
  if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_min_confidence, __pyx_v_min_confidence) < 0) __PYX_ERR(0, 2693, __pyx_L1_error)

  /* "pyproj/_crs.pyx":2692
 *             The best matching EPSG code matching the confidence level.
 *         """
 *         auth_info = self.to_authority(             # <<<<<<<<<<<<<<
 *             auth_name="EPSG",
 *             min_confidence=min_confidence
 */
  __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2692, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_auth_info = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":2696
 *             min_confidence=min_confidence
 *         )
 *         if auth_info is not None and auth_info[0].upper() == "EPSG":             # <<<<<<<<<<<<<<
 *             return int(auth_info[1])
 *         return None
 */
  __pyx_t_5 = (__pyx_v_auth_info != Py_None);
  __pyx_t_6 = (__pyx_t_5 != 0);
  if (__pyx_t_6) {
  } else {
    __pyx_t_4 = __pyx_t_6;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = __Pyx_GetItemInt(__pyx_v_auth_info, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2696, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_upper); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2696, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
    }
  }
  __pyx_t_3 = (__pyx_t_2) ? __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_2) : __Pyx_PyObject_CallNoArg(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2696, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_6 = (__Pyx_PyUnicode_Equals(__pyx_t_3, __pyx_n_u_EPSG, Py_EQ)); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 2696, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = __pyx_t_6;
  __pyx_L4_bool_binop_done:;
  if (__pyx_t_4) {

    /* "pyproj/_crs.pyx":2697
 *         )
 *         if auth_info is not None and auth_info[0].upper() == "EPSG":
 *             return int(auth_info[1])             # <<<<<<<<<<<<<<
 *         return None
 * 
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_auth_info, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2697, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2697, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2696
 *             min_confidence=min_confidence
 *         )
 *         if auth_info is not None and auth_info[0].upper() == "EPSG":             # <<<<<<<<<<<<<<
 *             return int(auth_info[1])
 *         return None
 */
  }

  /* "pyproj/_crs.pyx":2698
 *         if auth_info is not None and auth_info[0].upper() == "EPSG":
 *             return int(auth_info[1])
 *         return None             # <<<<<<<<<<<<<<
 * 
 *     def to_authority(self, auth_name=None, min_confidence=70):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2657
 *         return _to_proj4(self.context, self.projobj, version)
 * 
 *     def to_epsg(self, min_confidence=70):             # <<<<<<<<<<<<<<
 *         """
 *         Return the EPSG code best matching the CRS
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("pyproj._crs._CRS.to_epsg", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_auth_info);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2700
 *         return None
 * 
 *     def to_authority(self, auth_name=None, min_confidence=70):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_9to_authority(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_4_CRS_8to_authority[] = "_CRS.to_authority(self, auth_name=None, min_confidence=70)\n\n        .. versionadded:: 2.2.0\n\n        Return the authority name and code best matching the CRS\n        or None if it a match is not found.\n\n        Example:\n\n        >>> from pyproj import CRS\n        >>> ccs = CRS(\"epsg:4328\")\n        >>> ccs.to_authority()\n        ('EPSG', '4328')\n\n        If the CRS is bound, you can get an authority from\n        the source CRS:\n\n        >>> from pyproj import CRS\n        >>> ccs = CRS(\"+proj=geocent +datum=WGS84 +towgs84=0,0,0\")\n        >>> ccs.to_authority()\n        >>> ccs.source_crs.to_authority()\n        ('EPSG', '4978')\n        >>> ccs == CRS.from_authorty('EPSG', '4978')\n        False\n\n        Parameters\n        ----------\n        auth_name: str, optional\n            The name of the authority to filter by.\n        min_confidence: int, optional\n            A value between 0-100 where 100 is the most confident. Default is 70.\n            :ref:`min_confidence`\n\n        Returns\n        -------\n        tuple(str, str) or None:\n            The best matching (<auth_name>, <code>) for the confidence level.\n        ";
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_9to_authority(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_auth_name = 0;
  PyObject *__pyx_v_min_confidence = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("to_authority (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_auth_name,&__pyx_n_s_min_confidence,0};
    PyObject* values[2] = {0,0};
    values[0] = ((PyObject *)Py_None);
    values[1] = ((PyObject *)__pyx_int_70);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_auth_name);
          if (value) { values[0] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_confidence);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "to_authority") < 0)) __PYX_ERR(0, 2700, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_auth_name = values[0];
    __pyx_v_min_confidence = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("to_authority", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2700, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs._CRS.to_authority", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_8to_authority(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self), __pyx_v_auth_name, __pyx_v_min_confidence);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_8to_authority(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self, PyObject *__pyx_v_auth_name, PyObject *__pyx_v_min_confidence) {
  PJ_OBJ_LIST *__pyx_v_proj_list;
  int *__pyx_v_out_confidence_list;
  int __pyx_v_out_confidence;
  int __pyx_v_num_proj_objects;
  char *__pyx_v_user_auth_name;
  PyObject *__pyx_v_b_auth_name = NULL;
  PJ *__pyx_v_proj;
  int __pyx_v_iii;
  char const *__pyx_v_code;
  char const *__pyx_v_out_auth_name;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  char *__pyx_t_6;
  int __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  char const *__pyx_t_12;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  PyObject *__pyx_t_18 = NULL;
  __Pyx_RefNannySetupContext("to_authority", 0);

  /* "pyproj/_crs.pyx":2739
 *         """
 *         # get list of possible matching projections
 *         cdef PJ_OBJ_LIST *proj_list = NULL             # <<<<<<<<<<<<<<
 *         cdef int *out_confidence_list = NULL
 *         cdef int out_confidence = -9999
 */
  __pyx_v_proj_list = NULL;

  /* "pyproj/_crs.pyx":2740
 *         # get list of possible matching projections
 *         cdef PJ_OBJ_LIST *proj_list = NULL
 *         cdef int *out_confidence_list = NULL             # <<<<<<<<<<<<<<
 *         cdef int out_confidence = -9999
 *         cdef int num_proj_objects = -9999
 */
  __pyx_v_out_confidence_list = NULL;

  /* "pyproj/_crs.pyx":2741
 *         cdef PJ_OBJ_LIST *proj_list = NULL
 *         cdef int *out_confidence_list = NULL
 *         cdef int out_confidence = -9999             # <<<<<<<<<<<<<<
 *         cdef int num_proj_objects = -9999
 *         cdef char *user_auth_name = NULL
 */
  __pyx_v_out_confidence = -9999;

  /* "pyproj/_crs.pyx":2742
 *         cdef int *out_confidence_list = NULL
 *         cdef int out_confidence = -9999
 *         cdef int num_proj_objects = -9999             # <<<<<<<<<<<<<<
 *         cdef char *user_auth_name = NULL
 * 
 */
  __pyx_v_num_proj_objects = -9999;

  /* "pyproj/_crs.pyx":2743
 *         cdef int out_confidence = -9999
 *         cdef int num_proj_objects = -9999
 *         cdef char *user_auth_name = NULL             # <<<<<<<<<<<<<<
 * 
 *         if auth_name is not None:
 */
  __pyx_v_user_auth_name = NULL;

  /* "pyproj/_crs.pyx":2745
 *         cdef char *user_auth_name = NULL
 * 
 *         if auth_name is not None:             # <<<<<<<<<<<<<<
 *             b_auth_name = cstrencode(auth_name)
 *             user_auth_name = b_auth_name
 */
  __pyx_t_1 = (__pyx_v_auth_name != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2746
 * 
 *         if auth_name is not None:
 *             b_auth_name = cstrencode(auth_name)             # <<<<<<<<<<<<<<
 *             user_auth_name = b_auth_name
 * 
 */
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_cstrencode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2746, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
      __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
      if (likely(__pyx_t_5)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
        __Pyx_INCREF(__pyx_t_5);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_4, function);
      }
    }
    __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_auth_name) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_auth_name);
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2746, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_v_b_auth_name = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "pyproj/_crs.pyx":2747
 *         if auth_name is not None:
 *             b_auth_name = cstrencode(auth_name)
 *             user_auth_name = b_auth_name             # <<<<<<<<<<<<<<
 * 
 *         try:
 */
    __pyx_t_6 = __Pyx_PyObject_AsWritableString(__pyx_v_b_auth_name); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) __PYX_ERR(0, 2747, __pyx_L1_error)
    __pyx_v_user_auth_name = __pyx_t_6;

    /* "pyproj/_crs.pyx":2745
 *         cdef char *user_auth_name = NULL
 * 
 *         if auth_name is not None:             # <<<<<<<<<<<<<<
 *             b_auth_name = cstrencode(auth_name)
 *             user_auth_name = b_auth_name
 */
  }

  /* "pyproj/_crs.pyx":2749
 *             user_auth_name = b_auth_name
 * 
 *         try:             # <<<<<<<<<<<<<<
 *             proj_list = proj_identify(
 *                 self.context,
 */
  /*try:*/ {

    /* "pyproj/_crs.pyx":2750
 * 
 *         try:
 *             proj_list = proj_identify(             # <<<<<<<<<<<<<<
 *                 self.context,
 *                 self.projobj,
 */
    __pyx_v_proj_list = proj_identify(__pyx_v_self->__pyx_base.context, __pyx_v_self->__pyx_base.projobj, __pyx_v_user_auth_name, NULL, (&__pyx_v_out_confidence_list));

    /* "pyproj/_crs.pyx":2757
 *                 &out_confidence_list
 *             )
 *             if proj_list != NULL:             # <<<<<<<<<<<<<<
 *                 num_proj_objects = proj_list_get_count(proj_list)
 *             if out_confidence_list != NULL and num_proj_objects > 0:
 */
    __pyx_t_2 = ((__pyx_v_proj_list != NULL) != 0);
    if (__pyx_t_2) {

      /* "pyproj/_crs.pyx":2758
 *             )
 *             if proj_list != NULL:
 *                 num_proj_objects = proj_list_get_count(proj_list)             # <<<<<<<<<<<<<<
 *             if out_confidence_list != NULL and num_proj_objects > 0:
 *                 out_confidence = out_confidence_list[0]
 */
      __pyx_v_num_proj_objects = proj_list_get_count(__pyx_v_proj_list);

      /* "pyproj/_crs.pyx":2757
 *                 &out_confidence_list
 *             )
 *             if proj_list != NULL:             # <<<<<<<<<<<<<<
 *                 num_proj_objects = proj_list_get_count(proj_list)
 *             if out_confidence_list != NULL and num_proj_objects > 0:
 */
    }

    /* "pyproj/_crs.pyx":2759
 *             if proj_list != NULL:
 *                 num_proj_objects = proj_list_get_count(proj_list)
 *             if out_confidence_list != NULL and num_proj_objects > 0:             # <<<<<<<<<<<<<<
 *                 out_confidence = out_confidence_list[0]
 *         finally:
 */
    __pyx_t_1 = ((__pyx_v_out_confidence_list != NULL) != 0);
    if (__pyx_t_1) {
    } else {
      __pyx_t_2 = __pyx_t_1;
      goto __pyx_L9_bool_binop_done;
    }
    __pyx_t_1 = ((__pyx_v_num_proj_objects > 0) != 0);
    __pyx_t_2 = __pyx_t_1;
    __pyx_L9_bool_binop_done:;
    if (__pyx_t_2) {

      /* "pyproj/_crs.pyx":2760
 *                 num_proj_objects = proj_list_get_count(proj_list)
 *             if out_confidence_list != NULL and num_proj_objects > 0:
 *                 out_confidence = out_confidence_list[0]             # <<<<<<<<<<<<<<
 *         finally:
 *             if out_confidence_list != NULL:
 */
      __pyx_v_out_confidence = (__pyx_v_out_confidence_list[0]);

      /* "pyproj/_crs.pyx":2759
 *             if proj_list != NULL:
 *                 num_proj_objects = proj_list_get_count(proj_list)
 *             if out_confidence_list != NULL and num_proj_objects > 0:             # <<<<<<<<<<<<<<
 *                 out_confidence = out_confidence_list[0]
 *         finally:
 */
    }
  }

  /* "pyproj/_crs.pyx":2762
 *                 out_confidence = out_confidence_list[0]
 *         finally:
 *             if out_confidence_list != NULL:             # <<<<<<<<<<<<<<
 *                 proj_int_list_destroy(out_confidence_list)
 *             CRSError.clear()
 */
  /*finally:*/ {
    /*normal exit:*/{
      __pyx_t_2 = ((__pyx_v_out_confidence_list != NULL) != 0);
      if (__pyx_t_2) {

        /* "pyproj/_crs.pyx":2763
 *         finally:
 *             if out_confidence_list != NULL:
 *                 proj_int_list_destroy(out_confidence_list)             # <<<<<<<<<<<<<<
 *             CRSError.clear()
 * 
 */
        proj_int_list_destroy(__pyx_v_out_confidence_list);

        /* "pyproj/_crs.pyx":2762
 *                 out_confidence = out_confidence_list[0]
 *         finally:
 *             if out_confidence_list != NULL:             # <<<<<<<<<<<<<<
 *                 proj_int_list_destroy(out_confidence_list)
 *             CRSError.clear()
 */
      }

      /* "pyproj/_crs.pyx":2764
 *             if out_confidence_list != NULL:
 *                 proj_int_list_destroy(out_confidence_list)
 *             CRSError.clear()             # <<<<<<<<<<<<<<
 * 
 *         # check to make sure that the projection found is valid
 */
      __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2764, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_clear); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2764, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2764, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L6;
    }
    __pyx_L6:;
  }

  /* "pyproj/_crs.pyx":2768
 *         # check to make sure that the projection found is valid
 *         if (
 *             proj_list == NULL             # <<<<<<<<<<<<<<
 *             or num_proj_objects <= 0
 *             or out_confidence < min_confidence
 */
  __pyx_t_1 = ((__pyx_v_proj_list == NULL) != 0);
  if (!__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L13_bool_binop_done;
  }

  /* "pyproj/_crs.pyx":2769
 *         if (
 *             proj_list == NULL
 *             or num_proj_objects <= 0             # <<<<<<<<<<<<<<
 *             or out_confidence < min_confidence
 *         ):
 */
  __pyx_t_1 = ((__pyx_v_num_proj_objects <= 0) != 0);
  if (!__pyx_t_1) {
  } else {
    __pyx_t_2 = __pyx_t_1;
    goto __pyx_L13_bool_binop_done;
  }

  /* "pyproj/_crs.pyx":2770
 *             proj_list == NULL
 *             or num_proj_objects <= 0
 *             or out_confidence < min_confidence             # <<<<<<<<<<<<<<
 *         ):
 *             if proj_list != NULL:
 */
  __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_out_confidence); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2770, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = PyObject_RichCompare(__pyx_t_3, __pyx_v_min_confidence, Py_LT); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2770, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 2770, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_2 = __pyx_t_1;
  __pyx_L13_bool_binop_done:;

  /* "pyproj/_crs.pyx":2767
 * 
 *         # check to make sure that the projection found is valid
 *         if (             # <<<<<<<<<<<<<<
 *             proj_list == NULL
 *             or num_proj_objects <= 0
 */
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2772
 *             or out_confidence < min_confidence
 *         ):
 *             if proj_list != NULL:             # <<<<<<<<<<<<<<
 *                 proj_list_destroy(proj_list)
 *             return None
 */
    __pyx_t_2 = ((__pyx_v_proj_list != NULL) != 0);
    if (__pyx_t_2) {

      /* "pyproj/_crs.pyx":2773
 *         ):
 *             if proj_list != NULL:
 *                 proj_list_destroy(proj_list)             # <<<<<<<<<<<<<<
 *             return None
 * 
 */
      proj_list_destroy(__pyx_v_proj_list);

      /* "pyproj/_crs.pyx":2772
 *             or out_confidence < min_confidence
 *         ):
 *             if proj_list != NULL:             # <<<<<<<<<<<<<<
 *                 proj_list_destroy(proj_list)
 *             return None
 */
    }

    /* "pyproj/_crs.pyx":2774
 *             if proj_list != NULL:
 *                 proj_list_destroy(proj_list)
 *             return None             # <<<<<<<<<<<<<<
 * 
 *         # retrieve the best matching projection
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2767
 * 
 *         # check to make sure that the projection found is valid
 *         if (             # <<<<<<<<<<<<<<
 *             proj_list == NULL
 *             or num_proj_objects <= 0
 */
  }

  /* "pyproj/_crs.pyx":2777
 * 
 *         # retrieve the best matching projection
 *         cdef PJ* proj = NULL             # <<<<<<<<<<<<<<
 *         cdef int iii = 0
 *         try:
 */
  __pyx_v_proj = NULL;

  /* "pyproj/_crs.pyx":2778
 *         # retrieve the best matching projection
 *         cdef PJ* proj = NULL
 *         cdef int iii = 0             # <<<<<<<<<<<<<<
 *         try:
 *             proj = proj_list_get(self.context, proj_list, 0)
 */
  __pyx_v_iii = 0;

  /* "pyproj/_crs.pyx":2779
 *         cdef PJ* proj = NULL
 *         cdef int iii = 0
 *         try:             # <<<<<<<<<<<<<<
 *             proj = proj_list_get(self.context, proj_list, 0)
 *         finally:
 */
  /*try:*/ {

    /* "pyproj/_crs.pyx":2780
 *         cdef int iii = 0
 *         try:
 *             proj = proj_list_get(self.context, proj_list, 0)             # <<<<<<<<<<<<<<
 *         finally:
 *             for iii in range(1, num_proj_objects):
 */
    __pyx_v_proj = proj_list_get(__pyx_v_self->__pyx_base.context, __pyx_v_proj_list, 0);
  }

  /* "pyproj/_crs.pyx":2782
 *             proj = proj_list_get(self.context, proj_list, 0)
 *         finally:
 *             for iii in range(1, num_proj_objects):             # <<<<<<<<<<<<<<
 *                 proj_destroy(proj_list_get(self.context, proj_list, iii))
 *             proj_list_destroy(proj_list)
 */
  /*finally:*/ {
    /*normal exit:*/{
      __pyx_t_7 = __pyx_v_num_proj_objects;
      __pyx_t_8 = __pyx_t_7;
      for (__pyx_t_9 = 1; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) {
        __pyx_v_iii = __pyx_t_9;

        /* "pyproj/_crs.pyx":2783
 *         finally:
 *             for iii in range(1, num_proj_objects):
 *                 proj_destroy(proj_list_get(self.context, proj_list, iii))             # <<<<<<<<<<<<<<
 *             proj_list_destroy(proj_list)
 *             CRSError.clear()
 */
        proj_destroy(proj_list_get(__pyx_v_self->__pyx_base.context, __pyx_v_proj_list, __pyx_v_iii));
      }

      /* "pyproj/_crs.pyx":2784
 *             for iii in range(1, num_proj_objects):
 *                 proj_destroy(proj_list_get(self.context, proj_list, iii))
 *             proj_list_destroy(proj_list)             # <<<<<<<<<<<<<<
 *             CRSError.clear()
 *         if proj == NULL:
 */
      proj_list_destroy(__pyx_v_proj_list);

      /* "pyproj/_crs.pyx":2785
 *                 proj_destroy(proj_list_get(self.context, proj_list, iii))
 *             proj_list_destroy(proj_list)
 *             CRSError.clear()             # <<<<<<<<<<<<<<
 *         if proj == NULL:
 *             return None
 */
      __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2785, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_clear); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2785, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
        __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
        if (likely(__pyx_t_3)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
          __Pyx_INCREF(__pyx_t_3);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_4, function);
        }
      }
      __pyx_t_5 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_4);
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2785, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      goto __pyx_L19;
    }
    __pyx_L19:;
  }

  /* "pyproj/_crs.pyx":2786
 *             proj_list_destroy(proj_list)
 *             CRSError.clear()
 *         if proj == NULL:             # <<<<<<<<<<<<<<
 *             return None
 * 
 */
  __pyx_t_2 = ((__pyx_v_proj == NULL) != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2787
 *             CRSError.clear()
 *         if proj == NULL:
 *             return None             # <<<<<<<<<<<<<<
 * 
 *         # convert the matching projection to the EPSG code
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2786
 *             proj_list_destroy(proj_list)
 *             CRSError.clear()
 *         if proj == NULL:             # <<<<<<<<<<<<<<
 *             return None
 * 
 */
  }

  /* "pyproj/_crs.pyx":2792
 *         cdef const char* code
 *         cdef const char* out_auth_name
 *         try:             # <<<<<<<<<<<<<<
 *             code = proj_get_id_code(proj, 0)
 *             out_auth_name = proj_get_id_auth_name(proj, 0)
 */
  /*try:*/ {

    /* "pyproj/_crs.pyx":2793
 *         cdef const char* out_auth_name
 *         try:
 *             code = proj_get_id_code(proj, 0)             # <<<<<<<<<<<<<<
 *             out_auth_name = proj_get_id_auth_name(proj, 0)
 *             if out_auth_name != NULL and code != NULL:
 */
    __pyx_v_code = proj_get_id_code(__pyx_v_proj, 0);

    /* "pyproj/_crs.pyx":2794
 *         try:
 *             code = proj_get_id_code(proj, 0)
 *             out_auth_name = proj_get_id_auth_name(proj, 0)             # <<<<<<<<<<<<<<
 *             if out_auth_name != NULL and code != NULL:
 *                 return pystrdecode(out_auth_name), pystrdecode(code)
 */
    __pyx_v_out_auth_name = proj_get_id_auth_name(__pyx_v_proj, 0);

    /* "pyproj/_crs.pyx":2795
 *             code = proj_get_id_code(proj, 0)
 *             out_auth_name = proj_get_id_auth_name(proj, 0)
 *             if out_auth_name != NULL and code != NULL:             # <<<<<<<<<<<<<<
 *                 return pystrdecode(out_auth_name), pystrdecode(code)
 *         finally:
 */
    __pyx_t_1 = ((__pyx_v_out_auth_name != NULL) != 0);
    if (__pyx_t_1) {
    } else {
      __pyx_t_2 = __pyx_t_1;
      goto __pyx_L27_bool_binop_done;
    }
    __pyx_t_1 = ((__pyx_v_code != NULL) != 0);
    __pyx_t_2 = __pyx_t_1;
    __pyx_L27_bool_binop_done:;
    if (__pyx_t_2) {

      /* "pyproj/_crs.pyx":2796
 *             out_auth_name = proj_get_id_auth_name(proj, 0)
 *             if out_auth_name != NULL and code != NULL:
 *                 return pystrdecode(out_auth_name), pystrdecode(code)             # <<<<<<<<<<<<<<
 *         finally:
 *             proj_destroy(proj)
 */
      __Pyx_XDECREF(__pyx_r);
      __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pystrdecode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2796, __pyx_L24_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = __Pyx_PyBytes_FromString(__pyx_v_out_auth_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2796, __pyx_L24_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_10 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
        __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_4);
        if (likely(__pyx_t_10)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
          __Pyx_INCREF(__pyx_t_10);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_4, function);
        }
      }
      __pyx_t_5 = (__pyx_t_10) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_10, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3);
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2796, __pyx_L24_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_pystrdecode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2796, __pyx_L24_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_10 = __Pyx_PyBytes_FromString(__pyx_v_code); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2796, __pyx_L24_error)
      __Pyx_GOTREF(__pyx_t_10);
      __pyx_t_11 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_11)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_11);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      __pyx_t_4 = (__pyx_t_11) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_11, __pyx_t_10) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_10);
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2796, __pyx_L24_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2796, __pyx_L24_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_GIVEREF(__pyx_t_5);
      PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5);
      __Pyx_GIVEREF(__pyx_t_4);
      PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4);
      __pyx_t_5 = 0;
      __pyx_t_4 = 0;
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L23_return;

      /* "pyproj/_crs.pyx":2795
 *             code = proj_get_id_code(proj, 0)
 *             out_auth_name = proj_get_id_auth_name(proj, 0)
 *             if out_auth_name != NULL and code != NULL:             # <<<<<<<<<<<<<<
 *                 return pystrdecode(out_auth_name), pystrdecode(code)
 *         finally:
 */
    }
  }

  /* "pyproj/_crs.pyx":2798
 *                 return pystrdecode(out_auth_name), pystrdecode(code)
 *         finally:
 *             proj_destroy(proj)             # <<<<<<<<<<<<<<
 *             CRSError.clear()
 * 
 */
  /*finally:*/ {
    /*normal exit:*/{
      proj_destroy(__pyx_v_proj);

      /* "pyproj/_crs.pyx":2799
 *         finally:
 *             proj_destroy(proj)
 *             CRSError.clear()             # <<<<<<<<<<<<<<
 * 
 *         return None
 */
      __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2799, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_clear); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2799, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2799, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L25;
    }
    __pyx_L24_error:;
    /*exception exit:*/{
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0;
      __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
      __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_16, &__pyx_t_17, &__pyx_t_18);
      if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_13, &__pyx_t_14, &__pyx_t_15) < 0)) __Pyx_ErrFetch(&__pyx_t_13, &__pyx_t_14, &__pyx_t_15);
      __Pyx_XGOTREF(__pyx_t_13);
      __Pyx_XGOTREF(__pyx_t_14);
      __Pyx_XGOTREF(__pyx_t_15);
      __Pyx_XGOTREF(__pyx_t_16);
      __Pyx_XGOTREF(__pyx_t_17);
      __Pyx_XGOTREF(__pyx_t_18);
      __pyx_t_7 = __pyx_lineno; __pyx_t_8 = __pyx_clineno; __pyx_t_12 = __pyx_filename;
      {

        /* "pyproj/_crs.pyx":2798
 *                 return pystrdecode(out_auth_name), pystrdecode(code)
 *         finally:
 *             proj_destroy(proj)             # <<<<<<<<<<<<<<
 *             CRSError.clear()
 * 
 */
        proj_destroy(__pyx_v_proj);

        /* "pyproj/_crs.pyx":2799
 *         finally:
 *             proj_destroy(proj)
 *             CRSError.clear()             # <<<<<<<<<<<<<<
 * 
 *         return None
 */
        __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2799, __pyx_L30_error)
        __Pyx_GOTREF(__pyx_t_5);
        __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_clear); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2799, __pyx_L30_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        __pyx_t_5 = NULL;
        if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
          __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
          if (likely(__pyx_t_5)) {
            PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
            __Pyx_INCREF(__pyx_t_5);
            __Pyx_INCREF(function);
            __Pyx_DECREF_SET(__pyx_t_4, function);
          }
        }
        __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5) : __Pyx_PyObject_CallNoArg(__pyx_t_4);
        __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
        if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2799, __pyx_L30_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      }
      if (PY_MAJOR_VERSION >= 3) {
        __Pyx_XGIVEREF(__pyx_t_16);
        __Pyx_XGIVEREF(__pyx_t_17);
        __Pyx_XGIVEREF(__pyx_t_18);
        __Pyx_ExceptionReset(__pyx_t_16, __pyx_t_17, __pyx_t_18);
      }
      __Pyx_XGIVEREF(__pyx_t_13);
      __Pyx_XGIVEREF(__pyx_t_14);
      __Pyx_XGIVEREF(__pyx_t_15);
      __Pyx_ErrRestore(__pyx_t_13, __pyx_t_14, __pyx_t_15);
      __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_15 = 0; __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0;
      __pyx_lineno = __pyx_t_7; __pyx_clineno = __pyx_t_8; __pyx_filename = __pyx_t_12;
      goto __pyx_L1_error;
      __pyx_L30_error:;
      if (PY_MAJOR_VERSION >= 3) {
        __Pyx_XGIVEREF(__pyx_t_16);
        __Pyx_XGIVEREF(__pyx_t_17);
        __Pyx_XGIVEREF(__pyx_t_18);
        __Pyx_ExceptionReset(__pyx_t_16, __pyx_t_17, __pyx_t_18);
      }
      __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
      __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
      __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
      __pyx_t_16 = 0; __pyx_t_17 = 0; __pyx_t_18 = 0;
      goto __pyx_L1_error;
    }
    __pyx_L23_return: {
      __pyx_t_18 = __pyx_r;
      __pyx_r = 0;

      /* "pyproj/_crs.pyx":2798
 *                 return pystrdecode(out_auth_name), pystrdecode(code)
 *         finally:
 *             proj_destroy(proj)             # <<<<<<<<<<<<<<
 *             CRSError.clear()
 * 
 */
      proj_destroy(__pyx_v_proj);

      /* "pyproj/_crs.pyx":2799
 *         finally:
 *             proj_destroy(proj)
 *             CRSError.clear()             # <<<<<<<<<<<<<<
 * 
 *         return None
 */
      __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2799, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_clear); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2799, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_5, function);
        }
      }
      __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2799, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_18;
      __pyx_t_18 = 0;
      goto __pyx_L0;
    }
    __pyx_L25:;
  }

  /* "pyproj/_crs.pyx":2801
 *             CRSError.clear()
 * 
 *         return None             # <<<<<<<<<<<<<<
 * 
 *     def _is_crs_property(self, property_name, property_types, sub_crs_index=0):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2700
 *         return None
 * 
 *     def to_authority(self, auth_name=None, min_confidence=70):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("pyproj._crs._CRS.to_authority", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_b_auth_name);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2803
 *         return None
 * 
 *     def _is_crs_property(self, property_name, property_types, sub_crs_index=0):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_11_is_crs_property(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_4_CRS_10_is_crs_property[] = "_CRS._is_crs_property(self, property_name, property_types, sub_crs_index=0)\n\n        .. versionadded:: 2.2.0\n\n        This method will check for a property on the CRS.\n        It will check if it has the property on the sub CRS\n        if it is a compount CRS and will check if the source CRS\n        has the property if it is a bound CRS.\n\n        Parameters\n        ----------\n        property_name: str\n            The name of the CRS property.\n        property_types: tuple(PJ_TYPE)\n            The types to check for for the property.\n        sub_crs_index: int, optional\n            THe index of the CRS in the sub CRS list. Default is 0.\n\n        Returns\n        -------\n        bool:\n            True if the CRS has this property.\n        ";
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_11_is_crs_property(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_property_name = 0;
  PyObject *__pyx_v_property_types = 0;
  PyObject *__pyx_v_sub_crs_index = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_is_crs_property (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_property_name,&__pyx_n_s_property_types,&__pyx_n_s_sub_crs_index,0};
    PyObject* values[3] = {0,0,0};
    values[2] = ((PyObject *)__pyx_int_0);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_property_name)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_property_types)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_is_crs_property", 0, 2, 3, 1); __PYX_ERR(0, 2803, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_sub_crs_index);
          if (value) { values[2] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_is_crs_property") < 0)) __PYX_ERR(0, 2803, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_property_name = values[0];
    __pyx_v_property_types = values[1];
    __pyx_v_sub_crs_index = values[2];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_is_crs_property", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2803, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs._CRS._is_crs_property", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_10_is_crs_property(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self), __pyx_v_property_name, __pyx_v_property_types, __pyx_v_sub_crs_index);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_10_is_crs_property(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self, PyObject *__pyx_v_property_name, PyObject *__pyx_v_property_types, PyObject *__pyx_v_sub_crs_index) {
  PyObject *__pyx_v_sub_crs = NULL;
  PyObject *__pyx_v_is_property = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("_is_crs_property", 0);

  /* "pyproj/_crs.pyx":2826
 *             True if the CRS has this property.
 *         """
 *         if self.sub_crs_list:             # <<<<<<<<<<<<<<
 *             sub_crs = self.sub_crs_list[sub_crs_index]
 *             if sub_crs.is_bound:
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_sub_crs_list); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2826, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 2826, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2827
 *         """
 *         if self.sub_crs_list:
 *             sub_crs = self.sub_crs_list[sub_crs_index]             # <<<<<<<<<<<<<<
 *             if sub_crs.is_bound:
 *                 is_property = getattr(sub_crs.source_crs, property_name)
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_sub_crs_list); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2827, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_v_sub_crs_index); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2827, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_sub_crs = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "pyproj/_crs.pyx":2828
 *         if self.sub_crs_list:
 *             sub_crs = self.sub_crs_list[sub_crs_index]
 *             if sub_crs.is_bound:             # <<<<<<<<<<<<<<
 *                 is_property = getattr(sub_crs.source_crs, property_name)
 *             else:
 */
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_sub_crs, __pyx_n_s_is_bound); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2828, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 2828, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (__pyx_t_2) {

      /* "pyproj/_crs.pyx":2829
 *             sub_crs = self.sub_crs_list[sub_crs_index]
 *             if sub_crs.is_bound:
 *                 is_property = getattr(sub_crs.source_crs, property_name)             # <<<<<<<<<<<<<<
 *             else:
 *                 is_property = getattr(sub_crs, property_name)
 */
      __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_sub_crs, __pyx_n_s_source_crs); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2829, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_1 = __Pyx_GetAttr(__pyx_t_3, __pyx_v_property_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2829, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_v_is_property = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "pyproj/_crs.pyx":2828
 *         if self.sub_crs_list:
 *             sub_crs = self.sub_crs_list[sub_crs_index]
 *             if sub_crs.is_bound:             # <<<<<<<<<<<<<<
 *                 is_property = getattr(sub_crs.source_crs, property_name)
 *             else:
 */
      goto __pyx_L4;
    }

    /* "pyproj/_crs.pyx":2831
 *                 is_property = getattr(sub_crs.source_crs, property_name)
 *             else:
 *                 is_property = getattr(sub_crs, property_name)             # <<<<<<<<<<<<<<
 *         elif self.is_bound:
 *             is_property = getattr(self.source_crs, property_name)
 */
    /*else*/ {
      __pyx_t_1 = __Pyx_GetAttr(__pyx_v_sub_crs, __pyx_v_property_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2831, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_v_is_property = __pyx_t_1;
      __pyx_t_1 = 0;
    }
    __pyx_L4:;

    /* "pyproj/_crs.pyx":2826
 *             True if the CRS has this property.
 *         """
 *         if self.sub_crs_list:             # <<<<<<<<<<<<<<
 *             sub_crs = self.sub_crs_list[sub_crs_index]
 *             if sub_crs.is_bound:
 */
    goto __pyx_L3;
  }

  /* "pyproj/_crs.pyx":2832
 *             else:
 *                 is_property = getattr(sub_crs, property_name)
 *         elif self.is_bound:             # <<<<<<<<<<<<<<
 *             is_property = getattr(self.source_crs, property_name)
 *         else:
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_is_bound); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2832, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 2832, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2833
 *                 is_property = getattr(sub_crs, property_name)
 *         elif self.is_bound:
 *             is_property = getattr(self.source_crs, property_name)             # <<<<<<<<<<<<<<
 *         else:
 *             is_property = self._type in property_types
 */
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_source_crs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2833, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_GetAttr(__pyx_t_1, __pyx_v_property_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2833, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_is_property = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "pyproj/_crs.pyx":2832
 *             else:
 *                 is_property = getattr(sub_crs, property_name)
 *         elif self.is_bound:             # <<<<<<<<<<<<<<
 *             is_property = getattr(self.source_crs, property_name)
 *         else:
 */
    goto __pyx_L3;
  }

  /* "pyproj/_crs.pyx":2835
 *             is_property = getattr(self.source_crs, property_name)
 *         else:
 *             is_property = self._type in property_types             # <<<<<<<<<<<<<<
 *         return is_property
 * 
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyInt_From_PJ_TYPE(__pyx_v_self->_type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2835, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_t_3, __pyx_v_property_types, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 2835, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2835, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_is_property = __pyx_t_3;
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "pyproj/_crs.pyx":2836
 *         else:
 *             is_property = self._type in property_types
 *         return is_property             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_is_property);
  __pyx_r = __pyx_v_is_property;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2803
 *         return None
 * 
 *     def _is_crs_property(self, property_name, property_types, sub_crs_index=0):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("pyproj._crs._CRS._is_crs_property", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_sub_crs);
  __Pyx_XDECREF(__pyx_v_is_property);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2839
 * 
 *     @property
 *     def is_geographic(self):             # <<<<<<<<<<<<<<
 *         """
 *         This checks if the CRS is geographic.
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_13is_geographic_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_13is_geographic_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_13is_geographic___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_13is_geographic___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "pyproj/_crs.pyx":2851
 *             True if the CRS is in geographic (lon/lat) coordinates.
 *         """
 *         return self._is_crs_property(             # <<<<<<<<<<<<<<
 *             "is_geographic",
 *             (
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_is_crs_property); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2851, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);

  /* "pyproj/_crs.pyx":2854
 *             "is_geographic",
 *             (
 *                 PJ_TYPE_GEOGRAPHIC_CRS,             # <<<<<<<<<<<<<<
 *                 PJ_TYPE_GEOGRAPHIC_2D_CRS,
 *                 PJ_TYPE_GEOGRAPHIC_3D_CRS
 */
  __pyx_t_3 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_GEOGRAPHIC_CRS); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2854, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);

  /* "pyproj/_crs.pyx":2855
 *             (
 *                 PJ_TYPE_GEOGRAPHIC_CRS,
 *                 PJ_TYPE_GEOGRAPHIC_2D_CRS,             # <<<<<<<<<<<<<<
 *                 PJ_TYPE_GEOGRAPHIC_3D_CRS
 *             )
 */
  __pyx_t_4 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_GEOGRAPHIC_2D_CRS); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2855, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);

  /* "pyproj/_crs.pyx":2856
 *                 PJ_TYPE_GEOGRAPHIC_CRS,
 *                 PJ_TYPE_GEOGRAPHIC_2D_CRS,
 *                 PJ_TYPE_GEOGRAPHIC_3D_CRS             # <<<<<<<<<<<<<<
 *             )
 *         )
 */
  __pyx_t_5 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_GEOGRAPHIC_3D_CRS); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2856, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);

  /* "pyproj/_crs.pyx":2854
 *             "is_geographic",
 *             (
 *                 PJ_TYPE_GEOGRAPHIC_CRS,             # <<<<<<<<<<<<<<
 *                 PJ_TYPE_GEOGRAPHIC_2D_CRS,
 *                 PJ_TYPE_GEOGRAPHIC_3D_CRS
 */
  __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2854, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_5);
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_5 = NULL;
  __pyx_t_7 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_7 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_n_u_is_geographic, __pyx_t_6};
    __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2851, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_n_u_is_geographic, __pyx_t_6};
    __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2851, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  } else
  #endif
  {
    __pyx_t_4 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2851, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    if (__pyx_t_5) {
      __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5); __pyx_t_5 = NULL;
    }
    __Pyx_INCREF(__pyx_n_u_is_geographic);
    __Pyx_GIVEREF(__pyx_n_u_is_geographic);
    PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_7, __pyx_n_u_is_geographic);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_7, __pyx_t_6);
    __pyx_t_6 = 0;
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2851, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2839
 * 
 *     @property
 *     def is_geographic(self):             # <<<<<<<<<<<<<<
 *         """
 *         This checks if the CRS is geographic.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("pyproj._crs._CRS.is_geographic.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2861
 * 
 *     @property
 *     def is_projected(self):             # <<<<<<<<<<<<<<
 *         """
 *         This checks if the CRS is projected.
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_12is_projected_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_12is_projected_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_12is_projected___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_12is_projected___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "pyproj/_crs.pyx":2873
 *             True if CRS is projected.
 *         """
 *         return self._is_crs_property(             # <<<<<<<<<<<<<<
 *             "is_projected",
 *             (PJ_TYPE_PROJECTED_CRS,)
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_is_crs_property); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2873, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);

  /* "pyproj/_crs.pyx":2875
 *         return self._is_crs_property(
 *             "is_projected",
 *             (PJ_TYPE_PROJECTED_CRS,)             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  __pyx_t_3 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_PROJECTED_CRS); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2875, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2875, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = NULL;
  __pyx_t_5 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_5 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_n_u_is_projected, __pyx_t_4};
    __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2873, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_n_u_is_projected, __pyx_t_4};
    __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_5, 2+__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2873, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  } else
  #endif
  {
    __pyx_t_6 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2873, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (__pyx_t_3) {
      __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3); __pyx_t_3 = NULL;
    }
    __Pyx_INCREF(__pyx_n_u_is_projected);
    __Pyx_GIVEREF(__pyx_n_u_is_projected);
    PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_n_u_is_projected);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_t_4);
    __pyx_t_4 = 0;
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2873, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2861
 * 
 *     @property
 *     def is_projected(self):             # <<<<<<<<<<<<<<
 *         """
 *         This checks if the CRS is projected.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("pyproj._crs._CRS.is_projected.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2879
 * 
 *     @property
 *     def is_vertical(self):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_11is_vertical_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_11is_vertical_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_11is_vertical___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_11is_vertical___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "pyproj/_crs.pyx":2893
 *             True if CRS is vertical.
 *         """
 *         return self._is_crs_property(             # <<<<<<<<<<<<<<
 *             "is_vertical",
 *             (PJ_TYPE_VERTICAL_CRS,),
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_is_crs_property); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2893, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);

  /* "pyproj/_crs.pyx":2895
 *         return self._is_crs_property(
 *             "is_vertical",
 *             (PJ_TYPE_VERTICAL_CRS,),             # <<<<<<<<<<<<<<
 *             sub_crs_index=1
 *         )
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_VERTICAL_CRS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2895, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2895, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
  __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":2893
 *             True if CRS is vertical.
 *         """
 *         return self._is_crs_property(             # <<<<<<<<<<<<<<
 *             "is_vertical",
 *             (PJ_TYPE_VERTICAL_CRS,),
 */
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2893, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_n_u_is_vertical);
  __Pyx_GIVEREF(__pyx_n_u_is_vertical);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_n_u_is_vertical);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_3);
  __pyx_t_3 = 0;

  /* "pyproj/_crs.pyx":2896
 *             "is_vertical",
 *             (PJ_TYPE_VERTICAL_CRS,),
 *             sub_crs_index=1             # <<<<<<<<<<<<<<
 *         )
 * 
 */
  __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2896, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_sub_crs_index, __pyx_int_1) < 0) __PYX_ERR(0, 2896, __pyx_L1_error)

  /* "pyproj/_crs.pyx":2893
 *             True if CRS is vertical.
 *         """
 *         return self._is_crs_property(             # <<<<<<<<<<<<<<
 *             "is_vertical",
 *             (PJ_TYPE_VERTICAL_CRS,),
 */
  __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2893, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2879
 * 
 *     @property
 *     def is_vertical(self):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("pyproj._crs._CRS.is_vertical.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2900
 * 
 *     @property
 *     def is_bound(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_8is_bound_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_8is_bound_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_8is_bound___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_8is_bound___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "pyproj/_crs.pyx":2907
 *             True if CRS is bound.
 *         """
 *         return self._type == PJ_TYPE_BOUND_CRS             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong((__pyx_v_self->_type == PJ_TYPE_BOUND_CRS)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2907, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2900
 * 
 *     @property
 *     def is_bound(self):             # <<<<<<<<<<<<<<
 *         """
 *         Returns
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs._CRS.is_bound.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2910
 * 
 *     @property
 *     def is_engineering(self):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_14is_engineering_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_14is_engineering_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_14is_engineering___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_14is_engineering___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "pyproj/_crs.pyx":2919
 *             True if CRS is local/engineering.
 *         """
 *         return self._type == PJ_TYPE_ENGINEERING_CRS             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong((__pyx_v_self->_type == PJ_TYPE_ENGINEERING_CRS)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2919, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2910
 * 
 *     @property
 *     def is_engineering(self):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs._CRS.is_engineering.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2922
 * 
 *     @property
 *     def is_geocentric(self):             # <<<<<<<<<<<<<<
 *         """
 *         This checks if the CRS is geocentric and
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_13is_geocentric_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_13is_geocentric_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_13is_geocentric___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_13is_geocentric___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "pyproj/_crs.pyx":2932
 *             True if CRS is in geocentric (x/y) coordinates.
 *         """
 *         if self.is_bound:             # <<<<<<<<<<<<<<
 *             return self.source_crs.is_geocentric
 *         return self._type == PJ_TYPE_GEOCENTRIC_CRS
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_is_bound); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2932, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 2932, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2933
 *         """
 *         if self.is_bound:
 *             return self.source_crs.is_geocentric             # <<<<<<<<<<<<<<
 *         return self._type == PJ_TYPE_GEOCENTRIC_CRS
 * 
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_source_crs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2933, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_is_geocentric); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2933, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2932
 *             True if CRS is in geocentric (x/y) coordinates.
 *         """
 *         if self.is_bound:             # <<<<<<<<<<<<<<
 *             return self.source_crs.is_geocentric
 *         return self._type == PJ_TYPE_GEOCENTRIC_CRS
 */
  }

  /* "pyproj/_crs.pyx":2934
 *         if self.is_bound:
 *             return self.source_crs.is_geocentric
 *         return self._type == PJ_TYPE_GEOCENTRIC_CRS             # <<<<<<<<<<<<<<
 * 
 *     def _equals(self, _CRS other, bint ignore_axis_order):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyBool_FromLong((__pyx_v_self->_type == PJ_TYPE_GEOCENTRIC_CRS)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2934, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2922
 * 
 *     @property
 *     def is_geocentric(self):             # <<<<<<<<<<<<<<
 *         """
 *         This checks if the CRS is geocentric and
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("pyproj._crs._CRS.is_geocentric.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2936
 *         return self._type == PJ_TYPE_GEOCENTRIC_CRS
 * 
 *     def _equals(self, _CRS other, bint ignore_axis_order):             # <<<<<<<<<<<<<<
 *         if ignore_axis_order:
 *             # Only to be used with DerivedCRS/ProjectedCRS/GeographicCRS
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_13_equals(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_4_CRS_12_equals[] = "_CRS._equals(self, _CRS other, bool ignore_axis_order)";
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_13_equals(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_other = 0;
  int __pyx_v_ignore_axis_order;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("_equals (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_other,&__pyx_n_s_ignore_axis_order,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_other)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ignore_axis_order)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("_equals", 1, 2, 2, 1); __PYX_ERR(0, 2936, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_equals") < 0)) __PYX_ERR(0, 2936, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_other = ((struct __pyx_obj_6pyproj_4_crs__CRS *)values[0]);
    __pyx_v_ignore_axis_order = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_ignore_axis_order == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2936, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("_equals", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2936, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs._CRS._equals", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_6pyproj_4_crs__CRS, 1, "other", 0))) __PYX_ERR(0, 2936, __pyx_L1_error)
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_12_equals(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self), __pyx_v_other, __pyx_v_ignore_axis_order);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_12_equals(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self, struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_other, int __pyx_v_ignore_axis_order) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("_equals", 0);

  /* "pyproj/_crs.pyx":2937
 * 
 *     def _equals(self, _CRS other, bint ignore_axis_order):
 *         if ignore_axis_order:             # <<<<<<<<<<<<<<
 *             # Only to be used with DerivedCRS/ProjectedCRS/GeographicCRS
 *             return proj_is_equivalent_to(
 */
  __pyx_t_1 = (__pyx_v_ignore_axis_order != 0);
  if (__pyx_t_1) {

    /* "pyproj/_crs.pyx":2939
 *         if ignore_axis_order:
 *             # Only to be used with DerivedCRS/ProjectedCRS/GeographicCRS
 *             return proj_is_equivalent_to(             # <<<<<<<<<<<<<<
 *                 self.projobj,
 *                 other.projobj,
 */
    __Pyx_XDECREF(__pyx_r);

    /* "pyproj/_crs.pyx":2943
 *                 other.projobj,
 *                 PJ_COMP_EQUIVALENT_EXCEPT_AXIS_ORDER_GEOGCRS,
 *             ) == 1             # <<<<<<<<<<<<<<
 *         return self._is_equivalent(other)
 * 
 */
    __pyx_t_2 = __Pyx_PyBool_FromLong((proj_is_equivalent_to(__pyx_v_self->__pyx_base.projobj, __pyx_v_other->__pyx_base.projobj, PJ_COMP_EQUIVALENT_EXCEPT_AXIS_ORDER_GEOGCRS) == 1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2943, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2937
 * 
 *     def _equals(self, _CRS other, bint ignore_axis_order):
 *         if ignore_axis_order:             # <<<<<<<<<<<<<<
 *             # Only to be used with DerivedCRS/ProjectedCRS/GeographicCRS
 *             return proj_is_equivalent_to(
 */
  }

  /* "pyproj/_crs.pyx":2944
 *                 PJ_COMP_EQUIVALENT_EXCEPT_AXIS_ORDER_GEOGCRS,
 *             ) == 1
 *         return self._is_equivalent(other)             # <<<<<<<<<<<<<<
 * 
 *     def equals(self, other, ignore_axis_order=False):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_is_equivalent); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2944, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, ((PyObject *)__pyx_v_other)) : __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_other));
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2944, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2936
 *         return self._type == PJ_TYPE_GEOCENTRIC_CRS
 * 
 *     def _equals(self, _CRS other, bint ignore_axis_order):             # <<<<<<<<<<<<<<
 *         if ignore_axis_order:
 *             # Only to be used with DerivedCRS/ProjectedCRS/GeographicCRS
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("pyproj._crs._CRS._equals", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pyx":2946
 *         return self._is_equivalent(other)
 * 
 *     def equals(self, other, ignore_axis_order=False):             # <<<<<<<<<<<<<<
 *         """
 *         Check if the projection objects are equivalent.
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_15equals(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_6pyproj_4_crs_4_CRS_14equals[] = "_CRS.equals(self, other, ignore_axis_order=False)\n\n        Check if the projection objects are equivalent.\n\n        Properties\n        ----------\n        other: CRS\n            Check if the other object\n        ignore_axis_order: bool, optional\n            If True, it will compare the CRS class and ignore the axis order.\n            Default is False.\n\n        Returns\n        -------\n        bool\n        ";
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_15equals(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_other = 0;
  PyObject *__pyx_v_ignore_axis_order = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("equals (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_other,&__pyx_n_s_ignore_axis_order,0};
    PyObject* values[2] = {0,0};
    values[1] = ((PyObject *)Py_False);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_other)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ignore_axis_order);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "equals") < 0)) __PYX_ERR(0, 2946, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_other = values[0];
    __pyx_v_ignore_axis_order = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("equals", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2946, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("pyproj._crs._CRS.equals", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_14equals(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self), __pyx_v_other, __pyx_v_ignore_axis_order);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_14equals(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self, PyObject *__pyx_v_other, PyObject *__pyx_v_ignore_axis_order) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  __Pyx_RefNannySetupContext("equals", 0);

  /* "pyproj/_crs.pyx":2962
 *         bool
 *         """
 *         if not isinstance(other, _CRS):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._equals(other, ignore_axis_order=ignore_axis_order)
 */
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_other, __pyx_ptype_6pyproj_4_crs__CRS); 
  __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0);
  if (__pyx_t_2) {

    /* "pyproj/_crs.pyx":2963
 *         """
 *         if not isinstance(other, _CRS):
 *             return False             # <<<<<<<<<<<<<<
 *         return self._equals(other, ignore_axis_order=ignore_axis_order)
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_False);
    __pyx_r = Py_False;
    goto __pyx_L0;

    /* "pyproj/_crs.pyx":2962
 *         bool
 *         """
 *         if not isinstance(other, _CRS):             # <<<<<<<<<<<<<<
 *             return False
 *         return self._equals(other, ignore_axis_order=ignore_axis_order)
 */
  }

  /* "pyproj/_crs.pyx":2964
 *         if not isinstance(other, _CRS):
 *             return False
 *         return self._equals(other, ignore_axis_order=ignore_axis_order)             # <<<<<<<<<<<<<<
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_equals); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2964, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2964, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_other);
  __Pyx_GIVEREF(__pyx_v_other);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_other);
  __pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2964, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_ignore_axis_order, __pyx_v_ignore_axis_order) < 0) __PYX_ERR(0, 2964, __pyx_L1_error)
  __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2964, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "pyproj/_crs.pyx":2946
 *         return self._is_equivalent(other)
 * 
 *     def equals(self, other, ignore_axis_order=False):             # <<<<<<<<<<<<<<
 *         """
 *         Check if the projection objects are equivalent.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("pyproj._crs._CRS.equals", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":126
 *     cdef PJ_TYPE _type
 *     cdef PJ_PROJ_INFO projpj_info
 *     cdef readonly object srs             # <<<<<<<<<<<<<<
 *     cdef readonly object type_name
 *     cdef readonly object _ellipsoid
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_3srs_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_3srs_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_3srs___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_3srs___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->srs);
  __pyx_r = __pyx_v_self->srs;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":127
 *     cdef PJ_PROJ_INFO projpj_info
 *     cdef readonly object srs
 *     cdef readonly object type_name             # <<<<<<<<<<<<<<
 *     cdef readonly object _ellipsoid
 *     cdef readonly object _area_of_use
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_9type_name_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_9type_name_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_9type_name___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_9type_name___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->type_name);
  __pyx_r = __pyx_v_self->type_name;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":128
 *     cdef readonly object srs
 *     cdef readonly object type_name
 *     cdef readonly object _ellipsoid             # <<<<<<<<<<<<<<
 *     cdef readonly object _area_of_use
 *     cdef readonly object _prime_meridian
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_10_ellipsoid_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_10_ellipsoid_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_10_ellipsoid___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_10_ellipsoid___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_ellipsoid);
  __pyx_r = __pyx_v_self->_ellipsoid;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":129
 *     cdef readonly object type_name
 *     cdef readonly object _ellipsoid
 *     cdef readonly object _area_of_use             # <<<<<<<<<<<<<<
 *     cdef readonly object _prime_meridian
 *     cdef readonly object _datum
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_12_area_of_use_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_12_area_of_use_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_12_area_of_use___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_12_area_of_use___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_area_of_use);
  __pyx_r = __pyx_v_self->_area_of_use;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":130
 *     cdef readonly object _ellipsoid
 *     cdef readonly object _area_of_use
 *     cdef readonly object _prime_meridian             # <<<<<<<<<<<<<<
 *     cdef readonly object _datum
 *     cdef readonly object _sub_crs_list
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_15_prime_meridian_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_15_prime_meridian_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_15_prime_meridian___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_15_prime_meridian___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_prime_meridian);
  __pyx_r = __pyx_v_self->_prime_meridian;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":131
 *     cdef readonly object _area_of_use
 *     cdef readonly object _prime_meridian
 *     cdef readonly object _datum             # <<<<<<<<<<<<<<
 *     cdef readonly object _sub_crs_list
 *     cdef readonly object _source_crs
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_6_datum_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_6_datum_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_6_datum___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_6_datum___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_datum);
  __pyx_r = __pyx_v_self->_datum;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":132
 *     cdef readonly object _prime_meridian
 *     cdef readonly object _datum
 *     cdef readonly object _sub_crs_list             # <<<<<<<<<<<<<<
 *     cdef readonly object _source_crs
 *     cdef readonly object _target_crs
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_13_sub_crs_list_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_13_sub_crs_list_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_13_sub_crs_list___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_13_sub_crs_list___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_sub_crs_list);
  __pyx_r = __pyx_v_self->_sub_crs_list;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":133
 *     cdef readonly object _datum
 *     cdef readonly object _sub_crs_list
 *     cdef readonly object _source_crs             # <<<<<<<<<<<<<<
 *     cdef readonly object _target_crs
 *     cdef readonly object _geodetic_crs
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_11_source_crs_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_11_source_crs_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_11_source_crs___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_11_source_crs___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_source_crs);
  __pyx_r = __pyx_v_self->_source_crs;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":134
 *     cdef readonly object _sub_crs_list
 *     cdef readonly object _source_crs
 *     cdef readonly object _target_crs             # <<<<<<<<<<<<<<
 *     cdef readonly object _geodetic_crs
 *     cdef readonly object _coordinate_system
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_11_target_crs_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_11_target_crs_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_11_target_crs___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_11_target_crs___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_target_crs);
  __pyx_r = __pyx_v_self->_target_crs;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":135
 *     cdef readonly object _source_crs
 *     cdef readonly object _target_crs
 *     cdef readonly object _geodetic_crs             # <<<<<<<<<<<<<<
 *     cdef readonly object _coordinate_system
 *     cdef readonly object _coordinate_operation
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_13_geodetic_crs_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_13_geodetic_crs_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_13_geodetic_crs___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_13_geodetic_crs___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_geodetic_crs);
  __pyx_r = __pyx_v_self->_geodetic_crs;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":136
 *     cdef readonly object _target_crs
 *     cdef readonly object _geodetic_crs
 *     cdef readonly object _coordinate_system             # <<<<<<<<<<<<<<
 *     cdef readonly object _coordinate_operation
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_18_coordinate_system_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_18_coordinate_system_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_18_coordinate_system___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_18_coordinate_system___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_coordinate_system);
  __pyx_r = __pyx_v_self->_coordinate_system;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyproj/_crs.pxd":137
 *     cdef readonly object _geodetic_crs
 *     cdef readonly object _coordinate_system
 *     cdef readonly object _coordinate_operation             # <<<<<<<<<<<<<<
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_21_coordinate_operation_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_21_coordinate_operation_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_21_coordinate_operation___get__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_21_coordinate_operation___get__(struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->_coordinate_operation);
  __pyx_r = __pyx_v_self->_coordinate_operation;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_17__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static char __pyx_doc_6pyproj_4_crs_4_CRS_16__reduce_cython__[] = "_CRS.__reduce_cython__(self)";
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_17__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_16__reduce_cython__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__46, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs._CRS.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

/* Python wrapper */
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_19__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static char __pyx_doc_6pyproj_4_crs_4_CRS_18__setstate_cython__[] = "_CRS.__setstate_cython__(self, __pyx_state)";
static PyObject *__pyx_pw_6pyproj_4_crs_4_CRS_19__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_6pyproj_4_crs_4_CRS_18__setstate_cython__(((struct __pyx_obj_6pyproj_4_crs__CRS *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_6pyproj_4_crs_4_CRS_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_6pyproj_4_crs__CRS *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__47, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyproj._crs._CRS.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static struct __pyx_vtabstruct_6pyproj_4_crs_Axis __pyx_vtable_6pyproj_4_crs_Axis;

static PyObject *__pyx_tp_new_6pyproj_4_crs_Axis(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_6pyproj_4_crs_Axis *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_6pyproj_4_crs_Axis *)o);
  p->__pyx_vtab = __pyx_vtabptr_6pyproj_4_crs_Axis;
  p->name = Py_None; Py_INCREF(Py_None);
  p->abbrev = Py_None; Py_INCREF(Py_None);
  p->direction = Py_None; Py_INCREF(Py_None);
  p->unit_name = Py_None; Py_INCREF(Py_None);
  p->unit_auth_code = Py_None; Py_INCREF(Py_None);
  p->unit_code = Py_None; Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_6pyproj_4_crs_4Axis_1__cinit__(o, __pyx_empty_tuple, NULL) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_6pyproj_4_crs_Axis(PyObject *o) {
  struct __pyx_obj_6pyproj_4_crs_Axis *p = (struct __pyx_obj_6pyproj_4_crs_Axis *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->name);
  Py_CLEAR(p->abbrev);
  Py_CLEAR(p->direction);
  Py_CLEAR(p->unit_name);
  Py_CLEAR(p->unit_auth_code);
  Py_CLEAR(p->unit_code);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_6pyproj_4_crs_Axis(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_6pyproj_4_crs_Axis *p = (struct __pyx_obj_6pyproj_4_crs_Axis *)o;
  if (p->name) {
    e = (*v)(p->name, a); if (e) return e;
  }
  if (p->abbrev) {
    e = (*v)(p->abbrev, a); if (e) return e;
  }
  if (p->direction) {
    e = (*v)(p->direction, a); if (e) return e;
  }
  if (p->unit_name) {
    e = (*v)(p->unit_name, a); if (e) return e;
  }
  if (p->unit_auth_code) {
    e = (*v)(p->unit_auth_code, a); if (e) return e;
  }
  if (p->unit_code) {
    e = (*v)(p->unit_code, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_6pyproj_4_crs_Axis(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_6pyproj_4_crs_Axis *p = (struct __pyx_obj_6pyproj_4_crs_Axis *)o;
  tmp = ((PyObject*)p->name);
  p->name = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->abbrev);
  p->abbrev = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->direction);
  p->direction = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->unit_name);
  p->unit_name = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->unit_auth_code);
  p->unit_auth_code = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->unit_code);
  p->unit_code = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4Axis_name(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4Axis_4name_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4Axis_abbrev(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4Axis_6abbrev_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4Axis_direction(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4Axis_9direction_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4Axis_unit_conversion_factor(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4Axis_22unit_conversion_factor_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4Axis_unit_name(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4Axis_9unit_name_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4Axis_unit_auth_code(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4Axis_14unit_auth_code_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4Axis_unit_code(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4Axis_9unit_code_1__get__(o);
}

static PyMethodDef __pyx_methods_6pyproj_4_crs_Axis[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_6pyproj_4_crs_4Axis_7__reduce_cython__, METH_NOARGS, __pyx_doc_6pyproj_4_crs_4Axis_6__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_6pyproj_4_crs_4Axis_9__setstate_cython__, METH_O, __pyx_doc_6pyproj_4_crs_4Axis_8__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_6pyproj_4_crs_Axis[] = {
  {(char *)"name", __pyx_getprop_6pyproj_4_crs_4Axis_name, 0, (char *)0, 0},
  {(char *)"abbrev", __pyx_getprop_6pyproj_4_crs_4Axis_abbrev, 0, (char *)0, 0},
  {(char *)"direction", __pyx_getprop_6pyproj_4_crs_4Axis_direction, 0, (char *)0, 0},
  {(char *)"unit_conversion_factor", __pyx_getprop_6pyproj_4_crs_4Axis_unit_conversion_factor, 0, (char *)0, 0},
  {(char *)"unit_name", __pyx_getprop_6pyproj_4_crs_4Axis_unit_name, 0, (char *)0, 0},
  {(char *)"unit_auth_code", __pyx_getprop_6pyproj_4_crs_4Axis_unit_auth_code, 0, (char *)0, 0},
  {(char *)"unit_code", __pyx_getprop_6pyproj_4_crs_4Axis_unit_code, 0, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_6pyproj_4_crs_Axis = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyproj._crs.Axis", /*tp_name*/
  sizeof(struct __pyx_obj_6pyproj_4_crs_Axis), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6pyproj_4_crs_Axis, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  __pyx_pw_6pyproj_4_crs_4Axis_5__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  __pyx_pw_6pyproj_4_crs_4Axis_3__str__, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  "\n    .. versionadded:: 2.0.0\n\n    Coordinate System Axis\n\n    Attributes\n    ----------\n    name: str\n    abbrev: str\n    direction: str\n    unit_conversion_factor: float\n    unit_name: str\n    unit_auth_code: str\n    unit_code: str\n\n    ", /*tp_doc*/
  __pyx_tp_traverse_6pyproj_4_crs_Axis, /*tp_traverse*/
  __pyx_tp_clear_6pyproj_4_crs_Axis, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_6pyproj_4_crs_Axis, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_6pyproj_4_crs_Axis, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6pyproj_4_crs_Axis, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};
static struct __pyx_vtabstruct_6pyproj_4_crs_AreaOfUse __pyx_vtable_6pyproj_4_crs_AreaOfUse;

static PyObject *__pyx_tp_new_6pyproj_4_crs_AreaOfUse(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_6pyproj_4_crs_AreaOfUse *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_6pyproj_4_crs_AreaOfUse *)o);
  p->__pyx_vtab = __pyx_vtabptr_6pyproj_4_crs_AreaOfUse;
  p->name = Py_None; Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_6pyproj_4_crs_9AreaOfUse_1__cinit__(o, __pyx_empty_tuple, NULL) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_6pyproj_4_crs_AreaOfUse(PyObject *o) {
  struct __pyx_obj_6pyproj_4_crs_AreaOfUse *p = (struct __pyx_obj_6pyproj_4_crs_AreaOfUse *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->name);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_6pyproj_4_crs_AreaOfUse(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_6pyproj_4_crs_AreaOfUse *p = (struct __pyx_obj_6pyproj_4_crs_AreaOfUse *)o;
  if (p->name) {
    e = (*v)(p->name, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_6pyproj_4_crs_AreaOfUse(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_6pyproj_4_crs_AreaOfUse *p = (struct __pyx_obj_6pyproj_4_crs_AreaOfUse *)o;
  tmp = ((PyObject*)p->name);
  p->name = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_6pyproj_4_crs_9AreaOfUse_bounds(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_9AreaOfUse_6bounds_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_9AreaOfUse_west(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_9AreaOfUse_4west_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_9AreaOfUse_south(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_9AreaOfUse_5south_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_9AreaOfUse_east(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_9AreaOfUse_4east_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_9AreaOfUse_north(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_9AreaOfUse_5north_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_9AreaOfUse_name(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_9AreaOfUse_4name_1__get__(o);
}

static PyMethodDef __pyx_methods_6pyproj_4_crs_AreaOfUse[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_6pyproj_4_crs_9AreaOfUse_7__reduce_cython__, METH_NOARGS, __pyx_doc_6pyproj_4_crs_9AreaOfUse_6__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_6pyproj_4_crs_9AreaOfUse_9__setstate_cython__, METH_O, __pyx_doc_6pyproj_4_crs_9AreaOfUse_8__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_6pyproj_4_crs_AreaOfUse[] = {
  {(char *)"bounds", __pyx_getprop_6pyproj_4_crs_9AreaOfUse_bounds, 0, (char *)0, 0},
  {(char *)"west", __pyx_getprop_6pyproj_4_crs_9AreaOfUse_west, 0, (char *)0, 0},
  {(char *)"south", __pyx_getprop_6pyproj_4_crs_9AreaOfUse_south, 0, (char *)0, 0},
  {(char *)"east", __pyx_getprop_6pyproj_4_crs_9AreaOfUse_east, 0, (char *)0, 0},
  {(char *)"north", __pyx_getprop_6pyproj_4_crs_9AreaOfUse_north, 0, (char *)0, 0},
  {(char *)"name", __pyx_getprop_6pyproj_4_crs_9AreaOfUse_name, 0, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_6pyproj_4_crs_AreaOfUse = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyproj._crs.AreaOfUse", /*tp_name*/
  sizeof(struct __pyx_obj_6pyproj_4_crs_AreaOfUse), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6pyproj_4_crs_AreaOfUse, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  __pyx_pw_6pyproj_4_crs_9AreaOfUse_5__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  __pyx_pw_6pyproj_4_crs_9AreaOfUse_3__str__, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  "\n    .. versionadded:: 2.0.0\n\n    Area of Use for CRS\n\n    Attributes\n    ----------\n    west: float\n        West bound of area of use.\n    south: float\n        South bound of area of use.\n    east: float\n        East bound of area of use.\n    north: float\n        North bound of area of use.\n    name: str\n        Name of area of use.\n\n    ", /*tp_doc*/
  __pyx_tp_traverse_6pyproj_4_crs_AreaOfUse, /*tp_traverse*/
  __pyx_tp_clear_6pyproj_4_crs_AreaOfUse, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_6pyproj_4_crs_AreaOfUse, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_6pyproj_4_crs_AreaOfUse, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6pyproj_4_crs_AreaOfUse, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};
static struct __pyx_vtabstruct_6pyproj_4_crs_Base __pyx_vtable_6pyproj_4_crs_Base;

static PyObject *__pyx_tp_new_6pyproj_4_crs_Base(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_6pyproj_4_crs_Base *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_6pyproj_4_crs_Base *)o);
  p->__pyx_vtab = __pyx_vtabptr_6pyproj_4_crs_Base;
  p->name = Py_None; Py_INCREF(Py_None);
  p->_remarks = Py_None; Py_INCREF(Py_None);
  p->_scope = Py_None; Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_6pyproj_4_crs_4Base_1__cinit__(o, __pyx_empty_tuple, NULL) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_6pyproj_4_crs_Base(PyObject *o) {
  struct __pyx_obj_6pyproj_4_crs_Base *p = (struct __pyx_obj_6pyproj_4_crs_Base *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    ++Py_REFCNT(o);
    __pyx_pw_6pyproj_4_crs_4Base_3__dealloc__(o);
    --Py_REFCNT(o);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->name);
  Py_CLEAR(p->_remarks);
  Py_CLEAR(p->_scope);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_6pyproj_4_crs_Base(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_6pyproj_4_crs_Base *p = (struct __pyx_obj_6pyproj_4_crs_Base *)o;
  if (p->name) {
    e = (*v)(p->name, a); if (e) return e;
  }
  if (p->_remarks) {
    e = (*v)(p->_remarks, a); if (e) return e;
  }
  if (p->_scope) {
    e = (*v)(p->_scope, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_6pyproj_4_crs_Base(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_6pyproj_4_crs_Base *p = (struct __pyx_obj_6pyproj_4_crs_Base *)o;
  tmp = ((PyObject*)p->name);
  p->name = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_remarks);
  p->_remarks = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_scope);
  p->_scope = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_tp_richcompare_6pyproj_4_crs_Base(PyObject *o1, PyObject *o2, int op) {
  switch (op) {
    case Py_EQ: {
      return __pyx_pw_6pyproj_4_crs_4Base_19__eq__(o1, o2);
    }
    case Py_NE: {
      PyObject *ret;
      ret = __pyx_pw_6pyproj_4_crs_4Base_19__eq__(o1, o2);
      if (likely(ret && ret != Py_NotImplemented)) {
        int b = __Pyx_PyObject_IsTrue(ret); Py_DECREF(ret);
        if (unlikely(b < 0)) return NULL;
        ret = (b) ? Py_False : Py_True;
        Py_INCREF(ret);
      }
      return ret;
    }
    default: {
      return __Pyx_NewRef(Py_NotImplemented);
    }
  }
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4Base_remarks(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4Base_7remarks_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4Base_scope(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4Base_5scope_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4Base_name(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4Base_4name_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4Base__remarks(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4Base_8_remarks_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4Base__scope(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4Base_6_scope_1__get__(o);
}

static PyMethodDef __pyx_methods_6pyproj_4_crs_Base[] = {
  {"to_wkt", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_4Base_5to_wkt, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_4Base_4to_wkt},
  {"to_json", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_4Base_7to_json, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_4Base_6to_json},
  {"to_json_dict", (PyCFunction)__pyx_pw_6pyproj_4_crs_4Base_9to_json_dict, METH_NOARGS, __pyx_doc_6pyproj_4_crs_4Base_8to_json_dict},
  {"_is_exact_same", (PyCFunction)__pyx_pw_6pyproj_4_crs_4Base_15_is_exact_same, METH_O, __pyx_doc_6pyproj_4_crs_4Base_14_is_exact_same},
  {"_is_equivalent", (PyCFunction)__pyx_pw_6pyproj_4_crs_4Base_17_is_equivalent, METH_O, __pyx_doc_6pyproj_4_crs_4Base_16_is_equivalent},
  {"is_exact_same", (PyCFunction)__pyx_pw_6pyproj_4_crs_4Base_21is_exact_same, METH_O, __pyx_doc_6pyproj_4_crs_4Base_20is_exact_same},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_6pyproj_4_crs_4Base_23__reduce_cython__, METH_NOARGS, __pyx_doc_6pyproj_4_crs_4Base_22__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_6pyproj_4_crs_4Base_25__setstate_cython__, METH_O, __pyx_doc_6pyproj_4_crs_4Base_24__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_6pyproj_4_crs_Base[] = {
  {(char *)"remarks", __pyx_getprop_6pyproj_4_crs_4Base_remarks, 0, (char *)"\n        .. versionadded:: 2.4.0\n\n        Returns\n        -------\n        str:\n            Remarks about object.\n        ", 0},
  {(char *)"scope", __pyx_getprop_6pyproj_4_crs_4Base_scope, 0, (char *)"\n        .. versionadded:: 2.4.0\n\n        Returns\n        -------\n        str:\n            Scope of object.\n        ", 0},
  {(char *)"name", __pyx_getprop_6pyproj_4_crs_4Base_name, 0, (char *)0, 0},
  {(char *)"_remarks", __pyx_getprop_6pyproj_4_crs_4Base__remarks, 0, (char *)0, 0},
  {(char *)"_scope", __pyx_getprop_6pyproj_4_crs_4Base__scope, 0, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_6pyproj_4_crs_Base = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyproj._crs.Base", /*tp_name*/
  sizeof(struct __pyx_obj_6pyproj_4_crs_Base), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6pyproj_4_crs_Base, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  __pyx_pw_6pyproj_4_crs_4Base_13__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  __pyx_pw_6pyproj_4_crs_4Base_11__str__, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_6pyproj_4_crs_Base, /*tp_traverse*/
  __pyx_tp_clear_6pyproj_4_crs_Base, /*tp_clear*/
  __pyx_tp_richcompare_6pyproj_4_crs_Base, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_6pyproj_4_crs_Base, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_6pyproj_4_crs_Base, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6pyproj_4_crs_Base, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};
static struct __pyx_vtabstruct_6pyproj_4_crs__CRSParts __pyx_vtable_6pyproj_4_crs__CRSParts;

static PyObject *__pyx_tp_new_6pyproj_4_crs__CRSParts(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_6pyproj_4_crs__CRSParts *p;
  PyObject *o = __pyx_tp_new_6pyproj_4_crs_Base(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_6pyproj_4_crs__CRSParts *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_6pyproj_4_crs_Base*)__pyx_vtabptr_6pyproj_4_crs__CRSParts;
  return o;
}

static PyMethodDef __pyx_methods_6pyproj_4_crs__CRSParts[] = {
  {"from_user_input", (PyCFunction)__pyx_pw_6pyproj_4_crs_9_CRSParts_1from_user_input, METH_O, __pyx_doc_6pyproj_4_crs_9_CRSParts_from_user_input},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_6pyproj_4_crs_9_CRSParts_3__reduce_cython__, METH_NOARGS, __pyx_doc_6pyproj_4_crs_9_CRSParts_2__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_6pyproj_4_crs_9_CRSParts_5__setstate_cython__, METH_O, __pyx_doc_6pyproj_4_crs_9_CRSParts_4__setstate_cython__},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_6pyproj_4_crs__CRSParts = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyproj._crs._CRSParts", /*tp_name*/
  sizeof(struct __pyx_obj_6pyproj_4_crs__CRSParts), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6pyproj_4_crs_Base, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_6pyproj_4_crs_4Base_13__repr__, /*tp_repr*/
  #else
  0, /*tp_repr*/
  #endif
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_6pyproj_4_crs_4Base_11__str__, /*tp_str*/
  #else
  0, /*tp_str*/
  #endif
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_6pyproj_4_crs_Base, /*tp_traverse*/
  __pyx_tp_clear_6pyproj_4_crs_Base, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_6pyproj_4_crs__CRSParts, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6pyproj_4_crs__CRSParts, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};
static struct __pyx_vtabstruct_6pyproj_4_crs_Ellipsoid __pyx_vtable_6pyproj_4_crs_Ellipsoid;

static PyObject *__pyx_tp_new_6pyproj_4_crs_Ellipsoid(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_6pyproj_4_crs_Ellipsoid *p;
  PyObject *o = __pyx_tp_new_6pyproj_4_crs__CRSParts(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_6pyproj_4_crs_Ellipsoid *)o);
  p->__pyx_base.__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_6pyproj_4_crs_Base*)__pyx_vtabptr_6pyproj_4_crs_Ellipsoid;
  p->is_semi_minor_computed = Py_None; Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_6pyproj_4_crs_9Ellipsoid_1__cinit__(o, __pyx_empty_tuple, NULL) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_6pyproj_4_crs_Ellipsoid(PyObject *o) {
  struct __pyx_obj_6pyproj_4_crs_Ellipsoid *p = (struct __pyx_obj_6pyproj_4_crs_Ellipsoid *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->is_semi_minor_computed);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_6pyproj_4_crs_Base(o);
}

static int __pyx_tp_traverse_6pyproj_4_crs_Ellipsoid(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_6pyproj_4_crs_Ellipsoid *p = (struct __pyx_obj_6pyproj_4_crs_Ellipsoid *)o;
  e = __pyx_tp_traverse_6pyproj_4_crs_Base(o, v, a); if (e) return e;
  if (p->is_semi_minor_computed) {
    e = (*v)(p->is_semi_minor_computed, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_6pyproj_4_crs_Ellipsoid(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_6pyproj_4_crs_Ellipsoid *p = (struct __pyx_obj_6pyproj_4_crs_Ellipsoid *)o;
  __pyx_tp_clear_6pyproj_4_crs_Base(o);
  tmp = ((PyObject*)p->is_semi_minor_computed);
  p->is_semi_minor_computed = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_6pyproj_4_crs_9Ellipsoid_semi_major_metre(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_9Ellipsoid_16semi_major_metre_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_9Ellipsoid_semi_minor_metre(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_9Ellipsoid_16semi_minor_metre_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_9Ellipsoid_is_semi_minor_computed(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_9Ellipsoid_22is_semi_minor_computed_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_9Ellipsoid_inverse_flattening(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_9Ellipsoid_18inverse_flattening_1__get__(o);
}

static PyMethodDef __pyx_methods_6pyproj_4_crs_Ellipsoid[] = {
  {"from_authority", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_9Ellipsoid_5from_authority, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_9Ellipsoid_4from_authority},
  {"from_epsg", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_9Ellipsoid_7from_epsg, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_9Ellipsoid_6from_epsg},
  {"_from_string", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_9Ellipsoid_9_from_string, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_9Ellipsoid_8_from_string},
  {"from_string", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_9Ellipsoid_11from_string, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_9Ellipsoid_10from_string},
  {"from_json_dict", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_9Ellipsoid_13from_json_dict, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_9Ellipsoid_12from_json_dict},
  {"from_json", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_9Ellipsoid_15from_json, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_9Ellipsoid_14from_json},
  {"_from_name", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_9Ellipsoid_17_from_name, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_9Ellipsoid_16_from_name},
  {"from_name", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_9Ellipsoid_19from_name, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_9Ellipsoid_18from_name},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_6pyproj_4_crs_9Ellipsoid_21__reduce_cython__, METH_NOARGS, __pyx_doc_6pyproj_4_crs_9Ellipsoid_20__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_6pyproj_4_crs_9Ellipsoid_23__setstate_cython__, METH_O, __pyx_doc_6pyproj_4_crs_9Ellipsoid_22__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_6pyproj_4_crs_Ellipsoid[] = {
  {(char *)"semi_major_metre", __pyx_getprop_6pyproj_4_crs_9Ellipsoid_semi_major_metre, 0, (char *)0, 0},
  {(char *)"semi_minor_metre", __pyx_getprop_6pyproj_4_crs_9Ellipsoid_semi_minor_metre, 0, (char *)0, 0},
  {(char *)"is_semi_minor_computed", __pyx_getprop_6pyproj_4_crs_9Ellipsoid_is_semi_minor_computed, 0, (char *)0, 0},
  {(char *)"inverse_flattening", __pyx_getprop_6pyproj_4_crs_9Ellipsoid_inverse_flattening, 0, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_6pyproj_4_crs_Ellipsoid = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyproj._crs.Ellipsoid", /*tp_name*/
  sizeof(struct __pyx_obj_6pyproj_4_crs_Ellipsoid), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6pyproj_4_crs_Ellipsoid, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_6pyproj_4_crs_4Base_13__repr__, /*tp_repr*/
  #else
  0, /*tp_repr*/
  #endif
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_6pyproj_4_crs_4Base_11__str__, /*tp_str*/
  #else
  0, /*tp_str*/
  #endif
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  "Ellipsoid()\n\n    .. versionadded:: 2.0.0\n\n    Ellipsoid for CRS\n\n    Attributes\n    ----------\n    name: str\n        The name of the ellipsoid.\n    is_semi_minor_computed: int\n        1 if True, 0 if False\n    semi_major_metre: float\n        The semi major axis in meters of the ellipsoid.\n    semi_minor_metre: float\n        The semi minor axis in meters of the ellipsoid.\n    inverse_flattening: float\n        The inverse flattening of the ellipsoid.\n\n    ", /*tp_doc*/
  __pyx_tp_traverse_6pyproj_4_crs_Ellipsoid, /*tp_traverse*/
  __pyx_tp_clear_6pyproj_4_crs_Ellipsoid, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_6pyproj_4_crs_Ellipsoid, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_6pyproj_4_crs_Ellipsoid, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_6pyproj_4_crs_9Ellipsoid_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6pyproj_4_crs_Ellipsoid, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};
static struct __pyx_vtabstruct_6pyproj_4_crs_PrimeMeridian __pyx_vtable_6pyproj_4_crs_PrimeMeridian;

static PyObject *__pyx_tp_new_6pyproj_4_crs_PrimeMeridian(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *p;
  PyObject *o = __pyx_tp_new_6pyproj_4_crs__CRSParts(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *)o);
  p->__pyx_base.__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_6pyproj_4_crs_Base*)__pyx_vtabptr_6pyproj_4_crs_PrimeMeridian;
  p->unit_name = Py_None; Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_6pyproj_4_crs_13PrimeMeridian_1__cinit__(o, __pyx_empty_tuple, NULL) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_6pyproj_4_crs_PrimeMeridian(PyObject *o) {
  struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *p = (struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->unit_name);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_6pyproj_4_crs_Base(o);
}

static int __pyx_tp_traverse_6pyproj_4_crs_PrimeMeridian(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *p = (struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *)o;
  e = __pyx_tp_traverse_6pyproj_4_crs_Base(o, v, a); if (e) return e;
  if (p->unit_name) {
    e = (*v)(p->unit_name, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_6pyproj_4_crs_PrimeMeridian(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *p = (struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *)o;
  __pyx_tp_clear_6pyproj_4_crs_Base(o);
  tmp = ((PyObject*)p->unit_name);
  p->unit_name = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_6pyproj_4_crs_13PrimeMeridian_longitude(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_13PrimeMeridian_9longitude_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_13PrimeMeridian_unit_conversion_factor(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_13PrimeMeridian_22unit_conversion_factor_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_13PrimeMeridian_unit_name(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_13PrimeMeridian_9unit_name_1__get__(o);
}

static PyMethodDef __pyx_methods_6pyproj_4_crs_PrimeMeridian[] = {
  {"from_authority", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_13PrimeMeridian_5from_authority, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_13PrimeMeridian_4from_authority},
  {"from_epsg", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_13PrimeMeridian_7from_epsg, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_13PrimeMeridian_6from_epsg},
  {"_from_string", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_13PrimeMeridian_9_from_string, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_13PrimeMeridian_8_from_string},
  {"from_string", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_13PrimeMeridian_11from_string, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_13PrimeMeridian_10from_string},
  {"from_json_dict", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_13PrimeMeridian_13from_json_dict, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_13PrimeMeridian_12from_json_dict},
  {"from_json", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_13PrimeMeridian_15from_json, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_13PrimeMeridian_14from_json},
  {"from_name", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_13PrimeMeridian_17from_name, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_13PrimeMeridian_16from_name},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_6pyproj_4_crs_13PrimeMeridian_19__reduce_cython__, METH_NOARGS, __pyx_doc_6pyproj_4_crs_13PrimeMeridian_18__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_6pyproj_4_crs_13PrimeMeridian_21__setstate_cython__, METH_O, __pyx_doc_6pyproj_4_crs_13PrimeMeridian_20__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_6pyproj_4_crs_PrimeMeridian[] = {
  {(char *)"longitude", __pyx_getprop_6pyproj_4_crs_13PrimeMeridian_longitude, 0, (char *)0, 0},
  {(char *)"unit_conversion_factor", __pyx_getprop_6pyproj_4_crs_13PrimeMeridian_unit_conversion_factor, 0, (char *)0, 0},
  {(char *)"unit_name", __pyx_getprop_6pyproj_4_crs_13PrimeMeridian_unit_name, 0, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_6pyproj_4_crs_PrimeMeridian = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyproj._crs.PrimeMeridian", /*tp_name*/
  sizeof(struct __pyx_obj_6pyproj_4_crs_PrimeMeridian), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6pyproj_4_crs_PrimeMeridian, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_6pyproj_4_crs_4Base_13__repr__, /*tp_repr*/
  #else
  0, /*tp_repr*/
  #endif
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_6pyproj_4_crs_4Base_11__str__, /*tp_str*/
  #else
  0, /*tp_str*/
  #endif
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  "PrimeMeridian()\n\n    .. versionadded:: 2.0.0\n\n    Prime Meridian for CRS\n\n    Attributes\n    ----------\n    name: str\n        The name of the prime meridian.\n    unit_name: str\n        The unit name for the prime meridian.\n\n    ", /*tp_doc*/
  __pyx_tp_traverse_6pyproj_4_crs_PrimeMeridian, /*tp_traverse*/
  __pyx_tp_clear_6pyproj_4_crs_PrimeMeridian, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_6pyproj_4_crs_PrimeMeridian, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_6pyproj_4_crs_PrimeMeridian, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_6pyproj_4_crs_13PrimeMeridian_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6pyproj_4_crs_PrimeMeridian, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};
static struct __pyx_vtabstruct_6pyproj_4_crs_Datum __pyx_vtable_6pyproj_4_crs_Datum;

static PyObject *__pyx_tp_new_6pyproj_4_crs_Datum(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_6pyproj_4_crs_Datum *p;
  PyObject *o = __pyx_tp_new_6pyproj_4_crs__CRSParts(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_6pyproj_4_crs_Datum *)o);
  p->__pyx_base.__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_6pyproj_4_crs_Base*)__pyx_vtabptr_6pyproj_4_crs_Datum;
  p->type_name = Py_None; Py_INCREF(Py_None);
  p->_ellipsoid = Py_None; Py_INCREF(Py_None);
  p->_prime_meridian = Py_None; Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_6pyproj_4_crs_5Datum_1__cinit__(o, __pyx_empty_tuple, NULL) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_6pyproj_4_crs_Datum(PyObject *o) {
  struct __pyx_obj_6pyproj_4_crs_Datum *p = (struct __pyx_obj_6pyproj_4_crs_Datum *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->type_name);
  Py_CLEAR(p->_ellipsoid);
  Py_CLEAR(p->_prime_meridian);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_6pyproj_4_crs_Base(o);
}

static int __pyx_tp_traverse_6pyproj_4_crs_Datum(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_6pyproj_4_crs_Datum *p = (struct __pyx_obj_6pyproj_4_crs_Datum *)o;
  e = __pyx_tp_traverse_6pyproj_4_crs_Base(o, v, a); if (e) return e;
  if (p->type_name) {
    e = (*v)(p->type_name, a); if (e) return e;
  }
  if (p->_ellipsoid) {
    e = (*v)(p->_ellipsoid, a); if (e) return e;
  }
  if (p->_prime_meridian) {
    e = (*v)(p->_prime_meridian, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_6pyproj_4_crs_Datum(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_6pyproj_4_crs_Datum *p = (struct __pyx_obj_6pyproj_4_crs_Datum *)o;
  __pyx_tp_clear_6pyproj_4_crs_Base(o);
  tmp = ((PyObject*)p->type_name);
  p->type_name = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_ellipsoid);
  p->_ellipsoid = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_prime_meridian);
  p->_prime_meridian = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_6pyproj_4_crs_5Datum_ellipsoid(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_5Datum_9ellipsoid_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_5Datum_prime_meridian(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_5Datum_14prime_meridian_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_5Datum_type_name(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_5Datum_9type_name_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_5Datum__ellipsoid(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_5Datum_10_ellipsoid_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_5Datum__prime_meridian(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_5Datum_15_prime_meridian_1__get__(o);
}

static PyMethodDef __pyx_methods_6pyproj_4_crs_Datum[] = {
  {"from_authority", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_5Datum_5from_authority, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_5Datum_4from_authority},
  {"from_epsg", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_5Datum_7from_epsg, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_5Datum_6from_epsg},
  {"_from_string", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_5Datum_9_from_string, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_5Datum_8_from_string},
  {"from_string", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_5Datum_11from_string, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_5Datum_10from_string},
  {"_from_name", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_5Datum_13_from_name, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_5Datum_12_from_name},
  {"from_name", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_5Datum_15from_name, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_5Datum_14from_name},
  {"from_json_dict", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_5Datum_17from_json_dict, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_5Datum_16from_json_dict},
  {"from_json", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_5Datum_19from_json, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_5Datum_18from_json},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_6pyproj_4_crs_5Datum_21__reduce_cython__, METH_NOARGS, __pyx_doc_6pyproj_4_crs_5Datum_20__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_6pyproj_4_crs_5Datum_23__setstate_cython__, METH_O, __pyx_doc_6pyproj_4_crs_5Datum_22__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_6pyproj_4_crs_Datum[] = {
  {(char *)"ellipsoid", __pyx_getprop_6pyproj_4_crs_5Datum_ellipsoid, 0, (char *)"\n        Returns\n        -------\n        Ellipsoid:\n            The ellipsoid object with associated attributes.\n        ", 0},
  {(char *)"prime_meridian", __pyx_getprop_6pyproj_4_crs_5Datum_prime_meridian, 0, (char *)"\n        Returns\n        -------\n        PrimeMeridian:\n            The CRS prime meridian object with associated attributes.\n        ", 0},
  {(char *)"type_name", __pyx_getprop_6pyproj_4_crs_5Datum_type_name, 0, (char *)0, 0},
  {(char *)"_ellipsoid", __pyx_getprop_6pyproj_4_crs_5Datum__ellipsoid, 0, (char *)0, 0},
  {(char *)"_prime_meridian", __pyx_getprop_6pyproj_4_crs_5Datum__prime_meridian, 0, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_6pyproj_4_crs_Datum = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyproj._crs.Datum", /*tp_name*/
  sizeof(struct __pyx_obj_6pyproj_4_crs_Datum), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6pyproj_4_crs_Datum, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_6pyproj_4_crs_4Base_13__repr__, /*tp_repr*/
  #else
  0, /*tp_repr*/
  #endif
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_6pyproj_4_crs_4Base_11__str__, /*tp_str*/
  #else
  0, /*tp_str*/
  #endif
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  "Datum()\n\n    .. versionadded:: 2.2.0\n\n    Datum for CRS. If it is a compound CRS it is the horizontal datum.\n\n    Attributes\n    ----------\n    name: str\n        The name of the datum.\n\n    ", /*tp_doc*/
  __pyx_tp_traverse_6pyproj_4_crs_Datum, /*tp_traverse*/
  __pyx_tp_clear_6pyproj_4_crs_Datum, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_6pyproj_4_crs_Datum, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_6pyproj_4_crs_Datum, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_6pyproj_4_crs_5Datum_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6pyproj_4_crs_Datum, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};
static struct __pyx_vtabstruct_6pyproj_4_crs_CoordinateSystem __pyx_vtable_6pyproj_4_crs_CoordinateSystem;

static PyObject *__pyx_tp_new_6pyproj_4_crs_CoordinateSystem(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *p;
  PyObject *o = __pyx_tp_new_6pyproj_4_crs__CRSParts(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *)o);
  p->__pyx_base.__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_6pyproj_4_crs_Base*)__pyx_vtabptr_6pyproj_4_crs_CoordinateSystem;
  p->_axis_list = Py_None; Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_6pyproj_4_crs_16CoordinateSystem_1__cinit__(o, __pyx_empty_tuple, NULL) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_6pyproj_4_crs_CoordinateSystem(PyObject *o) {
  struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *p = (struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->_axis_list);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_6pyproj_4_crs_Base(o);
}

static int __pyx_tp_traverse_6pyproj_4_crs_CoordinateSystem(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *p = (struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *)o;
  e = __pyx_tp_traverse_6pyproj_4_crs_Base(o, v, a); if (e) return e;
  if (p->_axis_list) {
    e = (*v)(p->_axis_list, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_6pyproj_4_crs_CoordinateSystem(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *p = (struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *)o;
  __pyx_tp_clear_6pyproj_4_crs_Base(o);
  tmp = ((PyObject*)p->_axis_list);
  p->_axis_list = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_6pyproj_4_crs_16CoordinateSystem_axis_list(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_16CoordinateSystem_9axis_list_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_16CoordinateSystem__axis_list(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_16CoordinateSystem_10_axis_list_1__get__(o);
}

static PyMethodDef __pyx_methods_6pyproj_4_crs_CoordinateSystem[] = {
  {"from_string", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_16CoordinateSystem_5from_string, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_16CoordinateSystem_4from_string},
  {"from_json_dict", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_16CoordinateSystem_7from_json_dict, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_16CoordinateSystem_6from_json_dict},
  {"from_json", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_16CoordinateSystem_9from_json, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_16CoordinateSystem_8from_json},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_6pyproj_4_crs_16CoordinateSystem_11__reduce_cython__, METH_NOARGS, __pyx_doc_6pyproj_4_crs_16CoordinateSystem_10__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_6pyproj_4_crs_16CoordinateSystem_13__setstate_cython__, METH_O, __pyx_doc_6pyproj_4_crs_16CoordinateSystem_12__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_6pyproj_4_crs_CoordinateSystem[] = {
  {(char *)"axis_list", __pyx_getprop_6pyproj_4_crs_16CoordinateSystem_axis_list, 0, (char *)"\n        Returns\n        -------\n        list[Axis]:\n            The Axis list for the coordinate system.\n        ", 0},
  {(char *)"_axis_list", __pyx_getprop_6pyproj_4_crs_16CoordinateSystem__axis_list, 0, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_6pyproj_4_crs_CoordinateSystem = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyproj._crs.CoordinateSystem", /*tp_name*/
  sizeof(struct __pyx_obj_6pyproj_4_crs_CoordinateSystem), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6pyproj_4_crs_CoordinateSystem, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_6pyproj_4_crs_4Base_13__repr__, /*tp_repr*/
  #else
  0, /*tp_repr*/
  #endif
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_6pyproj_4_crs_4Base_11__str__, /*tp_str*/
  #else
  0, /*tp_str*/
  #endif
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  "CoordinateSystem()\n\n    .. versionadded:: 2.2.0\n\n    Coordinate System for CRS\n\n    Attributes\n    ----------\n    name: str\n        The name of the coordinate system.\n\n    ", /*tp_doc*/
  __pyx_tp_traverse_6pyproj_4_crs_CoordinateSystem, /*tp_traverse*/
  __pyx_tp_clear_6pyproj_4_crs_CoordinateSystem, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_6pyproj_4_crs_CoordinateSystem, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_6pyproj_4_crs_CoordinateSystem, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_6pyproj_4_crs_16CoordinateSystem_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6pyproj_4_crs_CoordinateSystem, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};
static struct __pyx_vtabstruct_6pyproj_4_crs_Param __pyx_vtable_6pyproj_4_crs_Param;

static PyObject *__pyx_tp_new_6pyproj_4_crs_Param(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_6pyproj_4_crs_Param *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_6pyproj_4_crs_Param *)o);
  p->__pyx_vtab = __pyx_vtabptr_6pyproj_4_crs_Param;
  p->name = Py_None; Py_INCREF(Py_None);
  p->auth_name = Py_None; Py_INCREF(Py_None);
  p->code = Py_None; Py_INCREF(Py_None);
  p->value = Py_None; Py_INCREF(Py_None);
  p->unit_name = Py_None; Py_INCREF(Py_None);
  p->unit_auth_name = Py_None; Py_INCREF(Py_None);
  p->unit_code = Py_None; Py_INCREF(Py_None);
  p->unit_category = Py_None; Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_6pyproj_4_crs_5Param_1__cinit__(o, __pyx_empty_tuple, NULL) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_6pyproj_4_crs_Param(PyObject *o) {
  struct __pyx_obj_6pyproj_4_crs_Param *p = (struct __pyx_obj_6pyproj_4_crs_Param *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->name);
  Py_CLEAR(p->auth_name);
  Py_CLEAR(p->code);
  Py_CLEAR(p->value);
  Py_CLEAR(p->unit_name);
  Py_CLEAR(p->unit_auth_name);
  Py_CLEAR(p->unit_code);
  Py_CLEAR(p->unit_category);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_6pyproj_4_crs_Param(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_6pyproj_4_crs_Param *p = (struct __pyx_obj_6pyproj_4_crs_Param *)o;
  if (p->name) {
    e = (*v)(p->name, a); if (e) return e;
  }
  if (p->auth_name) {
    e = (*v)(p->auth_name, a); if (e) return e;
  }
  if (p->code) {
    e = (*v)(p->code, a); if (e) return e;
  }
  if (p->value) {
    e = (*v)(p->value, a); if (e) return e;
  }
  if (p->unit_name) {
    e = (*v)(p->unit_name, a); if (e) return e;
  }
  if (p->unit_auth_name) {
    e = (*v)(p->unit_auth_name, a); if (e) return e;
  }
  if (p->unit_code) {
    e = (*v)(p->unit_code, a); if (e) return e;
  }
  if (p->unit_category) {
    e = (*v)(p->unit_category, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_6pyproj_4_crs_Param(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_6pyproj_4_crs_Param *p = (struct __pyx_obj_6pyproj_4_crs_Param *)o;
  tmp = ((PyObject*)p->name);
  p->name = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->auth_name);
  p->auth_name = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->code);
  p->code = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->value);
  p->value = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->unit_name);
  p->unit_name = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->unit_auth_name);
  p->unit_auth_name = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->unit_code);
  p->unit_code = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->unit_category);
  p->unit_category = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_6pyproj_4_crs_5Param_name(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_5Param_4name_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_5Param_auth_name(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_5Param_9auth_name_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_5Param_code(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_5Param_4code_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_5Param_value(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_5Param_5value_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_5Param_unit_conversion_factor(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_5Param_22unit_conversion_factor_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_5Param_unit_name(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_5Param_9unit_name_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_5Param_unit_auth_name(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_5Param_14unit_auth_name_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_5Param_unit_code(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_5Param_9unit_code_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_5Param_unit_category(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_5Param_13unit_category_1__get__(o);
}

static PyMethodDef __pyx_methods_6pyproj_4_crs_Param[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_6pyproj_4_crs_5Param_7__reduce_cython__, METH_NOARGS, __pyx_doc_6pyproj_4_crs_5Param_6__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_6pyproj_4_crs_5Param_9__setstate_cython__, METH_O, __pyx_doc_6pyproj_4_crs_5Param_8__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_6pyproj_4_crs_Param[] = {
  {(char *)"name", __pyx_getprop_6pyproj_4_crs_5Param_name, 0, (char *)0, 0},
  {(char *)"auth_name", __pyx_getprop_6pyproj_4_crs_5Param_auth_name, 0, (char *)0, 0},
  {(char *)"code", __pyx_getprop_6pyproj_4_crs_5Param_code, 0, (char *)0, 0},
  {(char *)"value", __pyx_getprop_6pyproj_4_crs_5Param_value, 0, (char *)0, 0},
  {(char *)"unit_conversion_factor", __pyx_getprop_6pyproj_4_crs_5Param_unit_conversion_factor, 0, (char *)0, 0},
  {(char *)"unit_name", __pyx_getprop_6pyproj_4_crs_5Param_unit_name, 0, (char *)0, 0},
  {(char *)"unit_auth_name", __pyx_getprop_6pyproj_4_crs_5Param_unit_auth_name, 0, (char *)0, 0},
  {(char *)"unit_code", __pyx_getprop_6pyproj_4_crs_5Param_unit_code, 0, (char *)0, 0},
  {(char *)"unit_category", __pyx_getprop_6pyproj_4_crs_5Param_unit_category, 0, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_6pyproj_4_crs_Param = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyproj._crs.Param", /*tp_name*/
  sizeof(struct __pyx_obj_6pyproj_4_crs_Param), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6pyproj_4_crs_Param, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  __pyx_pw_6pyproj_4_crs_5Param_5__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  __pyx_pw_6pyproj_4_crs_5Param_3__str__, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  "\n    .. versionadded:: 2.2.0\n\n    Coordinate operation parameter.\n\n    Attributes\n    ----------\n    name: str\n        The name of the parameter.\n    auth_name: str\n        The authority name of the parameter (i.e. EPSG).\n    code: str\n        The code of the parameter (i.e. 9807).\n    value: str or double\n        The value of the parameter.\n    unit_conversion_factor: double\n        The factor to convert to meters.\n    unit_name: str\n        The name of the unit.\n    unit_auth_name: str\n        The authority name of the unit (i.e. EPSG).\n    unit_code: str\n        The code of the unit (i.e. 9807).\n    unit_category: str\n        The category of the unit (\342\200\234unknown\342\200\235, \342\200\234none\342\200\235, \342\200\234linear\342\200\235,\n        \342\200\234angular\342\200\235, \342\200\234scale\342\200\235, \342\200\234time\342\200\235 or \342\200\234parametric\342\200\235).\n\n    ", /*tp_doc*/
  __pyx_tp_traverse_6pyproj_4_crs_Param, /*tp_traverse*/
  __pyx_tp_clear_6pyproj_4_crs_Param, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_6pyproj_4_crs_Param, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_6pyproj_4_crs_Param, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6pyproj_4_crs_Param, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};
static struct __pyx_vtabstruct_6pyproj_4_crs_Grid __pyx_vtable_6pyproj_4_crs_Grid;

static PyObject *__pyx_tp_new_6pyproj_4_crs_Grid(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_6pyproj_4_crs_Grid *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_6pyproj_4_crs_Grid *)o);
  p->__pyx_vtab = __pyx_vtabptr_6pyproj_4_crs_Grid;
  p->short_name = Py_None; Py_INCREF(Py_None);
  p->full_name = Py_None; Py_INCREF(Py_None);
  p->package_name = Py_None; Py_INCREF(Py_None);
  p->url = Py_None; Py_INCREF(Py_None);
  p->direct_download = Py_None; Py_INCREF(Py_None);
  p->open_license = Py_None; Py_INCREF(Py_None);
  p->available = Py_None; Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_6pyproj_4_crs_4Grid_1__cinit__(o, __pyx_empty_tuple, NULL) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_6pyproj_4_crs_Grid(PyObject *o) {
  struct __pyx_obj_6pyproj_4_crs_Grid *p = (struct __pyx_obj_6pyproj_4_crs_Grid *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->short_name);
  Py_CLEAR(p->full_name);
  Py_CLEAR(p->package_name);
  Py_CLEAR(p->url);
  Py_CLEAR(p->direct_download);
  Py_CLEAR(p->open_license);
  Py_CLEAR(p->available);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_6pyproj_4_crs_Grid(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_6pyproj_4_crs_Grid *p = (struct __pyx_obj_6pyproj_4_crs_Grid *)o;
  if (p->short_name) {
    e = (*v)(p->short_name, a); if (e) return e;
  }
  if (p->full_name) {
    e = (*v)(p->full_name, a); if (e) return e;
  }
  if (p->package_name) {
    e = (*v)(p->package_name, a); if (e) return e;
  }
  if (p->url) {
    e = (*v)(p->url, a); if (e) return e;
  }
  if (p->direct_download) {
    e = (*v)(p->direct_download, a); if (e) return e;
  }
  if (p->open_license) {
    e = (*v)(p->open_license, a); if (e) return e;
  }
  if (p->available) {
    e = (*v)(p->available, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_6pyproj_4_crs_Grid(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_6pyproj_4_crs_Grid *p = (struct __pyx_obj_6pyproj_4_crs_Grid *)o;
  tmp = ((PyObject*)p->short_name);
  p->short_name = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->full_name);
  p->full_name = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->package_name);
  p->package_name = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->url);
  p->url = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->direct_download);
  p->direct_download = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->open_license);
  p->open_license = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->available);
  p->available = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4Grid_short_name(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4Grid_10short_name_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4Grid_full_name(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4Grid_9full_name_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4Grid_package_name(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4Grid_12package_name_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4Grid_url(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4Grid_3url_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4Grid_direct_download(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4Grid_15direct_download_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4Grid_open_license(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4Grid_12open_license_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4Grid_available(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4Grid_9available_1__get__(o);
}

static PyMethodDef __pyx_methods_6pyproj_4_crs_Grid[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_6pyproj_4_crs_4Grid_7__reduce_cython__, METH_NOARGS, __pyx_doc_6pyproj_4_crs_4Grid_6__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_6pyproj_4_crs_4Grid_9__setstate_cython__, METH_O, __pyx_doc_6pyproj_4_crs_4Grid_8__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_6pyproj_4_crs_Grid[] = {
  {(char *)"short_name", __pyx_getprop_6pyproj_4_crs_4Grid_short_name, 0, (char *)0, 0},
  {(char *)"full_name", __pyx_getprop_6pyproj_4_crs_4Grid_full_name, 0, (char *)0, 0},
  {(char *)"package_name", __pyx_getprop_6pyproj_4_crs_4Grid_package_name, 0, (char *)0, 0},
  {(char *)"url", __pyx_getprop_6pyproj_4_crs_4Grid_url, 0, (char *)0, 0},
  {(char *)"direct_download", __pyx_getprop_6pyproj_4_crs_4Grid_direct_download, 0, (char *)0, 0},
  {(char *)"open_license", __pyx_getprop_6pyproj_4_crs_4Grid_open_license, 0, (char *)0, 0},
  {(char *)"available", __pyx_getprop_6pyproj_4_crs_4Grid_available, 0, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_6pyproj_4_crs_Grid = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyproj._crs.Grid", /*tp_name*/
  sizeof(struct __pyx_obj_6pyproj_4_crs_Grid), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6pyproj_4_crs_Grid, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  __pyx_pw_6pyproj_4_crs_4Grid_5__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  __pyx_pw_6pyproj_4_crs_4Grid_3__str__, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  "\n    .. versionadded:: 2.2.0\n\n    Coordinate operation grid.\n\n    Attributes\n    ----------\n    short_name: str\n        The short name of the grid.\n    full_name: str\n        The full name of the grid.\n    package_name: str\n        The the package name where the grid might be found.\n    url: str\n        The grid URL or the package URL where the grid might be found.\n    direct_download: int\n        If 1, *url* can be downloaded directly.\n    open_license: int\n        If 1, the grid is released with an open license.\n    available: int\n        If 1, the grid is available at runtime.\n\n    ", /*tp_doc*/
  __pyx_tp_traverse_6pyproj_4_crs_Grid, /*tp_traverse*/
  __pyx_tp_clear_6pyproj_4_crs_Grid, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_6pyproj_4_crs_Grid, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_6pyproj_4_crs_Grid, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6pyproj_4_crs_Grid, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};
static struct __pyx_vtabstruct_6pyproj_4_crs_CoordinateOperation __pyx_vtable_6pyproj_4_crs_CoordinateOperation;

static PyObject *__pyx_tp_new_6pyproj_4_crs_CoordinateOperation(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *p;
  PyObject *o = __pyx_tp_new_6pyproj_4_crs__CRSParts(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *)o);
  p->__pyx_base.__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_6pyproj_4_crs_Base*)__pyx_vtabptr_6pyproj_4_crs_CoordinateOperation;
  p->_params = Py_None; Py_INCREF(Py_None);
  p->_grids = Py_None; Py_INCREF(Py_None);
  p->_area_of_use = Py_None; Py_INCREF(Py_None);
  p->method_name = Py_None; Py_INCREF(Py_None);
  p->method_auth_name = Py_None; Py_INCREF(Py_None);
  p->method_code = Py_None; Py_INCREF(Py_None);
  p->is_instantiable = Py_None; Py_INCREF(Py_None);
  p->has_ballpark_transformation = Py_None; Py_INCREF(Py_None);
  p->_towgs84 = Py_None; Py_INCREF(Py_None);
  p->_operations = Py_None; Py_INCREF(Py_None);
  p->type_name = Py_None; Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_6pyproj_4_crs_19CoordinateOperation_1__cinit__(o, __pyx_empty_tuple, NULL) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_6pyproj_4_crs_CoordinateOperation(PyObject *o) {
  struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *p = (struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->_params);
  Py_CLEAR(p->_grids);
  Py_CLEAR(p->_area_of_use);
  Py_CLEAR(p->method_name);
  Py_CLEAR(p->method_auth_name);
  Py_CLEAR(p->method_code);
  Py_CLEAR(p->is_instantiable);
  Py_CLEAR(p->has_ballpark_transformation);
  Py_CLEAR(p->_towgs84);
  Py_CLEAR(p->_operations);
  Py_CLEAR(p->type_name);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_6pyproj_4_crs_Base(o);
}

static int __pyx_tp_traverse_6pyproj_4_crs_CoordinateOperation(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *p = (struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *)o;
  e = __pyx_tp_traverse_6pyproj_4_crs_Base(o, v, a); if (e) return e;
  if (p->_params) {
    e = (*v)(p->_params, a); if (e) return e;
  }
  if (p->_grids) {
    e = (*v)(p->_grids, a); if (e) return e;
  }
  if (p->_area_of_use) {
    e = (*v)(p->_area_of_use, a); if (e) return e;
  }
  if (p->method_name) {
    e = (*v)(p->method_name, a); if (e) return e;
  }
  if (p->method_auth_name) {
    e = (*v)(p->method_auth_name, a); if (e) return e;
  }
  if (p->method_code) {
    e = (*v)(p->method_code, a); if (e) return e;
  }
  if (p->is_instantiable) {
    e = (*v)(p->is_instantiable, a); if (e) return e;
  }
  if (p->has_ballpark_transformation) {
    e = (*v)(p->has_ballpark_transformation, a); if (e) return e;
  }
  if (p->_towgs84) {
    e = (*v)(p->_towgs84, a); if (e) return e;
  }
  if (p->_operations) {
    e = (*v)(p->_operations, a); if (e) return e;
  }
  if (p->type_name) {
    e = (*v)(p->type_name, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_6pyproj_4_crs_CoordinateOperation(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *p = (struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *)o;
  __pyx_tp_clear_6pyproj_4_crs_Base(o);
  tmp = ((PyObject*)p->_params);
  p->_params = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_grids);
  p->_grids = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_area_of_use);
  p->_area_of_use = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->method_name);
  p->method_name = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->method_auth_name);
  p->method_auth_name = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->method_code);
  p->method_code = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->is_instantiable);
  p->is_instantiable = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->has_ballpark_transformation);
  p->has_ballpark_transformation = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_towgs84);
  p->_towgs84 = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_operations);
  p->_operations = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->type_name);
  p->type_name = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_6pyproj_4_crs_19CoordinateOperation_params(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_19CoordinateOperation_6params_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_19CoordinateOperation_grids(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_19CoordinateOperation_5grids_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_19CoordinateOperation_area_of_use(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_19CoordinateOperation_11area_of_use_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_19CoordinateOperation_towgs84(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_19CoordinateOperation_7towgs84_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_19CoordinateOperation_operations(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_19CoordinateOperation_10operations_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_19CoordinateOperation__params(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_19CoordinateOperation_7_params_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_19CoordinateOperation__grids(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_19CoordinateOperation_6_grids_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_19CoordinateOperation__area_of_use(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_19CoordinateOperation_12_area_of_use_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_19CoordinateOperation_method_name(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_19CoordinateOperation_11method_name_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_19CoordinateOperation_method_auth_name(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_19CoordinateOperation_16method_auth_name_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_19CoordinateOperation_method_code(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_19CoordinateOperation_11method_code_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_19CoordinateOperation_accuracy(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_19CoordinateOperation_8accuracy_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_19CoordinateOperation_is_instantiable(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_19CoordinateOperation_15is_instantiable_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_19CoordinateOperation_has_ballpark_transformation(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_19CoordinateOperation_27has_ballpark_transformation_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_19CoordinateOperation__towgs84(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_19CoordinateOperation_8_towgs84_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_19CoordinateOperation__operations(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_19CoordinateOperation_11_operations_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_19CoordinateOperation_type_name(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_19CoordinateOperation_9type_name_1__get__(o);
}

static PyMethodDef __pyx_methods_6pyproj_4_crs_CoordinateOperation[] = {
  {"from_authority", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_19CoordinateOperation_5from_authority, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_19CoordinateOperation_4from_authority},
  {"from_epsg", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_19CoordinateOperation_7from_epsg, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_19CoordinateOperation_6from_epsg},
  {"_from_string", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_19CoordinateOperation_9_from_string, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_19CoordinateOperation_8_from_string},
  {"from_string", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_19CoordinateOperation_11from_string, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_19CoordinateOperation_10from_string},
  {"from_json_dict", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_19CoordinateOperation_13from_json_dict, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_19CoordinateOperation_12from_json_dict},
  {"from_json", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_19CoordinateOperation_15from_json, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_19CoordinateOperation_14from_json},
  {"from_name", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_19CoordinateOperation_17from_name, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_19CoordinateOperation_16from_name},
  {"to_proj4", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_19CoordinateOperation_19to_proj4, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_19CoordinateOperation_18to_proj4},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_6pyproj_4_crs_19CoordinateOperation_23__reduce_cython__, METH_NOARGS, __pyx_doc_6pyproj_4_crs_19CoordinateOperation_22__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_6pyproj_4_crs_19CoordinateOperation_25__setstate_cython__, METH_O, __pyx_doc_6pyproj_4_crs_19CoordinateOperation_24__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_6pyproj_4_crs_CoordinateOperation[] = {
  {(char *)"params", __pyx_getprop_6pyproj_4_crs_19CoordinateOperation_params, 0, (char *)"\n        Returns\n        -------\n        List[Param]:\n            The coordinate operation parameters.\n        ", 0},
  {(char *)"grids", __pyx_getprop_6pyproj_4_crs_19CoordinateOperation_grids, 0, (char *)"\n        Returns\n        -------\n        List[Grid]:\n            The coordinate operation grids.\n        ", 0},
  {(char *)"area_of_use", __pyx_getprop_6pyproj_4_crs_19CoordinateOperation_area_of_use, 0, (char *)"\n        Returns\n        -------\n        AreaOfUse:\n            The area of use object with associated attributes.\n        ", 0},
  {(char *)"towgs84", __pyx_getprop_6pyproj_4_crs_19CoordinateOperation_towgs84, 0, (char *)"\n        Returns\n        -------\n        List[float]:\n            A list of 3 or 7 towgs84 values if they exist.\n\n        ", 0},
  {(char *)"operations", __pyx_getprop_6pyproj_4_crs_19CoordinateOperation_operations, 0, (char *)"\n        .. versionadded:: 2.4.0\n\n        Returns\n        -------\n        Tuple[CoordinateOperation]:\n            The operations in a concatenated operation.\n\n        ", 0},
  {(char *)"_params", __pyx_getprop_6pyproj_4_crs_19CoordinateOperation__params, 0, (char *)0, 0},
  {(char *)"_grids", __pyx_getprop_6pyproj_4_crs_19CoordinateOperation__grids, 0, (char *)0, 0},
  {(char *)"_area_of_use", __pyx_getprop_6pyproj_4_crs_19CoordinateOperation__area_of_use, 0, (char *)0, 0},
  {(char *)"method_name", __pyx_getprop_6pyproj_4_crs_19CoordinateOperation_method_name, 0, (char *)0, 0},
  {(char *)"method_auth_name", __pyx_getprop_6pyproj_4_crs_19CoordinateOperation_method_auth_name, 0, (char *)0, 0},
  {(char *)"method_code", __pyx_getprop_6pyproj_4_crs_19CoordinateOperation_method_code, 0, (char *)0, 0},
  {(char *)"accuracy", __pyx_getprop_6pyproj_4_crs_19CoordinateOperation_accuracy, 0, (char *)0, 0},
  {(char *)"is_instantiable", __pyx_getprop_6pyproj_4_crs_19CoordinateOperation_is_instantiable, 0, (char *)0, 0},
  {(char *)"has_ballpark_transformation", __pyx_getprop_6pyproj_4_crs_19CoordinateOperation_has_ballpark_transformation, 0, (char *)0, 0},
  {(char *)"_towgs84", __pyx_getprop_6pyproj_4_crs_19CoordinateOperation__towgs84, 0, (char *)0, 0},
  {(char *)"_operations", __pyx_getprop_6pyproj_4_crs_19CoordinateOperation__operations, 0, (char *)0, 0},
  {(char *)"type_name", __pyx_getprop_6pyproj_4_crs_19CoordinateOperation_type_name, 0, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_6pyproj_4_crs_CoordinateOperation = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyproj._crs.CoordinateOperation", /*tp_name*/
  sizeof(struct __pyx_obj_6pyproj_4_crs_CoordinateOperation), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6pyproj_4_crs_CoordinateOperation, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  __pyx_pw_6pyproj_4_crs_19CoordinateOperation_21__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_6pyproj_4_crs_4Base_11__str__, /*tp_str*/
  #else
  0, /*tp_str*/
  #endif
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  "CoordinateOperation()\n\n    .. versionadded:: 2.2.0\n\n    Coordinate operation for CRS.\n\n    Attributes\n    ----------\n    name: str\n        The name of the method(projection) with authority information.\n    method_name: str\n        The method (projection) name.\n    method_auth_name: str\n        The method authority name.\n    method_code: str\n        The method code.\n    is_instantiable: int\n        If 1, a coordinate operation can be instantiated as a PROJ pipeline.\n        This also checks that referenced grids are available.\n    has_ballpark_transformation: int\n        If 1, the coordinate operation has a \342\200\234ballpark\342\200\235 transformation,\n        that is a very approximate one, due to lack of more accurate transformations.\n    accuracy: float\n        The accuracy (in metre) of a coordinate operation.\n\n    ", /*tp_doc*/
  __pyx_tp_traverse_6pyproj_4_crs_CoordinateOperation, /*tp_traverse*/
  __pyx_tp_clear_6pyproj_4_crs_CoordinateOperation, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_6pyproj_4_crs_CoordinateOperation, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_6pyproj_4_crs_CoordinateOperation, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_6pyproj_4_crs_19CoordinateOperation_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6pyproj_4_crs_CoordinateOperation, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};
static struct __pyx_vtabstruct_6pyproj_4_crs__CRS __pyx_vtable_6pyproj_4_crs__CRS;

static PyObject *__pyx_tp_new_6pyproj_4_crs__CRS(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_6pyproj_4_crs__CRS *p;
  PyObject *o = __pyx_tp_new_6pyproj_4_crs_Base(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_6pyproj_4_crs__CRS *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_6pyproj_4_crs_Base*)__pyx_vtabptr_6pyproj_4_crs__CRS;
  p->srs = Py_None; Py_INCREF(Py_None);
  p->type_name = Py_None; Py_INCREF(Py_None);
  p->_ellipsoid = Py_None; Py_INCREF(Py_None);
  p->_area_of_use = Py_None; Py_INCREF(Py_None);
  p->_prime_meridian = Py_None; Py_INCREF(Py_None);
  p->_datum = Py_None; Py_INCREF(Py_None);
  p->_sub_crs_list = Py_None; Py_INCREF(Py_None);
  p->_source_crs = Py_None; Py_INCREF(Py_None);
  p->_target_crs = Py_None; Py_INCREF(Py_None);
  p->_geodetic_crs = Py_None; Py_INCREF(Py_None);
  p->_coordinate_system = Py_None; Py_INCREF(Py_None);
  p->_coordinate_operation = Py_None; Py_INCREF(Py_None);
  if (unlikely(__pyx_pw_6pyproj_4_crs_4_CRS_1__cinit__(o, __pyx_empty_tuple, NULL) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_6pyproj_4_crs__CRS(PyObject *o) {
  struct __pyx_obj_6pyproj_4_crs__CRS *p = (struct __pyx_obj_6pyproj_4_crs__CRS *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->srs);
  Py_CLEAR(p->type_name);
  Py_CLEAR(p->_ellipsoid);
  Py_CLEAR(p->_area_of_use);
  Py_CLEAR(p->_prime_meridian);
  Py_CLEAR(p->_datum);
  Py_CLEAR(p->_sub_crs_list);
  Py_CLEAR(p->_source_crs);
  Py_CLEAR(p->_target_crs);
  Py_CLEAR(p->_geodetic_crs);
  Py_CLEAR(p->_coordinate_system);
  Py_CLEAR(p->_coordinate_operation);
  PyObject_GC_Track(o);
  __pyx_tp_dealloc_6pyproj_4_crs_Base(o);
}

static int __pyx_tp_traverse_6pyproj_4_crs__CRS(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_6pyproj_4_crs__CRS *p = (struct __pyx_obj_6pyproj_4_crs__CRS *)o;
  e = __pyx_tp_traverse_6pyproj_4_crs_Base(o, v, a); if (e) return e;
  if (p->srs) {
    e = (*v)(p->srs, a); if (e) return e;
  }
  if (p->type_name) {
    e = (*v)(p->type_name, a); if (e) return e;
  }
  if (p->_ellipsoid) {
    e = (*v)(p->_ellipsoid, a); if (e) return e;
  }
  if (p->_area_of_use) {
    e = (*v)(p->_area_of_use, a); if (e) return e;
  }
  if (p->_prime_meridian) {
    e = (*v)(p->_prime_meridian, a); if (e) return e;
  }
  if (p->_datum) {
    e = (*v)(p->_datum, a); if (e) return e;
  }
  if (p->_sub_crs_list) {
    e = (*v)(p->_sub_crs_list, a); if (e) return e;
  }
  if (p->_source_crs) {
    e = (*v)(p->_source_crs, a); if (e) return e;
  }
  if (p->_target_crs) {
    e = (*v)(p->_target_crs, a); if (e) return e;
  }
  if (p->_geodetic_crs) {
    e = (*v)(p->_geodetic_crs, a); if (e) return e;
  }
  if (p->_coordinate_system) {
    e = (*v)(p->_coordinate_system, a); if (e) return e;
  }
  if (p->_coordinate_operation) {
    e = (*v)(p->_coordinate_operation, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_6pyproj_4_crs__CRS(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_6pyproj_4_crs__CRS *p = (struct __pyx_obj_6pyproj_4_crs__CRS *)o;
  __pyx_tp_clear_6pyproj_4_crs_Base(o);
  tmp = ((PyObject*)p->srs);
  p->srs = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->type_name);
  p->type_name = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_ellipsoid);
  p->_ellipsoid = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_area_of_use);
  p->_area_of_use = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_prime_meridian);
  p->_prime_meridian = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_datum);
  p->_datum = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_sub_crs_list);
  p->_sub_crs_list = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_source_crs);
  p->_source_crs = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_target_crs);
  p->_target_crs = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_geodetic_crs);
  p->_geodetic_crs = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_coordinate_system);
  p->_coordinate_system = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->_coordinate_operation);
  p->_coordinate_operation = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS_axis_info(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_9axis_info_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS_area_of_use(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_11area_of_use_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS_ellipsoid(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_9ellipsoid_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS_prime_meridian(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_14prime_meridian_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS_datum(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_5datum_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS_coordinate_system(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_17coordinate_system_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS_coordinate_operation(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_20coordinate_operation_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS_source_crs(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_10source_crs_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS_target_crs(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_10target_crs_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS_sub_crs_list(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_12sub_crs_list_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS_geodetic_crs(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_12geodetic_crs_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS_is_geographic(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_13is_geographic_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS_is_projected(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_12is_projected_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS_is_vertical(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_11is_vertical_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS_is_bound(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_8is_bound_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS_is_engineering(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_14is_engineering_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS_is_geocentric(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_13is_geocentric_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS_srs(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_3srs_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS_type_name(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_9type_name_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS__ellipsoid(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_10_ellipsoid_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS__area_of_use(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_12_area_of_use_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS__prime_meridian(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_15_prime_meridian_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS__datum(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_6_datum_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS__sub_crs_list(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_13_sub_crs_list_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS__source_crs(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_11_source_crs_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS__target_crs(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_11_target_crs_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS__geodetic_crs(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_13_geodetic_crs_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS__coordinate_system(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_18_coordinate_system_1__get__(o);
}

static PyObject *__pyx_getprop_6pyproj_4_crs_4_CRS__coordinate_operation(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_6pyproj_4_crs_4_CRS_21_coordinate_operation_1__get__(o);
}

static PyMethodDef __pyx_methods_6pyproj_4_crs__CRS[] = {
  {"to_proj4", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_4_CRS_5to_proj4, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_4_CRS_4to_proj4},
  {"to_epsg", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_4_CRS_7to_epsg, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_4_CRS_6to_epsg},
  {"to_authority", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_4_CRS_9to_authority, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_4_CRS_8to_authority},
  {"_is_crs_property", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_4_CRS_11_is_crs_property, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_4_CRS_10_is_crs_property},
  {"_equals", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_4_CRS_13_equals, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_4_CRS_12_equals},
  {"equals", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_6pyproj_4_crs_4_CRS_15equals, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6pyproj_4_crs_4_CRS_14equals},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_6pyproj_4_crs_4_CRS_17__reduce_cython__, METH_NOARGS, __pyx_doc_6pyproj_4_crs_4_CRS_16__reduce_cython__},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_6pyproj_4_crs_4_CRS_19__setstate_cython__, METH_O, __pyx_doc_6pyproj_4_crs_4_CRS_18__setstate_cython__},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_6pyproj_4_crs__CRS[] = {
  {(char *)"axis_info", __pyx_getprop_6pyproj_4_crs_4_CRS_axis_info, 0, (char *)"\n        Retrieves all relevant axis information in the CRS.\n        If it is a Bound CRS, it gets the axis list from the Source CRS.\n        If it is a Compound CRS, it gets the axis list from the Sub CRS list.\n\n        Returns\n        -------\n        List[Axis]:\n            The list of axis information.\n        ", 0},
  {(char *)"area_of_use", __pyx_getprop_6pyproj_4_crs_4_CRS_area_of_use, 0, (char *)"\n        Returns\n        -------\n        AreaOfUse:\n            The area of use object with associated attributes.\n        ", 0},
  {(char *)"ellipsoid", __pyx_getprop_6pyproj_4_crs_4_CRS_ellipsoid, 0, (char *)"\n        .. versionadded:: 2.2.0\n\n        Returns\n        -------\n        Ellipsoid:\n            The ellipsoid object with associated attributes.\n        ", 0},
  {(char *)"prime_meridian", __pyx_getprop_6pyproj_4_crs_4_CRS_prime_meridian, 0, (char *)"\n        .. versionadded:: 2.2.0\n\n        Returns\n        -------\n        PrimeMeridian:\n            The prime meridian object with associated attributes.\n        ", 0},
  {(char *)"datum", __pyx_getprop_6pyproj_4_crs_4_CRS_datum, 0, (char *)"\n        .. versionadded:: 2.2.0\n\n        Returns\n        -------\n        Datum\n        ", 0},
  {(char *)"coordinate_system", __pyx_getprop_6pyproj_4_crs_4_CRS_coordinate_system, 0, (char *)"\n        .. versionadded:: 2.2.0\n\n        Returns\n        -------\n        CoordinateSystem\n        ", 0},
  {(char *)"coordinate_operation", __pyx_getprop_6pyproj_4_crs_4_CRS_coordinate_operation, 0, (char *)"\n        .. versionadded:: 2.2.0\n\n        Returns\n        -------\n        CoordinateOperation\n        ", 0},
  {(char *)"source_crs", __pyx_getprop_6pyproj_4_crs_4_CRS_source_crs, 0, (char *)"\n        The the base CRS of a BoundCRS or a DerivedCRS/ProjectedCRS,\n        or the source CRS of a CoordinateOperation.\n\n        Returns\n        -------\n        _CRS\n        ", 0},
  {(char *)"target_crs", __pyx_getprop_6pyproj_4_crs_4_CRS_target_crs, 0, (char *)"\n        .. versionadded:: 2.2.0\n\n        Returns\n        -------\n        _CRS:\n            The hub CRS of a BoundCRS or the target CRS of a CoordinateOperation.\n        ", 0},
  {(char *)"sub_crs_list", __pyx_getprop_6pyproj_4_crs_4_CRS_sub_crs_list, 0, (char *)"\n        If the CRS is a compound CRS, it will return a list of sub CRS objects.\n\n        Returns\n        -------\n        List[_CRS]\n        ", 0},
  {(char *)"geodetic_crs", __pyx_getprop_6pyproj_4_crs_4_CRS_geodetic_crs, 0, (char *)"\n        .. versionadded:: 2.2.0\n\n        The the geodeticCRS / geographicCRS from the CRS.\n\n        Returns\n        -------\n        _CRS\n        ", 0},
  {(char *)"is_geographic", __pyx_getprop_6pyproj_4_crs_4_CRS_is_geographic, 0, (char *)"\n        This checks if the CRS is geographic.\n        It will check if it has a geographic CRS\n        in the sub CRS if it is a compount CRS and will check if\n        the source CRS is geographic if it is a bound CRS.\n\n        Returns\n        -------\n        bool:\n            True if the CRS is in geographic (lon/lat) coordinates.\n        ", 0},
  {(char *)"is_projected", __pyx_getprop_6pyproj_4_crs_4_CRS_is_projected, 0, (char *)"\n        This checks if the CRS is projected.\n        It will check if it has a projected CRS\n        in the sub CRS if it is a compount CRS and will check if\n        the source CRS is projected if it is a bound CRS.\n\n        Returns\n        -------\n        bool:\n            True if CRS is projected.\n        ", 0},
  {(char *)"is_vertical", __pyx_getprop_6pyproj_4_crs_4_CRS_is_vertical, 0, (char *)"\n        .. versionadded:: 2.2.0\n\n        This checks if the CRS is vertical.\n        It will check if it has a vertical CRS\n        in the sub CRS if it is a compount CRS and will check if\n        the source CRS is vertical if it is a bound CRS.\n\n        Returns\n        -------\n        bool:\n            True if CRS is vertical.\n        ", 0},
  {(char *)"is_bound", __pyx_getprop_6pyproj_4_crs_4_CRS_is_bound, 0, (char *)"\n        Returns\n        -------\n        bool:\n            True if CRS is bound.\n        ", 0},
  {(char *)"is_engineering", __pyx_getprop_6pyproj_4_crs_4_CRS_is_engineering, 0, (char *)"\n        .. versionadded:: 2.2.0\n\n        Returns\n        -------\n        bool:\n            True if CRS is local/engineering.\n        ", 0},
  {(char *)"is_geocentric", __pyx_getprop_6pyproj_4_crs_4_CRS_is_geocentric, 0, (char *)"\n        This checks if the CRS is geocentric and\n        takes into account if the CRS is bound.\n\n        Returns\n        -------\n        bool:\n            True if CRS is in geocentric (x/y) coordinates.\n        ", 0},
  {(char *)"srs", __pyx_getprop_6pyproj_4_crs_4_CRS_srs, 0, (char *)0, 0},
  {(char *)"type_name", __pyx_getprop_6pyproj_4_crs_4_CRS_type_name, 0, (char *)0, 0},
  {(char *)"_ellipsoid", __pyx_getprop_6pyproj_4_crs_4_CRS__ellipsoid, 0, (char *)0, 0},
  {(char *)"_area_of_use", __pyx_getprop_6pyproj_4_crs_4_CRS__area_of_use, 0, (char *)0, 0},
  {(char *)"_prime_meridian", __pyx_getprop_6pyproj_4_crs_4_CRS__prime_meridian, 0, (char *)0, 0},
  {(char *)"_datum", __pyx_getprop_6pyproj_4_crs_4_CRS__datum, 0, (char *)0, 0},
  {(char *)"_sub_crs_list", __pyx_getprop_6pyproj_4_crs_4_CRS__sub_crs_list, 0, (char *)0, 0},
  {(char *)"_source_crs", __pyx_getprop_6pyproj_4_crs_4_CRS__source_crs, 0, (char *)0, 0},
  {(char *)"_target_crs", __pyx_getprop_6pyproj_4_crs_4_CRS__target_crs, 0, (char *)0, 0},
  {(char *)"_geodetic_crs", __pyx_getprop_6pyproj_4_crs_4_CRS__geodetic_crs, 0, (char *)0, 0},
  {(char *)"_coordinate_system", __pyx_getprop_6pyproj_4_crs_4_CRS__coordinate_system, 0, (char *)0, 0},
  {(char *)"_coordinate_operation", __pyx_getprop_6pyproj_4_crs_4_CRS__coordinate_operation, 0, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_6pyproj_4_crs__CRS = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyproj._crs._CRS", /*tp_name*/
  sizeof(struct __pyx_obj_6pyproj_4_crs__CRS), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_6pyproj_4_crs__CRS, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_6pyproj_4_crs_4Base_13__repr__, /*tp_repr*/
  #else
  0, /*tp_repr*/
  #endif
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  #if CYTHON_COMPILING_IN_PYPY
  __pyx_pw_6pyproj_4_crs_4Base_11__str__, /*tp_str*/
  #else
  0, /*tp_str*/
  #endif
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  "_CRS(proj_string)\n\n    .. versionadded:: 2.0.0\n\n    The cython CRS class to be used as the base for the\n    python CRS class.\n    ", /*tp_doc*/
  __pyx_tp_traverse_6pyproj_4_crs__CRS, /*tp_traverse*/
  __pyx_tp_clear_6pyproj_4_crs__CRS, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_6pyproj_4_crs__CRS, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_6pyproj_4_crs__CRS, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_6pyproj_4_crs_4_CRS_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_6pyproj_4_crs__CRS, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
};

static PyMethodDef __pyx_methods[] = {
  {0, 0, 0, 0}
};

#if PY_MAJOR_VERSION >= 3
#if CYTHON_PEP489_MULTI_PHASE_INIT
static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/
static int __pyx_pymod_exec__crs(PyObject* module); /*proto*/
static PyModuleDef_Slot __pyx_moduledef_slots[] = {
  {Py_mod_create, (void*)__pyx_pymod_create},
  {Py_mod_exec, (void*)__pyx_pymod_exec__crs},
  {0, NULL}
};
#endif

static struct PyModuleDef __pyx_moduledef = {
    PyModuleDef_HEAD_INIT,
    "_crs",
    0, /* m_doc */
  #if CYTHON_PEP489_MULTI_PHASE_INIT
    0, /* m_size */
  #else
    -1, /* m_size */
  #endif
    __pyx_methods /* m_methods */,
  #if CYTHON_PEP489_MULTI_PHASE_INIT
    __pyx_moduledef_slots, /* m_slots */
  #else
    NULL, /* m_reload */
  #endif
    NULL, /* m_traverse */
    NULL, /* m_clear */
    NULL /* m_free */
};
#endif
#ifndef CYTHON_SMALL_CODE
#if defined(__clang__)
    #define CYTHON_SMALL_CODE
#elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
    #define CYTHON_SMALL_CODE __attribute__((cold))
#else
    #define CYTHON_SMALL_CODE
#endif
#endif

static __Pyx_StringTabEntry __pyx_string_tab[] = {
  {&__pyx_kp_u_, __pyx_k_, sizeof(__pyx_k_), 0, 1, 0, 0},
  {&__pyx_n_s_AreaOfUse, __pyx_k_AreaOfUse, sizeof(__pyx_k_AreaOfUse), 0, 0, 1, 1},
  {&__pyx_kp_u_AreaOfUse_name_name_west_west_so, __pyx_k_AreaOfUse_name_name_west_west_so, sizeof(__pyx_k_AreaOfUse_name_name_west_west_so), 0, 1, 0, 0},
  {&__pyx_n_s_Axis, __pyx_k_Axis, sizeof(__pyx_k_Axis), 0, 0, 1, 1},
  {&__pyx_kp_u_Axis_name_name_abbrev_abbrev_dir, __pyx_k_Axis_name_name_abbrev_abbrev_dir, sizeof(__pyx_k_Axis_name_name_abbrev_abbrev_dir), 0, 1, 0, 0},
  {&__pyx_n_s_Base, __pyx_k_Base, sizeof(__pyx_k_Base), 0, 0, 1, 1},
  {&__pyx_kp_u_Bound_CRS, __pyx_k_Bound_CRS, sizeof(__pyx_k_Bound_CRS), 0, 1, 0, 0},
  {&__pyx_n_u_CARTHAGE, __pyx_k_CARTHAGE, sizeof(__pyx_k_CARTHAGE), 0, 1, 0, 1},
  {&__pyx_n_s_CONCATENATED_OPERATION, __pyx_k_CONCATENATED_OPERATION, sizeof(__pyx_k_CONCATENATED_OPERATION), 0, 0, 1, 1},
  {&__pyx_n_s_CONVERSION, __pyx_k_CONVERSION, sizeof(__pyx_k_CONVERSION), 0, 0, 1, 1},
  {&__pyx_n_s_COORDINATE_OPERATION_TYPE_MAP, __pyx_k_COORDINATE_OPERATION_TYPE_MAP, sizeof(__pyx_k_COORDINATE_OPERATION_TYPE_MAP), 0, 0, 1, 1},
  {&__pyx_n_s_COORD_SYSTEM_TYPE_MAP, __pyx_k_COORD_SYSTEM_TYPE_MAP, sizeof(__pyx_k_COORD_SYSTEM_TYPE_MAP), 0, 0, 1, 1},
  {&__pyx_n_s_CRS, __pyx_k_CRS, sizeof(__pyx_k_CRS), 0, 0, 1, 1},
  {&__pyx_n_s_CRSError, __pyx_k_CRSError, sizeof(__pyx_k_CRSError), 0, 0, 1, 1},
  {&__pyx_n_s_CRSParts, __pyx_k_CRSParts, sizeof(__pyx_k_CRSParts), 0, 0, 1, 1},
  {&__pyx_n_u_CRS_2, __pyx_k_CRS_2, sizeof(__pyx_k_CRS_2), 0, 1, 0, 1},
  {&__pyx_n_s_CRS_TYPE_MAP, __pyx_k_CRS_TYPE_MAP, sizeof(__pyx_k_CRS_TYPE_MAP), 0, 0, 1, 1},
  {&__pyx_kp_u_CRS_to_authority_line_2700, __pyx_k_CRS_to_authority_line_2700, sizeof(__pyx_k_CRS_to_authority_line_2700), 0, 1, 0, 0},
  {&__pyx_kp_u_CRS_to_epsg_line_2657, __pyx_k_CRS_to_epsg_line_2657, sizeof(__pyx_k_CRS_to_epsg_line_2657), 0, 1, 0, 0},
  {&__pyx_n_u_Carthage, __pyx_k_Carthage, sizeof(__pyx_k_Carthage), 0, 1, 0, 1},
  {&__pyx_kp_u_Compound_CRS, __pyx_k_Compound_CRS, sizeof(__pyx_k_Compound_CRS), 0, 1, 0, 0},
  {&__pyx_kp_u_Concatenated_Operation, __pyx_k_Concatenated_Operation, sizeof(__pyx_k_Concatenated_Operation), 0, 1, 0, 0},
  {&__pyx_n_u_Conversion, __pyx_k_Conversion, sizeof(__pyx_k_Conversion), 0, 1, 0, 1},
  {&__pyx_n_s_CoordinateOperation, __pyx_k_CoordinateOperation, sizeof(__pyx_k_CoordinateOperation), 0, 0, 1, 1},
  {&__pyx_n_s_CoordinateOperationType, __pyx_k_CoordinateOperationType, sizeof(__pyx_k_CoordinateOperationType), 0, 0, 1, 1},
  {&__pyx_kp_u_CoordinateOperation_can_only_be, __pyx_k_CoordinateOperation_can_only_be, sizeof(__pyx_k_CoordinateOperation_can_only_be), 0, 1, 0, 0},
  {&__pyx_n_s_CoordinateSystem, __pyx_k_CoordinateSystem, sizeof(__pyx_k_CoordinateSystem), 0, 0, 1, 1},
  {&__pyx_kp_u_CoordinateSystem_is_not_initiali, __pyx_k_CoordinateSystem_is_not_initiali, sizeof(__pyx_k_CoordinateSystem_is_not_initiali), 0, 1, 0, 0},
  {&__pyx_kp_u_Coordinate_Operation_type_name, __pyx_k_Coordinate_Operation_type_name, sizeof(__pyx_k_Coordinate_Operation_type_name), 0, 1, 0, 0},
  {&__pyx_n_s_CustomEllipsoid, __pyx_k_CustomEllipsoid, sizeof(__pyx_k_CustomEllipsoid), 0, 0, 1, 1},
  {&__pyx_n_s_DATUM_ENSEMBLE, __pyx_k_DATUM_ENSEMBLE, sizeof(__pyx_k_DATUM_ENSEMBLE), 0, 0, 1, 1},
  {&__pyx_n_s_DATUM_NAME_MAP, __pyx_k_DATUM_NAME_MAP, sizeof(__pyx_k_DATUM_NAME_MAP), 0, 0, 1, 1},
  {&__pyx_n_s_DATUM_TYPE_MAP, __pyx_k_DATUM_TYPE_MAP, sizeof(__pyx_k_DATUM_TYPE_MAP), 0, 0, 1, 1},
  {&__pyx_n_s_DYNAMIC_GEODETIC_REFERENCE_FRAME, __pyx_k_DYNAMIC_GEODETIC_REFERENCE_FRAME, sizeof(__pyx_k_DYNAMIC_GEODETIC_REFERENCE_FRAME), 0, 0, 1, 1},
  {&__pyx_n_s_DYNAMIC_VERTICAL_REFERENCE_FRAME, __pyx_k_DYNAMIC_VERTICAL_REFERENCE_FRAME, sizeof(__pyx_k_DYNAMIC_VERTICAL_REFERENCE_FRAME), 0, 0, 1, 1},
  {&__pyx_n_s_Datum, __pyx_k_Datum, sizeof(__pyx_k_Datum), 0, 0, 1, 1},
  {&__pyx_n_s_DatumType, __pyx_k_DatumType, sizeof(__pyx_k_DatumType), 0, 0, 1, 1},
  {&__pyx_kp_u_Datum_Ensemble, __pyx_k_Datum_Ensemble, sizeof(__pyx_k_Datum_Ensemble), 0, 1, 0, 0},
  {&__pyx_kp_u_Datum_can_only_be_initialized_li, __pyx_k_Datum_can_only_be_initialized_li, sizeof(__pyx_k_Datum_can_only_be_initialized_li), 0, 1, 0, 0},
  {&__pyx_kp_u_Deutsches_Hauptdreiecksnetz, __pyx_k_Deutsches_Hauptdreiecksnetz, sizeof(__pyx_k_Deutsches_Hauptdreiecksnetz), 0, 1, 0, 0},
  {&__pyx_kp_u_Dynamic_Geodetic_Reference_Frame, __pyx_k_Dynamic_Geodetic_Reference_Frame, sizeof(__pyx_k_Dynamic_Geodetic_Reference_Frame), 0, 1, 0, 0},
  {&__pyx_kp_u_Dynamic_Vertical_Reference_Frame, __pyx_k_Dynamic_Vertical_Reference_Frame, sizeof(__pyx_k_Dynamic_Vertical_Reference_Frame), 0, 1, 0, 0},
  {&__pyx_n_u_EPSG, __pyx_k_EPSG, sizeof(__pyx_k_EPSG), 0, 1, 0, 1},
  {&__pyx_n_s_Ellipsoid, __pyx_k_Ellipsoid, sizeof(__pyx_k_Ellipsoid), 0, 0, 1, 1},
  {&__pyx_kp_u_Ellipsoid_can_only_be_initialize, __pyx_k_Ellipsoid_can_only_be_initialize, sizeof(__pyx_k_Ellipsoid_can_only_be_initialize), 0, 1, 0, 0},
  {&__pyx_kp_u_Engineering_CRS, __pyx_k_Engineering_CRS, sizeof(__pyx_k_Engineering_CRS), 0, 1, 0, 0},
  {&__pyx_n_s_GEODETIC_REFERENCE_FRAME, __pyx_k_GEODETIC_REFERENCE_FRAME, sizeof(__pyx_k_GEODETIC_REFERENCE_FRAME), 0, 0, 1, 1},
  {&__pyx_n_u_GGRS87, __pyx_k_GGRS87, sizeof(__pyx_k_GGRS87), 0, 1, 0, 1},
  {&__pyx_kp_u_Geocentric_CRS, __pyx_k_Geocentric_CRS, sizeof(__pyx_k_Geocentric_CRS), 0, 1, 0, 0},
  {&__pyx_kp_u_Geodetic_CRS, __pyx_k_Geodetic_CRS, sizeof(__pyx_k_Geodetic_CRS), 0, 1, 0, 0},
  {&__pyx_kp_u_Geodetic_Reference_Frame, __pyx_k_Geodetic_Reference_Frame, sizeof(__pyx_k_Geodetic_Reference_Frame), 0, 1, 0, 0},
  {&__pyx_kp_u_Geographic_2D_CRS, __pyx_k_Geographic_2D_CRS, sizeof(__pyx_k_Geographic_2D_CRS), 0, 1, 0, 0},
  {&__pyx_kp_u_Geographic_3D_CRS, __pyx_k_Geographic_3D_CRS, sizeof(__pyx_k_Geographic_3D_CRS), 0, 1, 0, 0},
  {&__pyx_kp_u_Geographic_CRS, __pyx_k_Geographic_CRS, sizeof(__pyx_k_Geographic_CRS), 0, 1, 0, 0},
  {&__pyx_kp_u_Greek_Geodetic_Reference_System, __pyx_k_Greek_Geodetic_Reference_System, sizeof(__pyx_k_Greek_Geodetic_Reference_System), 0, 1, 0, 0},
  {&__pyx_n_s_Grid, __pyx_k_Grid, sizeof(__pyx_k_Grid), 0, 0, 1, 1},
  {&__pyx_kp_u_Grid_short_name_short_name_full, __pyx_k_Grid_short_name_short_name_full, sizeof(__pyx_k_Grid_short_name_short_name_full), 0, 1, 0, 0},
  {&__pyx_n_u_HERMANNSKOGEL, __pyx_k_HERMANNSKOGEL, sizeof(__pyx_k_HERMANNSKOGEL), 0, 1, 0, 1},
  {&__pyx_kp_u_INDENTATION_WIDTH_0f, __pyx_k_INDENTATION_WIDTH_0f, sizeof(__pyx_k_INDENTATION_WIDTH_0f), 0, 1, 0, 0},
  {&__pyx_n_u_IRE65, __pyx_k_IRE65, sizeof(__pyx_k_IRE65), 0, 1, 0, 1},
  {&__pyx_kp_u_Input_is_not_a_CRS, __pyx_k_Input_is_not_a_CRS, sizeof(__pyx_k_Input_is_not_a_CRS), 0, 1, 0, 0},
  {&__pyx_kp_u_Invalid_JSON, __pyx_k_Invalid_JSON, sizeof(__pyx_k_Invalid_JSON), 0, 1, 0, 0},
  {&__pyx_kp_u_Invalid_authority_or_code_0_1, __pyx_k_Invalid_authority_or_code_0_1, sizeof(__pyx_k_Invalid_authority_or_code_0_1), 0, 1, 0, 0},
  {&__pyx_kp_u_Invalid_coordinate_operation_nam, __pyx_k_Invalid_coordinate_operation_nam, sizeof(__pyx_k_Invalid_coordinate_operation_nam), 0, 1, 0, 0},
  {&__pyx_kp_u_Invalid_coordinate_operation_str, __pyx_k_Invalid_coordinate_operation_str, sizeof(__pyx_k_Invalid_coordinate_operation_str), 0, 1, 0, 0},
  {&__pyx_kp_u_Invalid_coordinate_system_string, __pyx_k_Invalid_coordinate_system_string, sizeof(__pyx_k_Invalid_coordinate_system_string), 0, 1, 0, 0},
  {&__pyx_kp_u_Invalid_datum_name, __pyx_k_Invalid_datum_name, sizeof(__pyx_k_Invalid_datum_name), 0, 1, 0, 0},
  {&__pyx_kp_u_Invalid_datum_string, __pyx_k_Invalid_datum_string, sizeof(__pyx_k_Invalid_datum_string), 0, 1, 0, 0},
  {&__pyx_kp_u_Invalid_ellipsoid_name, __pyx_k_Invalid_ellipsoid_name, sizeof(__pyx_k_Invalid_ellipsoid_name), 0, 1, 0, 0},
  {&__pyx_kp_u_Invalid_ellipsoid_string, __pyx_k_Invalid_ellipsoid_string, sizeof(__pyx_k_Invalid_ellipsoid_string), 0, 1, 0, 0},
  {&__pyx_kp_u_Invalid_input_r, __pyx_k_Invalid_input_r, sizeof(__pyx_k_Invalid_input_r), 0, 1, 0, 0},
  {&__pyx_kp_u_Invalid_prime_meridian_name, __pyx_k_Invalid_prime_meridian_name, sizeof(__pyx_k_Invalid_prime_meridian_name), 0, 1, 0, 0},
  {&__pyx_kp_u_Invalid_prime_meridian_string, __pyx_k_Invalid_prime_meridian_string, sizeof(__pyx_k_Invalid_prime_meridian_string), 0, 1, 0, 0},
  {&__pyx_kp_u_Invalid_projection, __pyx_k_Invalid_projection, sizeof(__pyx_k_Invalid_projection), 0, 1, 0, 0},
  {&__pyx_n_s_KeyError, __pyx_k_KeyError, sizeof(__pyx_k_KeyError), 0, 0, 1, 1},
  {&__pyx_kp_b_MULTILINE_NO, __pyx_k_MULTILINE_NO, sizeof(__pyx_k_MULTILINE_NO), 0, 0, 0, 0},
  {&__pyx_kp_b_MULTILINE_YES, __pyx_k_MULTILINE_YES, sizeof(__pyx_k_MULTILINE_YES), 0, 0, 0, 0},
  {&__pyx_kp_u_Militar_Geographische_Institut, __pyx_k_Militar_Geographische_Institut, sizeof(__pyx_k_Militar_Geographische_Institut), 0, 1, 0, 0},
  {&__pyx_n_u_NAD27, __pyx_k_NAD27, sizeof(__pyx_k_NAD27), 0, 1, 0, 1},
  {&__pyx_n_u_NAD83, __pyx_k_NAD83, sizeof(__pyx_k_NAD83), 0, 1, 0, 1},
  {&__pyx_n_u_NZGD49, __pyx_k_NZGD49, sizeof(__pyx_k_NZGD49), 0, 1, 0, 1},
  {&__pyx_n_u_NaN, __pyx_k_NaN, sizeof(__pyx_k_NaN), 0, 1, 0, 1},
  {&__pyx_kp_u_New_Zealand_Geodetic_Datum_1949, __pyx_k_New_Zealand_Geodetic_Datum_1949, sizeof(__pyx_k_New_Zealand_Geodetic_Datum_1949), 0, 1, 0, 0},
  {&__pyx_kp_u_North_American_Datum_1927, __pyx_k_North_American_Datum_1927, sizeof(__pyx_k_North_American_Datum_1927), 0, 1, 0, 0},
  {&__pyx_kp_u_North_American_Datum_1983, __pyx_k_North_American_Datum_1983, sizeof(__pyx_k_North_American_Datum_1983), 0, 1, 0, 0},
  {&__pyx_n_u_OSGB36, __pyx_k_OSGB36, sizeof(__pyx_k_OSGB36), 0, 1, 0, 1},
  {&__pyx_kp_u_OSGB_1936, __pyx_k_OSGB_1936, sizeof(__pyx_k_OSGB_1936), 0, 1, 0, 0},
  {&__pyx_n_s_OTHER_COORDINATE_OPERATION, __pyx_k_OTHER_COORDINATE_OPERATION, sizeof(__pyx_k_OTHER_COORDINATE_OPERATION), 0, 0, 1, 1},
  {&__pyx_n_s_OrderedDict, __pyx_k_OrderedDict, sizeof(__pyx_k_OrderedDict), 0, 0, 1, 1},
  {&__pyx_kp_u_Other_CRS, __pyx_k_Other_CRS, sizeof(__pyx_k_Other_CRS), 0, 1, 0, 0},
  {&__pyx_kp_u_Other_Coordinate_Operation, __pyx_k_Other_Coordinate_Operation, sizeof(__pyx_k_Other_Coordinate_Operation), 0, 1, 0, 0},
  {&__pyx_n_s_PJ_COORDINATE_OPERATION_TYPE_MA, __pyx_k_PJ_COORDINATE_OPERATION_TYPE_MA, sizeof(__pyx_k_PJ_COORDINATE_OPERATION_TYPE_MA), 0, 0, 1, 1},
  {&__pyx_n_s_PJ_DATUM_TYPE_MAP, __pyx_k_PJ_DATUM_TYPE_MAP, sizeof(__pyx_k_PJ_DATUM_TYPE_MAP), 0, 0, 1, 1},
  {&__pyx_n_s_PJ_ELLPS_NAME_MAP, __pyx_k_PJ_ELLPS_NAME_MAP, sizeof(__pyx_k_PJ_ELLPS_NAME_MAP), 0, 0, 1, 1},
  {&__pyx_n_u_POTSDAM, __pyx_k_POTSDAM, sizeof(__pyx_k_POTSDAM), 0, 1, 0, 1},
  {&__pyx_n_u_PROJ, __pyx_k_PROJ, sizeof(__pyx_k_PROJ), 0, 1, 0, 1},
  {&__pyx_n_s_PROJ_4, __pyx_k_PROJ_4, sizeof(__pyx_k_PROJ_4), 0, 0, 1, 1},
  {&__pyx_n_s_PROJ_5, __pyx_k_PROJ_5, sizeof(__pyx_k_PROJ_5), 0, 0, 1, 1},
  {&__pyx_n_s_Param, __pyx_k_Param, sizeof(__pyx_k_Param), 0, 0, 1, 1},
  {&__pyx_kp_u_Param_name_name_auth_name_auth_n, __pyx_k_Param_name_name_auth_name_auth_n, sizeof(__pyx_k_Param_name_name_auth_name_auth_n), 0, 1, 0, 0},
  {&__pyx_n_s_PrimeMeridian, __pyx_k_PrimeMeridian, sizeof(__pyx_k_PrimeMeridian), 0, 0, 1, 1},
  {&__pyx_kp_u_PrimeMeridian_can_only_be_initia, __pyx_k_PrimeMeridian_can_only_be_initia, sizeof(__pyx_k_PrimeMeridian_can_only_be_initia), 0, 1, 0, 0},
  {&__pyx_n_s_ProjVersion, __pyx_k_ProjVersion, sizeof(__pyx_k_ProjVersion), 0, 0, 1, 1},
  {&__pyx_kp_u_Projected_CRS, __pyx_k_Projected_CRS, sizeof(__pyx_k_Projected_CRS), 0, 1, 0, 0},
  {&__pyx_kp_u_Return_the_EPSG_code_best_match, __pyx_k_Return_the_EPSG_code_best_match, sizeof(__pyx_k_Return_the_EPSG_code_best_match), 0, 1, 0, 0},
  {&__pyx_n_s_RuntimeError, __pyx_k_RuntimeError, sizeof(__pyx_k_RuntimeError), 0, 0, 1, 1},
  {&__pyx_kp_u_Scale_difference, __pyx_k_Scale_difference, sizeof(__pyx_k_Scale_difference), 0, 1, 0, 0},
  {&__pyx_n_u_TM65, __pyx_k_TM65, sizeof(__pyx_k_TM65), 0, 1, 0, 1},
  {&__pyx_n_s_TRANSFORMATION, __pyx_k_TRANSFORMATION, sizeof(__pyx_k_TRANSFORMATION), 0, 0, 1, 1},
  {&__pyx_kp_u_Temporal_CRS, __pyx_k_Temporal_CRS, sizeof(__pyx_k_Temporal_CRS), 0, 1, 0, 0},
  {&__pyx_n_u_Transformation, __pyx_k_Transformation, sizeof(__pyx_k_Transformation), 0, 1, 0, 1},
  {&__pyx_n_s_TypeError, __pyx_k_TypeError, sizeof(__pyx_k_TypeError), 0, 0, 1, 1},
  {&__pyx_n_u_Unknown, __pyx_k_Unknown, sizeof(__pyx_k_Unknown), 0, 1, 0, 1},
  {&__pyx_kp_u_Unknown_CRS, __pyx_k_Unknown_CRS, sizeof(__pyx_k_Unknown_CRS), 0, 1, 0, 0},
  {&__pyx_n_s_VERTICAL_REFERENCE_FRAME, __pyx_k_VERTICAL_REFERENCE_FRAME, sizeof(__pyx_k_VERTICAL_REFERENCE_FRAME), 0, 0, 1, 1},
  {&__pyx_n_s_ValueError, __pyx_k_ValueError, sizeof(__pyx_k_ValueError), 0, 0, 1, 1},
  {&__pyx_kp_u_Vertical_CRS, __pyx_k_Vertical_CRS, sizeof(__pyx_k_Vertical_CRS), 0, 1, 0, 0},
  {&__pyx_kp_u_Vertical_Reference_Frame, __pyx_k_Vertical_Reference_Frame, sizeof(__pyx_k_Vertical_Reference_Frame), 0, 1, 0, 0},
  {&__pyx_n_u_WGS84, __pyx_k_WGS84, sizeof(__pyx_k_WGS84), 0, 1, 0, 1},
  {&__pyx_n_s_WKT1_ESRI, __pyx_k_WKT1_ESRI, sizeof(__pyx_k_WKT1_ESRI), 0, 0, 1, 1},
  {&__pyx_n_s_WKT1_GDAL, __pyx_k_WKT1_GDAL, sizeof(__pyx_k_WKT1_GDAL), 0, 0, 1, 1},
  {&__pyx_n_s_WKT2_2015, __pyx_k_WKT2_2015, sizeof(__pyx_k_WKT2_2015), 0, 0, 1, 1},
  {&__pyx_n_s_WKT2_2015_SIMPLIFIED, __pyx_k_WKT2_2015_SIMPLIFIED, sizeof(__pyx_k_WKT2_2015_SIMPLIFIED), 0, 0, 1, 1},
  {&__pyx_n_s_WKT2_2018, __pyx_k_WKT2_2018, sizeof(__pyx_k_WKT2_2018), 0, 0, 1, 1},
  {&__pyx_n_s_WKT2_2018_SIMPLIFIED, __pyx_k_WKT2_2018_SIMPLIFIED, sizeof(__pyx_k_WKT2_2018_SIMPLIFIED), 0, 0, 1, 1},
  {&__pyx_n_s_WKT2_2019, __pyx_k_WKT2_2019, sizeof(__pyx_k_WKT2_2019), 0, 0, 1, 1},
  {&__pyx_n_s_WKT2_2019_SIMPLIFIED, __pyx_k_WKT2_2019_SIMPLIFIED, sizeof(__pyx_k_WKT2_2019_SIMPLIFIED), 0, 0, 1, 1},
  {&__pyx_n_s_WktVersion, __pyx_k_WktVersion, sizeof(__pyx_k_WktVersion), 0, 0, 1, 1},
  {&__pyx_kp_u_World_Geodetic_System_1984, __pyx_k_World_Geodetic_System_1984, sizeof(__pyx_k_World_Geodetic_System_1984), 0, 1, 0, 0},
  {&__pyx_kp_u_X_axis_rotation, __pyx_k_X_axis_rotation, sizeof(__pyx_k_X_axis_rotation), 0, 1, 0, 0},
  {&__pyx_kp_u_X_axis_translation, __pyx_k_X_axis_translation, sizeof(__pyx_k_X_axis_translation), 0, 1, 0, 0},
  {&__pyx_kp_u_Y_axis_rotation, __pyx_k_Y_axis_rotation, sizeof(__pyx_k_Y_axis_rotation), 0, 1, 0, 0},
  {&__pyx_kp_u_Y_axis_translation, __pyx_k_Y_axis_translation, sizeof(__pyx_k_Y_axis_translation), 0, 1, 0, 0},
  {&__pyx_kp_u_You_will_likely_lose_important_p, __pyx_k_You_will_likely_lose_important_p, sizeof(__pyx_k_You_will_likely_lose_important_p), 0, 1, 0, 0},
  {&__pyx_kp_u_Z_axis_rotation, __pyx_k_Z_axis_rotation, sizeof(__pyx_k_Z_axis_rotation), 0, 1, 0, 0},
  {&__pyx_kp_u_Z_axis_translation, __pyx_k_Z_axis_translation, sizeof(__pyx_k_Z_axis_translation), 0, 1, 0, 0},
  {&__pyx_kp_u__23, __pyx_k__23, sizeof(__pyx_k__23), 0, 1, 0, 0},
  {&__pyx_kp_u__24, __pyx_k__24, sizeof(__pyx_k__24), 0, 1, 0, 0},
  {&__pyx_n_u_a, __pyx_k_a, sizeof(__pyx_k_a), 0, 1, 0, 1},
  {&__pyx_n_s_abbrev, __pyx_k_abbrev, sizeof(__pyx_k_abbrev), 0, 0, 1, 1},
  {&__pyx_kp_u_abbrev_direction_name_unit_name, __pyx_k_abbrev_direction_name_unit_name, sizeof(__pyx_k_abbrev_direction_name_unit_name), 0, 1, 0, 0},
  {&__pyx_n_s_append, __pyx_k_append, sizeof(__pyx_k_append), 0, 0, 1, 1},
  {&__pyx_n_s_area_of_use, __pyx_k_area_of_use, sizeof(__pyx_k_area_of_use), 0, 0, 1, 1},
  {&__pyx_n_s_auth_code, __pyx_k_auth_code, sizeof(__pyx_k_auth_code), 0, 0, 1, 1},
  {&__pyx_n_s_auth_name, __pyx_k_auth_name, sizeof(__pyx_k_auth_name), 0, 0, 1, 1},
  {&__pyx_kp_u_auth_name_auth_code, __pyx_k_auth_name_auth_code, sizeof(__pyx_k_auth_name_auth_code), 0, 1, 0, 0},
  {&__pyx_n_s_available, __pyx_k_available, sizeof(__pyx_k_available), 0, 0, 1, 1},
  {&__pyx_n_s_axis_info, __pyx_k_axis_info, sizeof(__pyx_k_axis_info), 0, 0, 1, 1},
  {&__pyx_n_s_axis_list, __pyx_k_axis_list, sizeof(__pyx_k_axis_list), 0, 0, 1, 1},
  {&__pyx_n_u_b, __pyx_k_b, sizeof(__pyx_k_b), 0, 1, 0, 1},
  {&__pyx_n_s_bounds, __pyx_k_bounds, sizeof(__pyx_k_bounds), 0, 0, 1, 1},
  {&__pyx_n_u_cartesian, __pyx_k_cartesian, sizeof(__pyx_k_cartesian), 0, 1, 0, 1},
  {&__pyx_n_s_clear, __pyx_k_clear, sizeof(__pyx_k_clear), 0, 0, 1, 1},
  {&__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback, sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1},
  {&__pyx_n_s_code, __pyx_k_code, sizeof(__pyx_k_code), 0, 0, 1, 1},
  {&__pyx_n_s_collections, __pyx_k_collections, sizeof(__pyx_k_collections), 0, 0, 1, 1},
  {&__pyx_n_s_context, __pyx_k_context, sizeof(__pyx_k_context), 0, 0, 1, 1},
  {&__pyx_n_s_coord_operation_pj, __pyx_k_coord_operation_pj, sizeof(__pyx_k_coord_operation_pj), 0, 0, 1, 1},
  {&__pyx_n_s_coordinate_operation_dict, __pyx_k_coordinate_operation_dict, sizeof(__pyx_k_coordinate_operation_dict), 0, 0, 1, 1},
  {&__pyx_n_s_coordinate_operation_json_str, __pyx_k_coordinate_operation_json_str, sizeof(__pyx_k_coordinate_operation_json_str), 0, 0, 1, 1},
  {&__pyx_n_s_coordinate_operation_name, __pyx_k_coordinate_operation_name, sizeof(__pyx_k_coordinate_operation_name), 0, 0, 1, 1},
  {&__pyx_n_s_coordinate_operation_pj, __pyx_k_coordinate_operation_pj, sizeof(__pyx_k_coordinate_operation_pj), 0, 0, 1, 1},
  {&__pyx_n_s_coordinate_operation_string, __pyx_k_coordinate_operation_string, sizeof(__pyx_k_coordinate_operation_string), 0, 0, 1, 1},
  {&__pyx_n_s_coordinate_operation_type, __pyx_k_coordinate_operation_type, sizeof(__pyx_k_coordinate_operation_type), 0, 0, 1, 1},
  {&__pyx_n_s_coordinate_system, __pyx_k_coordinate_system, sizeof(__pyx_k_coordinate_system), 0, 0, 1, 1},
  {&__pyx_n_s_coordinate_system_dict, __pyx_k_coordinate_system_dict, sizeof(__pyx_k_coordinate_system_dict), 0, 0, 1, 1},
  {&__pyx_n_s_coordinate_system_json_str, __pyx_k_coordinate_system_json_str, sizeof(__pyx_k_coordinate_system_json_str), 0, 0, 1, 1},
  {&__pyx_n_s_coordinate_system_pj, __pyx_k_coordinate_system_pj, sizeof(__pyx_k_coordinate_system_pj), 0, 0, 1, 1},
  {&__pyx_n_s_coordinate_system_string, __pyx_k_coordinate_system_string, sizeof(__pyx_k_coordinate_system_string), 0, 0, 1, 1},
  {&__pyx_n_s_create, __pyx_k_create, sizeof(__pyx_k_create), 0, 0, 1, 1},
  {&__pyx_n_s_crs_err, __pyx_k_crs_err, sizeof(__pyx_k_crs_err), 0, 0, 1, 1},
  {&__pyx_n_s_cstrencode, __pyx_k_cstrencode, sizeof(__pyx_k_cstrencode), 0, 0, 1, 1},
  {&__pyx_n_u_datetimetemporal, __pyx_k_datetimetemporal, sizeof(__pyx_k_datetimetemporal), 0, 1, 0, 1},
  {&__pyx_n_s_datum_dict, __pyx_k_datum_dict, sizeof(__pyx_k_datum_dict), 0, 0, 1, 1},
  {&__pyx_n_s_datum_json_str, __pyx_k_datum_json_str, sizeof(__pyx_k_datum_json_str), 0, 0, 1, 1},
  {&__pyx_n_s_datum_name, __pyx_k_datum_name, sizeof(__pyx_k_datum_name), 0, 0, 1, 1},
  {&__pyx_n_s_datum_pj, __pyx_k_datum_pj, sizeof(__pyx_k_datum_pj), 0, 0, 1, 1},
  {&__pyx_n_s_datum_string, __pyx_k_datum_string, sizeof(__pyx_k_datum_string), 0, 0, 1, 1},
  {&__pyx_n_s_datum_type, __pyx_k_datum_type, sizeof(__pyx_k_datum_type), 0, 0, 1, 1},
  {&__pyx_n_u_description, __pyx_k_description, sizeof(__pyx_k_description), 0, 1, 0, 1},
  {&__pyx_n_s_direct_download, __pyx_k_direct_download, sizeof(__pyx_k_direct_download), 0, 0, 1, 1},
  {&__pyx_n_s_direction, __pyx_k_direction, sizeof(__pyx_k_direction), 0, 0, 1, 1},
  {&__pyx_n_s_dumps, __pyx_k_dumps, sizeof(__pyx_k_dumps), 0, 0, 1, 1},
  {&__pyx_n_s_east, __pyx_k_east, sizeof(__pyx_k_east), 0, 0, 1, 1},
  {&__pyx_n_s_ellipsoid_dict, __pyx_k_ellipsoid_dict, sizeof(__pyx_k_ellipsoid_dict), 0, 0, 1, 1},
  {&__pyx_n_s_ellipsoid_json_str, __pyx_k_ellipsoid_json_str, sizeof(__pyx_k_ellipsoid_json_str), 0, 0, 1, 1},
  {&__pyx_n_s_ellipsoid_name, __pyx_k_ellipsoid_name, sizeof(__pyx_k_ellipsoid_name), 0, 0, 1, 1},
  {&__pyx_n_s_ellipsoid_params, __pyx_k_ellipsoid_params, sizeof(__pyx_k_ellipsoid_params), 0, 0, 1, 1},
  {&__pyx_n_s_ellipsoid_pj, __pyx_k_ellipsoid_pj, sizeof(__pyx_k_ellipsoid_pj), 0, 0, 1, 1},
  {&__pyx_n_s_ellipsoid_string, __pyx_k_ellipsoid_string, sizeof(__pyx_k_ellipsoid_string), 0, 0, 1, 1},
  {&__pyx_n_u_ellipsoidal, __pyx_k_ellipsoidal, sizeof(__pyx_k_ellipsoidal), 0, 1, 0, 1},
  {&__pyx_n_s_equals, __pyx_k_equals, sizeof(__pyx_k_equals), 0, 0, 1, 1},
  {&__pyx_n_s_format, __pyx_k_format, sizeof(__pyx_k_format), 0, 0, 1, 1},
  {&__pyx_n_s_from_authority, __pyx_k_from_authority, sizeof(__pyx_k_from_authority), 0, 0, 1, 1},
  {&__pyx_n_u_from_authority, __pyx_k_from_authority, sizeof(__pyx_k_from_authority), 0, 1, 0, 1},
  {&__pyx_n_s_from_epsg, __pyx_k_from_epsg, sizeof(__pyx_k_from_epsg), 0, 0, 1, 1},
  {&__pyx_n_u_from_epsg, __pyx_k_from_epsg, sizeof(__pyx_k_from_epsg), 0, 1, 0, 1},
  {&__pyx_n_s_from_json, __pyx_k_from_json, sizeof(__pyx_k_from_json), 0, 0, 1, 1},
  {&__pyx_n_s_from_json_dict, __pyx_k_from_json_dict, sizeof(__pyx_k_from_json_dict), 0, 0, 1, 1},
  {&__pyx_n_s_from_name, __pyx_k_from_name, sizeof(__pyx_k_from_name), 0, 0, 1, 1},
  {&__pyx_n_s_from_name_2, __pyx_k_from_name_2, sizeof(__pyx_k_from_name_2), 0, 0, 1, 1},
  {&__pyx_n_s_from_string, __pyx_k_from_string, sizeof(__pyx_k_from_string), 0, 0, 1, 1},
  {&__pyx_n_s_from_string_2, __pyx_k_from_string_2, sizeof(__pyx_k_from_string_2), 0, 0, 1, 1},
  {&__pyx_n_s_from_user_input, __pyx_k_from_user_input, sizeof(__pyx_k_from_user_input), 0, 0, 1, 1},
  {&__pyx_n_s_full_name, __pyx_k_full_name, sizeof(__pyx_k_full_name), 0, 0, 1, 1},
  {&__pyx_n_s_get, __pyx_k_get, sizeof(__pyx_k_get), 0, 0, 1, 1},
  {&__pyx_n_s_getstate, __pyx_k_getstate, sizeof(__pyx_k_getstate), 0, 0, 1, 1},
  {&__pyx_n_s_ignore_axis_order, __pyx_k_ignore_axis_order, sizeof(__pyx_k_ignore_axis_order), 0, 0, 1, 1},
  {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1},
  {&__pyx_n_s_in_proj_json, __pyx_k_in_proj_json, sizeof(__pyx_k_in_proj_json), 0, 0, 1, 1},
  {&__pyx_n_s_indentation, __pyx_k_indentation, sizeof(__pyx_k_indentation), 0, 0, 1, 1},
  {&__pyx_n_s_inverse_flattening, __pyx_k_inverse_flattening, sizeof(__pyx_k_inverse_flattening), 0, 0, 1, 1},
  {&__pyx_n_s_is_bound, __pyx_k_is_bound, sizeof(__pyx_k_is_bound), 0, 0, 1, 1},
  {&__pyx_n_s_is_crs_property, __pyx_k_is_crs_property, sizeof(__pyx_k_is_crs_property), 0, 0, 1, 1},
  {&__pyx_n_s_is_equivalent, __pyx_k_is_equivalent, sizeof(__pyx_k_is_equivalent), 0, 0, 1, 1},
  {&__pyx_n_s_is_exact_same, __pyx_k_is_exact_same, sizeof(__pyx_k_is_exact_same), 0, 0, 1, 1},
  {&__pyx_n_s_is_geocentric, __pyx_k_is_geocentric, sizeof(__pyx_k_is_geocentric), 0, 0, 1, 1},
  {&__pyx_n_u_is_geographic, __pyx_k_is_geographic, sizeof(__pyx_k_is_geographic), 0, 1, 0, 1},
  {&__pyx_n_s_is_proj, __pyx_k_is_proj, sizeof(__pyx_k_is_proj), 0, 0, 1, 1},
  {&__pyx_n_u_is_projected, __pyx_k_is_projected, sizeof(__pyx_k_is_projected), 0, 1, 0, 1},
  {&__pyx_n_u_is_vertical, __pyx_k_is_vertical, sizeof(__pyx_k_is_vertical), 0, 1, 0, 1},
  {&__pyx_n_s_is_wkt, __pyx_k_is_wkt, sizeof(__pyx_k_is_wkt), 0, 0, 1, 1},
  {&__pyx_n_s_items, __pyx_k_items, sizeof(__pyx_k_items), 0, 0, 1, 1},
  {&__pyx_n_s_json, __pyx_k_json, sizeof(__pyx_k_json), 0, 0, 1, 1},
  {&__pyx_n_s_load_proj_json, __pyx_k_load_proj_json, sizeof(__pyx_k_load_proj_json), 0, 0, 1, 1},
  {&__pyx_n_s_loads, __pyx_k_loads, sizeof(__pyx_k_loads), 0, 0, 1, 1},
  {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1},
  {&__pyx_n_s_method_name, __pyx_k_method_name, sizeof(__pyx_k_method_name), 0, 0, 1, 1},
  {&__pyx_n_s_min_confidence, __pyx_k_min_confidence, sizeof(__pyx_k_min_confidence), 0, 0, 1, 1},
  {&__pyx_n_s_name, __pyx_k_name, sizeof(__pyx_k_name), 0, 0, 1, 1},
  {&__pyx_n_s_name_2, __pyx_k_name_2, sizeof(__pyx_k_name_2), 0, 0, 1, 1},
  {&__pyx_kp_u_name_name_bounds_bounds, __pyx_k_name_name_bounds_bounds, sizeof(__pyx_k_name_name_bounds_bounds), 0, 1, 0, 0},
  {&__pyx_n_u_nan, __pyx_k_nan, sizeof(__pyx_k_nan), 0, 1, 0, 1},
  {&__pyx_kp_s_no_default___reduce___due_to_non, __pyx_k_no_default___reduce___due_to_non, sizeof(__pyx_k_no_default___reduce___due_to_non), 0, 0, 1, 0},
  {&__pyx_n_s_north, __pyx_k_north, sizeof(__pyx_k_north), 0, 0, 1, 1},
  {&__pyx_n_s_open_license, __pyx_k_open_license, sizeof(__pyx_k_open_license), 0, 0, 1, 1},
  {&__pyx_n_u_ordinal, __pyx_k_ordinal, sizeof(__pyx_k_ordinal), 0, 1, 0, 1},
  {&__pyx_n_s_other, __pyx_k_other, sizeof(__pyx_k_other), 0, 0, 1, 1},
  {&__pyx_n_s_package_name, __pyx_k_package_name, sizeof(__pyx_k_package_name), 0, 0, 1, 1},
  {&__pyx_n_u_parametric, __pyx_k_parametric, sizeof(__pyx_k_parametric), 0, 1, 0, 1},
  {&__pyx_n_s_params, __pyx_k_params, sizeof(__pyx_k_params), 0, 0, 1, 1},
  {&__pyx_n_s_pj_coordinate_operation_type, __pyx_k_pj_coordinate_operation_type, sizeof(__pyx_k_pj_coordinate_operation_type), 0, 0, 1, 1},
  {&__pyx_n_s_pj_datum_type, __pyx_k_pj_datum_type, sizeof(__pyx_k_pj_datum_type), 0, 0, 1, 1},
  {&__pyx_n_s_pj_ellps, __pyx_k_pj_ellps, sizeof(__pyx_k_pj_ellps), 0, 0, 1, 1},
  {&__pyx_n_s_pretty, __pyx_k_pretty, sizeof(__pyx_k_pretty), 0, 0, 1, 1},
  {&__pyx_n_s_prime_meridian_dict, __pyx_k_prime_meridian_dict, sizeof(__pyx_k_prime_meridian_dict), 0, 0, 1, 1},
  {&__pyx_n_s_prime_meridian_json_str, __pyx_k_prime_meridian_json_str, sizeof(__pyx_k_prime_meridian_json_str), 0, 0, 1, 1},
  {&__pyx_n_s_prime_meridian_name, __pyx_k_prime_meridian_name, sizeof(__pyx_k_prime_meridian_name), 0, 0, 1, 1},
  {&__pyx_n_s_prime_meridian_pj, __pyx_k_prime_meridian_pj, sizeof(__pyx_k_prime_meridian_pj), 0, 0, 1, 1},
  {&__pyx_n_s_prime_meridian_string, __pyx_k_prime_meridian_string, sizeof(__pyx_k_prime_meridian_string), 0, 0, 1, 1},
  {&__pyx_n_s_proj_string, __pyx_k_proj_string, sizeof(__pyx_k_proj_string), 0, 0, 1, 1},
  {&__pyx_n_s_property_name, __pyx_k_property_name, sizeof(__pyx_k_property_name), 0, 0, 1, 1},
  {&__pyx_n_s_property_types, __pyx_k_property_types, sizeof(__pyx_k_property_types), 0, 0, 1, 1},
  {&__pyx_n_s_pyproj__crs, __pyx_k_pyproj__crs, sizeof(__pyx_k_pyproj__crs), 0, 0, 1, 1},
  {&__pyx_kp_s_pyproj__crs_pyx, __pyx_k_pyproj__crs_pyx, sizeof(__pyx_k_pyproj__crs_pyx), 0, 0, 1, 0},
  {&__pyx_n_s_pyproj_compat, __pyx_k_pyproj_compat, sizeof(__pyx_k_pyproj_compat), 0, 0, 1, 1},
  {&__pyx_n_s_pyproj_crs_datum, __pyx_k_pyproj_crs_datum, sizeof(__pyx_k_pyproj_crs_datum), 0, 0, 1, 1},
  {&__pyx_n_s_pyproj_crs_enums, __pyx_k_pyproj_crs_enums, sizeof(__pyx_k_pyproj_crs_enums), 0, 0, 1, 1},
  {&__pyx_n_s_pyproj_enums, __pyx_k_pyproj_enums, sizeof(__pyx_k_pyproj_enums), 0, 0, 1, 1},
  {&__pyx_n_s_pyproj_exceptions, __pyx_k_pyproj_exceptions, sizeof(__pyx_k_pyproj_exceptions), 0, 0, 1, 1},
  {&__pyx_n_s_pyproj_geod, __pyx_k_pyproj_geod, sizeof(__pyx_k_pyproj_geod), 0, 0, 1, 1},
  {&__pyx_n_s_pystrdecode, __pyx_k_pystrdecode, sizeof(__pyx_k_pystrdecode), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_vtable, __pyx_k_pyx_vtable, sizeof(__pyx_k_pyx_vtable), 0, 0, 1, 1},
  {&__pyx_n_s_range, __pyx_k_range, sizeof(__pyx_k_range), 0, 0, 1, 1},
  {&__pyx_n_s_re, __pyx_k_re, sizeof(__pyx_k_re), 0, 0, 1, 1},
  {&__pyx_n_s_reduce, __pyx_k_reduce, sizeof(__pyx_k_reduce), 0, 0, 1, 1},
  {&__pyx_n_s_reduce_cython, __pyx_k_reduce_cython, sizeof(__pyx_k_reduce_cython), 0, 0, 1, 1},
  {&__pyx_n_s_reduce_ex, __pyx_k_reduce_ex, sizeof(__pyx_k_reduce_ex), 0, 0, 1, 1},
  {&__pyx_n_s_replace, __pyx_k_replace, sizeof(__pyx_k_replace), 0, 0, 1, 1},
  {&__pyx_n_u_rf, __pyx_k_rf, sizeof(__pyx_k_rf), 0, 1, 0, 1},
  {&__pyx_n_s_semi_major_axis, __pyx_k_semi_major_axis, sizeof(__pyx_k_semi_major_axis), 0, 0, 1, 1},
  {&__pyx_n_s_semi_minor_axis, __pyx_k_semi_minor_axis, sizeof(__pyx_k_semi_minor_axis), 0, 0, 1, 1},
  {&__pyx_n_s_setstate, __pyx_k_setstate, sizeof(__pyx_k_setstate), 0, 0, 1, 1},
  {&__pyx_n_s_setstate_cython, __pyx_k_setstate_cython, sizeof(__pyx_k_setstate_cython), 0, 0, 1, 1},
  {&__pyx_n_s_short_name, __pyx_k_short_name, sizeof(__pyx_k_short_name), 0, 0, 1, 1},
  {&__pyx_n_s_source_crs, __pyx_k_source_crs, sizeof(__pyx_k_source_crs), 0, 0, 1, 1},
  {&__pyx_n_s_south, __pyx_k_south, sizeof(__pyx_k_south), 0, 0, 1, 1},
  {&__pyx_n_u_spherical, __pyx_k_spherical, sizeof(__pyx_k_spherical), 0, 1, 0, 1},
  {&__pyx_n_s_staticmethod, __pyx_k_staticmethod, sizeof(__pyx_k_staticmethod), 0, 0, 1, 1},
  {&__pyx_n_s_sub_crs_index, __pyx_k_sub_crs_index, sizeof(__pyx_k_sub_crs_index), 0, 0, 1, 1},
  {&__pyx_n_s_sub_crs_list, __pyx_k_sub_crs_list, sizeof(__pyx_k_sub_crs_list), 0, 0, 1, 1},
  {&__pyx_n_u_temporalcount, __pyx_k_temporalcount, sizeof(__pyx_k_temporalcount), 0, 1, 0, 1},
  {&__pyx_n_u_temporalmeasure, __pyx_k_temporalmeasure, sizeof(__pyx_k_temporalmeasure), 0, 1, 0, 1},
  {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1},
  {&__pyx_n_s_tmp_string, __pyx_k_tmp_string, sizeof(__pyx_k_tmp_string), 0, 0, 1, 1},
  {&__pyx_n_s_to_authority, __pyx_k_to_authority, sizeof(__pyx_k_to_authority), 0, 0, 1, 1},
  {&__pyx_n_s_to_json, __pyx_k_to_json, sizeof(__pyx_k_to_json), 0, 0, 1, 1},
  {&__pyx_n_u_to_json, __pyx_k_to_json, sizeof(__pyx_k_to_json), 0, 1, 0, 1},
  {&__pyx_n_s_to_wkt, __pyx_k_to_wkt, sizeof(__pyx_k_to_wkt), 0, 0, 1, 1},
  {&__pyx_n_s_type_name, __pyx_k_type_name, sizeof(__pyx_k_type_name), 0, 0, 1, 1},
  {&__pyx_n_u_undefined, __pyx_k_undefined, sizeof(__pyx_k_undefined), 0, 1, 0, 1},
  {&__pyx_kp_u_undefined_2, __pyx_k_undefined_2, sizeof(__pyx_k_undefined_2), 0, 1, 0, 0},
  {&__pyx_n_s_unit_auth_code, __pyx_k_unit_auth_code, sizeof(__pyx_k_unit_auth_code), 0, 0, 1, 1},
  {&__pyx_n_s_unit_auth_name, __pyx_k_unit_auth_name, sizeof(__pyx_k_unit_auth_name), 0, 0, 1, 1},
  {&__pyx_n_s_unit_category, __pyx_k_unit_category, sizeof(__pyx_k_unit_category), 0, 0, 1, 1},
  {&__pyx_n_s_unit_code, __pyx_k_unit_code, sizeof(__pyx_k_unit_code), 0, 0, 1, 1},
  {&__pyx_n_s_unit_name, __pyx_k_unit_name, sizeof(__pyx_k_unit_name), 0, 0, 1, 1},
  {&__pyx_n_u_unknown, __pyx_k_unknown, sizeof(__pyx_k_unknown), 0, 1, 0, 1},
  {&__pyx_n_s_upper, __pyx_k_upper, sizeof(__pyx_k_upper), 0, 0, 1, 1},
  {&__pyx_n_s_url, __pyx_k_url, sizeof(__pyx_k_url), 0, 0, 1, 1},
  {&__pyx_n_s_use_proj_alternative_grid_names, __pyx_k_use_proj_alternative_grid_names, sizeof(__pyx_k_use_proj_alternative_grid_names), 0, 0, 1, 1},
  {&__pyx_n_s_value, __pyx_k_value, sizeof(__pyx_k_value), 0, 0, 1, 1},
  {&__pyx_n_s_values, __pyx_k_values, sizeof(__pyx_k_values), 0, 0, 1, 1},
  {&__pyx_n_s_version, __pyx_k_version, sizeof(__pyx_k_version), 0, 0, 1, 1},
  {&__pyx_kp_u_versionadded_2_2_0_Return_the_a, __pyx_k_versionadded_2_2_0_Return_the_a, sizeof(__pyx_k_versionadded_2_2_0_Return_the_a), 0, 1, 0, 0},
  {&__pyx_n_u_vertical, __pyx_k_vertical, sizeof(__pyx_k_vertical), 0, 1, 0, 1},
  {&__pyx_n_s_warn, __pyx_k_warn, sizeof(__pyx_k_warn), 0, 0, 1, 1},
  {&__pyx_n_s_warnings, __pyx_k_warnings, sizeof(__pyx_k_warnings), 0, 0, 1, 1},
  {&__pyx_n_s_west, __pyx_k_west, sizeof(__pyx_k_west), 0, 0, 1, 1},
  {0, 0, 0, 0, 0, 0, 0}
};
static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) {
  __pyx_builtin_staticmethod = __Pyx_GetBuiltinName(__pyx_n_s_staticmethod); if (!__pyx_builtin_staticmethod) __PYX_ERR(0, 648, __pyx_L1_error)
  __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) __PYX_ERR(0, 170, __pyx_L1_error)
  __pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError); if (!__pyx_builtin_ValueError) __PYX_ERR(0, 234, __pyx_L1_error)
  __pyx_builtin_TypeError = __Pyx_GetBuiltinName(__pyx_n_s_TypeError); if (!__pyx_builtin_TypeError) __PYX_ERR(1, 2, __pyx_L1_error)
  __pyx_builtin_RuntimeError = __Pyx_GetBuiltinName(__pyx_n_s_RuntimeError); if (!__pyx_builtin_RuntimeError) __PYX_ERR(0, 608, __pyx_L1_error)
  __pyx_builtin_KeyError = __Pyx_GetBuiltinName(__pyx_n_s_KeyError); if (!__pyx_builtin_KeyError) __PYX_ERR(0, 1015, __pyx_L1_error)
  return 0;
  __pyx_L1_error:;
  return -1;
}

static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_tuple__3 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__3)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__3);
  __Pyx_GIVEREF(__pyx_tuple__3);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__4 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__4);
  __Pyx_GIVEREF(__pyx_tuple__4);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_tuple__5 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__5)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__5);
  __Pyx_GIVEREF(__pyx_tuple__5);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__6 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__6)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__6);
  __Pyx_GIVEREF(__pyx_tuple__6);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_tuple__8 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__8)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__8);
  __Pyx_GIVEREF(__pyx_tuple__8);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__9 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__9);
  __Pyx_GIVEREF(__pyx_tuple__9);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_tuple__10 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__10)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__10);
  __Pyx_GIVEREF(__pyx_tuple__10);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__11 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__11)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__11);
  __Pyx_GIVEREF(__pyx_tuple__11);

  /* "pyproj/_crs.pyx":608
 * 
 *     def __init__(self):
 *         raise RuntimeError("CoordinateSystem is not initializable.")             # <<<<<<<<<<<<<<
 * 
 *     @staticmethod
 */
  __pyx_tuple__12 = PyTuple_Pack(1, __pyx_kp_u_CoordinateSystem_is_not_initiali); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(0, 608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__12);
  __Pyx_GIVEREF(__pyx_tuple__12);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_tuple__13 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__13)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__13);
  __Pyx_GIVEREF(__pyx_tuple__13);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__14 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__14)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__14);
  __Pyx_GIVEREF(__pyx_tuple__14);

  /* "pyproj/_crs.pyx":753
 * 
 *     def __init__(self):
 *         raise RuntimeError(             # <<<<<<<<<<<<<<
 *             "Ellipsoid can only be initialized like 'Ellipsoid.from_*()'."
 *         )
 */
  __pyx_tuple__15 = PyTuple_Pack(1, __pyx_kp_u_Ellipsoid_can_only_be_initialize); if (unlikely(!__pyx_tuple__15)) __PYX_ERR(0, 753, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__15);
  __Pyx_GIVEREF(__pyx_tuple__15);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_tuple__16 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__16)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__16);
  __Pyx_GIVEREF(__pyx_tuple__16);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__17 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__17)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__17);
  __Pyx_GIVEREF(__pyx_tuple__17);

  /* "pyproj/_crs.pyx":1043
 * 
 *     def __init__(self):
 *         raise RuntimeError(             # <<<<<<<<<<<<<<
 *             "PrimeMeridian can only be initialized like 'PrimeMeridian.from_*()'."
 *         )
 */
  __pyx_tuple__18 = PyTuple_Pack(1, __pyx_kp_u_PrimeMeridian_can_only_be_initia); if (unlikely(!__pyx_tuple__18)) __PYX_ERR(0, 1043, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__18);
  __Pyx_GIVEREF(__pyx_tuple__18);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_tuple__19 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__19)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__19);
  __Pyx_GIVEREF(__pyx_tuple__19);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__20 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__20)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__20);
  __Pyx_GIVEREF(__pyx_tuple__20);

  /* "pyproj/_crs.pyx":1321
 * 
 *     def __init__(self):
 *         raise RuntimeError(             # <<<<<<<<<<<<<<
 *             "Datum can only be initialized like 'Datum.from_*()'."
 *         )
 */
  __pyx_tuple__21 = PyTuple_Pack(1, __pyx_kp_u_Datum_can_only_be_initialized_li); if (unlikely(!__pyx_tuple__21)) __PYX_ERR(0, 1321, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__21);
  __Pyx_GIVEREF(__pyx_tuple__21);

  /* "pyproj/_crs.pyx":1553
 *         # https://github.com/OSGeo/PROJ/issues/1823
 *         try:
 *             datum_name=_DATUM_NAME_MAP[datum_name.upper().replace(" ", "")]             # <<<<<<<<<<<<<<
 *         except KeyError:
 *             raise CRSError(
 */
  __pyx_tuple__25 = PyTuple_Pack(2, __pyx_kp_u__23, __pyx_kp_u__24); if (unlikely(!__pyx_tuple__25)) __PYX_ERR(0, 1553, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__25);
  __Pyx_GIVEREF(__pyx_tuple__25);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_tuple__26 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__26)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__26);
  __Pyx_GIVEREF(__pyx_tuple__26);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__27 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__27)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__27);
  __Pyx_GIVEREF(__pyx_tuple__27);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_tuple__28 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__28)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__28);
  __Pyx_GIVEREF(__pyx_tuple__28);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__29 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__29)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__29);
  __Pyx_GIVEREF(__pyx_tuple__29);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_tuple__30 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__30)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__30);
  __Pyx_GIVEREF(__pyx_tuple__30);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__31 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__31)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__31);
  __Pyx_GIVEREF(__pyx_tuple__31);

  /* "pyproj/_crs.pyx":1889
 * 
 *     def __init__(self):
 *         raise RuntimeError(             # <<<<<<<<<<<<<<
 *             "CoordinateOperation can only be initialized like "
 *             "CoordinateOperation.from_*()'."
 */
  __pyx_tuple__32 = PyTuple_Pack(1, __pyx_kp_u_CoordinateOperation_can_only_be); if (unlikely(!__pyx_tuple__32)) __PYX_ERR(0, 1889, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__32);
  __Pyx_GIVEREF(__pyx_tuple__32);

  /* "pyproj/_crs.pyx":2246
 *         towgs84_dict = OrderedDict(
 *             (
 *                 ('X-axis translation', None),             # <<<<<<<<<<<<<<
 *                 ('Y-axis translation', None),
 *                 ('Z-axis translation', None),
 */
  __pyx_tuple__35 = PyTuple_Pack(2, __pyx_kp_u_X_axis_translation, Py_None); if (unlikely(!__pyx_tuple__35)) __PYX_ERR(0, 2246, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__35);
  __Pyx_GIVEREF(__pyx_tuple__35);

  /* "pyproj/_crs.pyx":2247
 *             (
 *                 ('X-axis translation', None),
 *                 ('Y-axis translation', None),             # <<<<<<<<<<<<<<
 *                 ('Z-axis translation', None),
 *                 ('X-axis rotation', None),
 */
  __pyx_tuple__36 = PyTuple_Pack(2, __pyx_kp_u_Y_axis_translation, Py_None); if (unlikely(!__pyx_tuple__36)) __PYX_ERR(0, 2247, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__36);
  __Pyx_GIVEREF(__pyx_tuple__36);

  /* "pyproj/_crs.pyx":2248
 *                 ('X-axis translation', None),
 *                 ('Y-axis translation', None),
 *                 ('Z-axis translation', None),             # <<<<<<<<<<<<<<
 *                 ('X-axis rotation', None),
 *                 ('Y-axis rotation', None),
 */
  __pyx_tuple__37 = PyTuple_Pack(2, __pyx_kp_u_Z_axis_translation, Py_None); if (unlikely(!__pyx_tuple__37)) __PYX_ERR(0, 2248, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__37);
  __Pyx_GIVEREF(__pyx_tuple__37);

  /* "pyproj/_crs.pyx":2249
 *                 ('Y-axis translation', None),
 *                 ('Z-axis translation', None),
 *                 ('X-axis rotation', None),             # <<<<<<<<<<<<<<
 *                 ('Y-axis rotation', None),
 *                 ('Z-axis rotation', None),
 */
  __pyx_tuple__38 = PyTuple_Pack(2, __pyx_kp_u_X_axis_rotation, Py_None); if (unlikely(!__pyx_tuple__38)) __PYX_ERR(0, 2249, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__38);
  __Pyx_GIVEREF(__pyx_tuple__38);

  /* "pyproj/_crs.pyx":2250
 *                 ('Z-axis translation', None),
 *                 ('X-axis rotation', None),
 *                 ('Y-axis rotation', None),             # <<<<<<<<<<<<<<
 *                 ('Z-axis rotation', None),
 *                 ('Scale difference', None),
 */
  __pyx_tuple__39 = PyTuple_Pack(2, __pyx_kp_u_Y_axis_rotation, Py_None); if (unlikely(!__pyx_tuple__39)) __PYX_ERR(0, 2250, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__39);
  __Pyx_GIVEREF(__pyx_tuple__39);

  /* "pyproj/_crs.pyx":2251
 *                 ('X-axis rotation', None),
 *                 ('Y-axis rotation', None),
 *                 ('Z-axis rotation', None),             # <<<<<<<<<<<<<<
 *                 ('Scale difference', None),
 *             )
 */
  __pyx_tuple__40 = PyTuple_Pack(2, __pyx_kp_u_Z_axis_rotation, Py_None); if (unlikely(!__pyx_tuple__40)) __PYX_ERR(0, 2251, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__40);
  __Pyx_GIVEREF(__pyx_tuple__40);

  /* "pyproj/_crs.pyx":2252
 *                 ('Y-axis rotation', None),
 *                 ('Z-axis rotation', None),
 *                 ('Scale difference', None),             # <<<<<<<<<<<<<<
 *             )
 *         )
 */
  __pyx_tuple__41 = PyTuple_Pack(2, __pyx_kp_u_Scale_difference, Py_None); if (unlikely(!__pyx_tuple__41)) __PYX_ERR(0, 2252, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__41);
  __Pyx_GIVEREF(__pyx_tuple__41);

  /* "pyproj/_crs.pyx":2246
 *         towgs84_dict = OrderedDict(
 *             (
 *                 ('X-axis translation', None),             # <<<<<<<<<<<<<<
 *                 ('Y-axis translation', None),
 *                 ('Z-axis translation', None),
 */
  __pyx_tuple__42 = PyTuple_Pack(7, __pyx_tuple__35, __pyx_tuple__36, __pyx_tuple__37, __pyx_tuple__38, __pyx_tuple__39, __pyx_tuple__40, __pyx_tuple__41); if (unlikely(!__pyx_tuple__42)) __PYX_ERR(0, 2246, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__42);
  __Pyx_GIVEREF(__pyx_tuple__42);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_tuple__43 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__43)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__43);
  __Pyx_GIVEREF(__pyx_tuple__43);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__44 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__44)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__44);
  __Pyx_GIVEREF(__pyx_tuple__44);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_tuple__46 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__46)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__46);
  __Pyx_GIVEREF(__pyx_tuple__46);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__47 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__47)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__47);
  __Pyx_GIVEREF(__pyx_tuple__47);

  /* "pyproj/_crs.pyx":35
 * 
 * 
 * def is_wkt(proj_string):             # <<<<<<<<<<<<<<
 *     """
 *     .. versionadded:: 2.0.0
 */
  __pyx_tuple__48 = PyTuple_Pack(2, __pyx_n_s_proj_string, __pyx_n_s_tmp_string); if (unlikely(!__pyx_tuple__48)) __PYX_ERR(0, 35, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__48);
  __Pyx_GIVEREF(__pyx_tuple__48);
  __pyx_codeobj__49 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__48, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_is_wkt, 35, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__49)) __PYX_ERR(0, 35, __pyx_L1_error)

  /* "pyproj/_crs.pyx":54
 * 
 * 
 * def is_proj(proj_string):             # <<<<<<<<<<<<<<
 *     """
 *     .. versionadded:: 2.2.2
 */
  __pyx_tuple__50 = PyTuple_Pack(1, __pyx_n_s_proj_string); if (unlikely(!__pyx_tuple__50)) __PYX_ERR(0, 54, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__50);
  __Pyx_GIVEREF(__pyx_tuple__50);
  __pyx_codeobj__51 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__50, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_is_proj, 54, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__51)) __PYX_ERR(0, 54, __pyx_L1_error)

  /* "pyproj/_crs.pyx":231
 * 
 * 
 * def _load_proj_json(in_proj_json):             # <<<<<<<<<<<<<<
 *     try:
 *         return json.loads(in_proj_json)
 */
  __pyx_tuple__52 = PyTuple_Pack(1, __pyx_n_s_in_proj_json); if (unlikely(!__pyx_tuple__52)) __PYX_ERR(0, 231, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__52);
  __Pyx_GIVEREF(__pyx_tuple__52);
  __pyx_codeobj__53 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__52, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_load_proj_json, 231, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__53)) __PYX_ERR(0, 231, __pyx_L1_error)

  /* "pyproj/_crs.pyx":649
 * 
 *     @staticmethod
 *     def from_string(coordinate_system_string):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.5.0
 */
  __pyx_tuple__54 = PyTuple_Pack(3, __pyx_n_s_coordinate_system_string, __pyx_n_s_context, __pyx_n_s_coordinate_system_pj); if (unlikely(!__pyx_tuple__54)) __PYX_ERR(0, 649, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__54);
  __Pyx_GIVEREF(__pyx_tuple__54);
  __pyx_codeobj__55 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__54, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_string, 649, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__55)) __PYX_ERR(0, 649, __pyx_L1_error)

  /* "pyproj/_crs.pyx":687
 * 
 *     @staticmethod
 *     def from_json_dict(coordinate_system_dict):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.5.0
 */
  __pyx_tuple__56 = PyTuple_Pack(1, __pyx_n_s_coordinate_system_dict); if (unlikely(!__pyx_tuple__56)) __PYX_ERR(0, 687, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__56);
  __Pyx_GIVEREF(__pyx_tuple__56);
  __pyx_codeobj__57 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__56, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_json_dict, 687, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__57)) __PYX_ERR(0, 687, __pyx_L1_error)

  /* "pyproj/_crs.pyx":705
 * 
 *     @staticmethod
 *     def from_json(coordinate_system_json_str):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.5.0
 */
  __pyx_tuple__58 = PyTuple_Pack(1, __pyx_n_s_coordinate_system_json_str); if (unlikely(!__pyx_tuple__58)) __PYX_ERR(0, 705, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__58);
  __Pyx_GIVEREF(__pyx_tuple__58);
  __pyx_codeobj__59 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__58, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_json, 705, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__59)) __PYX_ERR(0, 705, __pyx_L1_error)

  /* "pyproj/_crs.pyx":777
 * 
 *     @staticmethod
 *     def from_authority(auth_name, code):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */
  __pyx_tuple__60 = PyTuple_Pack(4, __pyx_n_s_auth_name, __pyx_n_s_code, __pyx_n_s_context, __pyx_n_s_ellipsoid_pj); if (unlikely(!__pyx_tuple__60)) __PYX_ERR(0, 777, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__60);
  __Pyx_GIVEREF(__pyx_tuple__60);
  __pyx_codeobj__61 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__60, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_authority, 777, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__61)) __PYX_ERR(0, 777, __pyx_L1_error)

  /* "pyproj/_crs.pyx":814
 * 
 *     @staticmethod
 *     def from_epsg(code):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */
  __pyx_tuple__62 = PyTuple_Pack(1, __pyx_n_s_code); if (unlikely(!__pyx_tuple__62)) __PYX_ERR(0, 814, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__62);
  __Pyx_GIVEREF(__pyx_tuple__62);
  __pyx_codeobj__63 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__62, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_epsg, 814, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__63)) __PYX_ERR(0, 814, __pyx_L1_error)

  /* "pyproj/_crs.pyx":832
 * 
 *     @staticmethod
 *     def _from_string(ellipsoid_string):             # <<<<<<<<<<<<<<
 *         """
 *         Create an Ellipsoid from a string.
 */
  __pyx_tuple__64 = PyTuple_Pack(3, __pyx_n_s_ellipsoid_string, __pyx_n_s_context, __pyx_n_s_ellipsoid_pj); if (unlikely(!__pyx_tuple__64)) __PYX_ERR(0, 832, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__64);
  __Pyx_GIVEREF(__pyx_tuple__64);
  __pyx_codeobj__65 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__64, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_string_2, 832, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__65)) __PYX_ERR(0, 832, __pyx_L1_error)

  /* "pyproj/_crs.pyx":869
 * 
 *     @staticmethod
 *     def from_string(ellipsoid_string):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */
  __pyx_tuple__66 = PyTuple_Pack(2, __pyx_n_s_ellipsoid_string, __pyx_n_s_crs_err); if (unlikely(!__pyx_tuple__66)) __PYX_ERR(0, 869, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__66);
  __Pyx_GIVEREF(__pyx_tuple__66);
  __pyx_codeobj__67 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__66, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_string, 869, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__67)) __PYX_ERR(0, 869, __pyx_L1_error)

  /* "pyproj/_crs.pyx":900
 * 
 *     @staticmethod
 *     def from_json_dict(ellipsoid_dict):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */
  __pyx_tuple__68 = PyTuple_Pack(1, __pyx_n_s_ellipsoid_dict); if (unlikely(!__pyx_tuple__68)) __PYX_ERR(0, 900, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__68);
  __Pyx_GIVEREF(__pyx_tuple__68);
  __pyx_codeobj__69 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__68, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_json_dict, 900, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__69)) __PYX_ERR(0, 900, __pyx_L1_error)

  /* "pyproj/_crs.pyx":918
 * 
 *     @staticmethod
 *     def from_json(ellipsoid_json_str):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */
  __pyx_tuple__70 = PyTuple_Pack(1, __pyx_n_s_ellipsoid_json_str); if (unlikely(!__pyx_tuple__70)) __PYX_ERR(0, 918, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__70);
  __Pyx_GIVEREF(__pyx_tuple__70);
  __pyx_codeobj__71 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__70, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_json, 918, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__71)) __PYX_ERR(0, 918, __pyx_L1_error)

  /* "pyproj/_crs.pyx":936
 * 
 *     @staticmethod
 *     def _from_name(             # <<<<<<<<<<<<<<
 *         ellipsoid_name,
 *         auth_name,
 */
  __pyx_tuple__72 = PyTuple_Pack(4, __pyx_n_s_ellipsoid_name, __pyx_n_s_auth_name, __pyx_n_s_context, __pyx_n_s_ellipsoid_pj); if (unlikely(!__pyx_tuple__72)) __PYX_ERR(0, 936, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__72);
  __Pyx_GIVEREF(__pyx_tuple__72);
  __pyx_codeobj__73 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__72, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_name_2, 936, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__73)) __PYX_ERR(0, 936, __pyx_L1_error)

  /* "pyproj/_crs.pyx":976
 * 
 *     @staticmethod
 *     def from_name(             # <<<<<<<<<<<<<<
 *         ellipsoid_name,
 *         auth_name=None,
 */
  __pyx_tuple__74 = PyTuple_Pack(3, __pyx_n_s_ellipsoid_name, __pyx_n_s_auth_name, __pyx_n_s_ellipsoid_params); if (unlikely(!__pyx_tuple__74)) __PYX_ERR(0, 976, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__74);
  __Pyx_GIVEREF(__pyx_tuple__74);
  __pyx_codeobj__75 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__74, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_name, 976, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__75)) __PYX_ERR(0, 976, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1066
 * 
 *     @staticmethod
 *     def from_authority(auth_name, code):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */
  __pyx_tuple__76 = PyTuple_Pack(4, __pyx_n_s_auth_name, __pyx_n_s_code, __pyx_n_s_context, __pyx_n_s_prime_meridian_pj); if (unlikely(!__pyx_tuple__76)) __PYX_ERR(0, 1066, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__76);
  __Pyx_GIVEREF(__pyx_tuple__76);
  __pyx_codeobj__77 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__76, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_authority, 1066, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__77)) __PYX_ERR(0, 1066, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1104
 * 
 *     @staticmethod
 *     def from_epsg(code):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */
  __pyx_tuple__78 = PyTuple_Pack(1, __pyx_n_s_code); if (unlikely(!__pyx_tuple__78)) __PYX_ERR(0, 1104, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__78);
  __Pyx_GIVEREF(__pyx_tuple__78);
  __pyx_codeobj__79 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__78, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_epsg, 1104, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__79)) __PYX_ERR(0, 1104, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1122
 * 
 *     @staticmethod
 *     def _from_string(prime_meridian_string):             # <<<<<<<<<<<<<<
 *         """
 *         Create an PrimeMeridian from a string.
 */
  __pyx_tuple__80 = PyTuple_Pack(3, __pyx_n_s_prime_meridian_string, __pyx_n_s_context, __pyx_n_s_prime_meridian_pj); if (unlikely(!__pyx_tuple__80)) __PYX_ERR(0, 1122, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__80);
  __Pyx_GIVEREF(__pyx_tuple__80);
  __pyx_codeobj__81 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__80, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_string_2, 1122, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__81)) __PYX_ERR(0, 1122, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1162
 * 
 *     @staticmethod
 *     def from_string(prime_meridian_string):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */
  __pyx_tuple__82 = PyTuple_Pack(2, __pyx_n_s_prime_meridian_string, __pyx_n_s_crs_err); if (unlikely(!__pyx_tuple__82)) __PYX_ERR(0, 1162, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__82);
  __Pyx_GIVEREF(__pyx_tuple__82);
  __pyx_codeobj__83 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__82, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_string, 1162, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__83)) __PYX_ERR(0, 1162, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1193
 * 
 *     @staticmethod
 *     def from_json_dict(prime_meridian_dict):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */
  __pyx_tuple__84 = PyTuple_Pack(1, __pyx_n_s_prime_meridian_dict); if (unlikely(!__pyx_tuple__84)) __PYX_ERR(0, 1193, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__84);
  __Pyx_GIVEREF(__pyx_tuple__84);
  __pyx_codeobj__85 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__84, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_json_dict, 1193, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__85)) __PYX_ERR(0, 1193, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1211
 * 
 *     @staticmethod
 *     def from_json(prime_meridian_json_str):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */
  __pyx_tuple__86 = PyTuple_Pack(1, __pyx_n_s_prime_meridian_json_str); if (unlikely(!__pyx_tuple__86)) __PYX_ERR(0, 1211, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__86);
  __Pyx_GIVEREF(__pyx_tuple__86);
  __pyx_codeobj__87 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__86, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_json, 1211, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__87)) __PYX_ERR(0, 1211, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1229
 * 
 *     @staticmethod
 *     def from_name(             # <<<<<<<<<<<<<<
 *         prime_meridian_name,
 *         auth_name=None,
 */
  __pyx_tuple__88 = PyTuple_Pack(4, __pyx_n_s_prime_meridian_name, __pyx_n_s_auth_name, __pyx_n_s_context, __pyx_n_s_prime_meridian_pj); if (unlikely(!__pyx_tuple__88)) __PYX_ERR(0, 1229, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__88);
  __Pyx_GIVEREF(__pyx_tuple__88);
  __pyx_codeobj__89 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__88, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_name, 1229, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__89)) __PYX_ERR(0, 1229, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1335
 * 
 *     @staticmethod
 *     def from_authority(auth_name, code):             # <<<<<<<<<<<<<<
 *         """
 *         Create a Datum from an authority code.
 */
  __pyx_tuple__90 = PyTuple_Pack(4, __pyx_n_s_auth_name, __pyx_n_s_code, __pyx_n_s_context, __pyx_n_s_datum_pj); if (unlikely(!__pyx_tuple__90)) __PYX_ERR(0, 1335, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__90);
  __Pyx_GIVEREF(__pyx_tuple__90);
  __pyx_codeobj__91 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__90, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_authority, 1335, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__91)) __PYX_ERR(0, 1335, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1371
 * 
 *     @staticmethod
 *     def from_epsg(code):             # <<<<<<<<<<<<<<
 *         """
 *         Create a Datum from an EPSG code.
 */
  __pyx_tuple__92 = PyTuple_Pack(1, __pyx_n_s_code); if (unlikely(!__pyx_tuple__92)) __PYX_ERR(0, 1371, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__92);
  __Pyx_GIVEREF(__pyx_tuple__92);
  __pyx_codeobj__93 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__92, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_epsg, 1371, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__93)) __PYX_ERR(0, 1371, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1387
 * 
 *     @staticmethod
 *     def _from_string(datum_string):             # <<<<<<<<<<<<<<
 *         """
 *         Create a Datum from a string.
 */
  __pyx_tuple__94 = PyTuple_Pack(3, __pyx_n_s_datum_string, __pyx_n_s_context, __pyx_n_s_datum_pj); if (unlikely(!__pyx_tuple__94)) __PYX_ERR(0, 1387, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__94);
  __Pyx_GIVEREF(__pyx_tuple__94);
  __pyx_codeobj__95 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__94, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_string_2, 1387, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__95)) __PYX_ERR(0, 1387, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1434
 * 
 *     @staticmethod
 *     def from_string(datum_string):             # <<<<<<<<<<<<<<
 *         """
 *         Create a Datum from a string.
 */
  __pyx_tuple__96 = PyTuple_Pack(2, __pyx_n_s_datum_string, __pyx_n_s_crs_err); if (unlikely(!__pyx_tuple__96)) __PYX_ERR(0, 1434, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__96);
  __Pyx_GIVEREF(__pyx_tuple__96);
  __pyx_codeobj__97 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__96, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_string, 1434, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__97)) __PYX_ERR(0, 1434, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1464
 * 
 *     @staticmethod
 *     def _from_name(             # <<<<<<<<<<<<<<
 *         datum_name,
 *         auth_name,
 */
  __pyx_tuple__98 = PyTuple_Pack(6, __pyx_n_s_datum_name, __pyx_n_s_auth_name, __pyx_n_s_datum_type, __pyx_n_s_pj_datum_type, __pyx_n_s_context, __pyx_n_s_datum_pj); if (unlikely(!__pyx_tuple__98)) __PYX_ERR(0, 1464, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__98);
  __Pyx_GIVEREF(__pyx_tuple__98);
  __pyx_codeobj__99 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__98, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_name_2, 1464, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__99)) __PYX_ERR(0, 1464, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1508
 * 
 *     @staticmethod
 *     def from_name(             # <<<<<<<<<<<<<<
 *         datum_name,
 *         auth_name=None,
 */
  __pyx_tuple__100 = PyTuple_Pack(3, __pyx_n_s_datum_name, __pyx_n_s_auth_name, __pyx_n_s_datum_type); if (unlikely(!__pyx_tuple__100)) __PYX_ERR(0, 1508, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__100);
  __Pyx_GIVEREF(__pyx_tuple__100);
  __pyx_codeobj__101 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__100, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_name, 1508, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__101)) __PYX_ERR(0, 1508, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1565
 * 
 *     @staticmethod
 *     def from_json_dict(datum_dict):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */
  __pyx_tuple__102 = PyTuple_Pack(1, __pyx_n_s_datum_dict); if (unlikely(!__pyx_tuple__102)) __PYX_ERR(0, 1565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__102);
  __Pyx_GIVEREF(__pyx_tuple__102);
  __pyx_codeobj__103 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__102, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_json_dict, 1565, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__103)) __PYX_ERR(0, 1565, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1583
 * 
 *     @staticmethod
 *     def from_json(datum_json_str):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */
  __pyx_tuple__104 = PyTuple_Pack(1, __pyx_n_s_datum_json_str); if (unlikely(!__pyx_tuple__104)) __PYX_ERR(0, 1583, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__104);
  __Pyx_GIVEREF(__pyx_tuple__104);
  __pyx_codeobj__105 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__104, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_json, 1583, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__105)) __PYX_ERR(0, 1583, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1934
 * 
 *     @staticmethod
 *     def from_authority(auth_name, code, use_proj_alternative_grid_names=False):             # <<<<<<<<<<<<<<
 *         """
 *         Create a CoordinateOperation from an authority code.
 */
  __pyx_tuple__106 = PyTuple_Pack(5, __pyx_n_s_auth_name, __pyx_n_s_code, __pyx_n_s_use_proj_alternative_grid_names, __pyx_n_s_context, __pyx_n_s_coord_operation_pj); if (unlikely(!__pyx_tuple__106)) __PYX_ERR(0, 1934, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__106);
  __Pyx_GIVEREF(__pyx_tuple__106);
  __pyx_codeobj__107 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__106, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_authority, 1934, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__107)) __PYX_ERR(0, 1934, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1972
 * 
 *     @staticmethod
 *     def from_epsg(code, use_proj_alternative_grid_names=False):             # <<<<<<<<<<<<<<
 *         """
 *         Create a CoordinateOperation from an EPSG code.
 */
  __pyx_tuple__108 = PyTuple_Pack(2, __pyx_n_s_code, __pyx_n_s_use_proj_alternative_grid_names); if (unlikely(!__pyx_tuple__108)) __PYX_ERR(0, 1972, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__108);
  __Pyx_GIVEREF(__pyx_tuple__108);
  __pyx_codeobj__109 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__108, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_epsg, 1972, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__109)) __PYX_ERR(0, 1972, __pyx_L1_error)

  /* "pyproj/_crs.pyx":1992
 * 
 *     @staticmethod
 *     def _from_string(coordinate_operation_string):             # <<<<<<<<<<<<<<
 *         """
 *         Create a CoordinateOperation from a string.
 */
  __pyx_tuple__110 = PyTuple_Pack(3, __pyx_n_s_coordinate_operation_string, __pyx_n_s_context, __pyx_n_s_coord_operation_pj); if (unlikely(!__pyx_tuple__110)) __PYX_ERR(0, 1992, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__110);
  __Pyx_GIVEREF(__pyx_tuple__110);
  __pyx_codeobj__111 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__110, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_string_2, 1992, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__111)) __PYX_ERR(0, 1992, __pyx_L1_error)

  /* "pyproj/_crs.pyx":2034
 * 
 *     @staticmethod
 *     def from_string(coordinate_operation_string):             # <<<<<<<<<<<<<<
 *         """
 *         Create a CoordinateOperation from a string.
 */
  __pyx_tuple__112 = PyTuple_Pack(2, __pyx_n_s_coordinate_operation_string, __pyx_n_s_crs_err); if (unlikely(!__pyx_tuple__112)) __PYX_ERR(0, 2034, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__112);
  __Pyx_GIVEREF(__pyx_tuple__112);
  __pyx_codeobj__113 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__112, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_string, 2034, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__113)) __PYX_ERR(0, 2034, __pyx_L1_error)

  /* "pyproj/_crs.pyx":2061
 * 
 *     @staticmethod
 *     def from_json_dict(coordinate_operation_dict):             # <<<<<<<<<<<<<<
 *         """
 *         Create CoordinateOperation from a JSON dictionary.
 */
  __pyx_tuple__114 = PyTuple_Pack(1, __pyx_n_s_coordinate_operation_dict); if (unlikely(!__pyx_tuple__114)) __PYX_ERR(0, 2061, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__114);
  __Pyx_GIVEREF(__pyx_tuple__114);
  __pyx_codeobj__115 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__114, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_json_dict, 2061, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__115)) __PYX_ERR(0, 2061, __pyx_L1_error)

  /* "pyproj/_crs.pyx":2079
 * 
 *     @staticmethod
 *     def from_json(coordinate_operation_json_str):             # <<<<<<<<<<<<<<
 *         """
 *         Create CoordinateOperation from a JSON string.
 */
  __pyx_tuple__116 = PyTuple_Pack(1, __pyx_n_s_coordinate_operation_json_str); if (unlikely(!__pyx_tuple__116)) __PYX_ERR(0, 2079, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__116);
  __Pyx_GIVEREF(__pyx_tuple__116);
  __pyx_codeobj__117 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__116, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_json, 2079, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__117)) __PYX_ERR(0, 2079, __pyx_L1_error)

  /* "pyproj/_crs.pyx":2099
 * 
 *     @staticmethod
 *     def from_name(             # <<<<<<<<<<<<<<
 *         coordinate_operation_name,
 *         auth_name=None,
 */
  __pyx_tuple__118 = PyTuple_Pack(6, __pyx_n_s_coordinate_operation_name, __pyx_n_s_auth_name, __pyx_n_s_coordinate_operation_type, __pyx_n_s_pj_coordinate_operation_type, __pyx_n_s_context, __pyx_n_s_coordinate_operation_pj); if (unlikely(!__pyx_tuple__118)) __PYX_ERR(0, 2099, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__118);
  __Pyx_GIVEREF(__pyx_tuple__118);
  __pyx_codeobj__119 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__118, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_pyproj__crs_pyx, __pyx_n_s_from_name, 2099, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__119)) __PYX_ERR(0, 2099, __pyx_L1_error)
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}

static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void) {
  if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  __pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_2 = PyInt_FromLong(2); if (unlikely(!__pyx_int_2)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_70 = PyInt_FromLong(70); if (unlikely(!__pyx_int_70)) __PYX_ERR(0, 1, __pyx_L1_error)
  return 0;
  __pyx_L1_error:;
  return -1;
}

static CYTHON_SMALL_CODE int __Pyx_modinit_global_init_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_variable_export_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_function_export_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_type_init_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_type_import_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_variable_import_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_function_import_code(void); /*proto*/

static int __Pyx_modinit_global_init_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_global_init_code", 0);
  /*--- Global init code ---*/
  __pyx_7genexpr__pyx_v_6pyproj_4_crs_ellps_id = Py_None; Py_INCREF(Py_None);
  __pyx_7genexpr__pyx_v_6pyproj_4_crs_ellps = Py_None; Py_INCREF(Py_None);
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_variable_export_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0);
  /*--- Variable export code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_function_export_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0);
  /*--- Function export code ---*/
  if (__Pyx_ExportFunction("_get_concatenated_operations", (void (*)(void))__pyx_f_6pyproj_4_crs__get_concatenated_operations, "PyObject *(PJ_CONTEXT *, PJ *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_type_init_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0);
  /*--- Type init code ---*/
  __pyx_vtabptr_6pyproj_4_crs_Axis = &__pyx_vtable_6pyproj_4_crs_Axis;
  __pyx_vtable_6pyproj_4_crs_Axis.create = (struct __pyx_obj_6pyproj_4_crs_Axis *(*)(PJ_CONTEXT *, PJ *, int))__pyx_f_6pyproj_4_crs_4Axis_create;
  if (PyType_Ready(&__pyx_type_6pyproj_4_crs_Axis) < 0) __PYX_ERR(0, 238, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_6pyproj_4_crs_Axis.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6pyproj_4_crs_Axis.tp_dictoffset && __pyx_type_6pyproj_4_crs_Axis.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_6pyproj_4_crs_Axis.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_6pyproj_4_crs_Axis.tp_dict, __pyx_vtabptr_6pyproj_4_crs_Axis) < 0) __PYX_ERR(0, 238, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Axis, (PyObject *)&__pyx_type_6pyproj_4_crs_Axis) < 0) __PYX_ERR(0, 238, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_6pyproj_4_crs_Axis) < 0) __PYX_ERR(0, 238, __pyx_L1_error)
  __pyx_ptype_6pyproj_4_crs_Axis = &__pyx_type_6pyproj_4_crs_Axis;
  __pyx_vtabptr_6pyproj_4_crs_AreaOfUse = &__pyx_vtable_6pyproj_4_crs_AreaOfUse;
  __pyx_vtable_6pyproj_4_crs_AreaOfUse.create = (struct __pyx_obj_6pyproj_4_crs_AreaOfUse *(*)(PJ_CONTEXT *, PJ *))__pyx_f_6pyproj_4_crs_9AreaOfUse_create;
  if (PyType_Ready(&__pyx_type_6pyproj_4_crs_AreaOfUse) < 0) __PYX_ERR(0, 314, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_6pyproj_4_crs_AreaOfUse.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6pyproj_4_crs_AreaOfUse.tp_dictoffset && __pyx_type_6pyproj_4_crs_AreaOfUse.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_6pyproj_4_crs_AreaOfUse.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_6pyproj_4_crs_AreaOfUse.tp_dict, __pyx_vtabptr_6pyproj_4_crs_AreaOfUse) < 0) __PYX_ERR(0, 314, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_AreaOfUse, (PyObject *)&__pyx_type_6pyproj_4_crs_AreaOfUse) < 0) __PYX_ERR(0, 314, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_6pyproj_4_crs_AreaOfUse) < 0) __PYX_ERR(0, 314, __pyx_L1_error)
  __pyx_ptype_6pyproj_4_crs_AreaOfUse = &__pyx_type_6pyproj_4_crs_AreaOfUse;
  __pyx_vtabptr_6pyproj_4_crs_Base = &__pyx_vtable_6pyproj_4_crs_Base;
  __pyx_vtable_6pyproj_4_crs_Base._set_base_info = (PyObject *(*)(struct __pyx_obj_6pyproj_4_crs_Base *))__pyx_f_6pyproj_4_crs_4Base__set_base_info;
  if (PyType_Ready(&__pyx_type_6pyproj_4_crs_Base) < 0) __PYX_ERR(0, 377, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_6pyproj_4_crs_Base.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6pyproj_4_crs_Base.tp_dictoffset && __pyx_type_6pyproj_4_crs_Base.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_6pyproj_4_crs_Base.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_6pyproj_4_crs_Base.tp_dict, __pyx_vtabptr_6pyproj_4_crs_Base) < 0) __PYX_ERR(0, 377, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Base, (PyObject *)&__pyx_type_6pyproj_4_crs_Base) < 0) __PYX_ERR(0, 377, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_6pyproj_4_crs_Base) < 0) __PYX_ERR(0, 377, __pyx_L1_error)
  __pyx_ptype_6pyproj_4_crs_Base = &__pyx_type_6pyproj_4_crs_Base;
  __pyx_vtabptr_6pyproj_4_crs__CRSParts = &__pyx_vtable_6pyproj_4_crs__CRSParts;
  __pyx_vtable_6pyproj_4_crs__CRSParts.__pyx_base = *__pyx_vtabptr_6pyproj_4_crs_Base;
  __pyx_type_6pyproj_4_crs__CRSParts.tp_base = __pyx_ptype_6pyproj_4_crs_Base;
  if (PyType_Ready(&__pyx_type_6pyproj_4_crs__CRSParts) < 0) __PYX_ERR(0, 533, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_6pyproj_4_crs__CRSParts.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6pyproj_4_crs__CRSParts.tp_dictoffset && __pyx_type_6pyproj_4_crs__CRSParts.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_6pyproj_4_crs__CRSParts.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_6pyproj_4_crs__CRSParts.tp_dict, __pyx_vtabptr_6pyproj_4_crs__CRSParts) < 0) __PYX_ERR(0, 533, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_CRSParts, (PyObject *)&__pyx_type_6pyproj_4_crs__CRSParts) < 0) __PYX_ERR(0, 533, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_6pyproj_4_crs__CRSParts) < 0) __PYX_ERR(0, 533, __pyx_L1_error)
  __pyx_ptype_6pyproj_4_crs__CRSParts = &__pyx_type_6pyproj_4_crs__CRSParts;
  __pyx_vtabptr_6pyproj_4_crs_Ellipsoid = &__pyx_vtable_6pyproj_4_crs_Ellipsoid;
  __pyx_vtable_6pyproj_4_crs_Ellipsoid.__pyx_base = *__pyx_vtabptr_6pyproj_4_crs__CRSParts;
  __pyx_vtable_6pyproj_4_crs_Ellipsoid.create = (struct __pyx_obj_6pyproj_4_crs_Ellipsoid *(*)(PJ_CONTEXT *, PJ *))__pyx_f_6pyproj_4_crs_9Ellipsoid_create;
  __pyx_type_6pyproj_4_crs_Ellipsoid.tp_base = __pyx_ptype_6pyproj_4_crs__CRSParts;
  if (PyType_Ready(&__pyx_type_6pyproj_4_crs_Ellipsoid) < 0) __PYX_ERR(0, 725, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_6pyproj_4_crs_Ellipsoid.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6pyproj_4_crs_Ellipsoid.tp_dictoffset && __pyx_type_6pyproj_4_crs_Ellipsoid.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_6pyproj_4_crs_Ellipsoid.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_6pyproj_4_crs_Ellipsoid.tp_dict, __pyx_vtabptr_6pyproj_4_crs_Ellipsoid) < 0) __PYX_ERR(0, 725, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Ellipsoid, (PyObject *)&__pyx_type_6pyproj_4_crs_Ellipsoid) < 0) __PYX_ERR(0, 725, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_6pyproj_4_crs_Ellipsoid) < 0) __PYX_ERR(0, 725, __pyx_L1_error)
  __pyx_ptype_6pyproj_4_crs_Ellipsoid = &__pyx_type_6pyproj_4_crs_Ellipsoid;
  __pyx_vtabptr_6pyproj_4_crs_PrimeMeridian = &__pyx_vtable_6pyproj_4_crs_PrimeMeridian;
  __pyx_vtable_6pyproj_4_crs_PrimeMeridian.__pyx_base = *__pyx_vtabptr_6pyproj_4_crs__CRSParts;
  __pyx_vtable_6pyproj_4_crs_PrimeMeridian.create = (struct __pyx_obj_6pyproj_4_crs_PrimeMeridian *(*)(PJ_CONTEXT *, PJ *))__pyx_f_6pyproj_4_crs_13PrimeMeridian_create;
  __pyx_type_6pyproj_4_crs_PrimeMeridian.tp_base = __pyx_ptype_6pyproj_4_crs__CRSParts;
  if (PyType_Ready(&__pyx_type_6pyproj_4_crs_PrimeMeridian) < 0) __PYX_ERR(0, 1025, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_6pyproj_4_crs_PrimeMeridian.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6pyproj_4_crs_PrimeMeridian.tp_dictoffset && __pyx_type_6pyproj_4_crs_PrimeMeridian.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_6pyproj_4_crs_PrimeMeridian.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_6pyproj_4_crs_PrimeMeridian.tp_dict, __pyx_vtabptr_6pyproj_4_crs_PrimeMeridian) < 0) __PYX_ERR(0, 1025, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_PrimeMeridian, (PyObject *)&__pyx_type_6pyproj_4_crs_PrimeMeridian) < 0) __PYX_ERR(0, 1025, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_6pyproj_4_crs_PrimeMeridian) < 0) __PYX_ERR(0, 1025, __pyx_L1_error)
  __pyx_ptype_6pyproj_4_crs_PrimeMeridian = &__pyx_type_6pyproj_4_crs_PrimeMeridian;
  __pyx_vtabptr_6pyproj_4_crs_Datum = &__pyx_vtable_6pyproj_4_crs_Datum;
  __pyx_vtable_6pyproj_4_crs_Datum.__pyx_base = *__pyx_vtabptr_6pyproj_4_crs__CRSParts;
  __pyx_vtable_6pyproj_4_crs_Datum.create = (struct __pyx_obj_6pyproj_4_crs_Datum *(*)(PJ_CONTEXT *, PJ *))__pyx_f_6pyproj_4_crs_5Datum_create;
  __pyx_type_6pyproj_4_crs_Datum.tp_base = __pyx_ptype_6pyproj_4_crs__CRSParts;
  if (PyType_Ready(&__pyx_type_6pyproj_4_crs_Datum) < 0) __PYX_ERR(0, 1304, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_6pyproj_4_crs_Datum.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6pyproj_4_crs_Datum.tp_dictoffset && __pyx_type_6pyproj_4_crs_Datum.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_6pyproj_4_crs_Datum.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_6pyproj_4_crs_Datum.tp_dict, __pyx_vtabptr_6pyproj_4_crs_Datum) < 0) __PYX_ERR(0, 1304, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Datum, (PyObject *)&__pyx_type_6pyproj_4_crs_Datum) < 0) __PYX_ERR(0, 1304, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_6pyproj_4_crs_Datum) < 0) __PYX_ERR(0, 1304, __pyx_L1_error)
  __pyx_ptype_6pyproj_4_crs_Datum = &__pyx_type_6pyproj_4_crs_Datum;
  __pyx_vtabptr_6pyproj_4_crs_CoordinateSystem = &__pyx_vtable_6pyproj_4_crs_CoordinateSystem;
  __pyx_vtable_6pyproj_4_crs_CoordinateSystem.__pyx_base = *__pyx_vtabptr_6pyproj_4_crs__CRSParts;
  __pyx_vtable_6pyproj_4_crs_CoordinateSystem.create = (struct __pyx_obj_6pyproj_4_crs_CoordinateSystem *(*)(PJ_CONTEXT *, PJ *))__pyx_f_6pyproj_4_crs_16CoordinateSystem_create;
  __pyx_type_6pyproj_4_crs_CoordinateSystem.tp_base = __pyx_ptype_6pyproj_4_crs__CRSParts;
  if (PyType_Ready(&__pyx_type_6pyproj_4_crs_CoordinateSystem) < 0) __PYX_ERR(0, 592, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_6pyproj_4_crs_CoordinateSystem.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6pyproj_4_crs_CoordinateSystem.tp_dictoffset && __pyx_type_6pyproj_4_crs_CoordinateSystem.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_6pyproj_4_crs_CoordinateSystem.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_6pyproj_4_crs_CoordinateSystem.tp_dict, __pyx_vtabptr_6pyproj_4_crs_CoordinateSystem) < 0) __PYX_ERR(0, 592, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_CoordinateSystem, (PyObject *)&__pyx_type_6pyproj_4_crs_CoordinateSystem) < 0) __PYX_ERR(0, 592, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_6pyproj_4_crs_CoordinateSystem) < 0) __PYX_ERR(0, 592, __pyx_L1_error)
  __pyx_ptype_6pyproj_4_crs_CoordinateSystem = &__pyx_type_6pyproj_4_crs_CoordinateSystem;
  __pyx_vtabptr_6pyproj_4_crs_Param = &__pyx_vtable_6pyproj_4_crs_Param;
  __pyx_vtable_6pyproj_4_crs_Param.create = (struct __pyx_obj_6pyproj_4_crs_Param *(*)(PJ_CONTEXT *, PJ *, int))__pyx_f_6pyproj_4_crs_5Param_create;
  if (PyType_Ready(&__pyx_type_6pyproj_4_crs_Param) < 0) __PYX_ERR(0, 1652, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_6pyproj_4_crs_Param.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6pyproj_4_crs_Param.tp_dictoffset && __pyx_type_6pyproj_4_crs_Param.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_6pyproj_4_crs_Param.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_6pyproj_4_crs_Param.tp_dict, __pyx_vtabptr_6pyproj_4_crs_Param) < 0) __PYX_ERR(0, 1652, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Param, (PyObject *)&__pyx_type_6pyproj_4_crs_Param) < 0) __PYX_ERR(0, 1652, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_6pyproj_4_crs_Param) < 0) __PYX_ERR(0, 1652, __pyx_L1_error)
  __pyx_ptype_6pyproj_4_crs_Param = &__pyx_type_6pyproj_4_crs_Param;
  __pyx_vtabptr_6pyproj_4_crs_Grid = &__pyx_vtable_6pyproj_4_crs_Grid;
  __pyx_vtable_6pyproj_4_crs_Grid.create = (struct __pyx_obj_6pyproj_4_crs_Grid *(*)(PJ_CONTEXT *, PJ *, int))__pyx_f_6pyproj_4_crs_4Grid_create;
  if (PyType_Ready(&__pyx_type_6pyproj_4_crs_Grid) < 0) __PYX_ERR(0, 1750, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_6pyproj_4_crs_Grid.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6pyproj_4_crs_Grid.tp_dictoffset && __pyx_type_6pyproj_4_crs_Grid.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_6pyproj_4_crs_Grid.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_6pyproj_4_crs_Grid.tp_dict, __pyx_vtabptr_6pyproj_4_crs_Grid) < 0) __PYX_ERR(0, 1750, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Grid, (PyObject *)&__pyx_type_6pyproj_4_crs_Grid) < 0) __PYX_ERR(0, 1750, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_6pyproj_4_crs_Grid) < 0) __PYX_ERR(0, 1750, __pyx_L1_error)
  __pyx_ptype_6pyproj_4_crs_Grid = &__pyx_type_6pyproj_4_crs_Grid;
  __pyx_vtabptr_6pyproj_4_crs_CoordinateOperation = &__pyx_vtable_6pyproj_4_crs_CoordinateOperation;
  __pyx_vtable_6pyproj_4_crs_CoordinateOperation.__pyx_base = *__pyx_vtabptr_6pyproj_4_crs__CRSParts;
  __pyx_vtable_6pyproj_4_crs_CoordinateOperation.create = (struct __pyx_obj_6pyproj_4_crs_CoordinateOperation *(*)(PJ_CONTEXT *, PJ *))__pyx_f_6pyproj_4_crs_19CoordinateOperation_create;
  __pyx_type_6pyproj_4_crs_CoordinateOperation.tp_base = __pyx_ptype_6pyproj_4_crs__CRSParts;
  if (PyType_Ready(&__pyx_type_6pyproj_4_crs_CoordinateOperation) < 0) __PYX_ERR(0, 1849, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_6pyproj_4_crs_CoordinateOperation.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6pyproj_4_crs_CoordinateOperation.tp_dictoffset && __pyx_type_6pyproj_4_crs_CoordinateOperation.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_6pyproj_4_crs_CoordinateOperation.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_6pyproj_4_crs_CoordinateOperation.tp_dict, __pyx_vtabptr_6pyproj_4_crs_CoordinateOperation) < 0) __PYX_ERR(0, 1849, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_CoordinateOperation, (PyObject *)&__pyx_type_6pyproj_4_crs_CoordinateOperation) < 0) __PYX_ERR(0, 1849, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_6pyproj_4_crs_CoordinateOperation) < 0) __PYX_ERR(0, 1849, __pyx_L1_error)
  __pyx_ptype_6pyproj_4_crs_CoordinateOperation = &__pyx_type_6pyproj_4_crs_CoordinateOperation;
  __pyx_vtabptr_6pyproj_4_crs__CRS = &__pyx_vtable_6pyproj_4_crs__CRS;
  __pyx_vtable_6pyproj_4_crs__CRS.__pyx_base = *__pyx_vtabptr_6pyproj_4_crs_Base;
  __pyx_type_6pyproj_4_crs__CRS.tp_base = __pyx_ptype_6pyproj_4_crs_Base;
  if (PyType_Ready(&__pyx_type_6pyproj_4_crs__CRS) < 0) __PYX_ERR(0, 2309, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_6pyproj_4_crs__CRS.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6pyproj_4_crs__CRS.tp_dictoffset && __pyx_type_6pyproj_4_crs__CRS.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_6pyproj_4_crs__CRS.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_6pyproj_4_crs__CRS.tp_dict, __pyx_vtabptr_6pyproj_4_crs__CRS) < 0) __PYX_ERR(0, 2309, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_CRS, (PyObject *)&__pyx_type_6pyproj_4_crs__CRS) < 0) __PYX_ERR(0, 2309, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_6pyproj_4_crs__CRS) < 0) __PYX_ERR(0, 2309, __pyx_L1_error)
  __pyx_ptype_6pyproj_4_crs__CRS = &__pyx_type_6pyproj_4_crs__CRS;
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_type_import_code(void) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0);
  /*--- Type import code ---*/
  __pyx_t_1 = PyImport_ImportModule("pyproj._datadir"); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_ptype_6pyproj_8_datadir_ContextManager = __Pyx_ImportType(__pyx_t_1, "pyproj._datadir", "ContextManager", sizeof(struct __pyx_obj_6pyproj_8_datadir_ContextManager), __Pyx_ImportType_CheckSize_Warn);
   if (!__pyx_ptype_6pyproj_8_datadir_ContextManager) __PYX_ERR(3, 7, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_variable_import_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0);
  /*--- Variable import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_function_import_code(void) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0);
  /*--- Function import code ---*/
  __pyx_t_1 = PyImport_ImportModule("pyproj._datadir"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction(__pyx_t_1, "pyproj_context_initialize", (void (**)(void))&__pyx_f_6pyproj_8_datadir_pyproj_context_initialize, "void (PJ_CONTEXT *, int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_RefNannyFinishContext();
  return -1;
}


#if PY_MAJOR_VERSION < 3
#ifdef CYTHON_NO_PYINIT_EXPORT
#define __Pyx_PyMODINIT_FUNC void
#else
#define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
#endif
#else
#ifdef CYTHON_NO_PYINIT_EXPORT
#define __Pyx_PyMODINIT_FUNC PyObject *
#else
#define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
#endif
#endif


#if PY_MAJOR_VERSION < 3
__Pyx_PyMODINIT_FUNC init_crs(void) CYTHON_SMALL_CODE; /*proto*/
__Pyx_PyMODINIT_FUNC init_crs(void)
#else
__Pyx_PyMODINIT_FUNC PyInit__crs(void) CYTHON_SMALL_CODE; /*proto*/
__Pyx_PyMODINIT_FUNC PyInit__crs(void)
#if CYTHON_PEP489_MULTI_PHASE_INIT
{
  return PyModuleDef_Init(&__pyx_moduledef);
}
static CYTHON_SMALL_CODE int __Pyx_check_single_interpreter(void) {
    #if PY_VERSION_HEX >= 0x030700A1
    static PY_INT64_T main_interpreter_id = -1;
    PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp);
    if (main_interpreter_id == -1) {
        main_interpreter_id = current_id;
        return (unlikely(current_id == -1)) ? -1 : 0;
    } else if (unlikely(main_interpreter_id != current_id))
    #else
    static PyInterpreterState *main_interpreter = NULL;
    PyInterpreterState *current_interpreter = PyThreadState_Get()->interp;
    if (!main_interpreter) {
        main_interpreter = current_interpreter;
    } else if (unlikely(main_interpreter != current_interpreter))
    #endif
    {
        PyErr_SetString(
            PyExc_ImportError,
            "Interpreter change detected - this module can only be loaded into one interpreter per process.");
        return -1;
    }
    return 0;
}
static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict, const char* from_name, const char* to_name, int allow_none) {
    PyObject *value = PyObject_GetAttrString(spec, from_name);
    int result = 0;
    if (likely(value)) {
        if (allow_none || value != Py_None) {
            result = PyDict_SetItemString(moddict, to_name, value);
        }
        Py_DECREF(value);
    } else if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
        PyErr_Clear();
    } else {
        result = -1;
    }
    return result;
}
static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, CYTHON_UNUSED PyModuleDef *def) {
    PyObject *module = NULL, *moddict, *modname;
    if (__Pyx_check_single_interpreter())
        return NULL;
    if (__pyx_m)
        return __Pyx_NewRef(__pyx_m);
    modname = PyObject_GetAttrString(spec, "name");
    if (unlikely(!modname)) goto bad;
    module = PyModule_NewObject(modname);
    Py_DECREF(modname);
    if (unlikely(!module)) goto bad;
    moddict = PyModule_GetDict(module);
    if (unlikely(!moddict)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__", 0) < 0)) goto bad;
    return module;
bad:
    Py_XDECREF(module);
    return NULL;
}


static CYTHON_SMALL_CODE int __pyx_pymod_exec__crs(PyObject *__pyx_pyinit_module)
#endif
#endif
{
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  __Pyx_RefNannyDeclarations
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  if (__pyx_m) {
    if (__pyx_m == __pyx_pyinit_module) return 0;
    PyErr_SetString(PyExc_RuntimeError, "Module '_crs' has already been imported. Re-initialisation is not supported.");
    return -1;
  }
  #elif PY_MAJOR_VERSION >= 3
  if (__pyx_m) return __Pyx_NewRef(__pyx_m);
  #endif
  #if CYTHON_REFNANNY
__Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
if (!__Pyx_RefNanny) {
  PyErr_Clear();
  __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
  if (!__Pyx_RefNanny)
      Py_FatalError("failed to import 'refnanny' module");
}
#endif
  __Pyx_RefNannySetupContext("__Pyx_PyMODINIT_FUNC PyInit__crs(void)", 0);
  if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #ifdef __Pxy_PyFrame_Initialize_Offsets
  __Pxy_PyFrame_Initialize_Offsets();
  #endif
  __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error)
  #ifdef __Pyx_CyFunction_USED
  if (__pyx_CyFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_FusedFunction_USED
  if (__pyx_FusedFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_Coroutine_USED
  if (__pyx_Coroutine_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_Generator_USED
  if (__pyx_Generator_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_AsyncGen_USED
  if (__pyx_AsyncGen_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_StopAsyncIteration_USED
  if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  /*--- Library function declarations ---*/
  /*--- Threads initialization code ---*/
  #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
  #ifdef WITH_THREAD /* Python build with threading support? */
  PyEval_InitThreads();
  #endif
  #endif
  /*--- Module creation code ---*/
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  __pyx_m = __pyx_pyinit_module;
  Py_INCREF(__pyx_m);
  #else
  #if PY_MAJOR_VERSION < 3
  __pyx_m = Py_InitModule4("_crs", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
  #else
  __pyx_m = PyModule_Create(&__pyx_moduledef);
  #endif
  if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_INCREF(__pyx_d);
  __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_INCREF(__pyx_b);
  __pyx_cython_runtime = PyImport_AddModule((char *) "cython_runtime"); if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_INCREF(__pyx_cython_runtime);
  if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  /*--- Initialize various global constants etc. ---*/
  if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
  if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  if (__pyx_module_is_main_pyproj___crs) {
    if (PyObject_SetAttr(__pyx_m, __pyx_n_s_name_2, __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  }
  #if PY_MAJOR_VERSION >= 3
  {
    PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error)
    if (!PyDict_GetItemString(modules, "pyproj._crs")) {
      if (unlikely(PyDict_SetItemString(modules, "pyproj._crs", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
    }
  }
  #endif
  /*--- Builtin init code ---*/
  if (__Pyx_InitCachedBuiltins() < 0) goto __pyx_L1_error;
  /*--- Constants init code ---*/
  if (__Pyx_InitCachedConstants() < 0) goto __pyx_L1_error;
  /*--- Global type/function init code ---*/
  (void)__Pyx_modinit_global_init_code();
  (void)__Pyx_modinit_variable_export_code();
  if (unlikely(__Pyx_modinit_function_export_code() != 0)) goto __pyx_L1_error;
  if (unlikely(__Pyx_modinit_type_init_code() != 0)) goto __pyx_L1_error;
  if (unlikely(__Pyx_modinit_type_import_code() != 0)) goto __pyx_L1_error;
  (void)__Pyx_modinit_variable_import_code();
  if (unlikely(__Pyx_modinit_function_import_code() != 0)) goto __pyx_L1_error;
  /*--- Execution code ---*/
  #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
  if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif

  /* "pyproj/_crs.pyx":1
 * import json             # <<<<<<<<<<<<<<
 * import re
 * import warnings
 */
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_json, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_json, __pyx_t_1) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":2
 * import json
 * import re             # <<<<<<<<<<<<<<
 * import warnings
 * from collections import OrderedDict
 */
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_re, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_re, __pyx_t_1) < 0) __PYX_ERR(0, 2, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":3
 * import json
 * import re
 * import warnings             # <<<<<<<<<<<<<<
 * from collections import OrderedDict
 * 
 */
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_warnings, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_warnings, __pyx_t_1) < 0) __PYX_ERR(0, 3, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":4
 * import re
 * import warnings
 * from collections import OrderedDict             # <<<<<<<<<<<<<<
 * 
 * from pyproj._datadir cimport pyproj_context_initialize
 */
  __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_n_s_OrderedDict);
  __Pyx_GIVEREF(__pyx_n_s_OrderedDict);
  PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_OrderedDict);
  __pyx_t_2 = __Pyx_Import(__pyx_n_s_collections, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_OrderedDict); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_OrderedDict, __pyx_t_1) < 0) __PYX_ERR(0, 4, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":7
 * 
 * from pyproj._datadir cimport pyproj_context_initialize
 * from pyproj.compat import cstrencode, pystrdecode             # <<<<<<<<<<<<<<
 * from pyproj.crs.datum import CustomEllipsoid
 * from pyproj.crs.enums import CoordinateOperationType, DatumType
 */
  __pyx_t_2 = PyList_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_n_s_cstrencode);
  __Pyx_GIVEREF(__pyx_n_s_cstrencode);
  PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_cstrencode);
  __Pyx_INCREF(__pyx_n_s_pystrdecode);
  __Pyx_GIVEREF(__pyx_n_s_pystrdecode);
  PyList_SET_ITEM(__pyx_t_2, 1, __pyx_n_s_pystrdecode);
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_pyproj_compat, __pyx_t_2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_cstrencode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_cstrencode, __pyx_t_2) < 0) __PYX_ERR(0, 7, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_pystrdecode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pystrdecode, __pyx_t_2) < 0) __PYX_ERR(0, 7, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":8
 * from pyproj._datadir cimport pyproj_context_initialize
 * from pyproj.compat import cstrencode, pystrdecode
 * from pyproj.crs.datum import CustomEllipsoid             # <<<<<<<<<<<<<<
 * from pyproj.crs.enums import CoordinateOperationType, DatumType
 * from pyproj.enums import ProjVersion, WktVersion
 */
  __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_n_s_CustomEllipsoid);
  __Pyx_GIVEREF(__pyx_n_s_CustomEllipsoid);
  PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_CustomEllipsoid);
  __pyx_t_2 = __Pyx_Import(__pyx_n_s_pyproj_crs_datum, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_CustomEllipsoid); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CustomEllipsoid, __pyx_t_1) < 0) __PYX_ERR(0, 8, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":9
 * from pyproj.compat import cstrencode, pystrdecode
 * from pyproj.crs.datum import CustomEllipsoid
 * from pyproj.crs.enums import CoordinateOperationType, DatumType             # <<<<<<<<<<<<<<
 * from pyproj.enums import ProjVersion, WktVersion
 * from pyproj.exceptions import CRSError
 */
  __pyx_t_2 = PyList_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_n_s_CoordinateOperationType);
  __Pyx_GIVEREF(__pyx_n_s_CoordinateOperationType);
  PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_CoordinateOperationType);
  __Pyx_INCREF(__pyx_n_s_DatumType);
  __Pyx_GIVEREF(__pyx_n_s_DatumType);
  PyList_SET_ITEM(__pyx_t_2, 1, __pyx_n_s_DatumType);
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_pyproj_crs_enums, __pyx_t_2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_CoordinateOperationType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CoordinateOperationType, __pyx_t_2) < 0) __PYX_ERR(0, 9, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_DatumType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_DatumType, __pyx_t_2) < 0) __PYX_ERR(0, 9, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":10
 * from pyproj.crs.datum import CustomEllipsoid
 * from pyproj.crs.enums import CoordinateOperationType, DatumType
 * from pyproj.enums import ProjVersion, WktVersion             # <<<<<<<<<<<<<<
 * from pyproj.exceptions import CRSError
 * from pyproj.geod import pj_ellps
 */
  __pyx_t_1 = PyList_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_n_s_ProjVersion);
  __Pyx_GIVEREF(__pyx_n_s_ProjVersion);
  PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_ProjVersion);
  __Pyx_INCREF(__pyx_n_s_WktVersion);
  __Pyx_GIVEREF(__pyx_n_s_WktVersion);
  PyList_SET_ITEM(__pyx_t_1, 1, __pyx_n_s_WktVersion);
  __pyx_t_2 = __Pyx_Import(__pyx_n_s_pyproj_enums, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_ProjVersion); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ProjVersion, __pyx_t_1) < 0) __PYX_ERR(0, 10, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_WktVersion); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 10, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_WktVersion, __pyx_t_1) < 0) __PYX_ERR(0, 10, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":11
 * from pyproj.crs.enums import CoordinateOperationType, DatumType
 * from pyproj.enums import ProjVersion, WktVersion
 * from pyproj.exceptions import CRSError             # <<<<<<<<<<<<<<
 * from pyproj.geod import pj_ellps
 * 
 */
  __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_n_s_CRSError);
  __Pyx_GIVEREF(__pyx_n_s_CRSError);
  PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_CRSError);
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_pyproj_exceptions, __pyx_t_2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_CRSError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CRSError, __pyx_t_2) < 0) __PYX_ERR(0, 11, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":12
 * from pyproj.enums import ProjVersion, WktVersion
 * from pyproj.exceptions import CRSError
 * from pyproj.geod import pj_ellps             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_n_s_pj_ellps);
  __Pyx_GIVEREF(__pyx_n_s_pj_ellps);
  PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_pj_ellps);
  __pyx_t_2 = __Pyx_Import(__pyx_n_s_pyproj_geod, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_pj_ellps); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_pj_ellps, __pyx_t_1) < 0) __PYX_ERR(0, 12, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":17
 * # This is for looking up the ellipsoid parameters
 * # based on the long name
 * _PJ_ELLPS_NAME_MAP = {             # <<<<<<<<<<<<<<
 *     ellps["description"]: ellps_id for ellps_id, ellps in pj_ellps.items()
 * }
 */
  { /* enter inner scope */
    __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17, __pyx_L4_error)
    __Pyx_GOTREF(__pyx_t_2);

    /* "pyproj/_crs.pyx":18
 * # based on the long name
 * _PJ_ELLPS_NAME_MAP = {
 *     ellps["description"]: ellps_id for ellps_id, ellps in pj_ellps.items()             # <<<<<<<<<<<<<<
 * }
 * 
 */
    __pyx_t_3 = 0;
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_pj_ellps); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 18, __pyx_L4_error)
    __Pyx_GOTREF(__pyx_t_6);
    if (unlikely(__pyx_t_6 == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
      __PYX_ERR(0, 18, __pyx_L4_error)
    }
    __pyx_t_7 = __Pyx_dict_iterator(__pyx_t_6, 0, __pyx_n_s_items, (&__pyx_t_4), (&__pyx_t_5)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 18, __pyx_L4_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_XDECREF(__pyx_t_1);
    __pyx_t_1 = __pyx_t_7;
    __pyx_t_7 = 0;
    while (1) {
      __pyx_t_8 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_4, &__pyx_t_3, &__pyx_t_7, &__pyx_t_6, NULL, __pyx_t_5);
      if (unlikely(__pyx_t_8 == 0)) break;
      if (unlikely(__pyx_t_8 == -1)) __PYX_ERR(0, 18, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_XGOTREF(__pyx_7genexpr__pyx_v_6pyproj_4_crs_ellps_id);
      __Pyx_DECREF_SET(__pyx_7genexpr__pyx_v_6pyproj_4_crs_ellps_id, __pyx_t_7);
      __Pyx_GIVEREF(__pyx_t_7);
      __pyx_t_7 = 0;
      __Pyx_XGOTREF(__pyx_7genexpr__pyx_v_6pyproj_4_crs_ellps);
      __Pyx_DECREF_SET(__pyx_7genexpr__pyx_v_6pyproj_4_crs_ellps, __pyx_t_6);
      __Pyx_GIVEREF(__pyx_t_6);
      __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyObject_Dict_GetItem(__pyx_7genexpr__pyx_v_6pyproj_4_crs_ellps, __pyx_n_u_description); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 18, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_6);
      if (unlikely(PyDict_SetItem(__pyx_t_2, (PyObject*)__pyx_t_6, (PyObject*)__pyx_7genexpr__pyx_v_6pyproj_4_crs_ellps_id))) __PYX_ERR(0, 18, __pyx_L4_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_GOTREF(__pyx_7genexpr__pyx_v_6pyproj_4_crs_ellps);
    __Pyx_DECREF_SET(__pyx_7genexpr__pyx_v_6pyproj_4_crs_ellps, Py_None);
    __Pyx_GOTREF(__pyx_7genexpr__pyx_v_6pyproj_4_crs_ellps_id);
    __Pyx_DECREF_SET(__pyx_7genexpr__pyx_v_6pyproj_4_crs_ellps_id, Py_None);
    goto __pyx_L7_exit_scope;
    __pyx_L4_error:;
    __Pyx_GOTREF(__pyx_7genexpr__pyx_v_6pyproj_4_crs_ellps);
    __Pyx_DECREF_SET(__pyx_7genexpr__pyx_v_6pyproj_4_crs_ellps, Py_None);
    __Pyx_GOTREF(__pyx_7genexpr__pyx_v_6pyproj_4_crs_ellps_id);
    __Pyx_DECREF_SET(__pyx_7genexpr__pyx_v_6pyproj_4_crs_ellps_id, Py_None);
    goto __pyx_L1_error;
    __pyx_L7_exit_scope:;
  } /* exit inner scope */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_PJ_ELLPS_NAME_MAP, __pyx_t_2) < 0) __PYX_ERR(0, 17, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":35
 * 
 * 
 * def is_wkt(proj_string):             # <<<<<<<<<<<<<<
 *     """
 *     .. versionadded:: 2.0.0
 */
  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_1is_wkt, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 35, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_wkt, __pyx_t_2) < 0) __PYX_ERR(0, 35, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":54
 * 
 * 
 * def is_proj(proj_string):             # <<<<<<<<<<<<<<
 *     """
 *     .. versionadded:: 2.2.2
 */
  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_3is_proj, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 54, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_proj, __pyx_t_2) < 0) __PYX_ERR(0, 54, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":75
 *     PJ_CONTEXT* context,
 *     PJ* projobj,
 *     version=WktVersion.WKT2_2019,             # <<<<<<<<<<<<<<
 *     pretty=False
 * ):
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_WktVersion); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 75, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_WKT2_2019); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 75, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_k__2 = __pyx_t_1;
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":231
 * 
 * 
 * def _load_proj_json(in_proj_json):             # <<<<<<<<<<<<<<
 *     try:
 *         return json.loads(in_proj_json)
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_5_load_proj_json, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 231, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_load_proj_json, __pyx_t_1) < 0) __PYX_ERR(0, 231, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":432
 *         return self._scope
 * 
 *     def to_wkt(self, version=WktVersion.WKT2_2019, pretty=False):             # <<<<<<<<<<<<<<
 *         """
 *         Convert the projection to a WKT string.
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_WktVersion); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 432, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_WKT2_2019); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 432, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_k__7 = __pyx_t_2;
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":535
 * cdef class _CRSParts(Base):
 *     @classmethod
 *     def from_user_input(cls, user_input):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.5.0
 */
  __Pyx_GetNameInClass(__pyx_t_2, (PyObject *)__pyx_ptype_6pyproj_4_crs__CRSParts, __pyx_n_s_from_user_input); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 535, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);

  /* "pyproj/_crs.pyx":534
 * 
 * cdef class _CRSParts(Base):
 *     @classmethod             # <<<<<<<<<<<<<<
 *     def from_user_input(cls, user_input):
 *         """
 */
  __pyx_t_1 = __Pyx_Method_ClassMethod(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 534, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs__CRSParts->tp_dict, __pyx_n_s_from_user_input, __pyx_t_1) < 0) __PYX_ERR(0, 535, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs__CRSParts);

  /* "pyproj/_crs.pyx":580
 * 
 * _COORD_SYSTEM_TYPE_MAP = {
 *     PJ_CS_TYPE_UNKNOWN: "unknown",             # <<<<<<<<<<<<<<
 *     PJ_CS_TYPE_CARTESIAN: "cartesian",
 *     PJ_CS_TYPE_ELLIPSOIDAL: "ellipsoidal",
 */
  __pyx_t_1 = __Pyx_PyDict_NewPresized(10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_From_PJ_COORDINATE_SYSTEM_TYPE(PJ_CS_TYPE_UNKNOWN); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_n_u_unknown) < 0) __PYX_ERR(0, 580, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":581
 * _COORD_SYSTEM_TYPE_MAP = {
 *     PJ_CS_TYPE_UNKNOWN: "unknown",
 *     PJ_CS_TYPE_CARTESIAN: "cartesian",             # <<<<<<<<<<<<<<
 *     PJ_CS_TYPE_ELLIPSOIDAL: "ellipsoidal",
 *     PJ_CS_TYPE_VERTICAL: "vertical",
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_COORDINATE_SYSTEM_TYPE(PJ_CS_TYPE_CARTESIAN); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 581, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_n_u_cartesian) < 0) __PYX_ERR(0, 580, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":582
 *     PJ_CS_TYPE_UNKNOWN: "unknown",
 *     PJ_CS_TYPE_CARTESIAN: "cartesian",
 *     PJ_CS_TYPE_ELLIPSOIDAL: "ellipsoidal",             # <<<<<<<<<<<<<<
 *     PJ_CS_TYPE_VERTICAL: "vertical",
 *     PJ_CS_TYPE_SPHERICAL: "spherical",
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_COORDINATE_SYSTEM_TYPE(PJ_CS_TYPE_ELLIPSOIDAL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 582, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_n_u_ellipsoidal) < 0) __PYX_ERR(0, 580, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":583
 *     PJ_CS_TYPE_CARTESIAN: "cartesian",
 *     PJ_CS_TYPE_ELLIPSOIDAL: "ellipsoidal",
 *     PJ_CS_TYPE_VERTICAL: "vertical",             # <<<<<<<<<<<<<<
 *     PJ_CS_TYPE_SPHERICAL: "spherical",
 *     PJ_CS_TYPE_ORDINAL: "ordinal",
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_COORDINATE_SYSTEM_TYPE(PJ_CS_TYPE_VERTICAL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 583, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_n_u_vertical) < 0) __PYX_ERR(0, 580, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":584
 *     PJ_CS_TYPE_ELLIPSOIDAL: "ellipsoidal",
 *     PJ_CS_TYPE_VERTICAL: "vertical",
 *     PJ_CS_TYPE_SPHERICAL: "spherical",             # <<<<<<<<<<<<<<
 *     PJ_CS_TYPE_ORDINAL: "ordinal",
 *     PJ_CS_TYPE_PARAMETRIC: "parametric",
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_COORDINATE_SYSTEM_TYPE(PJ_CS_TYPE_SPHERICAL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 584, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_n_u_spherical) < 0) __PYX_ERR(0, 580, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":585
 *     PJ_CS_TYPE_VERTICAL: "vertical",
 *     PJ_CS_TYPE_SPHERICAL: "spherical",
 *     PJ_CS_TYPE_ORDINAL: "ordinal",             # <<<<<<<<<<<<<<
 *     PJ_CS_TYPE_PARAMETRIC: "parametric",
 *     PJ_CS_TYPE_DATETIMETEMPORAL: "datetimetemporal",
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_COORDINATE_SYSTEM_TYPE(PJ_CS_TYPE_ORDINAL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 585, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_n_u_ordinal) < 0) __PYX_ERR(0, 580, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":586
 *     PJ_CS_TYPE_SPHERICAL: "spherical",
 *     PJ_CS_TYPE_ORDINAL: "ordinal",
 *     PJ_CS_TYPE_PARAMETRIC: "parametric",             # <<<<<<<<<<<<<<
 *     PJ_CS_TYPE_DATETIMETEMPORAL: "datetimetemporal",
 *     PJ_CS_TYPE_TEMPORALCOUNT: "temporalcount",
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_COORDINATE_SYSTEM_TYPE(PJ_CS_TYPE_PARAMETRIC); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 586, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_n_u_parametric) < 0) __PYX_ERR(0, 580, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":587
 *     PJ_CS_TYPE_ORDINAL: "ordinal",
 *     PJ_CS_TYPE_PARAMETRIC: "parametric",
 *     PJ_CS_TYPE_DATETIMETEMPORAL: "datetimetemporal",             # <<<<<<<<<<<<<<
 *     PJ_CS_TYPE_TEMPORALCOUNT: "temporalcount",
 *     PJ_CS_TYPE_TEMPORALMEASURE: "temporalmeasure",
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_COORDINATE_SYSTEM_TYPE(PJ_CS_TYPE_DATETIMETEMPORAL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 587, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_n_u_datetimetemporal) < 0) __PYX_ERR(0, 580, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":588
 *     PJ_CS_TYPE_PARAMETRIC: "parametric",
 *     PJ_CS_TYPE_DATETIMETEMPORAL: "datetimetemporal",
 *     PJ_CS_TYPE_TEMPORALCOUNT: "temporalcount",             # <<<<<<<<<<<<<<
 *     PJ_CS_TYPE_TEMPORALMEASURE: "temporalmeasure",
 * }
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_COORDINATE_SYSTEM_TYPE(PJ_CS_TYPE_TEMPORALCOUNT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 588, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_n_u_temporalcount) < 0) __PYX_ERR(0, 580, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":589
 *     PJ_CS_TYPE_DATETIMETEMPORAL: "datetimetemporal",
 *     PJ_CS_TYPE_TEMPORALCOUNT: "temporalcount",
 *     PJ_CS_TYPE_TEMPORALMEASURE: "temporalmeasure",             # <<<<<<<<<<<<<<
 * }
 * 
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_COORDINATE_SYSTEM_TYPE(PJ_CS_TYPE_TEMPORALMEASURE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 589, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_n_u_temporalmeasure) < 0) __PYX_ERR(0, 580, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_COORD_SYSTEM_TYPE_MAP, __pyx_t_1) < 0) __PYX_ERR(0, 579, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":649
 * 
 *     @staticmethod
 *     def from_string(coordinate_system_string):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.5.0
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_16CoordinateSystem_5from_string, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 649, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateSystem->tp_dict, __pyx_n_s_from_string, __pyx_t_1) < 0) __PYX_ERR(0, 649, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_CoordinateSystem);

  /* "pyproj/_crs.pyx":648
 *         return self._axis_list
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_string(coordinate_system_string):
 *         """
 */
  __Pyx_GetNameInClass(__pyx_t_1, (PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateSystem, __pyx_n_s_from_string); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 649, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 648, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateSystem->tp_dict, __pyx_n_s_from_string, __pyx_t_2) < 0) __PYX_ERR(0, 649, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_CoordinateSystem);

  /* "pyproj/_crs.pyx":687
 * 
 *     @staticmethod
 *     def from_json_dict(coordinate_system_dict):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.5.0
 */
  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_16CoordinateSystem_7from_json_dict, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 687, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateSystem->tp_dict, __pyx_n_s_from_json_dict, __pyx_t_2) < 0) __PYX_ERR(0, 687, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_CoordinateSystem);

  /* "pyproj/_crs.pyx":686
 *         return CoordinateSystem.create(context, coordinate_system_pj)
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_json_dict(coordinate_system_dict):
 *         """
 */
  __Pyx_GetNameInClass(__pyx_t_2, (PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateSystem, __pyx_n_s_from_json_dict); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 687, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 686, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateSystem->tp_dict, __pyx_n_s_from_json_dict, __pyx_t_1) < 0) __PYX_ERR(0, 687, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_CoordinateSystem);

  /* "pyproj/_crs.pyx":705
 * 
 *     @staticmethod
 *     def from_json(coordinate_system_json_str):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.5.0
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_16CoordinateSystem_9from_json, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 705, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateSystem->tp_dict, __pyx_n_s_from_json, __pyx_t_1) < 0) __PYX_ERR(0, 705, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_CoordinateSystem);

  /* "pyproj/_crs.pyx":704
 *         return CoordinateSystem.from_string(json.dumps(coordinate_system_dict))
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_json(coordinate_system_json_str):
 *         """
 */
  __Pyx_GetNameInClass(__pyx_t_1, (PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateSystem, __pyx_n_s_from_json); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 705, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 704, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateSystem->tp_dict, __pyx_n_s_from_json, __pyx_t_2) < 0) __PYX_ERR(0, 705, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_CoordinateSystem);

  /* "pyproj/_crs.pyx":777
 * 
 *     @staticmethod
 *     def from_authority(auth_name, code):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */
  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_9Ellipsoid_5from_authority, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 777, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid->tp_dict, __pyx_n_s_from_authority, __pyx_t_2) < 0) __PYX_ERR(0, 777, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Ellipsoid);

  /* "pyproj/_crs.pyx":776
 *         return ellips
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_authority(auth_name, code):
 *         """
 */
  __Pyx_GetNameInClass(__pyx_t_2, (PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid, __pyx_n_s_from_authority); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 777, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 776, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid->tp_dict, __pyx_n_s_from_authority, __pyx_t_1) < 0) __PYX_ERR(0, 777, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Ellipsoid);

  /* "pyproj/_crs.pyx":814
 * 
 *     @staticmethod
 *     def from_epsg(code):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_9Ellipsoid_7from_epsg, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 814, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid->tp_dict, __pyx_n_s_from_epsg, __pyx_t_1) < 0) __PYX_ERR(0, 814, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Ellipsoid);

  /* "pyproj/_crs.pyx":813
 *         return Ellipsoid.create(context, ellipsoid_pj)
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_epsg(code):
 *         """
 */
  __Pyx_GetNameInClass(__pyx_t_1, (PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid, __pyx_n_s_from_epsg); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 814, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 813, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid->tp_dict, __pyx_n_s_from_epsg, __pyx_t_2) < 0) __PYX_ERR(0, 814, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Ellipsoid);

  /* "pyproj/_crs.pyx":832
 * 
 *     @staticmethod
 *     def _from_string(ellipsoid_string):             # <<<<<<<<<<<<<<
 *         """
 *         Create an Ellipsoid from a string.
 */
  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_9Ellipsoid_9_from_string, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 832, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid->tp_dict, __pyx_n_s_from_string_2, __pyx_t_2) < 0) __PYX_ERR(0, 832, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Ellipsoid);

  /* "pyproj/_crs.pyx":831
 *         return Ellipsoid.from_authority("EPSG", code)
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def _from_string(ellipsoid_string):
 *         """
 */
  __Pyx_GetNameInClass(__pyx_t_2, (PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid, __pyx_n_s_from_string_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 832, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 831, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid->tp_dict, __pyx_n_s_from_string_2, __pyx_t_1) < 0) __PYX_ERR(0, 832, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Ellipsoid);

  /* "pyproj/_crs.pyx":869
 * 
 *     @staticmethod
 *     def from_string(ellipsoid_string):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_9Ellipsoid_11from_string, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 869, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid->tp_dict, __pyx_n_s_from_string, __pyx_t_1) < 0) __PYX_ERR(0, 869, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Ellipsoid);

  /* "pyproj/_crs.pyx":868
 *         return Ellipsoid.create(context, ellipsoid_pj)
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_string(ellipsoid_string):
 *         """
 */
  __Pyx_GetNameInClass(__pyx_t_1, (PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid, __pyx_n_s_from_string); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 869, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 868, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid->tp_dict, __pyx_n_s_from_string, __pyx_t_2) < 0) __PYX_ERR(0, 869, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Ellipsoid);

  /* "pyproj/_crs.pyx":900
 * 
 *     @staticmethod
 *     def from_json_dict(ellipsoid_dict):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */
  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_9Ellipsoid_13from_json_dict, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 900, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid->tp_dict, __pyx_n_s_from_json_dict, __pyx_t_2) < 0) __PYX_ERR(0, 900, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Ellipsoid);

  /* "pyproj/_crs.pyx":899
 *                 raise crs_err
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_json_dict(ellipsoid_dict):
 *         """
 */
  __Pyx_GetNameInClass(__pyx_t_2, (PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid, __pyx_n_s_from_json_dict); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 900, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 899, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid->tp_dict, __pyx_n_s_from_json_dict, __pyx_t_1) < 0) __PYX_ERR(0, 900, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Ellipsoid);

  /* "pyproj/_crs.pyx":918
 * 
 *     @staticmethod
 *     def from_json(ellipsoid_json_str):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_9Ellipsoid_15from_json, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 918, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid->tp_dict, __pyx_n_s_from_json, __pyx_t_1) < 0) __PYX_ERR(0, 918, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Ellipsoid);

  /* "pyproj/_crs.pyx":917
 *         return Ellipsoid._from_string(json.dumps(ellipsoid_dict))
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_json(ellipsoid_json_str):
 *         """
 */
  __Pyx_GetNameInClass(__pyx_t_1, (PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid, __pyx_n_s_from_json); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 918, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 917, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid->tp_dict, __pyx_n_s_from_json, __pyx_t_2) < 0) __PYX_ERR(0, 918, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Ellipsoid);

  /* "pyproj/_crs.pyx":936
 * 
 *     @staticmethod
 *     def _from_name(             # <<<<<<<<<<<<<<
 *         ellipsoid_name,
 *         auth_name,
 */
  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_9Ellipsoid_17_from_name, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 936, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid->tp_dict, __pyx_n_s_from_name_2, __pyx_t_2) < 0) __PYX_ERR(0, 936, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Ellipsoid);

  /* "pyproj/_crs.pyx":935
 *         return Ellipsoid.from_json_dict(_load_proj_json(ellipsoid_json_str))
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def _from_name(
 *         ellipsoid_name,
 */
  __Pyx_GetNameInClass(__pyx_t_2, (PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid, __pyx_n_s_from_name_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 936, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 935, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid->tp_dict, __pyx_n_s_from_name_2, __pyx_t_1) < 0) __PYX_ERR(0, 936, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Ellipsoid);

  /* "pyproj/_crs.pyx":976
 * 
 *     @staticmethod
 *     def from_name(             # <<<<<<<<<<<<<<
 *         ellipsoid_name,
 *         auth_name=None,
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_9Ellipsoid_19from_name, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 976, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid->tp_dict, __pyx_n_s_from_name, __pyx_t_1) < 0) __PYX_ERR(0, 976, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Ellipsoid);

  /* "pyproj/_crs.pyx":975
 *         return Ellipsoid.create(context, ellipsoid_pj)
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_name(
 *         ellipsoid_name,
 */
  __Pyx_GetNameInClass(__pyx_t_1, (PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid, __pyx_n_s_from_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 976, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 975, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Ellipsoid->tp_dict, __pyx_n_s_from_name, __pyx_t_2) < 0) __PYX_ERR(0, 976, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Ellipsoid);

  /* "pyproj/_crs.pyx":1066
 * 
 *     @staticmethod
 *     def from_authority(auth_name, code):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */
  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_13PrimeMeridian_5from_authority, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1066, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_PrimeMeridian->tp_dict, __pyx_n_s_from_authority, __pyx_t_2) < 0) __PYX_ERR(0, 1066, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_PrimeMeridian);

  /* "pyproj/_crs.pyx":1065
 *         return prime_meridian
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_authority(auth_name, code):
 *         """
 */
  __Pyx_GetNameInClass(__pyx_t_2, (PyObject *)__pyx_ptype_6pyproj_4_crs_PrimeMeridian, __pyx_n_s_from_authority); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1066, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1065, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_PrimeMeridian->tp_dict, __pyx_n_s_from_authority, __pyx_t_1) < 0) __PYX_ERR(0, 1066, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_PrimeMeridian);

  /* "pyproj/_crs.pyx":1104
 * 
 *     @staticmethod
 *     def from_epsg(code):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_13PrimeMeridian_7from_epsg, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1104, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_PrimeMeridian->tp_dict, __pyx_n_s_from_epsg, __pyx_t_1) < 0) __PYX_ERR(0, 1104, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_PrimeMeridian);

  /* "pyproj/_crs.pyx":1103
 *         return PrimeMeridian.create(context, prime_meridian_pj)
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_epsg(code):
 *         """
 */
  __Pyx_GetNameInClass(__pyx_t_1, (PyObject *)__pyx_ptype_6pyproj_4_crs_PrimeMeridian, __pyx_n_s_from_epsg); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1104, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1103, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_PrimeMeridian->tp_dict, __pyx_n_s_from_epsg, __pyx_t_2) < 0) __PYX_ERR(0, 1104, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_PrimeMeridian);

  /* "pyproj/_crs.pyx":1122
 * 
 *     @staticmethod
 *     def _from_string(prime_meridian_string):             # <<<<<<<<<<<<<<
 *         """
 *         Create an PrimeMeridian from a string.
 */
  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_13PrimeMeridian_9_from_string, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1122, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_PrimeMeridian->tp_dict, __pyx_n_s_from_string_2, __pyx_t_2) < 0) __PYX_ERR(0, 1122, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_PrimeMeridian);

  /* "pyproj/_crs.pyx":1121
 *         return PrimeMeridian.from_authority("EPSG", code)
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def _from_string(prime_meridian_string):
 *         """
 */
  __Pyx_GetNameInClass(__pyx_t_2, (PyObject *)__pyx_ptype_6pyproj_4_crs_PrimeMeridian, __pyx_n_s_from_string_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1122, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1121, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_PrimeMeridian->tp_dict, __pyx_n_s_from_string_2, __pyx_t_1) < 0) __PYX_ERR(0, 1122, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_PrimeMeridian);

  /* "pyproj/_crs.pyx":1162
 * 
 *     @staticmethod
 *     def from_string(prime_meridian_string):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.2.0
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_13PrimeMeridian_11from_string, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1162, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_PrimeMeridian->tp_dict, __pyx_n_s_from_string, __pyx_t_1) < 0) __PYX_ERR(0, 1162, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_PrimeMeridian);

  /* "pyproj/_crs.pyx":1161
 *         return PrimeMeridian.create(context, prime_meridian_pj)
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_string(prime_meridian_string):
 *         """
 */
  __Pyx_GetNameInClass(__pyx_t_1, (PyObject *)__pyx_ptype_6pyproj_4_crs_PrimeMeridian, __pyx_n_s_from_string); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1162, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1161, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_PrimeMeridian->tp_dict, __pyx_n_s_from_string, __pyx_t_2) < 0) __PYX_ERR(0, 1162, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_PrimeMeridian);

  /* "pyproj/_crs.pyx":1193
 * 
 *     @staticmethod
 *     def from_json_dict(prime_meridian_dict):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */
  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_13PrimeMeridian_13from_json_dict, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1193, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_PrimeMeridian->tp_dict, __pyx_n_s_from_json_dict, __pyx_t_2) < 0) __PYX_ERR(0, 1193, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_PrimeMeridian);

  /* "pyproj/_crs.pyx":1192
 *                 raise crs_err
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_json_dict(prime_meridian_dict):
 *         """
 */
  __Pyx_GetNameInClass(__pyx_t_2, (PyObject *)__pyx_ptype_6pyproj_4_crs_PrimeMeridian, __pyx_n_s_from_json_dict); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1193, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1192, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_PrimeMeridian->tp_dict, __pyx_n_s_from_json_dict, __pyx_t_1) < 0) __PYX_ERR(0, 1193, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_PrimeMeridian);

  /* "pyproj/_crs.pyx":1211
 * 
 *     @staticmethod
 *     def from_json(prime_meridian_json_str):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_13PrimeMeridian_15from_json, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1211, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_PrimeMeridian->tp_dict, __pyx_n_s_from_json, __pyx_t_1) < 0) __PYX_ERR(0, 1211, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_PrimeMeridian);

  /* "pyproj/_crs.pyx":1210
 *         return PrimeMeridian._from_string(json.dumps(prime_meridian_dict))
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_json(prime_meridian_json_str):
 *         """
 */
  __Pyx_GetNameInClass(__pyx_t_1, (PyObject *)__pyx_ptype_6pyproj_4_crs_PrimeMeridian, __pyx_n_s_from_json); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1211, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1210, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_PrimeMeridian->tp_dict, __pyx_n_s_from_json, __pyx_t_2) < 0) __PYX_ERR(0, 1211, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_PrimeMeridian);

  /* "pyproj/_crs.pyx":1229
 * 
 *     @staticmethod
 *     def from_name(             # <<<<<<<<<<<<<<
 *         prime_meridian_name,
 *         auth_name=None,
 */
  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_13PrimeMeridian_17from_name, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1229, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_PrimeMeridian->tp_dict, __pyx_n_s_from_name, __pyx_t_2) < 0) __PYX_ERR(0, 1229, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_PrimeMeridian);

  /* "pyproj/_crs.pyx":1228
 *         return PrimeMeridian.from_json_dict(_load_proj_json(prime_meridian_json_str))
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_name(
 *         prime_meridian_name,
 */
  __Pyx_GetNameInClass(__pyx_t_2, (PyObject *)__pyx_ptype_6pyproj_4_crs_PrimeMeridian, __pyx_n_s_from_name); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1229, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_PrimeMeridian->tp_dict, __pyx_n_s_from_name, __pyx_t_1) < 0) __PYX_ERR(0, 1229, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_PrimeMeridian);

  /* "pyproj/_crs.pyx":1273
 * 
 * _DATUM_TYPE_MAP = {
 *     PJ_TYPE_GEODETIC_REFERENCE_FRAME: "Geodetic Reference Frame",             # <<<<<<<<<<<<<<
 *     PJ_TYPE_DYNAMIC_GEODETIC_REFERENCE_FRAME: "Dynamic Geodetic Reference Frame",
 *     PJ_TYPE_VERTICAL_REFERENCE_FRAME: "Vertical Reference Frame",
 */
  __pyx_t_1 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1273, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_GEODETIC_REFERENCE_FRAME); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1273, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_kp_u_Geodetic_Reference_Frame) < 0) __PYX_ERR(0, 1273, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":1274
 * _DATUM_TYPE_MAP = {
 *     PJ_TYPE_GEODETIC_REFERENCE_FRAME: "Geodetic Reference Frame",
 *     PJ_TYPE_DYNAMIC_GEODETIC_REFERENCE_FRAME: "Dynamic Geodetic Reference Frame",             # <<<<<<<<<<<<<<
 *     PJ_TYPE_VERTICAL_REFERENCE_FRAME: "Vertical Reference Frame",
 *     PJ_TYPE_DYNAMIC_VERTICAL_REFERENCE_FRAME: "Dynamic Vertical Reference Frame",
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_DYNAMIC_GEODETIC_REFERENCE_FRAME); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1274, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_kp_u_Dynamic_Geodetic_Reference_Frame) < 0) __PYX_ERR(0, 1273, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":1275
 *     PJ_TYPE_GEODETIC_REFERENCE_FRAME: "Geodetic Reference Frame",
 *     PJ_TYPE_DYNAMIC_GEODETIC_REFERENCE_FRAME: "Dynamic Geodetic Reference Frame",
 *     PJ_TYPE_VERTICAL_REFERENCE_FRAME: "Vertical Reference Frame",             # <<<<<<<<<<<<<<
 *     PJ_TYPE_DYNAMIC_VERTICAL_REFERENCE_FRAME: "Dynamic Vertical Reference Frame",
 *     PJ_TYPE_DATUM_ENSEMBLE: "Datum Ensemble",
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_VERTICAL_REFERENCE_FRAME); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_kp_u_Vertical_Reference_Frame) < 0) __PYX_ERR(0, 1273, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":1276
 *     PJ_TYPE_DYNAMIC_GEODETIC_REFERENCE_FRAME: "Dynamic Geodetic Reference Frame",
 *     PJ_TYPE_VERTICAL_REFERENCE_FRAME: "Vertical Reference Frame",
 *     PJ_TYPE_DYNAMIC_VERTICAL_REFERENCE_FRAME: "Dynamic Vertical Reference Frame",             # <<<<<<<<<<<<<<
 *     PJ_TYPE_DATUM_ENSEMBLE: "Datum Ensemble",
 * }
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_DYNAMIC_VERTICAL_REFERENCE_FRAME); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1276, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_kp_u_Dynamic_Vertical_Reference_Frame) < 0) __PYX_ERR(0, 1273, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":1277
 *     PJ_TYPE_VERTICAL_REFERENCE_FRAME: "Vertical Reference Frame",
 *     PJ_TYPE_DYNAMIC_VERTICAL_REFERENCE_FRAME: "Dynamic Vertical Reference Frame",
 *     PJ_TYPE_DATUM_ENSEMBLE: "Datum Ensemble",             # <<<<<<<<<<<<<<
 * }
 * 
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_DATUM_ENSEMBLE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_kp_u_Datum_Ensemble) < 0) __PYX_ERR(0, 1273, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_DATUM_TYPE_MAP, __pyx_t_1) < 0) __PYX_ERR(0, 1272, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1281
 * 
 * _PJ_DATUM_TYPE_MAP = {
 *     DatumType.GEODETIC_REFERENCE_FRAME: PJ_TYPE_GEODETIC_REFERENCE_FRAME,             # <<<<<<<<<<<<<<
 *     DatumType.DYNAMIC_GEODETIC_REFERENCE_FRAME:
 *     PJ_TYPE_DYNAMIC_GEODETIC_REFERENCE_FRAME,
 */
  __pyx_t_1 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1281, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_DatumType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1281, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_GEODETIC_REFERENCE_FRAME); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1281, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_GEODETIC_REFERENCE_FRAME); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1281, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_6, __pyx_t_2) < 0) __PYX_ERR(0, 1281, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":1282
 * _PJ_DATUM_TYPE_MAP = {
 *     DatumType.GEODETIC_REFERENCE_FRAME: PJ_TYPE_GEODETIC_REFERENCE_FRAME,
 *     DatumType.DYNAMIC_GEODETIC_REFERENCE_FRAME:             # <<<<<<<<<<<<<<
 *     PJ_TYPE_DYNAMIC_GEODETIC_REFERENCE_FRAME,
 *     DatumType.VERTICAL_REFERENCE_FRAME: PJ_TYPE_VERTICAL_REFERENCE_FRAME,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_DatumType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1282, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_DYNAMIC_GEODETIC_REFERENCE_FRAME); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1282, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":1283
 *     DatumType.GEODETIC_REFERENCE_FRAME: PJ_TYPE_GEODETIC_REFERENCE_FRAME,
 *     DatumType.DYNAMIC_GEODETIC_REFERENCE_FRAME:
 *     PJ_TYPE_DYNAMIC_GEODETIC_REFERENCE_FRAME,             # <<<<<<<<<<<<<<
 *     DatumType.VERTICAL_REFERENCE_FRAME: PJ_TYPE_VERTICAL_REFERENCE_FRAME,
 *     DatumType.DYNAMIC_VERTICAL_REFERENCE_FRAME:
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_DYNAMIC_GEODETIC_REFERENCE_FRAME); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1283, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_6, __pyx_t_2) < 0) __PYX_ERR(0, 1281, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":1284
 *     DatumType.DYNAMIC_GEODETIC_REFERENCE_FRAME:
 *     PJ_TYPE_DYNAMIC_GEODETIC_REFERENCE_FRAME,
 *     DatumType.VERTICAL_REFERENCE_FRAME: PJ_TYPE_VERTICAL_REFERENCE_FRAME,             # <<<<<<<<<<<<<<
 *     DatumType.DYNAMIC_VERTICAL_REFERENCE_FRAME:
 *     PJ_TYPE_DYNAMIC_VERTICAL_REFERENCE_FRAME,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_DatumType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1284, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_VERTICAL_REFERENCE_FRAME); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1284, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_VERTICAL_REFERENCE_FRAME); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1284, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_6, __pyx_t_2) < 0) __PYX_ERR(0, 1281, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":1285
 *     PJ_TYPE_DYNAMIC_GEODETIC_REFERENCE_FRAME,
 *     DatumType.VERTICAL_REFERENCE_FRAME: PJ_TYPE_VERTICAL_REFERENCE_FRAME,
 *     DatumType.DYNAMIC_VERTICAL_REFERENCE_FRAME:             # <<<<<<<<<<<<<<
 *     PJ_TYPE_DYNAMIC_VERTICAL_REFERENCE_FRAME,
 *     DatumType.DATUM_ENSEMBLE: PJ_TYPE_DATUM_ENSEMBLE,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_DatumType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1285, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_DYNAMIC_VERTICAL_REFERENCE_FRAME); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1285, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":1286
 *     DatumType.VERTICAL_REFERENCE_FRAME: PJ_TYPE_VERTICAL_REFERENCE_FRAME,
 *     DatumType.DYNAMIC_VERTICAL_REFERENCE_FRAME:
 *     PJ_TYPE_DYNAMIC_VERTICAL_REFERENCE_FRAME,             # <<<<<<<<<<<<<<
 *     DatumType.DATUM_ENSEMBLE: PJ_TYPE_DATUM_ENSEMBLE,
 * }
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_DYNAMIC_VERTICAL_REFERENCE_FRAME); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1286, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_6, __pyx_t_2) < 0) __PYX_ERR(0, 1281, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":1287
 *     DatumType.DYNAMIC_VERTICAL_REFERENCE_FRAME:
 *     PJ_TYPE_DYNAMIC_VERTICAL_REFERENCE_FRAME,
 *     DatumType.DATUM_ENSEMBLE: PJ_TYPE_DATUM_ENSEMBLE,             # <<<<<<<<<<<<<<
 * }
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_DatumType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1287, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_DATUM_ENSEMBLE); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1287, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_DATUM_ENSEMBLE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1287, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_6, __pyx_t_2) < 0) __PYX_ERR(0, 1281, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_PJ_DATUM_TYPE_MAP, __pyx_t_1) < 0) __PYX_ERR(0, 1280, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1291
 * 
 * _DATUM_NAME_MAP = {
 *     "WGS84": "World Geodetic System 1984",             # <<<<<<<<<<<<<<
 *     "GGRS87": "Greek Geodetic Reference System 1987",
 *     "NAD83": "North American Datum 1983",
 */
  __pyx_t_1 = __Pyx_PyDict_NewPresized(10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1291, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_WGS84, __pyx_kp_u_World_Geodetic_System_1984) < 0) __PYX_ERR(0, 1291, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_GGRS87, __pyx_kp_u_Greek_Geodetic_Reference_System) < 0) __PYX_ERR(0, 1291, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_NAD83, __pyx_kp_u_North_American_Datum_1983) < 0) __PYX_ERR(0, 1291, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_NAD27, __pyx_kp_u_North_American_Datum_1927) < 0) __PYX_ERR(0, 1291, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_POTSDAM, __pyx_kp_u_Deutsches_Hauptdreiecksnetz) < 0) __PYX_ERR(0, 1291, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_CARTHAGE, __pyx_n_u_Carthage) < 0) __PYX_ERR(0, 1291, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_HERMANNSKOGEL, __pyx_kp_u_Militar_Geographische_Institut) < 0) __PYX_ERR(0, 1291, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_IRE65, __pyx_n_u_TM65) < 0) __PYX_ERR(0, 1291, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_NZGD49, __pyx_kp_u_New_Zealand_Geodetic_Datum_1949) < 0) __PYX_ERR(0, 1291, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_OSGB36, __pyx_kp_u_OSGB_1936) < 0) __PYX_ERR(0, 1291, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_DATUM_NAME_MAP, __pyx_t_1) < 0) __PYX_ERR(0, 1290, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1335
 * 
 *     @staticmethod
 *     def from_authority(auth_name, code):             # <<<<<<<<<<<<<<
 *         """
 *         Create a Datum from an authority code.
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_5Datum_5from_authority, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1335, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Datum->tp_dict, __pyx_n_s_from_authority, __pyx_t_1) < 0) __PYX_ERR(0, 1335, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Datum);

  /* "pyproj/_crs.pyx":1334
 *         return datum
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_authority(auth_name, code):
 *         """
 */
  __Pyx_GetNameInClass(__pyx_t_1, (PyObject *)__pyx_ptype_6pyproj_4_crs_Datum, __pyx_n_s_from_authority); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1335, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1334, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Datum->tp_dict, __pyx_n_s_from_authority, __pyx_t_2) < 0) __PYX_ERR(0, 1335, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Datum);

  /* "pyproj/_crs.pyx":1371
 * 
 *     @staticmethod
 *     def from_epsg(code):             # <<<<<<<<<<<<<<
 *         """
 *         Create a Datum from an EPSG code.
 */
  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_5Datum_7from_epsg, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1371, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Datum->tp_dict, __pyx_n_s_from_epsg, __pyx_t_2) < 0) __PYX_ERR(0, 1371, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Datum);

  /* "pyproj/_crs.pyx":1370
 *         return Datum.create(context, datum_pj)
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_epsg(code):
 *         """
 */
  __Pyx_GetNameInClass(__pyx_t_2, (PyObject *)__pyx_ptype_6pyproj_4_crs_Datum, __pyx_n_s_from_epsg); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1371, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1370, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Datum->tp_dict, __pyx_n_s_from_epsg, __pyx_t_1) < 0) __PYX_ERR(0, 1371, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Datum);

  /* "pyproj/_crs.pyx":1387
 * 
 *     @staticmethod
 *     def _from_string(datum_string):             # <<<<<<<<<<<<<<
 *         """
 *         Create a Datum from a string.
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_5Datum_9_from_string, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1387, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Datum->tp_dict, __pyx_n_s_from_string_2, __pyx_t_1) < 0) __PYX_ERR(0, 1387, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Datum);

  /* "pyproj/_crs.pyx":1386
 *         return Datum.from_authority("EPSG", code)
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def _from_string(datum_string):
 *         """
 */
  __Pyx_GetNameInClass(__pyx_t_1, (PyObject *)__pyx_ptype_6pyproj_4_crs_Datum, __pyx_n_s_from_string_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1387, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1386, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Datum->tp_dict, __pyx_n_s_from_string_2, __pyx_t_2) < 0) __PYX_ERR(0, 1387, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Datum);

  /* "pyproj/_crs.pyx":1434
 * 
 *     @staticmethod
 *     def from_string(datum_string):             # <<<<<<<<<<<<<<
 *         """
 *         Create a Datum from a string.
 */
  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_5Datum_11from_string, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1434, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Datum->tp_dict, __pyx_n_s_from_string, __pyx_t_2) < 0) __PYX_ERR(0, 1434, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Datum);

  /* "pyproj/_crs.pyx":1433
 *         return Datum.create(context, datum_pj)
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_string(datum_string):
 *         """
 */
  __Pyx_GetNameInClass(__pyx_t_2, (PyObject *)__pyx_ptype_6pyproj_4_crs_Datum, __pyx_n_s_from_string); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1434, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1433, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Datum->tp_dict, __pyx_n_s_from_string, __pyx_t_1) < 0) __PYX_ERR(0, 1434, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Datum);

  /* "pyproj/_crs.pyx":1464
 * 
 *     @staticmethod
 *     def _from_name(             # <<<<<<<<<<<<<<
 *         datum_name,
 *         auth_name,
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_5Datum_13_from_name, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1464, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Datum->tp_dict, __pyx_n_s_from_name_2, __pyx_t_1) < 0) __PYX_ERR(0, 1464, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Datum);

  /* "pyproj/_crs.pyx":1463
 *                 raise crs_err
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def _from_name(
 *         datum_name,
 */
  __Pyx_GetNameInClass(__pyx_t_1, (PyObject *)__pyx_ptype_6pyproj_4_crs_Datum, __pyx_n_s_from_name_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1464, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1463, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Datum->tp_dict, __pyx_n_s_from_name_2, __pyx_t_2) < 0) __PYX_ERR(0, 1464, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Datum);

  /* "pyproj/_crs.pyx":1511
 *         datum_name,
 *         auth_name=None,
 *         datum_type=DatumType.GEODETIC_REFERENCE_FRAME,             # <<<<<<<<<<<<<<
 *     ):
 *         """
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_DatumType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1511, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_GEODETIC_REFERENCE_FRAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1511, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_k__22 = __pyx_t_1;
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1508
 * 
 *     @staticmethod
 *     def from_name(             # <<<<<<<<<<<<<<
 *         datum_name,
 *         auth_name=None,
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_5Datum_15from_name, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1508, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Datum->tp_dict, __pyx_n_s_from_name, __pyx_t_1) < 0) __PYX_ERR(0, 1508, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Datum);

  /* "pyproj/_crs.pyx":1507
 *         return Datum.create(context, datum_pj)
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_name(
 *         datum_name,
 */
  __Pyx_GetNameInClass(__pyx_t_1, (PyObject *)__pyx_ptype_6pyproj_4_crs_Datum, __pyx_n_s_from_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1508, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1507, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Datum->tp_dict, __pyx_n_s_from_name, __pyx_t_2) < 0) __PYX_ERR(0, 1508, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Datum);

  /* "pyproj/_crs.pyx":1565
 * 
 *     @staticmethod
 *     def from_json_dict(datum_dict):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */
  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_5Datum_17from_json_dict, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Datum->tp_dict, __pyx_n_s_from_json_dict, __pyx_t_2) < 0) __PYX_ERR(0, 1565, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Datum);

  /* "pyproj/_crs.pyx":1564
 *         )
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_json_dict(datum_dict):
 *         """
 */
  __Pyx_GetNameInClass(__pyx_t_2, (PyObject *)__pyx_ptype_6pyproj_4_crs_Datum, __pyx_n_s_from_json_dict); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Datum->tp_dict, __pyx_n_s_from_json_dict, __pyx_t_1) < 0) __PYX_ERR(0, 1565, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Datum);

  /* "pyproj/_crs.pyx":1583
 * 
 *     @staticmethod
 *     def from_json(datum_json_str):             # <<<<<<<<<<<<<<
 *         """
 *         .. versionadded:: 2.4.0
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_5Datum_19from_json, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1583, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Datum->tp_dict, __pyx_n_s_from_json, __pyx_t_1) < 0) __PYX_ERR(0, 1583, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Datum);

  /* "pyproj/_crs.pyx":1582
 *         return Datum._from_string(json.dumps(datum_dict))
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_json(datum_json_str):
 *         """
 */
  __Pyx_GetNameInClass(__pyx_t_1, (PyObject *)__pyx_ptype_6pyproj_4_crs_Datum, __pyx_n_s_from_json); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1583, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1582, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_Datum->tp_dict, __pyx_n_s_from_json, __pyx_t_2) < 0) __PYX_ERR(0, 1583, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_Datum);

  /* "pyproj/_crs.pyx":1834
 * 
 * _COORDINATE_OPERATION_TYPE_MAP = {
 *     PJ_TYPE_UNKNOWN: "Unknown",             # <<<<<<<<<<<<<<
 *     PJ_TYPE_CONVERSION: "Conversion",
 *     PJ_TYPE_TRANSFORMATION: "Transformation",
 */
  __pyx_t_2 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1834, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_UNKNOWN); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1834, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_1, __pyx_n_u_Unknown) < 0) __PYX_ERR(0, 1834, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1835
 * _COORDINATE_OPERATION_TYPE_MAP = {
 *     PJ_TYPE_UNKNOWN: "Unknown",
 *     PJ_TYPE_CONVERSION: "Conversion",             # <<<<<<<<<<<<<<
 *     PJ_TYPE_TRANSFORMATION: "Transformation",
 *     PJ_TYPE_CONCATENATED_OPERATION: "Concatenated Operation",
 */
  __pyx_t_1 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_CONVERSION); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1835, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_1, __pyx_n_u_Conversion) < 0) __PYX_ERR(0, 1834, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1836
 *     PJ_TYPE_UNKNOWN: "Unknown",
 *     PJ_TYPE_CONVERSION: "Conversion",
 *     PJ_TYPE_TRANSFORMATION: "Transformation",             # <<<<<<<<<<<<<<
 *     PJ_TYPE_CONCATENATED_OPERATION: "Concatenated Operation",
 *     PJ_TYPE_OTHER_COORDINATE_OPERATION: "Other Coordinate Operation",
 */
  __pyx_t_1 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_TRANSFORMATION); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1836, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_1, __pyx_n_u_Transformation) < 0) __PYX_ERR(0, 1834, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1837
 *     PJ_TYPE_CONVERSION: "Conversion",
 *     PJ_TYPE_TRANSFORMATION: "Transformation",
 *     PJ_TYPE_CONCATENATED_OPERATION: "Concatenated Operation",             # <<<<<<<<<<<<<<
 *     PJ_TYPE_OTHER_COORDINATE_OPERATION: "Other Coordinate Operation",
 * }
 */
  __pyx_t_1 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_CONCATENATED_OPERATION); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1837, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_1, __pyx_kp_u_Concatenated_Operation) < 0) __PYX_ERR(0, 1834, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1838
 *     PJ_TYPE_TRANSFORMATION: "Transformation",
 *     PJ_TYPE_CONCATENATED_OPERATION: "Concatenated Operation",
 *     PJ_TYPE_OTHER_COORDINATE_OPERATION: "Other Coordinate Operation",             # <<<<<<<<<<<<<<
 * }
 * 
 */
  __pyx_t_1 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_OTHER_COORDINATE_OPERATION); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1838, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_1, __pyx_kp_u_Other_Coordinate_Operation) < 0) __PYX_ERR(0, 1834, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_COORDINATE_OPERATION_TYPE_MAP, __pyx_t_2) < 0) __PYX_ERR(0, 1833, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":1842
 * 
 * _PJ_COORDINATE_OPERATION_TYPE_MAP = {
 *     CoordinateOperationType.CONVERSION: PJ_TYPE_CONVERSION,             # <<<<<<<<<<<<<<
 *     CoordinateOperationType.TRANSFORMATION: PJ_TYPE_TRANSFORMATION,
 *     CoordinateOperationType.CONCATENATED_OPERATION: PJ_TYPE_CONCATENATED_OPERATION,
 */
  __pyx_t_2 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1842, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_CoordinateOperationType); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1842, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_CONVERSION); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1842, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_CONVERSION); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1842, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_6, __pyx_t_1) < 0) __PYX_ERR(0, 1842, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1843
 * _PJ_COORDINATE_OPERATION_TYPE_MAP = {
 *     CoordinateOperationType.CONVERSION: PJ_TYPE_CONVERSION,
 *     CoordinateOperationType.TRANSFORMATION: PJ_TYPE_TRANSFORMATION,             # <<<<<<<<<<<<<<
 *     CoordinateOperationType.CONCATENATED_OPERATION: PJ_TYPE_CONCATENATED_OPERATION,
 *     CoordinateOperationType.OTHER_COORDINATE_OPERATION:
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_CoordinateOperationType); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1843, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_TRANSFORMATION); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1843, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_TRANSFORMATION); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1843, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_6, __pyx_t_1) < 0) __PYX_ERR(0, 1842, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1844
 *     CoordinateOperationType.CONVERSION: PJ_TYPE_CONVERSION,
 *     CoordinateOperationType.TRANSFORMATION: PJ_TYPE_TRANSFORMATION,
 *     CoordinateOperationType.CONCATENATED_OPERATION: PJ_TYPE_CONCATENATED_OPERATION,             # <<<<<<<<<<<<<<
 *     CoordinateOperationType.OTHER_COORDINATE_OPERATION:
 *     PJ_TYPE_OTHER_COORDINATE_OPERATION,
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_CoordinateOperationType); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1844, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_CONCATENATED_OPERATION); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1844, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_CONCATENATED_OPERATION); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1844, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_6, __pyx_t_1) < 0) __PYX_ERR(0, 1842, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1845
 *     CoordinateOperationType.TRANSFORMATION: PJ_TYPE_TRANSFORMATION,
 *     CoordinateOperationType.CONCATENATED_OPERATION: PJ_TYPE_CONCATENATED_OPERATION,
 *     CoordinateOperationType.OTHER_COORDINATE_OPERATION:             # <<<<<<<<<<<<<<
 *     PJ_TYPE_OTHER_COORDINATE_OPERATION,
 * }
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_CoordinateOperationType); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1845, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_OTHER_COORDINATE_OPERATION); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1845, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":1846
 *     CoordinateOperationType.CONCATENATED_OPERATION: PJ_TYPE_CONCATENATED_OPERATION,
 *     CoordinateOperationType.OTHER_COORDINATE_OPERATION:
 *     PJ_TYPE_OTHER_COORDINATE_OPERATION,             # <<<<<<<<<<<<<<
 * }
 * 
 */
  __pyx_t_1 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_OTHER_COORDINATE_OPERATION); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1846, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_6, __pyx_t_1) < 0) __PYX_ERR(0, 1842, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_PJ_COORDINATE_OPERATION_TYPE_MA, __pyx_t_2) < 0) __PYX_ERR(0, 1841, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":1934
 * 
 *     @staticmethod
 *     def from_authority(auth_name, code, use_proj_alternative_grid_names=False):             # <<<<<<<<<<<<<<
 *         """
 *         Create a CoordinateOperation from an authority code.
 */
  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_19CoordinateOperation_5from_authority, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1934, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateOperation->tp_dict, __pyx_n_s_from_authority, __pyx_t_2) < 0) __PYX_ERR(0, 1934, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_CoordinateOperation);

  /* "pyproj/_crs.pyx":1933
 *         return coord_operation
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_authority(auth_name, code, use_proj_alternative_grid_names=False):
 *         """
 */
  __Pyx_GetNameInClass(__pyx_t_2, (PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateOperation, __pyx_n_s_from_authority); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1934, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1933, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateOperation->tp_dict, __pyx_n_s_from_authority, __pyx_t_1) < 0) __PYX_ERR(0, 1934, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_CoordinateOperation);

  /* "pyproj/_crs.pyx":1972
 * 
 *     @staticmethod
 *     def from_epsg(code, use_proj_alternative_grid_names=False):             # <<<<<<<<<<<<<<
 *         """
 *         Create a CoordinateOperation from an EPSG code.
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_19CoordinateOperation_7from_epsg, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1972, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateOperation->tp_dict, __pyx_n_s_from_epsg, __pyx_t_1) < 0) __PYX_ERR(0, 1972, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_CoordinateOperation);

  /* "pyproj/_crs.pyx":1971
 *         return CoordinateOperation.create(context, coord_operation_pj)
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_epsg(code, use_proj_alternative_grid_names=False):
 *         """
 */
  __Pyx_GetNameInClass(__pyx_t_1, (PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateOperation, __pyx_n_s_from_epsg); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1972, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1971, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateOperation->tp_dict, __pyx_n_s_from_epsg, __pyx_t_2) < 0) __PYX_ERR(0, 1972, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_CoordinateOperation);

  /* "pyproj/_crs.pyx":1992
 * 
 *     @staticmethod
 *     def _from_string(coordinate_operation_string):             # <<<<<<<<<<<<<<
 *         """
 *         Create a CoordinateOperation from a string.
 */
  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_19CoordinateOperation_9_from_string, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1992, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateOperation->tp_dict, __pyx_n_s_from_string_2, __pyx_t_2) < 0) __PYX_ERR(0, 1992, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_CoordinateOperation);

  /* "pyproj/_crs.pyx":1991
 *         )
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def _from_string(coordinate_operation_string):
 *         """
 */
  __Pyx_GetNameInClass(__pyx_t_2, (PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateOperation, __pyx_n_s_from_string_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1992, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1991, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateOperation->tp_dict, __pyx_n_s_from_string_2, __pyx_t_1) < 0) __PYX_ERR(0, 1992, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_CoordinateOperation);

  /* "pyproj/_crs.pyx":2034
 * 
 *     @staticmethod
 *     def from_string(coordinate_operation_string):             # <<<<<<<<<<<<<<
 *         """
 *         Create a CoordinateOperation from a string.
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_19CoordinateOperation_11from_string, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2034, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateOperation->tp_dict, __pyx_n_s_from_string, __pyx_t_1) < 0) __PYX_ERR(0, 2034, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_CoordinateOperation);

  /* "pyproj/_crs.pyx":2033
 *         return CoordinateOperation.create(context, coord_operation_pj)
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_string(coordinate_operation_string):
 *         """
 */
  __Pyx_GetNameInClass(__pyx_t_1, (PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateOperation, __pyx_n_s_from_string); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2034, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2033, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateOperation->tp_dict, __pyx_n_s_from_string, __pyx_t_2) < 0) __PYX_ERR(0, 2034, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_CoordinateOperation);

  /* "pyproj/_crs.pyx":2061
 * 
 *     @staticmethod
 *     def from_json_dict(coordinate_operation_dict):             # <<<<<<<<<<<<<<
 *         """
 *         Create CoordinateOperation from a JSON dictionary.
 */
  __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_19CoordinateOperation_13from_json_dict, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2061, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateOperation->tp_dict, __pyx_n_s_from_json_dict, __pyx_t_2) < 0) __PYX_ERR(0, 2061, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_CoordinateOperation);

  /* "pyproj/_crs.pyx":2060
 *                 raise crs_err
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_json_dict(coordinate_operation_dict):
 *         """
 */
  __Pyx_GetNameInClass(__pyx_t_2, (PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateOperation, __pyx_n_s_from_json_dict); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2061, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2060, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateOperation->tp_dict, __pyx_n_s_from_json_dict, __pyx_t_1) < 0) __PYX_ERR(0, 2061, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_CoordinateOperation);

  /* "pyproj/_crs.pyx":2079
 * 
 *     @staticmethod
 *     def from_json(coordinate_operation_json_str):             # <<<<<<<<<<<<<<
 *         """
 *         Create CoordinateOperation from a JSON string.
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_19CoordinateOperation_15from_json, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2079, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateOperation->tp_dict, __pyx_n_s_from_json, __pyx_t_1) < 0) __PYX_ERR(0, 2079, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_CoordinateOperation);

  /* "pyproj/_crs.pyx":2078
 *         return CoordinateOperation._from_string(json.dumps(coordinate_operation_dict))
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_json(coordinate_operation_json_str):
 *         """
 */
  __Pyx_GetNameInClass(__pyx_t_1, (PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateOperation, __pyx_n_s_from_json); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2079, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2078, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateOperation->tp_dict, __pyx_n_s_from_json, __pyx_t_2) < 0) __PYX_ERR(0, 2079, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_CoordinateOperation);

  /* "pyproj/_crs.pyx":2102
 *         coordinate_operation_name,
 *         auth_name=None,
 *         coordinate_operation_type=CoordinateOperationType.CONVERSION,             # <<<<<<<<<<<<<<
 *     ):
 *         """
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_CoordinateOperationType); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2102, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_CONVERSION); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2102, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_k__33 = __pyx_t_1;
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":2099
 * 
 *     @staticmethod
 *     def from_name(             # <<<<<<<<<<<<<<
 *         coordinate_operation_name,
 *         auth_name=None,
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6pyproj_4_crs_19CoordinateOperation_17from_name, NULL, __pyx_n_s_pyproj__crs); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2099, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateOperation->tp_dict, __pyx_n_s_from_name, __pyx_t_1) < 0) __PYX_ERR(0, 2099, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_CoordinateOperation);

  /* "pyproj/_crs.pyx":2098
 *         ))
 * 
 *     @staticmethod             # <<<<<<<<<<<<<<
 *     def from_name(
 *         coordinate_operation_name,
 */
  __Pyx_GetNameInClass(__pyx_t_1, (PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateOperation, __pyx_n_s_from_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2099, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2098, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyDict_SetItem((PyObject *)__pyx_ptype_6pyproj_4_crs_CoordinateOperation->tp_dict, __pyx_n_s_from_name, __pyx_t_2) < 0) __PYX_ERR(0, 2099, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  PyType_Modified(__pyx_ptype_6pyproj_4_crs_CoordinateOperation);

  /* "pyproj/_crs.pyx":2215
 *         return self._area_of_use
 * 
 *     def to_proj4(self, version=ProjVersion.PROJ_5):             # <<<<<<<<<<<<<<
 *         """
 *         Convert the projection to a PROJ string.
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ProjVersion); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2215, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_PROJ_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2215, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_k__34 = __pyx_t_1;
  __Pyx_GIVEREF(__pyx_t_1);
  __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":2292
 * 
 * _CRS_TYPE_MAP = {
 *     PJ_TYPE_UNKNOWN: "Unknown CRS",             # <<<<<<<<<<<<<<
 *     PJ_TYPE_CRS: "CRS",
 *     PJ_TYPE_GEODETIC_CRS: "Geodetic CRS",
 */
  __pyx_t_1 = __Pyx_PyDict_NewPresized(14); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2292, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_UNKNOWN); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2292, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_kp_u_Unknown_CRS) < 0) __PYX_ERR(0, 2292, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":2293
 * _CRS_TYPE_MAP = {
 *     PJ_TYPE_UNKNOWN: "Unknown CRS",
 *     PJ_TYPE_CRS: "CRS",             # <<<<<<<<<<<<<<
 *     PJ_TYPE_GEODETIC_CRS: "Geodetic CRS",
 *     PJ_TYPE_GEOCENTRIC_CRS: "Geocentric CRS",
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_CRS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2293, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_n_u_CRS_2) < 0) __PYX_ERR(0, 2292, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":2294
 *     PJ_TYPE_UNKNOWN: "Unknown CRS",
 *     PJ_TYPE_CRS: "CRS",
 *     PJ_TYPE_GEODETIC_CRS: "Geodetic CRS",             # <<<<<<<<<<<<<<
 *     PJ_TYPE_GEOCENTRIC_CRS: "Geocentric CRS",
 *     PJ_TYPE_GEOGRAPHIC_CRS: "Geographic CRS",
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_GEODETIC_CRS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2294, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_kp_u_Geodetic_CRS) < 0) __PYX_ERR(0, 2292, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":2295
 *     PJ_TYPE_CRS: "CRS",
 *     PJ_TYPE_GEODETIC_CRS: "Geodetic CRS",
 *     PJ_TYPE_GEOCENTRIC_CRS: "Geocentric CRS",             # <<<<<<<<<<<<<<
 *     PJ_TYPE_GEOGRAPHIC_CRS: "Geographic CRS",
 *     PJ_TYPE_GEOGRAPHIC_2D_CRS: "Geographic 2D CRS",
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_GEOCENTRIC_CRS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2295, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_kp_u_Geocentric_CRS) < 0) __PYX_ERR(0, 2292, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":2296
 *     PJ_TYPE_GEODETIC_CRS: "Geodetic CRS",
 *     PJ_TYPE_GEOCENTRIC_CRS: "Geocentric CRS",
 *     PJ_TYPE_GEOGRAPHIC_CRS: "Geographic CRS",             # <<<<<<<<<<<<<<
 *     PJ_TYPE_GEOGRAPHIC_2D_CRS: "Geographic 2D CRS",
 *     PJ_TYPE_GEOGRAPHIC_3D_CRS: "Geographic 3D CRS",
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_GEOGRAPHIC_CRS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2296, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_kp_u_Geographic_CRS) < 0) __PYX_ERR(0, 2292, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":2297
 *     PJ_TYPE_GEOCENTRIC_CRS: "Geocentric CRS",
 *     PJ_TYPE_GEOGRAPHIC_CRS: "Geographic CRS",
 *     PJ_TYPE_GEOGRAPHIC_2D_CRS: "Geographic 2D CRS",             # <<<<<<<<<<<<<<
 *     PJ_TYPE_GEOGRAPHIC_3D_CRS: "Geographic 3D CRS",
 *     PJ_TYPE_VERTICAL_CRS: "Vertical CRS",
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_GEOGRAPHIC_2D_CRS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2297, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_kp_u_Geographic_2D_CRS) < 0) __PYX_ERR(0, 2292, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":2298
 *     PJ_TYPE_GEOGRAPHIC_CRS: "Geographic CRS",
 *     PJ_TYPE_GEOGRAPHIC_2D_CRS: "Geographic 2D CRS",
 *     PJ_TYPE_GEOGRAPHIC_3D_CRS: "Geographic 3D CRS",             # <<<<<<<<<<<<<<
 *     PJ_TYPE_VERTICAL_CRS: "Vertical CRS",
 *     PJ_TYPE_PROJECTED_CRS: "Projected CRS",
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_GEOGRAPHIC_3D_CRS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2298, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_kp_u_Geographic_3D_CRS) < 0) __PYX_ERR(0, 2292, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":2299
 *     PJ_TYPE_GEOGRAPHIC_2D_CRS: "Geographic 2D CRS",
 *     PJ_TYPE_GEOGRAPHIC_3D_CRS: "Geographic 3D CRS",
 *     PJ_TYPE_VERTICAL_CRS: "Vertical CRS",             # <<<<<<<<<<<<<<
 *     PJ_TYPE_PROJECTED_CRS: "Projected CRS",
 *     PJ_TYPE_COMPOUND_CRS: "Compound CRS",
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_VERTICAL_CRS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2299, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_kp_u_Vertical_CRS) < 0) __PYX_ERR(0, 2292, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":2300
 *     PJ_TYPE_GEOGRAPHIC_3D_CRS: "Geographic 3D CRS",
 *     PJ_TYPE_VERTICAL_CRS: "Vertical CRS",
 *     PJ_TYPE_PROJECTED_CRS: "Projected CRS",             # <<<<<<<<<<<<<<
 *     PJ_TYPE_COMPOUND_CRS: "Compound CRS",
 *     PJ_TYPE_TEMPORAL_CRS: "Temporal CRS",
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_PROJECTED_CRS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2300, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_kp_u_Projected_CRS) < 0) __PYX_ERR(0, 2292, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":2301
 *     PJ_TYPE_VERTICAL_CRS: "Vertical CRS",
 *     PJ_TYPE_PROJECTED_CRS: "Projected CRS",
 *     PJ_TYPE_COMPOUND_CRS: "Compound CRS",             # <<<<<<<<<<<<<<
 *     PJ_TYPE_TEMPORAL_CRS: "Temporal CRS",
 *     PJ_TYPE_ENGINEERING_CRS: "Engineering CRS",
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_COMPOUND_CRS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_kp_u_Compound_CRS) < 0) __PYX_ERR(0, 2292, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":2302
 *     PJ_TYPE_PROJECTED_CRS: "Projected CRS",
 *     PJ_TYPE_COMPOUND_CRS: "Compound CRS",
 *     PJ_TYPE_TEMPORAL_CRS: "Temporal CRS",             # <<<<<<<<<<<<<<
 *     PJ_TYPE_ENGINEERING_CRS: "Engineering CRS",
 *     PJ_TYPE_BOUND_CRS: "Bound CRS",
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_TEMPORAL_CRS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_kp_u_Temporal_CRS) < 0) __PYX_ERR(0, 2292, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":2303
 *     PJ_TYPE_COMPOUND_CRS: "Compound CRS",
 *     PJ_TYPE_TEMPORAL_CRS: "Temporal CRS",
 *     PJ_TYPE_ENGINEERING_CRS: "Engineering CRS",             # <<<<<<<<<<<<<<
 *     PJ_TYPE_BOUND_CRS: "Bound CRS",
 *     PJ_TYPE_OTHER_CRS: "Other CRS",
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_ENGINEERING_CRS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2303, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_kp_u_Engineering_CRS) < 0) __PYX_ERR(0, 2292, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":2304
 *     PJ_TYPE_TEMPORAL_CRS: "Temporal CRS",
 *     PJ_TYPE_ENGINEERING_CRS: "Engineering CRS",
 *     PJ_TYPE_BOUND_CRS: "Bound CRS",             # <<<<<<<<<<<<<<
 *     PJ_TYPE_OTHER_CRS: "Other CRS",
 * }
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_BOUND_CRS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2304, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_kp_u_Bound_CRS) < 0) __PYX_ERR(0, 2292, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":2305
 *     PJ_TYPE_ENGINEERING_CRS: "Engineering CRS",
 *     PJ_TYPE_BOUND_CRS: "Bound CRS",
 *     PJ_TYPE_OTHER_CRS: "Other CRS",             # <<<<<<<<<<<<<<
 * }
 * 
 */
  __pyx_t_2 = __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE_OTHER_CRS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2305, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_kp_u_Other_CRS) < 0) __PYX_ERR(0, 2292, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CRS_TYPE_MAP, __pyx_t_1) < 0) __PYX_ERR(0, 2291, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyproj/_crs.pyx":2630
 *         return self._geodetic_crs
 * 
 *     def to_proj4(self, version=ProjVersion.PROJ_4):             # <<<<<<<<<<<<<<
 *         """
 *         Convert the projection to a PROJ string.
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_ProjVersion); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2630, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_PROJ_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2630, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_k__45 = __pyx_t_2;
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;

  /* "pyproj/_crs.pyx":1
 * import json             # <<<<<<<<<<<<<<
 * import re
 * import warnings
 */
  __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_CRS_to_epsg_line_2657, __pyx_kp_u_Return_the_EPSG_code_best_match) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_CRS_to_authority_line_2700, __pyx_kp_u_versionadded_2_2_0_Return_the_a) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_2) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /*--- Wrapped vars code ---*/

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  if (__pyx_m) {
    if (__pyx_d) {
      __Pyx_AddTraceback("init pyproj._crs", __pyx_clineno, __pyx_lineno, __pyx_filename);
    }
    Py_CLEAR(__pyx_m);
  } else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_ImportError, "init pyproj._crs");
  }
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  return (__pyx_m != NULL) ? 0 : -1;
  #elif PY_MAJOR_VERSION >= 3
  return __pyx_m;
  #else
  return;
  #endif
}

/* --- Runtime support code --- */
/* Refnanny */
#if CYTHON_REFNANNY
static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) {
    PyObject *m = NULL, *p = NULL;
    void *r = NULL;
    m = PyImport_ImportModule(modname);
    if (!m) goto end;
    p = PyObject_GetAttrString(m, "RefNannyAPI");
    if (!p) goto end;
    r = PyLong_AsVoidPtr(p);
end:
    Py_XDECREF(p);
    Py_XDECREF(m);
    return (__Pyx_RefNannyAPIStruct *)r;
}
#endif

/* PyObjectGetAttrStr */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro))
        return tp->tp_getattro(obj, attr_name);
#if PY_MAJOR_VERSION < 3
    if (likely(tp->tp_getattr))
        return tp->tp_getattr(obj, PyString_AS_STRING(attr_name));
#endif
    return PyObject_GetAttr(obj, attr_name);
}
#endif

/* GetBuiltinName */
static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
    PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name);
    if (unlikely(!result)) {
        PyErr_Format(PyExc_NameError,
#if PY_MAJOR_VERSION >= 3
            "name '%U' is not defined", name);
#else
            "name '%.200s' is not defined", PyString_AS_STRING(name));
#endif
    }
    return result;
}

/* PyDictVersioning */
#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) {
    PyObject *dict = Py_TYPE(obj)->tp_dict;
    return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
}
static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) {
    PyObject **dictptr = NULL;
    Py_ssize_t offset = Py_TYPE(obj)->tp_dictoffset;
    if (offset) {
#if CYTHON_COMPILING_IN_CPYTHON
        dictptr = (likely(offset > 0)) ? (PyObject **) ((char *)obj + offset) : _PyObject_GetDictPtr(obj);
#else
        dictptr = _PyObject_GetDictPtr(obj);
#endif
    }
    return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
}
static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) {
    PyObject *dict = Py_TYPE(obj)->tp_dict;
    if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
        return 0;
    return obj_dict_version == __Pyx_get_object_dict_version(obj);
}
#endif

/* GetModuleGlobalName */
#if CYTHON_USE_DICT_VERSIONS
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value)
#else
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name)
#endif
{
    PyObject *result;
#if !CYTHON_AVOID_BORROWED_REFS
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1
    result = _PyDict_GetItem_KnownHash(__pyx_d, name, ((PyASCIIObject *) name)->hash);
    __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    } else if (unlikely(PyErr_Occurred())) {
        return NULL;
    }
#else
    result = PyDict_GetItem(__pyx_d, name);
    __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    }
#endif
#else
    result = PyObject_GetItem(__pyx_d, name);
    __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    }
    PyErr_Clear();
#endif
    return __Pyx_GetBuiltinName(name);
}

/* PyCFunctionFastCall */
#if CYTHON_FAST_PYCCALL
static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **args, Py_ssize_t nargs) {
    PyCFunctionObject *func = (PyCFunctionObject*)func_obj;
    PyCFunction meth = PyCFunction_GET_FUNCTION(func);
    PyObject *self = PyCFunction_GET_SELF(func);
    int flags = PyCFunction_GET_FLAGS(func);
    assert(PyCFunction_Check(func));
    assert(METH_FASTCALL == (flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS)));
    assert(nargs >= 0);
    assert(nargs == 0 || args != NULL);
    /* _PyCFunction_FastCallDict() must not be called with an exception set,
       because it may clear it (directly or indirectly) and so the
       caller loses its exception */
    assert(!PyErr_Occurred());
    if ((PY_VERSION_HEX < 0x030700A0) || unlikely(flags & METH_KEYWORDS)) {
        return (*((__Pyx_PyCFunctionFastWithKeywords)(void*)meth)) (self, args, nargs, NULL);
    } else {
        return (*((__Pyx_PyCFunctionFast)(void*)meth)) (self, args, nargs);
    }
}
#endif

/* PyFunctionFastCall */
#if CYTHON_FAST_PYCALL
static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na,
                                               PyObject *globals) {
    PyFrameObject *f;
    PyThreadState *tstate = __Pyx_PyThreadState_Current;
    PyObject **fastlocals;
    Py_ssize_t i;
    PyObject *result;
    assert(globals != NULL);
    /* XXX Perhaps we should create a specialized
       PyFrame_New() that doesn't take locals, but does
       take builtins without sanity checking them.
       */
    assert(tstate != NULL);
    f = PyFrame_New(tstate, co, globals, NULL);
    if (f == NULL) {
        return NULL;
    }
    fastlocals = __Pyx_PyFrame_GetLocalsplus(f);
    for (i = 0; i < na; i++) {
        Py_INCREF(*args);
        fastlocals[i] = *args++;
    }
    result = PyEval_EvalFrameEx(f,0);
    ++tstate->recursion_depth;
    Py_DECREF(f);
    --tstate->recursion_depth;
    return result;
}
#if 1 || PY_VERSION_HEX < 0x030600B1
static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs) {
    PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func);
    PyObject *globals = PyFunction_GET_GLOBALS(func);
    PyObject *argdefs = PyFunction_GET_DEFAULTS(func);
    PyObject *closure;
#if PY_MAJOR_VERSION >= 3
    PyObject *kwdefs;
#endif
    PyObject *kwtuple, **k;
    PyObject **d;
    Py_ssize_t nd;
    Py_ssize_t nk;
    PyObject *result;
    assert(kwargs == NULL || PyDict_Check(kwargs));
    nk = kwargs ? PyDict_Size(kwargs) : 0;
    if (Py_EnterRecursiveCall((char*)" while calling a Python object")) {
        return NULL;
    }
    if (
#if PY_MAJOR_VERSION >= 3
            co->co_kwonlyargcount == 0 &&
#endif
            likely(kwargs == NULL || nk == 0) &&
            co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) {
        if (argdefs == NULL && co->co_argcount == nargs) {
            result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals);
            goto done;
        }
        else if (nargs == 0 && argdefs != NULL
                 && co->co_argcount == Py_SIZE(argdefs)) {
            /* function called with no arguments, but all parameters have
               a default value: use default values as arguments .*/
            args = &PyTuple_GET_ITEM(argdefs, 0);
            result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals);
            goto done;
        }
    }
    if (kwargs != NULL) {
        Py_ssize_t pos, i;
        kwtuple = PyTuple_New(2 * nk);
        if (kwtuple == NULL) {
            result = NULL;
            goto done;
        }
        k = &PyTuple_GET_ITEM(kwtuple, 0);
        pos = i = 0;
        while (PyDict_Next(kwargs, &pos, &k[i], &k[i+1])) {
            Py_INCREF(k[i]);
            Py_INCREF(k[i+1]);
            i += 2;
        }
        nk = i / 2;
    }
    else {
        kwtuple = NULL;
        k = NULL;
    }
    closure = PyFunction_GET_CLOSURE(func);
#if PY_MAJOR_VERSION >= 3
    kwdefs = PyFunction_GET_KW_DEFAULTS(func);
#endif
    if (argdefs != NULL) {
        d = &PyTuple_GET_ITEM(argdefs, 0);
        nd = Py_SIZE(argdefs);
    }
    else {
        d = NULL;
        nd = 0;
    }
#if PY_MAJOR_VERSION >= 3
    result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL,
                               args, (int)nargs,
                               k, (int)nk,
                               d, (int)nd, kwdefs, closure);
#else
    result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL,
                               args, (int)nargs,
                               k, (int)nk,
                               d, (int)nd, closure);
#endif
    Py_XDECREF(kwtuple);
done:
    Py_LeaveRecursiveCall();
    return result;
}
#endif
#endif

/* PyObjectCall */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
    PyObject *result;
    ternaryfunc call = func->ob_type->tp_call;
    if (unlikely(!call))
        return PyObject_Call(func, arg, kw);
    if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
        return NULL;
    result = (*call)(func, arg, kw);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* PyObjectCall2Args */
static CYTHON_UNUSED PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2) {
    PyObject *args, *result = NULL;
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(function)) {
        PyObject *args[2] = {arg1, arg2};
        return __Pyx_PyFunction_FastCall(function, args, 2);
    }
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(function)) {
        PyObject *args[2] = {arg1, arg2};
        return __Pyx_PyCFunction_FastCall(function, args, 2);
    }
    #endif
    args = PyTuple_New(2);
    if (unlikely(!args)) goto done;
    Py_INCREF(arg1);
    PyTuple_SET_ITEM(args, 0, arg1);
    Py_INCREF(arg2);
    PyTuple_SET_ITEM(args, 1, arg2);
    Py_INCREF(function);
    result = __Pyx_PyObject_Call(function, args, NULL);
    Py_DECREF(args);
    Py_DECREF(function);
done:
    return result;
}

/* PyObjectCallMethO */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) {
    PyObject *self, *result;
    PyCFunction cfunc;
    cfunc = PyCFunction_GET_FUNCTION(func);
    self = PyCFunction_GET_SELF(func);
    if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
        return NULL;
    result = cfunc(self, arg);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* PyObjectCallOneArg */
#if CYTHON_COMPILING_IN_CPYTHON
static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) {
    PyObject *result;
    PyObject *args = PyTuple_New(1);
    if (unlikely(!args)) return NULL;
    Py_INCREF(arg);
    PyTuple_SET_ITEM(args, 0, arg);
    result = __Pyx_PyObject_Call(func, args, NULL);
    Py_DECREF(args);
    return result;
}
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
#if CYTHON_FAST_PYCALL
    if (PyFunction_Check(func)) {
        return __Pyx_PyFunction_FastCall(func, &arg, 1);
    }
#endif
    if (likely(PyCFunction_Check(func))) {
        if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) {
            return __Pyx_PyObject_CallMethO(func, arg);
#if CYTHON_FAST_PYCCALL
        } else if (PyCFunction_GET_FLAGS(func) & METH_FASTCALL) {
            return __Pyx_PyCFunction_FastCall(func, &arg, 1);
#endif
        }
    }
    return __Pyx__PyObject_CallOneArg(func, arg);
}
#else
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
    PyObject *result;
    PyObject *args = PyTuple_Pack(1, arg);
    if (unlikely(!args)) return NULL;
    result = __Pyx_PyObject_Call(func, args, NULL);
    Py_DECREF(args);
    return result;
}
#endif

/* DictGetItem */
#if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY
static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key) {
    PyObject *value;
    value = PyDict_GetItemWithError(d, key);
    if (unlikely(!value)) {
        if (!PyErr_Occurred()) {
            if (unlikely(PyTuple_Check(key))) {
                PyObject* args = PyTuple_Pack(1, key);
                if (likely(args)) {
                    PyErr_SetObject(PyExc_KeyError, args);
                    Py_DECREF(args);
                }
            } else {
                PyErr_SetObject(PyExc_KeyError, key);
            }
        }
        return NULL;
    }
    Py_INCREF(value);
    return value;
}
#endif

/* PyObjectCallNoArg */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) {
#if CYTHON_FAST_PYCALL
    if (PyFunction_Check(func)) {
        return __Pyx_PyFunction_FastCall(func, NULL, 0);
    }
#endif
#ifdef __Pyx_CyFunction_USED
    if (likely(PyCFunction_Check(func) || __Pyx_CyFunction_Check(func)))
#else
    if (likely(PyCFunction_Check(func)))
#endif
    {
        if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) {
            return __Pyx_PyObject_CallMethO(func, NULL);
        }
    }
    return __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL);
}
#endif

/* PyErrFetchRestore */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    tmp_type = tstate->curexc_type;
    tmp_value = tstate->curexc_value;
    tmp_tb = tstate->curexc_traceback;
    tstate->curexc_type = type;
    tstate->curexc_value = value;
    tstate->curexc_traceback = tb;
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
}
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
    *type = tstate->curexc_type;
    *value = tstate->curexc_value;
    *tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
}
#endif

/* WriteUnraisableException */
static void __Pyx_WriteUnraisable(const char *name, CYTHON_UNUSED int clineno,
                                  CYTHON_UNUSED int lineno, CYTHON_UNUSED const char *filename,
                                  int full_traceback, CYTHON_UNUSED int nogil) {
    PyObject *old_exc, *old_val, *old_tb;
    PyObject *ctx;
    __Pyx_PyThreadState_declare
#ifdef WITH_THREAD
    PyGILState_STATE state;
    if (nogil)
        state = PyGILState_Ensure();
#ifdef _MSC_VER
    else state = (PyGILState_STATE)-1;
#endif
#endif
    __Pyx_PyThreadState_assign
    __Pyx_ErrFetch(&old_exc, &old_val, &old_tb);
    if (full_traceback) {
        Py_XINCREF(old_exc);
        Py_XINCREF(old_val);
        Py_XINCREF(old_tb);
        __Pyx_ErrRestore(old_exc, old_val, old_tb);
        PyErr_PrintEx(1);
    }
    #if PY_MAJOR_VERSION < 3
    ctx = PyString_FromString(name);
    #else
    ctx = PyUnicode_FromString(name);
    #endif
    __Pyx_ErrRestore(old_exc, old_val, old_tb);
    if (!ctx) {
        PyErr_WriteUnraisable(Py_None);
    } else {
        PyErr_WriteUnraisable(ctx);
        Py_DECREF(ctx);
    }
#ifdef WITH_THREAD
    if (nogil)
        PyGILState_Release(state);
#endif
}

/* GetTopmostException */
#if CYTHON_USE_EXC_INFO_STACK
static _PyErr_StackItem *
__Pyx_PyErr_GetTopmostException(PyThreadState *tstate)
{
    _PyErr_StackItem *exc_info = tstate->exc_info;
    while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) &&
           exc_info->previous_item != NULL)
    {
        exc_info = exc_info->previous_item;
    }
    return exc_info;
}
#endif

/* SaveResetException */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
    #if CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
    *type = exc_info->exc_type;
    *value = exc_info->exc_value;
    *tb = exc_info->exc_traceback;
    #else
    *type = tstate->exc_type;
    *value = tstate->exc_value;
    *tb = tstate->exc_traceback;
    #endif
    Py_XINCREF(*type);
    Py_XINCREF(*value);
    Py_XINCREF(*tb);
}
static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    #if CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_type = exc_info->exc_type;
    tmp_value = exc_info->exc_value;
    tmp_tb = exc_info->exc_traceback;
    exc_info->exc_type = type;
    exc_info->exc_value = value;
    exc_info->exc_traceback = tb;
    #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = type;
    tstate->exc_value = value;
    tstate->exc_traceback = tb;
    #endif
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
}
#endif

/* PyErrExceptionMatches */
#if CYTHON_FAST_THREAD_STATE
static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
    Py_ssize_t i, n;
    n = PyTuple_GET_SIZE(tuple);
#if PY_MAJOR_VERSION >= 3
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
#endif
    for (i=0; i<n; i++) {
        if (__Pyx_PyErr_GivenExceptionMatches(exc_type, PyTuple_GET_ITEM(tuple, i))) return 1;
    }
    return 0;
}
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) {
    PyObject *exc_type = tstate->curexc_type;
    if (exc_type == err) return 1;
    if (unlikely(!exc_type)) return 0;
    if (unlikely(PyTuple_Check(err)))
        return __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err);
    return __Pyx_PyErr_GivenExceptionMatches(exc_type, err);
}
#endif

/* GetException */
#if CYTHON_FAST_THREAD_STATE
static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb)
#else
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb)
#endif
{
    PyObject *local_type, *local_value, *local_tb;
#if CYTHON_FAST_THREAD_STATE
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    local_type = tstate->curexc_type;
    local_value = tstate->curexc_value;
    local_tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
#else
    PyErr_Fetch(&local_type, &local_value, &local_tb);
#endif
    PyErr_NormalizeException(&local_type, &local_value, &local_tb);
#if CYTHON_FAST_THREAD_STATE
    if (unlikely(tstate->curexc_type))
#else
    if (unlikely(PyErr_Occurred()))
#endif
        goto bad;
    #if PY_MAJOR_VERSION >= 3
    if (local_tb) {
        if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0))
            goto bad;
    }
    #endif
    Py_XINCREF(local_tb);
    Py_XINCREF(local_type);
    Py_XINCREF(local_value);
    *type = local_type;
    *value = local_value;
    *tb = local_tb;
#if CYTHON_FAST_THREAD_STATE
    #if CYTHON_USE_EXC_INFO_STACK
    {
        _PyErr_StackItem *exc_info = tstate->exc_info;
        tmp_type = exc_info->exc_type;
        tmp_value = exc_info->exc_value;
        tmp_tb = exc_info->exc_traceback;
        exc_info->exc_type = local_type;
        exc_info->exc_value = local_value;
        exc_info->exc_traceback = local_tb;
    }
    #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = local_type;
    tstate->exc_value = local_value;
    tstate->exc_traceback = local_tb;
    #endif
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
#else
    PyErr_SetExcInfo(local_type, local_value, local_tb);
#endif
    return 0;
bad:
    *type = 0;
    *value = 0;
    *tb = 0;
    Py_XDECREF(local_type);
    Py_XDECREF(local_value);
    Py_XDECREF(local_tb);
    return -1;
}

/* RaiseException */
#if PY_MAJOR_VERSION < 3
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb,
                        CYTHON_UNUSED PyObject *cause) {
    __Pyx_PyThreadState_declare
    Py_XINCREF(type);
    if (!value || value == Py_None)
        value = NULL;
    else
        Py_INCREF(value);
    if (!tb || tb == Py_None)
        tb = NULL;
    else {
        Py_INCREF(tb);
        if (!PyTraceBack_Check(tb)) {
            PyErr_SetString(PyExc_TypeError,
                "raise: arg 3 must be a traceback or None");
            goto raise_error;
        }
    }
    if (PyType_Check(type)) {
#if CYTHON_COMPILING_IN_PYPY
        if (!value) {
            Py_INCREF(Py_None);
            value = Py_None;
        }
#endif
        PyErr_NormalizeException(&type, &value, &tb);
    } else {
        if (value) {
            PyErr_SetString(PyExc_TypeError,
                "instance exception may not have a separate value");
            goto raise_error;
        }
        value = type;
        type = (PyObject*) Py_TYPE(type);
        Py_INCREF(type);
        if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) {
            PyErr_SetString(PyExc_TypeError,
                "raise: exception class must be a subclass of BaseException");
            goto raise_error;
        }
    }
    __Pyx_PyThreadState_assign
    __Pyx_ErrRestore(type, value, tb);
    return;
raise_error:
    Py_XDECREF(value);
    Py_XDECREF(type);
    Py_XDECREF(tb);
    return;
}
#else
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) {
    PyObject* owned_instance = NULL;
    if (tb == Py_None) {
        tb = 0;
    } else if (tb && !PyTraceBack_Check(tb)) {
        PyErr_SetString(PyExc_TypeError,
            "raise: arg 3 must be a traceback or None");
        goto bad;
    }
    if (value == Py_None)
        value = 0;
    if (PyExceptionInstance_Check(type)) {
        if (value) {
            PyErr_SetString(PyExc_TypeError,
                "instance exception may not have a separate value");
            goto bad;
        }
        value = type;
        type = (PyObject*) Py_TYPE(value);
    } else if (PyExceptionClass_Check(type)) {
        PyObject *instance_class = NULL;
        if (value && PyExceptionInstance_Check(value)) {
            instance_class = (PyObject*) Py_TYPE(value);
            if (instance_class != type) {
                int is_subclass = PyObject_IsSubclass(instance_class, type);
                if (!is_subclass) {
                    instance_class = NULL;
                } else if (unlikely(is_subclass == -1)) {
                    goto bad;
                } else {
                    type = instance_class;
                }
            }
        }
        if (!instance_class) {
            PyObject *args;
            if (!value)
                args = PyTuple_New(0);
            else if (PyTuple_Check(value)) {
                Py_INCREF(value);
                args = value;
            } else
                args = PyTuple_Pack(1, value);
            if (!args)
                goto bad;
            owned_instance = PyObject_Call(type, args, NULL);
            Py_DECREF(args);
            if (!owned_instance)
                goto bad;
            value = owned_instance;
            if (!PyExceptionInstance_Check(value)) {
                PyErr_Format(PyExc_TypeError,
                             "calling %R should have returned an instance of "
                             "BaseException, not %R",
                             type, Py_TYPE(value));
                goto bad;
            }
        }
    } else {
        PyErr_SetString(PyExc_TypeError,
            "raise: exception class must be a subclass of BaseException");
        goto bad;
    }
    if (cause) {
        PyObject *fixed_cause;
        if (cause == Py_None) {
            fixed_cause = NULL;
        } else if (PyExceptionClass_Check(cause)) {
            fixed_cause = PyObject_CallObject(cause, NULL);
            if (fixed_cause == NULL)
                goto bad;
        } else if (PyExceptionInstance_Check(cause)) {
            fixed_cause = cause;
            Py_INCREF(fixed_cause);
        } else {
            PyErr_SetString(PyExc_TypeError,
                            "exception causes must derive from "
                            "BaseException");
            goto bad;
        }
        PyException_SetCause(value, fixed_cause);
    }
    PyErr_SetObject(type, value);
    if (tb) {
#if CYTHON_COMPILING_IN_PYPY
        PyObject *tmp_type, *tmp_value, *tmp_tb;
        PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb);
        Py_INCREF(tb);
        PyErr_Restore(tmp_type, tmp_value, tb);
        Py_XDECREF(tmp_tb);
#else
        PyThreadState *tstate = __Pyx_PyThreadState_Current;
        PyObject* tmp_tb = tstate->curexc_traceback;
        if (tb != tmp_tb) {
            Py_INCREF(tb);
            tstate->curexc_traceback = tb;
            Py_XDECREF(tmp_tb);
        }
#endif
    }
bad:
    Py_XDECREF(owned_instance);
    return;
}
#endif

/* RaiseArgTupleInvalid */
static void __Pyx_RaiseArgtupleInvalid(
    const char* func_name,
    int exact,
    Py_ssize_t num_min,
    Py_ssize_t num_max,
    Py_ssize_t num_found)
{
    Py_ssize_t num_expected;
    const char *more_or_less;
    if (num_found < num_min) {
        num_expected = num_min;
        more_or_less = "at least";
    } else {
        num_expected = num_max;
        more_or_less = "at most";
    }
    if (exact) {
        more_or_less = "exactly";
    }
    PyErr_Format(PyExc_TypeError,
                 "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)",
                 func_name, more_or_less, num_expected,
                 (num_expected == 1) ? "" : "s", num_found);
}

/* KeywordStringCheck */
static int __Pyx_CheckKeywordStrings(
    PyObject *kwdict,
    const char* function_name,
    int kw_allowed)
{
    PyObject* key = 0;
    Py_ssize_t pos = 0;
#if CYTHON_COMPILING_IN_PYPY
    if (!kw_allowed && PyDict_Next(kwdict, &pos, &key, 0))
        goto invalid_keyword;
    return 1;
#else
    while (PyDict_Next(kwdict, &pos, &key, 0)) {
        #if PY_MAJOR_VERSION < 3
        if (unlikely(!PyString_Check(key)))
        #endif
            if (unlikely(!PyUnicode_Check(key)))
                goto invalid_keyword_type;
    }
    if ((!kw_allowed) && unlikely(key))
        goto invalid_keyword;
    return 1;
invalid_keyword_type:
    PyErr_Format(PyExc_TypeError,
        "%.200s() keywords must be strings", function_name);
    return 0;
#endif
invalid_keyword:
    PyErr_Format(PyExc_TypeError,
    #if PY_MAJOR_VERSION < 3
        "%.200s() got an unexpected keyword argument '%.200s'",
        function_name, PyString_AsString(key));
    #else
        "%s() got an unexpected keyword argument '%U'",
        function_name, key);
    #endif
    return 0;
}

/* pyobject_as_double */
static double __Pyx__PyObject_AsDouble(PyObject* obj) {
    PyObject* float_value;
#if !CYTHON_USE_TYPE_SLOTS
    float_value = PyNumber_Float(obj);  if ((0)) goto bad;
#else
    PyNumberMethods *nb = Py_TYPE(obj)->tp_as_number;
    if (likely(nb) && likely(nb->nb_float)) {
        float_value = nb->nb_float(obj);
        if (likely(float_value) && unlikely(!PyFloat_Check(float_value))) {
            PyErr_Format(PyExc_TypeError,
                "__float__ returned non-float (type %.200s)",
                Py_TYPE(float_value)->tp_name);
            Py_DECREF(float_value);
            goto bad;
        }
    } else if (PyUnicode_CheckExact(obj) || PyBytes_CheckExact(obj)) {
#if PY_MAJOR_VERSION >= 3
        float_value = PyFloat_FromString(obj);
#else
        float_value = PyFloat_FromString(obj, 0);
#endif
    } else {
        PyObject* args = PyTuple_New(1);
        if (unlikely(!args)) goto bad;
        PyTuple_SET_ITEM(args, 0, obj);
        float_value = PyObject_Call((PyObject*)&PyFloat_Type, args, 0);
        PyTuple_SET_ITEM(args, 0, 0);
        Py_DECREF(args);
    }
#endif
    if (likely(float_value)) {
        double value = PyFloat_AS_DOUBLE(float_value);
        Py_DECREF(float_value);
        return value;
    }
bad:
    return (double)-1;
}

/* RaiseDoubleKeywords */
static void __Pyx_RaiseDoubleKeywordsError(
    const char* func_name,
    PyObject* kw_name)
{
    PyErr_Format(PyExc_TypeError,
        #if PY_MAJOR_VERSION >= 3
        "%s() got multiple values for keyword argument '%U'", func_name, kw_name);
        #else
        "%s() got multiple values for keyword argument '%s'", func_name,
        PyString_AsString(kw_name));
        #endif
}

/* ParseKeywords */
static int __Pyx_ParseOptionalKeywords(
    PyObject *kwds,
    PyObject **argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    const char* function_name)
{
    PyObject *key = 0, *value = 0;
    Py_ssize_t pos = 0;
    PyObject*** name;
    PyObject*** first_kw_arg = argnames + num_pos_args;
    while (PyDict_Next(kwds, &pos, &key, &value)) {
        name = first_kw_arg;
        while (*name && (**name != key)) name++;
        if (*name) {
            values[name-argnames] = value;
            continue;
        }
        name = first_kw_arg;
        #if PY_MAJOR_VERSION < 3
        if (likely(PyString_CheckExact(key)) || likely(PyString_Check(key))) {
            while (*name) {
                if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key))
                        && _PyString_Eq(**name, key)) {
                    values[name-argnames] = value;
                    break;
                }
                name++;
            }
            if (*name) continue;
            else {
                PyObject*** argname = argnames;
                while (argname != first_kw_arg) {
                    if ((**argname == key) || (
                            (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key))
                             && _PyString_Eq(**argname, key))) {
                        goto arg_passed_twice;
                    }
                    argname++;
                }
            }
        } else
        #endif
        if (likely(PyUnicode_Check(key))) {
            while (*name) {
                int cmp = (**name == key) ? 0 :
                #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
                    (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
                #endif
                    PyUnicode_Compare(**name, key);
                if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
                if (cmp == 0) {
                    values[name-argnames] = value;
                    break;
                }
                name++;
            }
            if (*name) continue;
            else {
                PyObject*** argname = argnames;
                while (argname != first_kw_arg) {
                    int cmp = (**argname == key) ? 0 :
                    #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
                        (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
                    #endif
                        PyUnicode_Compare(**argname, key);
                    if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
                    if (cmp == 0) goto arg_passed_twice;
                    argname++;
                }
            }
        } else
            goto invalid_keyword_type;
        if (kwds2) {
            if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad;
        } else {
            goto invalid_keyword;
        }
    }
    return 0;
arg_passed_twice:
    __Pyx_RaiseDoubleKeywordsError(function_name, key);
    goto bad;
invalid_keyword_type:
    PyErr_Format(PyExc_TypeError,
        "%.200s() keywords must be strings", function_name);
    goto bad;
invalid_keyword:
    PyErr_Format(PyExc_TypeError,
    #if PY_MAJOR_VERSION < 3
        "%.200s() got an unexpected keyword argument '%.200s'",
        function_name, PyString_AsString(key));
    #else
        "%s() got an unexpected keyword argument '%U'",
        function_name, key);
    #endif
bad:
    return -1;
}

/* ArgTypeTest */
static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact)
{
    if (unlikely(!type)) {
        PyErr_SetString(PyExc_SystemError, "Missing type object");
        return 0;
    }
    else if (exact) {
        #if PY_MAJOR_VERSION == 2
        if ((type == &PyBaseString_Type) && likely(__Pyx_PyBaseString_CheckExact(obj))) return 1;
        #endif
    }
    else {
        if (likely(__Pyx_TypeCheck(obj, type))) return 1;
    }
    PyErr_Format(PyExc_TypeError,
        "Argument '%.200s' has incorrect type (expected %.200s, got %.200s)",
        name, type->tp_name, Py_TYPE(obj)->tp_name);
    return 0;
}

/* GetAttr */
static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *o, PyObject *n) {
#if CYTHON_USE_TYPE_SLOTS
#if PY_MAJOR_VERSION >= 3
    if (likely(PyUnicode_Check(n)))
#else
    if (likely(PyString_Check(n)))
#endif
        return __Pyx_PyObject_GetAttrStr(o, n);
#endif
    return PyObject_GetAttr(o, n);
}

/* HasAttr */
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
    PyObject *r;
    if (unlikely(!__Pyx_PyBaseString_Check(n))) {
        PyErr_SetString(PyExc_TypeError,
                        "hasattr(): attribute name must be string");
        return -1;
    }
    r = __Pyx_GetAttr(o, n);
    if (unlikely(!r)) {
        PyErr_Clear();
        return 0;
    } else {
        Py_DECREF(r);
        return 1;
    }
}

/* GetItemInt */
static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
    PyObject *r;
    if (!j) return NULL;
    r = PyObject_GetItem(o, j);
    Py_DECREF(j);
    return r;
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              CYTHON_NCP_UNUSED int wraparound,
                                                              CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    Py_ssize_t wrapped_i = i;
    if (wraparound & unlikely(i < 0)) {
        wrapped_i += PyList_GET_SIZE(o);
    }
    if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyList_GET_SIZE(o)))) {
        PyObject *r = PyList_GET_ITEM(o, wrapped_i);
        Py_INCREF(r);
        return r;
    }
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
#else
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              CYTHON_NCP_UNUSED int wraparound,
                                                              CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    Py_ssize_t wrapped_i = i;
    if (wraparound & unlikely(i < 0)) {
        wrapped_i += PyTuple_GET_SIZE(o);
    }
    if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyTuple_GET_SIZE(o)))) {
        PyObject *r = PyTuple_GET_ITEM(o, wrapped_i);
        Py_INCREF(r);
        return r;
    }
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
#else
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list,
                                                     CYTHON_NCP_UNUSED int wraparound,
                                                     CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS
    if (is_list || PyList_CheckExact(o)) {
        Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o);
        if ((!boundscheck) || (likely(__Pyx_is_valid_index(n, PyList_GET_SIZE(o))))) {
            PyObject *r = PyList_GET_ITEM(o, n);
            Py_INCREF(r);
            return r;
        }
    }
    else if (PyTuple_CheckExact(o)) {
        Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o);
        if ((!boundscheck) || likely(__Pyx_is_valid_index(n, PyTuple_GET_SIZE(o)))) {
            PyObject *r = PyTuple_GET_ITEM(o, n);
            Py_INCREF(r);
            return r;
        }
    } else {
        PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence;
        if (likely(m && m->sq_item)) {
            if (wraparound && unlikely(i < 0) && likely(m->sq_length)) {
                Py_ssize_t l = m->sq_length(o);
                if (likely(l >= 0)) {
                    i += l;
                } else {
                    if (!PyErr_ExceptionMatches(PyExc_OverflowError))
                        return NULL;
                    PyErr_Clear();
                }
            }
            return m->sq_item(o, i);
        }
    }
#else
    if (is_list || PySequence_Check(o)) {
        return PySequence_GetItem(o, i);
    }
#endif
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
}

/* ObjectGetItem */
#if CYTHON_USE_TYPE_SLOTS
static PyObject *__Pyx_PyObject_GetIndex(PyObject *obj, PyObject* index) {
    PyObject *runerr;
    Py_ssize_t key_value;
    PySequenceMethods *m = Py_TYPE(obj)->tp_as_sequence;
    if (unlikely(!(m && m->sq_item))) {
        PyErr_Format(PyExc_TypeError, "'%.200s' object is not subscriptable", Py_TYPE(obj)->tp_name);
        return NULL;
    }
    key_value = __Pyx_PyIndex_AsSsize_t(index);
    if (likely(key_value != -1 || !(runerr = PyErr_Occurred()))) {
        return __Pyx_GetItemInt_Fast(obj, key_value, 0, 1, 1);
    }
    if (PyErr_GivenExceptionMatches(runerr, PyExc_OverflowError)) {
        PyErr_Clear();
        PyErr_Format(PyExc_IndexError, "cannot fit '%.200s' into an index-sized integer", Py_TYPE(index)->tp_name);
    }
    return NULL;
}
static PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject* key) {
    PyMappingMethods *m = Py_TYPE(obj)->tp_as_mapping;
    if (likely(m && m->mp_subscript)) {
        return m->mp_subscript(obj, key);
    }
    return __Pyx_PyObject_GetIndex(obj, key);
}
#endif

/* PyObjectGetMethod */
static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method) {
    PyObject *attr;
#if CYTHON_UNPACK_METHODS && CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_PYTYPE_LOOKUP
    PyTypeObject *tp = Py_TYPE(obj);
    PyObject *descr;
    descrgetfunc f = NULL;
    PyObject **dictptr, *dict;
    int meth_found = 0;
    assert (*method == NULL);
    if (unlikely(tp->tp_getattro != PyObject_GenericGetAttr)) {
        attr = __Pyx_PyObject_GetAttrStr(obj, name);
        goto try_unpack;
    }
    if (unlikely(tp->tp_dict == NULL) && unlikely(PyType_Ready(tp) < 0)) {
        return 0;
    }
    descr = _PyType_Lookup(tp, name);
    if (likely(descr != NULL)) {
        Py_INCREF(descr);
#if PY_MAJOR_VERSION >= 3
        #ifdef __Pyx_CyFunction_USED
        if (likely(PyFunction_Check(descr) || (Py_TYPE(descr) == &PyMethodDescr_Type) || __Pyx_CyFunction_Check(descr)))
        #else
        if (likely(PyFunction_Check(descr) || (Py_TYPE(descr) == &PyMethodDescr_Type)))
        #endif
#else
        #ifdef __Pyx_CyFunction_USED
        if (likely(PyFunction_Check(descr) || __Pyx_CyFunction_Check(descr)))
        #else
        if (likely(PyFunction_Check(descr)))
        #endif
#endif
        {
            meth_found = 1;
        } else {
            f = Py_TYPE(descr)->tp_descr_get;
            if (f != NULL && PyDescr_IsData(descr)) {
                attr = f(descr, obj, (PyObject *)Py_TYPE(obj));
                Py_DECREF(descr);
                goto try_unpack;
            }
        }
    }
    dictptr = _PyObject_GetDictPtr(obj);
    if (dictptr != NULL && (dict = *dictptr) != NULL) {
        Py_INCREF(dict);
        attr = __Pyx_PyDict_GetItemStr(dict, name);
        if (attr != NULL) {
            Py_INCREF(attr);
            Py_DECREF(dict);
            Py_XDECREF(descr);
            goto try_unpack;
        }
        Py_DECREF(dict);
    }
    if (meth_found) {
        *method = descr;
        return 1;
    }
    if (f != NULL) {
        attr = f(descr, obj, (PyObject *)Py_TYPE(obj));
        Py_DECREF(descr);
        goto try_unpack;
    }
    if (descr != NULL) {
        *method = descr;
        return 0;
    }
    PyErr_Format(PyExc_AttributeError,
#if PY_MAJOR_VERSION >= 3
                 "'%.50s' object has no attribute '%U'",
                 tp->tp_name, name);
#else
                 "'%.50s' object has no attribute '%.400s'",
                 tp->tp_name, PyString_AS_STRING(name));
#endif
    return 0;
#else
    attr = __Pyx_PyObject_GetAttrStr(obj, name);
    goto try_unpack;
#endif
try_unpack:
#if CYTHON_UNPACK_METHODS
    if (likely(attr) && PyMethod_Check(attr) && likely(PyMethod_GET_SELF(attr) == obj)) {
        PyObject *function = PyMethod_GET_FUNCTION(attr);
        Py_INCREF(function);
        Py_DECREF(attr);
        *method = function;
        return 1;
    }
#endif
    *method = attr;
    return 0;
}

/* PyObjectCallMethod1 */
static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
    PyObject *result = __Pyx_PyObject_CallOneArg(method, arg);
    Py_DECREF(method);
    return result;
}
static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) {
    PyObject *method = NULL, *result;
    int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
    if (likely(is_method)) {
        result = __Pyx_PyObject_Call2Args(method, obj, arg);
        Py_DECREF(method);
        return result;
    }
    if (unlikely(!method)) return NULL;
    return __Pyx__PyObject_CallMethod1(method, arg);
}

/* append */
static CYTHON_INLINE int __Pyx_PyObject_Append(PyObject* L, PyObject* x) {
    if (likely(PyList_CheckExact(L))) {
        if (unlikely(__Pyx_PyList_Append(L, x) < 0)) return -1;
    } else {
        PyObject* retval = __Pyx_PyObject_CallMethod1(L, __pyx_n_s_append, x);
        if (unlikely(!retval))
            return -1;
        Py_DECREF(retval);
    }
    return 0;
}

/* FastTypeChecks */
#if CYTHON_COMPILING_IN_CPYTHON
static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) {
    while (a) {
        a = a->tp_base;
        if (a == b)
            return 1;
    }
    return b == &PyBaseObject_Type;
}
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) {
    PyObject *mro;
    if (a == b) return 1;
    mro = a->tp_mro;
    if (likely(mro)) {
        Py_ssize_t i, n;
        n = PyTuple_GET_SIZE(mro);
        for (i = 0; i < n; i++) {
            if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b)
                return 1;
        }
        return 0;
    }
    return __Pyx_InBases(a, b);
}
#if PY_MAJOR_VERSION == 2
static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* exc_type2) {
    PyObject *exception, *value, *tb;
    int res;
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ErrFetch(&exception, &value, &tb);
    res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0;
    if (unlikely(res == -1)) {
        PyErr_WriteUnraisable(err);
        res = 0;
    }
    if (!res) {
        res = PyObject_IsSubclass(err, exc_type2);
        if (unlikely(res == -1)) {
            PyErr_WriteUnraisable(err);
            res = 0;
        }
    }
    __Pyx_ErrRestore(exception, value, tb);
    return res;
}
#else
static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) {
    int res = exc_type1 ? __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type1) : 0;
    if (!res) {
        res = __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2);
    }
    return res;
}
#endif
static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
    Py_ssize_t i, n;
    assert(PyExceptionClass_Check(exc_type));
    n = PyTuple_GET_SIZE(tuple);
#if PY_MAJOR_VERSION >= 3
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
#endif
    for (i=0; i<n; i++) {
        PyObject *t = PyTuple_GET_ITEM(tuple, i);
        #if PY_MAJOR_VERSION < 3
        if (likely(exc_type == t)) return 1;
        #endif
        if (likely(PyExceptionClass_Check(t))) {
            if (__Pyx_inner_PyErr_GivenExceptionMatches2(exc_type, NULL, t)) return 1;
        } else {
        }
    }
    return 0;
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) {
    if (likely(err == exc_type)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        if (likely(PyExceptionClass_Check(exc_type))) {
            return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type);
        } else if (likely(PyTuple_Check(exc_type))) {
            return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type);
        } else {
        }
    }
    return PyErr_GivenExceptionMatches(err, exc_type);
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyObject *exc_type2) {
    assert(PyExceptionClass_Check(exc_type1));
    assert(PyExceptionClass_Check(exc_type2));
    if (likely(err == exc_type1 || err == exc_type2)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2);
    }
    return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2));
}
#endif

/* SwapException */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    #if CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_type = exc_info->exc_type;
    tmp_value = exc_info->exc_value;
    tmp_tb = exc_info->exc_traceback;
    exc_info->exc_type = *type;
    exc_info->exc_value = *value;
    exc_info->exc_traceback = *tb;
    #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = *type;
    tstate->exc_value = *value;
    tstate->exc_traceback = *tb;
    #endif
    *type = tmp_type;
    *value = tmp_value;
    *tb = tmp_tb;
}
#else
static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    PyErr_GetExcInfo(&tmp_type, &tmp_value, &tmp_tb);
    PyErr_SetExcInfo(*type, *value, *tb);
    *type = tmp_type;
    *value = tmp_value;
    *tb = tmp_tb;
}
#endif

/* BytesEquals */
static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) {
#if CYTHON_COMPILING_IN_PYPY
    return PyObject_RichCompareBool(s1, s2, equals);
#else
    if (s1 == s2) {
        return (equals == Py_EQ);
    } else if (PyBytes_CheckExact(s1) & PyBytes_CheckExact(s2)) {
        const char *ps1, *ps2;
        Py_ssize_t length = PyBytes_GET_SIZE(s1);
        if (length != PyBytes_GET_SIZE(s2))
            return (equals == Py_NE);
        ps1 = PyBytes_AS_STRING(s1);
        ps2 = PyBytes_AS_STRING(s2);
        if (ps1[0] != ps2[0]) {
            return (equals == Py_NE);
        } else if (length == 1) {
            return (equals == Py_EQ);
        } else {
            int result;
#if CYTHON_USE_UNICODE_INTERNALS
            Py_hash_t hash1, hash2;
            hash1 = ((PyBytesObject*)s1)->ob_shash;
            hash2 = ((PyBytesObject*)s2)->ob_shash;
            if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
                return (equals == Py_NE);
            }
#endif
            result = memcmp(ps1, ps2, (size_t)length);
            return (equals == Py_EQ) ? (result == 0) : (result != 0);
        }
    } else if ((s1 == Py_None) & PyBytes_CheckExact(s2)) {
        return (equals == Py_NE);
    } else if ((s2 == Py_None) & PyBytes_CheckExact(s1)) {
        return (equals == Py_NE);
    } else {
        int result;
        PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
        if (!py_result)
            return -1;
        result = __Pyx_PyObject_IsTrue(py_result);
        Py_DECREF(py_result);
        return result;
    }
#endif
}

/* UnicodeEquals */
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) {
#if CYTHON_COMPILING_IN_PYPY
    return PyObject_RichCompareBool(s1, s2, equals);
#else
#if PY_MAJOR_VERSION < 3
    PyObject* owned_ref = NULL;
#endif
    int s1_is_unicode, s2_is_unicode;
    if (s1 == s2) {
        goto return_eq;
    }
    s1_is_unicode = PyUnicode_CheckExact(s1);
    s2_is_unicode = PyUnicode_CheckExact(s2);
#if PY_MAJOR_VERSION < 3
    if ((s1_is_unicode & (!s2_is_unicode)) && PyString_CheckExact(s2)) {
        owned_ref = PyUnicode_FromObject(s2);
        if (unlikely(!owned_ref))
            return -1;
        s2 = owned_ref;
        s2_is_unicode = 1;
    } else if ((s2_is_unicode & (!s1_is_unicode)) && PyString_CheckExact(s1)) {
        owned_ref = PyUnicode_FromObject(s1);
        if (unlikely(!owned_ref))
            return -1;
        s1 = owned_ref;
        s1_is_unicode = 1;
    } else if (((!s2_is_unicode) & (!s1_is_unicode))) {
        return __Pyx_PyBytes_Equals(s1, s2, equals);
    }
#endif
    if (s1_is_unicode & s2_is_unicode) {
        Py_ssize_t length;
        int kind;
        void *data1, *data2;
        if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0))
            return -1;
        length = __Pyx_PyUnicode_GET_LENGTH(s1);
        if (length != __Pyx_PyUnicode_GET_LENGTH(s2)) {
            goto return_ne;
        }
#if CYTHON_USE_UNICODE_INTERNALS
        {
            Py_hash_t hash1, hash2;
        #if CYTHON_PEP393_ENABLED
            hash1 = ((PyASCIIObject*)s1)->hash;
            hash2 = ((PyASCIIObject*)s2)->hash;
        #else
            hash1 = ((PyUnicodeObject*)s1)->hash;
            hash2 = ((PyUnicodeObject*)s2)->hash;
        #endif
            if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
                goto return_ne;
            }
        }
#endif
        kind = __Pyx_PyUnicode_KIND(s1);
        if (kind != __Pyx_PyUnicode_KIND(s2)) {
            goto return_ne;
        }
        data1 = __Pyx_PyUnicode_DATA(s1);
        data2 = __Pyx_PyUnicode_DATA(s2);
        if (__Pyx_PyUnicode_READ(kind, data1, 0) != __Pyx_PyUnicode_READ(kind, data2, 0)) {
            goto return_ne;
        } else if (length == 1) {
            goto return_eq;
        } else {
            int result = memcmp(data1, data2, (size_t)(length * kind));
            #if PY_MAJOR_VERSION < 3
            Py_XDECREF(owned_ref);
            #endif
            return (equals == Py_EQ) ? (result == 0) : (result != 0);
        }
    } else if ((s1 == Py_None) & s2_is_unicode) {
        goto return_ne;
    } else if ((s2 == Py_None) & s1_is_unicode) {
        goto return_ne;
    } else {
        int result;
        PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
        #if PY_MAJOR_VERSION < 3
        Py_XDECREF(owned_ref);
        #endif
        if (!py_result)
            return -1;
        result = __Pyx_PyObject_IsTrue(py_result);
        Py_DECREF(py_result);
        return result;
    }
return_eq:
    #if PY_MAJOR_VERSION < 3
    Py_XDECREF(owned_ref);
    #endif
    return (equals == Py_EQ);
return_ne:
    #if PY_MAJOR_VERSION < 3
    Py_XDECREF(owned_ref);
    #endif
    return (equals == Py_NE);
#endif
}

/* IterFinish */
static CYTHON_INLINE int __Pyx_IterFinish(void) {
#if CYTHON_FAST_THREAD_STATE
    PyThreadState *tstate = __Pyx_PyThreadState_Current;
    PyObject* exc_type = tstate->curexc_type;
    if (unlikely(exc_type)) {
        if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) {
            PyObject *exc_value, *exc_tb;
            exc_value = tstate->curexc_value;
            exc_tb = tstate->curexc_traceback;
            tstate->curexc_type = 0;
            tstate->curexc_value = 0;
            tstate->curexc_traceback = 0;
            Py_DECREF(exc_type);
            Py_XDECREF(exc_value);
            Py_XDECREF(exc_tb);
            return 0;
        } else {
            return -1;
        }
    }
    return 0;
#else
    if (unlikely(PyErr_Occurred())) {
        if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) {
            PyErr_Clear();
            return 0;
        } else {
            return -1;
        }
    }
    return 0;
#endif
}

/* PyObjectCallMethod0 */
static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
    PyObject *method = NULL, *result = NULL;
    int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
    if (likely(is_method)) {
        result = __Pyx_PyObject_CallOneArg(method, obj);
        Py_DECREF(method);
        return result;
    }
    if (unlikely(!method)) goto bad;
    result = __Pyx_PyObject_CallNoArg(method);
    Py_DECREF(method);
bad:
    return result;
}

/* RaiseNeedMoreValuesToUnpack */
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) {
    PyErr_Format(PyExc_ValueError,
                 "need more than %" CYTHON_FORMAT_SSIZE_T "d value%.1s to unpack",
                 index, (index == 1) ? "" : "s");
}

/* RaiseTooManyValuesToUnpack */
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected) {
    PyErr_Format(PyExc_ValueError,
                 "too many values to unpack (expected %" CYTHON_FORMAT_SSIZE_T "d)", expected);
}

/* UnpackItemEndCheck */
static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) {
    if (unlikely(retval)) {
        Py_DECREF(retval);
        __Pyx_RaiseTooManyValuesError(expected);
        return -1;
    } else {
        return __Pyx_IterFinish();
    }
    return 0;
}

/* RaiseNoneIterError */
static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
}

/* UnpackTupleError */
static void __Pyx_UnpackTupleError(PyObject *t, Py_ssize_t index) {
    if (t == Py_None) {
      __Pyx_RaiseNoneNotIterableError();
    } else if (PyTuple_GET_SIZE(t) < index) {
      __Pyx_RaiseNeedMoreValuesError(PyTuple_GET_SIZE(t));
    } else {
      __Pyx_RaiseTooManyValuesError(index);
    }
}

/* UnpackTuple2 */
static CYTHON_INLINE int __Pyx_unpack_tuple2_exact(
        PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2, int decref_tuple) {
    PyObject *value1 = NULL, *value2 = NULL;
#if CYTHON_COMPILING_IN_PYPY
    value1 = PySequence_ITEM(tuple, 0);  if (unlikely(!value1)) goto bad;
    value2 = PySequence_ITEM(tuple, 1);  if (unlikely(!value2)) goto bad;
#else
    value1 = PyTuple_GET_ITEM(tuple, 0);  Py_INCREF(value1);
    value2 = PyTuple_GET_ITEM(tuple, 1);  Py_INCREF(value2);
#endif
    if (decref_tuple) {
        Py_DECREF(tuple);
    }
    *pvalue1 = value1;
    *pvalue2 = value2;
    return 0;
#if CYTHON_COMPILING_IN_PYPY
bad:
    Py_XDECREF(value1);
    Py_XDECREF(value2);
    if (decref_tuple) { Py_XDECREF(tuple); }
    return -1;
#endif
}
static int __Pyx_unpack_tuple2_generic(PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2,
                                       int has_known_size, int decref_tuple) {
    Py_ssize_t index;
    PyObject *value1 = NULL, *value2 = NULL, *iter = NULL;
    iternextfunc iternext;
    iter = PyObject_GetIter(tuple);
    if (unlikely(!iter)) goto bad;
    if (decref_tuple) { Py_DECREF(tuple); tuple = NULL; }
    iternext = Py_TYPE(iter)->tp_iternext;
    value1 = iternext(iter); if (unlikely(!value1)) { index = 0; goto unpacking_failed; }
    value2 = iternext(iter); if (unlikely(!value2)) { index = 1; goto unpacking_failed; }
    if (!has_known_size && unlikely(__Pyx_IternextUnpackEndCheck(iternext(iter), 2))) goto bad;
    Py_DECREF(iter);
    *pvalue1 = value1;
    *pvalue2 = value2;
    return 0;
unpacking_failed:
    if (!has_known_size && __Pyx_IterFinish() == 0)
        __Pyx_RaiseNeedMoreValuesError(index);
bad:
    Py_XDECREF(iter);
    Py_XDECREF(value1);
    Py_XDECREF(value2);
    if (decref_tuple) { Py_XDECREF(tuple); }
    return -1;
}

/* dict_iter */
static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* iterable, int is_dict, PyObject* method_name,
                                                   Py_ssize_t* p_orig_length, int* p_source_is_dict) {
    is_dict = is_dict || likely(PyDict_CheckExact(iterable));
    *p_source_is_dict = is_dict;
    if (is_dict) {
#if !CYTHON_COMPILING_IN_PYPY
        *p_orig_length = PyDict_Size(iterable);
        Py_INCREF(iterable);
        return iterable;
#elif PY_MAJOR_VERSION >= 3
        static PyObject *py_items = NULL, *py_keys = NULL, *py_values = NULL;
        PyObject **pp = NULL;
        if (method_name) {
            const char *name = PyUnicode_AsUTF8(method_name);
            if (strcmp(name, "iteritems") == 0) pp = &py_items;
            else if (strcmp(name, "iterkeys") == 0) pp = &py_keys;
            else if (strcmp(name, "itervalues") == 0) pp = &py_values;
            if (pp) {
                if (!*pp) {
                    *pp = PyUnicode_FromString(name + 4);
                    if (!*pp)
                        return NULL;
                }
                method_name = *pp;
            }
        }
#endif
    }
    *p_orig_length = 0;
    if (method_name) {
        PyObject* iter;
        iterable = __Pyx_PyObject_CallMethod0(iterable, method_name);
        if (!iterable)
            return NULL;
#if !CYTHON_COMPILING_IN_PYPY
        if (PyTuple_CheckExact(iterable) || PyList_CheckExact(iterable))
            return iterable;
#endif
        iter = PyObject_GetIter(iterable);
        Py_DECREF(iterable);
        return iter;
    }
    return PyObject_GetIter(iterable);
}
static CYTHON_INLINE int __Pyx_dict_iter_next(
        PyObject* iter_obj, CYTHON_NCP_UNUSED Py_ssize_t orig_length, CYTHON_NCP_UNUSED Py_ssize_t* ppos,
        PyObject** pkey, PyObject** pvalue, PyObject** pitem, int source_is_dict) {
    PyObject* next_item;
#if !CYTHON_COMPILING_IN_PYPY
    if (source_is_dict) {
        PyObject *key, *value;
        if (unlikely(orig_length != PyDict_Size(iter_obj))) {
            PyErr_SetString(PyExc_RuntimeError, "dictionary changed size during iteration");
            return -1;
        }
        if (unlikely(!PyDict_Next(iter_obj, ppos, &key, &value))) {
            return 0;
        }
        if (pitem) {
            PyObject* tuple = PyTuple_New(2);
            if (unlikely(!tuple)) {
                return -1;
            }
            Py_INCREF(key);
            Py_INCREF(value);
            PyTuple_SET_ITEM(tuple, 0, key);
            PyTuple_SET_ITEM(tuple, 1, value);
            *pitem = tuple;
        } else {
            if (pkey) {
                Py_INCREF(key);
                *pkey = key;
            }
            if (pvalue) {
                Py_INCREF(value);
                *pvalue = value;
            }
        }
        return 1;
    } else if (PyTuple_CheckExact(iter_obj)) {
        Py_ssize_t pos = *ppos;
        if (unlikely(pos >= PyTuple_GET_SIZE(iter_obj))) return 0;
        *ppos = pos + 1;
        next_item = PyTuple_GET_ITEM(iter_obj, pos);
        Py_INCREF(next_item);
    } else if (PyList_CheckExact(iter_obj)) {
        Py_ssize_t pos = *ppos;
        if (unlikely(pos >= PyList_GET_SIZE(iter_obj))) return 0;
        *ppos = pos + 1;
        next_item = PyList_GET_ITEM(iter_obj, pos);
        Py_INCREF(next_item);
    } else
#endif
    {
        next_item = PyIter_Next(iter_obj);
        if (unlikely(!next_item)) {
            return __Pyx_IterFinish();
        }
    }
    if (pitem) {
        *pitem = next_item;
    } else if (pkey && pvalue) {
        if (__Pyx_unpack_tuple2(next_item, pkey, pvalue, source_is_dict, source_is_dict, 1))
            return -1;
    } else if (pkey) {
        *pkey = next_item;
    } else {
        *pvalue = next_item;
    }
    return 1;
}

/* PyObject_GenericGetAttrNoDict */
#if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static PyObject *__Pyx_RaiseGenericGetAttributeError(PyTypeObject *tp, PyObject *attr_name) {
    PyErr_Format(PyExc_AttributeError,
#if PY_MAJOR_VERSION >= 3
                 "'%.50s' object has no attribute '%U'",
                 tp->tp_name, attr_name);
#else
                 "'%.50s' object has no attribute '%.400s'",
                 tp->tp_name, PyString_AS_STRING(attr_name));
#endif
    return NULL;
}
static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name) {
    PyObject *descr;
    PyTypeObject *tp = Py_TYPE(obj);
    if (unlikely(!PyString_Check(attr_name))) {
        return PyObject_GenericGetAttr(obj, attr_name);
    }
    assert(!tp->tp_dictoffset);
    descr = _PyType_Lookup(tp, attr_name);
    if (unlikely(!descr)) {
        return __Pyx_RaiseGenericGetAttributeError(tp, attr_name);
    }
    Py_INCREF(descr);
    #if PY_MAJOR_VERSION < 3
    if (likely(PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_HAVE_CLASS)))
    #endif
    {
        descrgetfunc f = Py_TYPE(descr)->tp_descr_get;
        if (unlikely(f)) {
            PyObject *res = f(descr, obj, (PyObject *)tp);
            Py_DECREF(descr);
            return res;
        }
    }
    return descr;
}
#endif

/* PyObject_GenericGetAttr */
#if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name) {
    if (unlikely(Py_TYPE(obj)->tp_dictoffset)) {
        return PyObject_GenericGetAttr(obj, attr_name);
    }
    return __Pyx_PyObject_GenericGetAttrNoDict(obj, attr_name);
}
#endif

/* SetVTable */
static int __Pyx_SetVtable(PyObject *dict, void *vtable) {
#if PY_VERSION_HEX >= 0x02070000
    PyObject *ob = PyCapsule_New(vtable, 0, 0);
#else
    PyObject *ob = PyCObject_FromVoidPtr(vtable, 0);
#endif
    if (!ob)
        goto bad;
    if (PyDict_SetItem(dict, __pyx_n_s_pyx_vtable, ob) < 0)
        goto bad;
    Py_DECREF(ob);
    return 0;
bad:
    Py_XDECREF(ob);
    return -1;
}

/* SetupReduce */
static int __Pyx_setup_reduce_is_named(PyObject* meth, PyObject* name) {
  int ret;
  PyObject *name_attr;
  name_attr = __Pyx_PyObject_GetAttrStr(meth, __pyx_n_s_name_2);
  if (likely(name_attr)) {
      ret = PyObject_RichCompareBool(name_attr, name, Py_EQ);
  } else {
      ret = -1;
  }
  if (unlikely(ret < 0)) {
      PyErr_Clear();
      ret = 0;
  }
  Py_XDECREF(name_attr);
  return ret;
}
static int __Pyx_setup_reduce(PyObject* type_obj) {
    int ret = 0;
    PyObject *object_reduce = NULL;
    PyObject *object_reduce_ex = NULL;
    PyObject *reduce = NULL;
    PyObject *reduce_ex = NULL;
    PyObject *reduce_cython = NULL;
    PyObject *setstate = NULL;
    PyObject *setstate_cython = NULL;
#if CYTHON_USE_PYTYPE_LOOKUP
    if (_PyType_Lookup((PyTypeObject*)type_obj, __pyx_n_s_getstate)) goto __PYX_GOOD;
#else
    if (PyObject_HasAttr(type_obj, __pyx_n_s_getstate)) goto __PYX_GOOD;
#endif
#if CYTHON_USE_PYTYPE_LOOKUP
    object_reduce_ex = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_reduce_ex); if (!object_reduce_ex) goto __PYX_BAD;
#else
    object_reduce_ex = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce_ex); if (!object_reduce_ex) goto __PYX_BAD;
#endif
    reduce_ex = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce_ex); if (unlikely(!reduce_ex)) goto __PYX_BAD;
    if (reduce_ex == object_reduce_ex) {
#if CYTHON_USE_PYTYPE_LOOKUP
        object_reduce = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_reduce); if (!object_reduce) goto __PYX_BAD;
#else
        object_reduce = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce); if (!object_reduce) goto __PYX_BAD;
#endif
        reduce = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce); if (unlikely(!reduce)) goto __PYX_BAD;
        if (reduce == object_reduce || __Pyx_setup_reduce_is_named(reduce, __pyx_n_s_reduce_cython)) {
            reduce_cython = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce_cython); if (unlikely(!reduce_cython)) goto __PYX_BAD;
            ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce, reduce_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
            ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
            setstate = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_setstate);
            if (!setstate) PyErr_Clear();
            if (!setstate || __Pyx_setup_reduce_is_named(setstate, __pyx_n_s_setstate_cython)) {
                setstate_cython = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_setstate_cython); if (unlikely(!setstate_cython)) goto __PYX_BAD;
                ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate, setstate_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
                ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
            }
            PyType_Modified((PyTypeObject*)type_obj);
        }
    }
    goto __PYX_GOOD;
__PYX_BAD:
    if (!PyErr_Occurred())
        PyErr_Format(PyExc_RuntimeError, "Unable to initialize pickling for %s", ((PyTypeObject*)type_obj)->tp_name);
    ret = -1;
__PYX_GOOD:
#if !CYTHON_USE_PYTYPE_LOOKUP
    Py_XDECREF(object_reduce);
    Py_XDECREF(object_reduce_ex);
#endif
    Py_XDECREF(reduce);
    Py_XDECREF(reduce_ex);
    Py_XDECREF(reduce_cython);
    Py_XDECREF(setstate);
    Py_XDECREF(setstate_cython);
    return ret;
}

/* TypeImport */
#ifndef __PYX_HAVE_RT_ImportType
#define __PYX_HAVE_RT_ImportType
static PyTypeObject *__Pyx_ImportType(PyObject *module, const char *module_name, const char *class_name,
    size_t size, enum __Pyx_ImportType_CheckSize check_size)
{
    PyObject *result = 0;
    char warning[200];
    Py_ssize_t basicsize;
#ifdef Py_LIMITED_API
    PyObject *py_basicsize;
#endif
    result = PyObject_GetAttrString(module, class_name);
    if (!result)
        goto bad;
    if (!PyType_Check(result)) {
        PyErr_Format(PyExc_TypeError,
            "%.200s.%.200s is not a type object",
            module_name, class_name);
        goto bad;
    }
#ifndef Py_LIMITED_API
    basicsize = ((PyTypeObject *)result)->tp_basicsize;
#else
    py_basicsize = PyObject_GetAttrString(result, "__basicsize__");
    if (!py_basicsize)
        goto bad;
    basicsize = PyLong_AsSsize_t(py_basicsize);
    Py_DECREF(py_basicsize);
    py_basicsize = 0;
    if (basicsize == (Py_ssize_t)-1 && PyErr_Occurred())
        goto bad;
#endif
    if ((size_t)basicsize < size) {
        PyErr_Format(PyExc_ValueError,
            "%.200s.%.200s size changed, may indicate binary incompatibility. "
            "Expected %zd from C header, got %zd from PyObject",
            module_name, class_name, size, basicsize);
        goto bad;
    }
    if (check_size == __Pyx_ImportType_CheckSize_Error && (size_t)basicsize != size) {
        PyErr_Format(PyExc_ValueError,
            "%.200s.%.200s size changed, may indicate binary incompatibility. "
            "Expected %zd from C header, got %zd from PyObject",
            module_name, class_name, size, basicsize);
        goto bad;
    }
    else if (check_size == __Pyx_ImportType_CheckSize_Warn && (size_t)basicsize > size) {
        PyOS_snprintf(warning, sizeof(warning),
            "%s.%s size changed, may indicate binary incompatibility. "
            "Expected %zd from C header, got %zd from PyObject",
            module_name, class_name, size, basicsize);
        if (PyErr_WarnEx(NULL, warning, 0) < 0) goto bad;
    }
    return (PyTypeObject *)result;
bad:
    Py_XDECREF(result);
    return NULL;
}
#endif

/* Import */
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) {
    PyObject *empty_list = 0;
    PyObject *module = 0;
    PyObject *global_dict = 0;
    PyObject *empty_dict = 0;
    PyObject *list;
    #if PY_MAJOR_VERSION < 3
    PyObject *py_import;
    py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import);
    if (!py_import)
        goto bad;
    #endif
    if (from_list)
        list = from_list;
    else {
        empty_list = PyList_New(0);
        if (!empty_list)
            goto bad;
        list = empty_list;
    }
    global_dict = PyModule_GetDict(__pyx_m);
    if (!global_dict)
        goto bad;
    empty_dict = PyDict_New();
    if (!empty_dict)
        goto bad;
    {
        #if PY_MAJOR_VERSION >= 3
        if (level == -1) {
            if (strchr(__Pyx_MODULE_NAME, '.')) {
                module = PyImport_ImportModuleLevelObject(
                    name, global_dict, empty_dict, list, 1);
                if (!module) {
                    if (!PyErr_ExceptionMatches(PyExc_ImportError))
                        goto bad;
                    PyErr_Clear();
                }
            }
            level = 0;
        }
        #endif
        if (!module) {
            #if PY_MAJOR_VERSION < 3
            PyObject *py_level = PyInt_FromLong(level);
            if (!py_level)
                goto bad;
            module = PyObject_CallFunctionObjArgs(py_import,
                name, global_dict, empty_dict, list, py_level, (PyObject *)NULL);
            Py_DECREF(py_level);
            #else
            module = PyImport_ImportModuleLevelObject(
                name, global_dict, empty_dict, list, level);
            #endif
        }
    }
bad:
    #if PY_MAJOR_VERSION < 3
    Py_XDECREF(py_import);
    #endif
    Py_XDECREF(empty_list);
    Py_XDECREF(empty_dict);
    return module;
}

/* ImportFrom */
static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) {
    PyObject* value = __Pyx_PyObject_GetAttrStr(module, name);
    if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) {
        PyErr_Format(PyExc_ImportError,
        #if PY_MAJOR_VERSION < 3
            "cannot import name %.230s", PyString_AS_STRING(name));
        #else
            "cannot import name %S", name);
        #endif
    }
    return value;
}

/* ClassMethod */
static PyObject* __Pyx_Method_ClassMethod(PyObject *method) {
#if CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM <= 0x05080000
    if (PyObject_TypeCheck(method, &PyWrapperDescr_Type)) {
        return PyClassMethod_New(method);
    }
#else
#if CYTHON_COMPILING_IN_PYSTON || CYTHON_COMPILING_IN_PYPY
    if (PyMethodDescr_Check(method))
#else
    static PyTypeObject *methoddescr_type = NULL;
    if (methoddescr_type == NULL) {
       PyObject *meth = PyObject_GetAttrString((PyObject*)&PyList_Type, "append");
       if (!meth) return NULL;
       methoddescr_type = Py_TYPE(meth);
       Py_DECREF(meth);
    }
    if (__Pyx_TypeCheck(method, methoddescr_type))
#endif
    {
        PyMethodDescrObject *descr = (PyMethodDescrObject *)method;
        #if PY_VERSION_HEX < 0x03020000
        PyTypeObject *d_type = descr->d_type;
        #else
        PyTypeObject *d_type = descr->d_common.d_type;
        #endif
        return PyDescr_NewClassMethod(d_type, descr->d_method);
    }
#endif
    else if (PyMethod_Check(method)) {
        return PyClassMethod_New(PyMethod_GET_FUNCTION(method));
    }
    else if (PyCFunction_Check(method)) {
        return PyClassMethod_New(method);
    }
#ifdef __Pyx_CyFunction_USED
    else if (__Pyx_CyFunction_Check(method)) {
        return PyClassMethod_New(method);
    }
#endif
    PyErr_SetString(PyExc_TypeError,
                   "Class-level classmethod() can only be called on "
                   "a method_descriptor or instance method.");
    return NULL;
}

/* GetNameInClass */
static PyObject *__Pyx_GetGlobalNameAfterAttributeLookup(PyObject *name) {
    PyObject *result;
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    if (unlikely(!__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
        return NULL;
    __Pyx_PyErr_Clear();
    __Pyx_GetModuleGlobalNameUncached(result, name);
    return result;
}
static PyObject *__Pyx__GetNameInClass(PyObject *nmspace, PyObject *name) {
    PyObject *result;
    result = __Pyx_PyObject_GetAttrStr(nmspace, name);
    if (!result) {
        result = __Pyx_GetGlobalNameAfterAttributeLookup(name);
    }
    return result;
}

/* CLineInTraceback */
#ifndef CYTHON_CLINE_IN_TRACEBACK
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line) {
    PyObject *use_cline;
    PyObject *ptype, *pvalue, *ptraceback;
#if CYTHON_COMPILING_IN_CPYTHON
    PyObject **cython_runtime_dict;
#endif
    if (unlikely(!__pyx_cython_runtime)) {
        return c_line;
    }
    __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
#if CYTHON_COMPILING_IN_CPYTHON
    cython_runtime_dict = _PyObject_GetDictPtr(__pyx_cython_runtime);
    if (likely(cython_runtime_dict)) {
        __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
            use_cline, *cython_runtime_dict,
            __Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_n_s_cline_in_traceback))
    } else
#endif
    {
      PyObject *use_cline_obj = __Pyx_PyObject_GetAttrStr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback);
      if (use_cline_obj) {
        use_cline = PyObject_Not(use_cline_obj) ? Py_False : Py_True;
        Py_DECREF(use_cline_obj);
      } else {
        PyErr_Clear();
        use_cline = NULL;
      }
    }
    if (!use_cline) {
        c_line = 0;
        PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False);
    }
    else if (use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) {
        c_line = 0;
    }
    __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
    return c_line;
}
#endif

/* CodeObjectCache */
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) {
    int start = 0, mid = 0, end = count - 1;
    if (end >= 0 && code_line > entries[end].code_line) {
        return count;
    }
    while (start < end) {
        mid = start + (end - start) / 2;
        if (code_line < entries[mid].code_line) {
            end = mid;
        } else if (code_line > entries[mid].code_line) {
             start = mid + 1;
        } else {
            return mid;
        }
    }
    if (code_line <= entries[mid].code_line) {
        return mid;
    } else {
        return mid + 1;
    }
}
static PyCodeObject *__pyx_find_code_object(int code_line) {
    PyCodeObject* code_object;
    int pos;
    if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) {
        return NULL;
    }
    pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
    if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) {
        return NULL;
    }
    code_object = __pyx_code_cache.entries[pos].code_object;
    Py_INCREF(code_object);
    return code_object;
}
static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
    int pos, i;
    __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries;
    if (unlikely(!code_line)) {
        return;
    }
    if (unlikely(!entries)) {
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry));
        if (likely(entries)) {
            __pyx_code_cache.entries = entries;
            __pyx_code_cache.max_count = 64;
            __pyx_code_cache.count = 1;
            entries[0].code_line = code_line;
            entries[0].code_object = code_object;
            Py_INCREF(code_object);
        }
        return;
    }
    pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
    if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) {
        PyCodeObject* tmp = entries[pos].code_object;
        entries[pos].code_object = code_object;
        Py_DECREF(tmp);
        return;
    }
    if (__pyx_code_cache.count == __pyx_code_cache.max_count) {
        int new_max = __pyx_code_cache.max_count + 64;
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
            __pyx_code_cache.entries, (size_t)new_max*sizeof(__Pyx_CodeObjectCacheEntry));
        if (unlikely(!entries)) {
            return;
        }
        __pyx_code_cache.entries = entries;
        __pyx_code_cache.max_count = new_max;
    }
    for (i=__pyx_code_cache.count; i>pos; i--) {
        entries[i] = entries[i-1];
    }
    entries[pos].code_line = code_line;
    entries[pos].code_object = code_object;
    __pyx_code_cache.count++;
    Py_INCREF(code_object);
}

/* AddTraceback */
#include "compile.h"
#include "frameobject.h"
#include "traceback.h"
static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
            const char *funcname, int c_line,
            int py_line, const char *filename) {
    PyCodeObject *py_code = 0;
    PyObject *py_srcfile = 0;
    PyObject *py_funcname = 0;
    #if PY_MAJOR_VERSION < 3
    py_srcfile = PyString_FromString(filename);
    #else
    py_srcfile = PyUnicode_FromString(filename);
    #endif
    if (!py_srcfile) goto bad;
    if (c_line) {
        #if PY_MAJOR_VERSION < 3
        py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        #else
        py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        #endif
    }
    else {
        #if PY_MAJOR_VERSION < 3
        py_funcname = PyString_FromString(funcname);
        #else
        py_funcname = PyUnicode_FromString(funcname);
        #endif
    }
    if (!py_funcname) goto bad;
    py_code = __Pyx_PyCode_New(
        0,
        0,
        0,
        0,
        0,
        __pyx_empty_bytes, /*PyObject *code,*/
        __pyx_empty_tuple, /*PyObject *consts,*/
        __pyx_empty_tuple, /*PyObject *names,*/
        __pyx_empty_tuple, /*PyObject *varnames,*/
        __pyx_empty_tuple, /*PyObject *freevars,*/
        __pyx_empty_tuple, /*PyObject *cellvars,*/
        py_srcfile,   /*PyObject *filename,*/
        py_funcname,  /*PyObject *name,*/
        py_line,
        __pyx_empty_bytes  /*PyObject *lnotab*/
    );
    Py_DECREF(py_srcfile);
    Py_DECREF(py_funcname);
    return py_code;
bad:
    Py_XDECREF(py_srcfile);
    Py_XDECREF(py_funcname);
    return NULL;
}
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename) {
    PyCodeObject *py_code = 0;
    PyFrameObject *py_frame = 0;
    PyThreadState *tstate = __Pyx_PyThreadState_Current;
    if (c_line) {
        c_line = __Pyx_CLineForTraceback(tstate, c_line);
    }
    py_code = __pyx_find_code_object(c_line ? -c_line : py_line);
    if (!py_code) {
        py_code = __Pyx_CreateCodeObjectForTraceback(
            funcname, c_line, py_line, filename);
        if (!py_code) goto bad;
        __pyx_insert_code_object(c_line ? -c_line : py_line, py_code);
    }
    py_frame = PyFrame_New(
        tstate,            /*PyThreadState *tstate,*/
        py_code,           /*PyCodeObject *code,*/
        __pyx_d,    /*PyObject *globals,*/
        0                  /*PyObject *locals*/
    );
    if (!py_frame) goto bad;
    __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
    PyTraceBack_Here(py_frame);
bad:
    Py_XDECREF(py_code);
    Py_XDECREF(py_frame);
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_PJ_COORDINATE_SYSTEM_TYPE(PJ_COORDINATE_SYSTEM_TYPE value) {
    const PJ_COORDINATE_SYSTEM_TYPE neg_one = (PJ_COORDINATE_SYSTEM_TYPE) ((PJ_COORDINATE_SYSTEM_TYPE) 0 - (PJ_COORDINATE_SYSTEM_TYPE) 1), const_zero = (PJ_COORDINATE_SYSTEM_TYPE) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(PJ_COORDINATE_SYSTEM_TYPE) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(PJ_COORDINATE_SYSTEM_TYPE) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(PJ_COORDINATE_SYSTEM_TYPE) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(PJ_COORDINATE_SYSTEM_TYPE) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(PJ_COORDINATE_SYSTEM_TYPE) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(PJ_COORDINATE_SYSTEM_TYPE),
                                     little, !is_unsigned);
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_PJ_TYPE(PJ_TYPE value) {
    const PJ_TYPE neg_one = (PJ_TYPE) ((PJ_TYPE) 0 - (PJ_TYPE) 1), const_zero = (PJ_TYPE) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(PJ_TYPE) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(PJ_TYPE) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(PJ_TYPE) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(PJ_TYPE) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(PJ_TYPE) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(PJ_TYPE),
                                     little, !is_unsigned);
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_PJ_WKT_TYPE(PJ_WKT_TYPE value) {
    const PJ_WKT_TYPE neg_one = (PJ_WKT_TYPE) ((PJ_WKT_TYPE) 0 - (PJ_WKT_TYPE) 1), const_zero = (PJ_WKT_TYPE) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(PJ_WKT_TYPE) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(PJ_WKT_TYPE) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(PJ_WKT_TYPE) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(PJ_WKT_TYPE) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(PJ_WKT_TYPE) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(PJ_WKT_TYPE),
                                     little, !is_unsigned);
    }
}

/* CIntFromPyVerify */
#define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
#define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
#define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\
    {\
        func_type value = func_value;\
        if (sizeof(target_type) < sizeof(func_type)) {\
            if (unlikely(value != (func_type) (target_type) value)) {\
                func_type zero = 0;\
                if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\
                    return (target_type) -1;\
                if (is_unsigned && unlikely(value < zero))\
                    goto raise_neg_overflow;\
                else\
                    goto raise_overflow;\
            }\
        }\
        return (target_type) value;\
    }

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_PJ_PROJ_STRING_TYPE(PJ_PROJ_STRING_TYPE value) {
    const PJ_PROJ_STRING_TYPE neg_one = (PJ_PROJ_STRING_TYPE) ((PJ_PROJ_STRING_TYPE) 0 - (PJ_PROJ_STRING_TYPE) 1), const_zero = (PJ_PROJ_STRING_TYPE) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(PJ_PROJ_STRING_TYPE) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(PJ_PROJ_STRING_TYPE) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(PJ_PROJ_STRING_TYPE) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(PJ_PROJ_STRING_TYPE) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(PJ_PROJ_STRING_TYPE) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(PJ_PROJ_STRING_TYPE),
                                     little, !is_unsigned);
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value) {
    const int neg_one = (int) ((int) 0 - (int) 1), const_zero = (int) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(int) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(int) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(int) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(int),
                                     little, !is_unsigned);
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) {
    const long neg_one = (long) ((long) 0 - (long) 1), const_zero = (long) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(long) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(long) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(long) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(long),
                                     little, !is_unsigned);
    }
}

/* CIntFromPy */
static CYTHON_INLINE PJ_WKT_TYPE __Pyx_PyInt_As_PJ_WKT_TYPE(PyObject *x) {
    const PJ_WKT_TYPE neg_one = (PJ_WKT_TYPE) ((PJ_WKT_TYPE) 0 - (PJ_WKT_TYPE) 1), const_zero = (PJ_WKT_TYPE) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(PJ_WKT_TYPE) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(PJ_WKT_TYPE, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (PJ_WKT_TYPE) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (PJ_WKT_TYPE) 0;
                case  1: __PYX_VERIFY_RETURN_INT(PJ_WKT_TYPE, digit, digits[0])
                case 2:
                    if (8 * sizeof(PJ_WKT_TYPE) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PJ_WKT_TYPE, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PJ_WKT_TYPE) >= 2 * PyLong_SHIFT) {
                            return (PJ_WKT_TYPE) (((((PJ_WKT_TYPE)digits[1]) << PyLong_SHIFT) | (PJ_WKT_TYPE)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(PJ_WKT_TYPE) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PJ_WKT_TYPE, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PJ_WKT_TYPE) >= 3 * PyLong_SHIFT) {
                            return (PJ_WKT_TYPE) (((((((PJ_WKT_TYPE)digits[2]) << PyLong_SHIFT) | (PJ_WKT_TYPE)digits[1]) << PyLong_SHIFT) | (PJ_WKT_TYPE)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(PJ_WKT_TYPE) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PJ_WKT_TYPE, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PJ_WKT_TYPE) >= 4 * PyLong_SHIFT) {
                            return (PJ_WKT_TYPE) (((((((((PJ_WKT_TYPE)digits[3]) << PyLong_SHIFT) | (PJ_WKT_TYPE)digits[2]) << PyLong_SHIFT) | (PJ_WKT_TYPE)digits[1]) << PyLong_SHIFT) | (PJ_WKT_TYPE)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (PJ_WKT_TYPE) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(PJ_WKT_TYPE) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(PJ_WKT_TYPE, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(PJ_WKT_TYPE) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(PJ_WKT_TYPE, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (PJ_WKT_TYPE) 0;
                case -1: __PYX_VERIFY_RETURN_INT(PJ_WKT_TYPE, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(PJ_WKT_TYPE,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(PJ_WKT_TYPE) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PJ_WKT_TYPE, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PJ_WKT_TYPE) - 1 > 2 * PyLong_SHIFT) {
                            return (PJ_WKT_TYPE) (((PJ_WKT_TYPE)-1)*(((((PJ_WKT_TYPE)digits[1]) << PyLong_SHIFT) | (PJ_WKT_TYPE)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(PJ_WKT_TYPE) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PJ_WKT_TYPE, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PJ_WKT_TYPE) - 1 > 2 * PyLong_SHIFT) {
                            return (PJ_WKT_TYPE) ((((((PJ_WKT_TYPE)digits[1]) << PyLong_SHIFT) | (PJ_WKT_TYPE)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(PJ_WKT_TYPE) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PJ_WKT_TYPE, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PJ_WKT_TYPE) - 1 > 3 * PyLong_SHIFT) {
                            return (PJ_WKT_TYPE) (((PJ_WKT_TYPE)-1)*(((((((PJ_WKT_TYPE)digits[2]) << PyLong_SHIFT) | (PJ_WKT_TYPE)digits[1]) << PyLong_SHIFT) | (PJ_WKT_TYPE)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(PJ_WKT_TYPE) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PJ_WKT_TYPE, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PJ_WKT_TYPE) - 1 > 3 * PyLong_SHIFT) {
                            return (PJ_WKT_TYPE) ((((((((PJ_WKT_TYPE)digits[2]) << PyLong_SHIFT) | (PJ_WKT_TYPE)digits[1]) << PyLong_SHIFT) | (PJ_WKT_TYPE)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(PJ_WKT_TYPE) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PJ_WKT_TYPE, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PJ_WKT_TYPE) - 1 > 4 * PyLong_SHIFT) {
                            return (PJ_WKT_TYPE) (((PJ_WKT_TYPE)-1)*(((((((((PJ_WKT_TYPE)digits[3]) << PyLong_SHIFT) | (PJ_WKT_TYPE)digits[2]) << PyLong_SHIFT) | (PJ_WKT_TYPE)digits[1]) << PyLong_SHIFT) | (PJ_WKT_TYPE)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(PJ_WKT_TYPE) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PJ_WKT_TYPE, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PJ_WKT_TYPE) - 1 > 4 * PyLong_SHIFT) {
                            return (PJ_WKT_TYPE) ((((((((((PJ_WKT_TYPE)digits[3]) << PyLong_SHIFT) | (PJ_WKT_TYPE)digits[2]) << PyLong_SHIFT) | (PJ_WKT_TYPE)digits[1]) << PyLong_SHIFT) | (PJ_WKT_TYPE)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(PJ_WKT_TYPE) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(PJ_WKT_TYPE, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(PJ_WKT_TYPE) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(PJ_WKT_TYPE, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            PJ_WKT_TYPE val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (PJ_WKT_TYPE) -1;
        }
    } else {
        PJ_WKT_TYPE val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (PJ_WKT_TYPE) -1;
        val = __Pyx_PyInt_As_PJ_WKT_TYPE(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to PJ_WKT_TYPE");
    return (PJ_WKT_TYPE) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to PJ_WKT_TYPE");
    return (PJ_WKT_TYPE) -1;
}

/* CIntFromPy */
static CYTHON_INLINE PJ_PROJ_STRING_TYPE __Pyx_PyInt_As_PJ_PROJ_STRING_TYPE(PyObject *x) {
    const PJ_PROJ_STRING_TYPE neg_one = (PJ_PROJ_STRING_TYPE) ((PJ_PROJ_STRING_TYPE) 0 - (PJ_PROJ_STRING_TYPE) 1), const_zero = (PJ_PROJ_STRING_TYPE) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(PJ_PROJ_STRING_TYPE) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(PJ_PROJ_STRING_TYPE, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (PJ_PROJ_STRING_TYPE) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (PJ_PROJ_STRING_TYPE) 0;
                case  1: __PYX_VERIFY_RETURN_INT(PJ_PROJ_STRING_TYPE, digit, digits[0])
                case 2:
                    if (8 * sizeof(PJ_PROJ_STRING_TYPE) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PJ_PROJ_STRING_TYPE, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PJ_PROJ_STRING_TYPE) >= 2 * PyLong_SHIFT) {
                            return (PJ_PROJ_STRING_TYPE) (((((PJ_PROJ_STRING_TYPE)digits[1]) << PyLong_SHIFT) | (PJ_PROJ_STRING_TYPE)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(PJ_PROJ_STRING_TYPE) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PJ_PROJ_STRING_TYPE, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PJ_PROJ_STRING_TYPE) >= 3 * PyLong_SHIFT) {
                            return (PJ_PROJ_STRING_TYPE) (((((((PJ_PROJ_STRING_TYPE)digits[2]) << PyLong_SHIFT) | (PJ_PROJ_STRING_TYPE)digits[1]) << PyLong_SHIFT) | (PJ_PROJ_STRING_TYPE)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(PJ_PROJ_STRING_TYPE) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PJ_PROJ_STRING_TYPE, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PJ_PROJ_STRING_TYPE) >= 4 * PyLong_SHIFT) {
                            return (PJ_PROJ_STRING_TYPE) (((((((((PJ_PROJ_STRING_TYPE)digits[3]) << PyLong_SHIFT) | (PJ_PROJ_STRING_TYPE)digits[2]) << PyLong_SHIFT) | (PJ_PROJ_STRING_TYPE)digits[1]) << PyLong_SHIFT) | (PJ_PROJ_STRING_TYPE)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (PJ_PROJ_STRING_TYPE) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(PJ_PROJ_STRING_TYPE) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(PJ_PROJ_STRING_TYPE, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(PJ_PROJ_STRING_TYPE) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(PJ_PROJ_STRING_TYPE, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (PJ_PROJ_STRING_TYPE) 0;
                case -1: __PYX_VERIFY_RETURN_INT(PJ_PROJ_STRING_TYPE, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(PJ_PROJ_STRING_TYPE,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(PJ_PROJ_STRING_TYPE) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PJ_PROJ_STRING_TYPE, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PJ_PROJ_STRING_TYPE) - 1 > 2 * PyLong_SHIFT) {
                            return (PJ_PROJ_STRING_TYPE) (((PJ_PROJ_STRING_TYPE)-1)*(((((PJ_PROJ_STRING_TYPE)digits[1]) << PyLong_SHIFT) | (PJ_PROJ_STRING_TYPE)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(PJ_PROJ_STRING_TYPE) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PJ_PROJ_STRING_TYPE, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PJ_PROJ_STRING_TYPE) - 1 > 2 * PyLong_SHIFT) {
                            return (PJ_PROJ_STRING_TYPE) ((((((PJ_PROJ_STRING_TYPE)digits[1]) << PyLong_SHIFT) | (PJ_PROJ_STRING_TYPE)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(PJ_PROJ_STRING_TYPE) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PJ_PROJ_STRING_TYPE, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PJ_PROJ_STRING_TYPE) - 1 > 3 * PyLong_SHIFT) {
                            return (PJ_PROJ_STRING_TYPE) (((PJ_PROJ_STRING_TYPE)-1)*(((((((PJ_PROJ_STRING_TYPE)digits[2]) << PyLong_SHIFT) | (PJ_PROJ_STRING_TYPE)digits[1]) << PyLong_SHIFT) | (PJ_PROJ_STRING_TYPE)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(PJ_PROJ_STRING_TYPE) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PJ_PROJ_STRING_TYPE, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PJ_PROJ_STRING_TYPE) - 1 > 3 * PyLong_SHIFT) {
                            return (PJ_PROJ_STRING_TYPE) ((((((((PJ_PROJ_STRING_TYPE)digits[2]) << PyLong_SHIFT) | (PJ_PROJ_STRING_TYPE)digits[1]) << PyLong_SHIFT) | (PJ_PROJ_STRING_TYPE)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(PJ_PROJ_STRING_TYPE) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PJ_PROJ_STRING_TYPE, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PJ_PROJ_STRING_TYPE) - 1 > 4 * PyLong_SHIFT) {
                            return (PJ_PROJ_STRING_TYPE) (((PJ_PROJ_STRING_TYPE)-1)*(((((((((PJ_PROJ_STRING_TYPE)digits[3]) << PyLong_SHIFT) | (PJ_PROJ_STRING_TYPE)digits[2]) << PyLong_SHIFT) | (PJ_PROJ_STRING_TYPE)digits[1]) << PyLong_SHIFT) | (PJ_PROJ_STRING_TYPE)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(PJ_PROJ_STRING_TYPE) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PJ_PROJ_STRING_TYPE, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PJ_PROJ_STRING_TYPE) - 1 > 4 * PyLong_SHIFT) {
                            return (PJ_PROJ_STRING_TYPE) ((((((((((PJ_PROJ_STRING_TYPE)digits[3]) << PyLong_SHIFT) | (PJ_PROJ_STRING_TYPE)digits[2]) << PyLong_SHIFT) | (PJ_PROJ_STRING_TYPE)digits[1]) << PyLong_SHIFT) | (PJ_PROJ_STRING_TYPE)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(PJ_PROJ_STRING_TYPE) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(PJ_PROJ_STRING_TYPE, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(PJ_PROJ_STRING_TYPE) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(PJ_PROJ_STRING_TYPE, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            PJ_PROJ_STRING_TYPE val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (PJ_PROJ_STRING_TYPE) -1;
        }
    } else {
        PJ_PROJ_STRING_TYPE val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (PJ_PROJ_STRING_TYPE) -1;
        val = __Pyx_PyInt_As_PJ_PROJ_STRING_TYPE(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to PJ_PROJ_STRING_TYPE");
    return (PJ_PROJ_STRING_TYPE) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to PJ_PROJ_STRING_TYPE");
    return (PJ_PROJ_STRING_TYPE) -1;
}

/* CIntFromPy */
static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) {
    const int neg_one = (int) ((int) 0 - (int) 1), const_zero = (int) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(int) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (int) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (int) 0;
                case  1: __PYX_VERIFY_RETURN_INT(int, digit, digits[0])
                case 2:
                    if (8 * sizeof(int) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) >= 2 * PyLong_SHIFT) {
                            return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(int) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) >= 3 * PyLong_SHIFT) {
                            return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(int) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) >= 4 * PyLong_SHIFT) {
                            return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (int) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(int) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (int) 0;
                case -1: __PYX_VERIFY_RETURN_INT(int, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(int,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(int) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
                            return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(int) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
                            return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
                            return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(int) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
                            return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) {
                            return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(int) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) {
                            return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(int) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            int val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (int) -1;
        }
    } else {
        int val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (int) -1;
        val = __Pyx_PyInt_As_int(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to int");
    return (int) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to int");
    return (int) -1;
}

/* CIntFromPy */
static CYTHON_INLINE PJ_TYPE __Pyx_PyInt_As_PJ_TYPE(PyObject *x) {
    const PJ_TYPE neg_one = (PJ_TYPE) ((PJ_TYPE) 0 - (PJ_TYPE) 1), const_zero = (PJ_TYPE) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(PJ_TYPE) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(PJ_TYPE, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (PJ_TYPE) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (PJ_TYPE) 0;
                case  1: __PYX_VERIFY_RETURN_INT(PJ_TYPE, digit, digits[0])
                case 2:
                    if (8 * sizeof(PJ_TYPE) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PJ_TYPE, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PJ_TYPE) >= 2 * PyLong_SHIFT) {
                            return (PJ_TYPE) (((((PJ_TYPE)digits[1]) << PyLong_SHIFT) | (PJ_TYPE)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(PJ_TYPE) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PJ_TYPE, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PJ_TYPE) >= 3 * PyLong_SHIFT) {
                            return (PJ_TYPE) (((((((PJ_TYPE)digits[2]) << PyLong_SHIFT) | (PJ_TYPE)digits[1]) << PyLong_SHIFT) | (PJ_TYPE)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(PJ_TYPE) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PJ_TYPE, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PJ_TYPE) >= 4 * PyLong_SHIFT) {
                            return (PJ_TYPE) (((((((((PJ_TYPE)digits[3]) << PyLong_SHIFT) | (PJ_TYPE)digits[2]) << PyLong_SHIFT) | (PJ_TYPE)digits[1]) << PyLong_SHIFT) | (PJ_TYPE)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (PJ_TYPE) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(PJ_TYPE) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(PJ_TYPE, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(PJ_TYPE) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(PJ_TYPE, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (PJ_TYPE) 0;
                case -1: __PYX_VERIFY_RETURN_INT(PJ_TYPE, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(PJ_TYPE,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(PJ_TYPE) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PJ_TYPE, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PJ_TYPE) - 1 > 2 * PyLong_SHIFT) {
                            return (PJ_TYPE) (((PJ_TYPE)-1)*(((((PJ_TYPE)digits[1]) << PyLong_SHIFT) | (PJ_TYPE)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(PJ_TYPE) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PJ_TYPE, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PJ_TYPE) - 1 > 2 * PyLong_SHIFT) {
                            return (PJ_TYPE) ((((((PJ_TYPE)digits[1]) << PyLong_SHIFT) | (PJ_TYPE)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(PJ_TYPE) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PJ_TYPE, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PJ_TYPE) - 1 > 3 * PyLong_SHIFT) {
                            return (PJ_TYPE) (((PJ_TYPE)-1)*(((((((PJ_TYPE)digits[2]) << PyLong_SHIFT) | (PJ_TYPE)digits[1]) << PyLong_SHIFT) | (PJ_TYPE)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(PJ_TYPE) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PJ_TYPE, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PJ_TYPE) - 1 > 3 * PyLong_SHIFT) {
                            return (PJ_TYPE) ((((((((PJ_TYPE)digits[2]) << PyLong_SHIFT) | (PJ_TYPE)digits[1]) << PyLong_SHIFT) | (PJ_TYPE)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(PJ_TYPE) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PJ_TYPE, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PJ_TYPE) - 1 > 4 * PyLong_SHIFT) {
                            return (PJ_TYPE) (((PJ_TYPE)-1)*(((((((((PJ_TYPE)digits[3]) << PyLong_SHIFT) | (PJ_TYPE)digits[2]) << PyLong_SHIFT) | (PJ_TYPE)digits[1]) << PyLong_SHIFT) | (PJ_TYPE)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(PJ_TYPE) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PJ_TYPE, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PJ_TYPE) - 1 > 4 * PyLong_SHIFT) {
                            return (PJ_TYPE) ((((((((((PJ_TYPE)digits[3]) << PyLong_SHIFT) | (PJ_TYPE)digits[2]) << PyLong_SHIFT) | (PJ_TYPE)digits[1]) << PyLong_SHIFT) | (PJ_TYPE)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(PJ_TYPE) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(PJ_TYPE, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(PJ_TYPE) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(PJ_TYPE, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            PJ_TYPE val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (PJ_TYPE) -1;
        }
    } else {
        PJ_TYPE val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (PJ_TYPE) -1;
        val = __Pyx_PyInt_As_PJ_TYPE(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to PJ_TYPE");
    return (PJ_TYPE) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to PJ_TYPE");
    return (PJ_TYPE) -1;
}

/* CIntFromPy */
static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
    const long neg_one = (long) ((long) 0 - (long) 1), const_zero = (long) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(long) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (long) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (long) 0;
                case  1: __PYX_VERIFY_RETURN_INT(long, digit, digits[0])
                case 2:
                    if (8 * sizeof(long) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) >= 2 * PyLong_SHIFT) {
                            return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(long) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) >= 3 * PyLong_SHIFT) {
                            return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(long) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) >= 4 * PyLong_SHIFT) {
                            return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (long) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(long) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (long) 0;
                case -1: __PYX_VERIFY_RETURN_INT(long, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(long,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(long) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                            return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(long) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                            return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                            return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(long) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                            return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                            return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(long) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                            return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(long) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            long val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (long) -1;
        }
    } else {
        long val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (long) -1;
        val = __Pyx_PyInt_As_long(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to long");
    return (long) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to long");
    return (long) -1;
}

/* CheckBinaryVersion */
static int __Pyx_check_binary_version(void) {
    char ctversion[4], rtversion[4];
    PyOS_snprintf(ctversion, 4, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION);
    PyOS_snprintf(rtversion, 4, "%s", Py_GetVersion());
    if (ctversion[0] != rtversion[0] || ctversion[2] != rtversion[2]) {
        char message[200];
        PyOS_snprintf(message, sizeof(message),
                      "compiletime version %s of module '%.100s' "
                      "does not match runtime version %s",
                      ctversion, __Pyx_MODULE_NAME, rtversion);
        return PyErr_WarnEx(NULL, message, 1);
    }
    return 0;
}

/* FunctionExport */
static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig) {
    PyObject *d = 0;
    PyObject *cobj = 0;
    union {
        void (*fp)(void);
        void *p;
    } tmp;
    d = PyObject_GetAttrString(__pyx_m, (char *)"__pyx_capi__");
    if (!d) {
        PyErr_Clear();
        d = PyDict_New();
        if (!d)
            goto bad;
        Py_INCREF(d);
        if (PyModule_AddObject(__pyx_m, (char *)"__pyx_capi__", d) < 0)
            goto bad;
    }
    tmp.fp = f;
#if PY_VERSION_HEX >= 0x02070000
    cobj = PyCapsule_New(tmp.p, sig, 0);
#else
    cobj = PyCObject_FromVoidPtrAndDesc(tmp.p, (void *)sig, 0);
#endif
    if (!cobj)
        goto bad;
    if (PyDict_SetItemString(d, name, cobj) < 0)
        goto bad;
    Py_DECREF(cobj);
    Py_DECREF(d);
    return 0;
bad:
    Py_XDECREF(cobj);
    Py_XDECREF(d);
    return -1;
}

/* FunctionImport */
#ifndef __PYX_HAVE_RT_ImportFunction
#define __PYX_HAVE_RT_ImportFunction
static int __Pyx_ImportFunction(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
    PyObject *d = 0;
    PyObject *cobj = 0;
    union {
        void (*fp)(void);
        void *p;
    } tmp;
    d = PyObject_GetAttrString(module, (char *)"__pyx_capi__");
    if (!d)
        goto bad;
    cobj = PyDict_GetItemString(d, funcname);
    if (!cobj) {
        PyErr_Format(PyExc_ImportError,
            "%.200s does not export expected C function %.200s",
                PyModule_GetName(module), funcname);
        goto bad;
    }
#if PY_VERSION_HEX >= 0x02070000
    if (!PyCapsule_IsValid(cobj, sig)) {
        PyErr_Format(PyExc_TypeError,
            "C function %.200s.%.200s has wrong signature (expected %.500s, got %.500s)",
             PyModule_GetName(module), funcname, sig, PyCapsule_GetName(cobj));
        goto bad;
    }
    tmp.p = PyCapsule_GetPointer(cobj, sig);
#else
    {const char *desc, *s1, *s2;
    desc = (const char *)PyCObject_GetDesc(cobj);
    if (!desc)
        goto bad;
    s1 = desc; s2 = sig;
    while (*s1 != '\0' && *s1 == *s2) { s1++; s2++; }
    if (*s1 != *s2) {
        PyErr_Format(PyExc_TypeError,
            "C function %.200s.%.200s has wrong signature (expected %.500s, got %.500s)",
             PyModule_GetName(module), funcname, sig, desc);
        goto bad;
    }
    tmp.p = PyCObject_AsVoidPtr(cobj);}
#endif
    *f = tmp.fp;
    if (!(*f))
        goto bad;
    Py_DECREF(d);
    return 0;
bad:
    Py_XDECREF(d);
    return -1;
}
#endif

/* InitStrings */
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
    while (t->p) {
        #if PY_MAJOR_VERSION < 3
        if (t->is_unicode) {
            *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL);
        } else if (t->intern) {
            *t->p = PyString_InternFromString(t->s);
        } else {
            *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
        }
        #else
        if (t->is_unicode | t->is_str) {
            if (t->intern) {
                *t->p = PyUnicode_InternFromString(t->s);
            } else if (t->encoding) {
                *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL);
            } else {
                *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1);
            }
        } else {
            *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1);
        }
        #endif
        if (!*t->p)
            return -1;
        if (PyObject_Hash(*t->p) == -1)
            return -1;
        ++t;
    }
    return 0;
}

static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
    return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str));
}
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject* o) {
    Py_ssize_t ignore;
    return __Pyx_PyObject_AsStringAndSize(o, &ignore);
}
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
#if !CYTHON_PEP393_ENABLED
static const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
    char* defenc_c;
    PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL);
    if (!defenc) return NULL;
    defenc_c = PyBytes_AS_STRING(defenc);
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
    {
        char* end = defenc_c + PyBytes_GET_SIZE(defenc);
        char* c;
        for (c = defenc_c; c < end; c++) {
            if ((unsigned char) (*c) >= 128) {
                PyUnicode_AsASCIIString(o);
                return NULL;
            }
        }
    }
#endif
    *length = PyBytes_GET_SIZE(defenc);
    return defenc_c;
}
#else
static CYTHON_INLINE const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
    if (unlikely(__Pyx_PyUnicode_READY(o) == -1)) return NULL;
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
    if (likely(PyUnicode_IS_ASCII(o))) {
        *length = PyUnicode_GET_LENGTH(o);
        return PyUnicode_AsUTF8(o);
    } else {
        PyUnicode_AsASCIIString(o);
        return NULL;
    }
#else
    return PyUnicode_AsUTF8AndSize(o, length);
#endif
}
#endif
#endif
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
    if (
#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
            __Pyx_sys_getdefaultencoding_not_ascii &&
#endif
            PyUnicode_Check(o)) {
        return __Pyx_PyUnicode_AsStringAndSize(o, length);
    } else
#endif
#if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE))
    if (PyByteArray_Check(o)) {
        *length = PyByteArray_GET_SIZE(o);
        return PyByteArray_AS_STRING(o);
    } else
#endif
    {
        char* result;
        int r = PyBytes_AsStringAndSize(o, &result, length);
        if (unlikely(r < 0)) {
            return NULL;
        } else {
            return result;
        }
    }
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
   int is_true = x == Py_True;
   if (is_true | (x == Py_False) | (x == Py_None)) return is_true;
   else return PyObject_IsTrue(x);
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) {
    int retval;
    if (unlikely(!x)) return -1;
    retval = __Pyx_PyObject_IsTrue(x);
    Py_DECREF(x);
    return retval;
}
static PyObject* __Pyx_PyNumber_IntOrLongWrongResultType(PyObject* result, const char* type_name) {
#if PY_MAJOR_VERSION >= 3
    if (PyLong_Check(result)) {
        if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
                "__int__ returned non-int (type %.200s).  "
                "The ability to return an instance of a strict subclass of int "
                "is deprecated, and may be removed in a future version of Python.",
                Py_TYPE(result)->tp_name)) {
            Py_DECREF(result);
            return NULL;
        }
        return result;
    }
#endif
    PyErr_Format(PyExc_TypeError,
                 "__%.4s__ returned non-%.4s (type %.200s)",
                 type_name, type_name, Py_TYPE(result)->tp_name);
    Py_DECREF(result);
    return NULL;
}
static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) {
#if CYTHON_USE_TYPE_SLOTS
  PyNumberMethods *m;
#endif
  const char *name = NULL;
  PyObject *res = NULL;
#if PY_MAJOR_VERSION < 3
  if (likely(PyInt_Check(x) || PyLong_Check(x)))
#else
  if (likely(PyLong_Check(x)))
#endif
    return __Pyx_NewRef(x);
#if CYTHON_USE_TYPE_SLOTS
  m = Py_TYPE(x)->tp_as_number;
  #if PY_MAJOR_VERSION < 3
  if (m && m->nb_int) {
    name = "int";
    res = m->nb_int(x);
  }
  else if (m && m->nb_long) {
    name = "long";
    res = m->nb_long(x);
  }
  #else
  if (likely(m && m->nb_int)) {
    name = "int";
    res = m->nb_int(x);
  }
  #endif
#else
  if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) {
    res = PyNumber_Int(x);
  }
#endif
  if (likely(res)) {
#if PY_MAJOR_VERSION < 3
    if (unlikely(!PyInt_Check(res) && !PyLong_Check(res))) {
#else
    if (unlikely(!PyLong_CheckExact(res))) {
#endif
        return __Pyx_PyNumber_IntOrLongWrongResultType(res, name);
    }
  }
  else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_TypeError,
                    "an integer is required");
  }
  return res;
}
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
  Py_ssize_t ival;
  PyObject *x;
#if PY_MAJOR_VERSION < 3
  if (likely(PyInt_CheckExact(b))) {
    if (sizeof(Py_ssize_t) >= sizeof(long))
        return PyInt_AS_LONG(b);
    else
        return PyInt_AsSsize_t(b);
  }
#endif
  if (likely(PyLong_CheckExact(b))) {
    #if CYTHON_USE_PYLONG_INTERNALS
    const digit* digits = ((PyLongObject*)b)->ob_digit;
    const Py_ssize_t size = Py_SIZE(b);
    if (likely(__Pyx_sst_abs(size) <= 1)) {
        ival = likely(size) ? digits[0] : 0;
        if (size == -1) ival = -ival;
        return ival;
    } else {
      switch (size) {
         case 2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
      }
    }
    #endif
    return PyLong_AsSsize_t(b);
  }
  x = PyNumber_Index(b);
  if (!x) return -1;
  ival = PyInt_AsSsize_t(x);
  Py_DECREF(x);
  return ival;
}
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) {
  return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False);
}
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
    return PyInt_FromSize_t(ival);
}


#endif /* Py_PYTHON_H */
