pylas/extradims.py
def get_id_for_extra_dim_type(type_str):
    """ Returns the index of the type as defined in the LAS Specification

    Parameters
    ----------
    type_str: str

    Returns
    -------
    int
        index of the type

    """
    try:
        return _type_to_extra_dim_id_style_1[type_str]
    except KeyError:
        try:
            return _type_to_extra_dim_id_style_2[type_str]
        except KeyError:
            raise errors.UnknownExtraType(type_str)
def get_id_for_extra_dim_type(type_str):
    try:
        return _type_to_extra_dim_id_style_1[type_str]
    except KeyError:
        try:
            return _type_to_extra_dim_id_style_2[type_str]
        except KeyError:
            raise errors.UnknownExtraType(type_str)
def get_id_for_extra_dim_type ( type_str ) : try : return _type_to_extra_dim_id_style_1 [ type_str ] except KeyError : try : return _type_to_extra_dim_id_style_2 [ type_str ] except KeyError : raise errors . UnknownExtraType ( type_str )
Returns the index of the type as defined in the LAS Specification

    Parameters
    ----------
    type_str: str

    Returns
    -------
    int
        index of the type
Returns the index of the type as defined in the LAS Specification