def __init__(self, crs, axisorder=None):
        self.id = crs
        self.naming_authority = None
        self.category = None
        self.type = None
        self.authority = None
        self.version = None
        self.code = -1
        self.axisorder = 'xy'
        self.encoding = "code"

        if axisorder is not None:  # forced axisorder
            self.axisorder = axisorder

        values = self.id.split(':')

        if self.id.find('/def/crs/') != -1: # URI Style 1
            self.encoding = "uri"
            vals = self.id.split('/')
            self.authority = vals[5].upper()
            self.code = int(vals[-1])
        elif self.id.find('#') != -1:  # URI Style 2
            self.encoding = "uri"
            vals = self.id.split('#')
            self.authority = vals[0].split('/')[-1].split('.')[0].upper()
            self.code = int(vals[-1])
        elif len(values) > 2:  # it's a URN style
            self.naming_authority = values[1]
            self.encoding = "urn"

            if len(values) == 3:  # bogus
                pass
            elif len(values) == 4:
                self.type = values[2]
            else:
                self.category = values[2]
                self.type = values[3]
                self.authority = values[4].upper()

            if len(values) == 7:  # version, even if empty, is included
                if values[5]:
                    self.version = values[5]

            # code is always the last value
            try:
                self.code = int(values[-1])
            except:
                self.code = values[-1]

        elif len(values) == 2:  # it's an authority:code code
            self.encoding = "code"
            self.authority = values[0].upper()
            self.code = int(values[1])

        # if the user has not forced the axisorder,
        # scan the list of codes that have an axis ordering of
        # yx and set axis order accordingly
        if axisorder is None:
            if axisorder_yx in self.code:
                self.axisorder = 'yx'
dataset/ETHPy150Open geopython/OWSLib/owslib/crs.py/Crs.__init__/swapped operands of `in`