pylas/vlrs/geotiff.py
def parse_geo_tiff_keys_from_vlrs(vlr_list: vlrlist.VLRList) -> List[GeoTiffKey]:
    """ Gets the 3 GeoTiff vlrs from the vlr_list and parse them into
    a nicer structure

    Parameters
    ----------
    vlr_list: pylas.vrls.vlrslist.VLRList list of vlrs from a las file

    Raises
    ------
        IndexError if any of the needed GeoTiffVLR is not found in the list

    Returns
    -------
    List of GeoTiff keys parsed from the VLRs

    """
    geo_key_dir = vlr_list.get_by_id(
        GeoKeyDirectoryVlr.official_user_id(), GeoKeyDirectoryVlr.official_record_ids()
    )[0]
    geo_doubles = vlr_list.get_by_id(
        GeoDoubleParamsVlr.official_user_id(), GeoDoubleParamsVlr.official_record_ids()
    )[0]
    geo_ascii = vlr_list.get_by_id(
        GeoAsciiParamsVlr.official_user_id(), GeoAsciiParamsVlr.official_record_ids()
    )[0]
    return parse_geo_tiff(geo_key_dir, geo_doubles, geo_ascii)
def parse_geo_tiff_keys_from_vlrs(vlr_list: vlrlist.VLRList) -> List[GeoTiffKey]:
    """ Gets the 3 GeoTiff vlrs from the vlr_list and parse them into
    a nicer structure

    Parameters
    ----------
    vlr_list: pylas.vrls.vlrslist.VLRList list of vlrs from a las file

    Raises
    ------
        IndexError if any of the needed GeoTiffVLR is not found in the list

    Returns
    -------
    List of GeoTiff keys parsed from the VLRs

    """
    geo_key_dir = vlr_list.get_by_id(
        GeoKeyDirectoryVlr.official_user_id(), GeoKeyDirectoryVlr.official_record_ids()
    )[0]
    geo_doubles = vlr_list.get_by_id(
        GeoDoubleParamsVlr.official_user_id(), GeoDoubleParamsVlr.official_record_ids()
    )[0]
    geo_ascii = vlr_list.get_by_id(
        GeoAsciiParamsVlr.official_user_id(), GeoAsciiParamsVlr.official_record_ids()
    )[0]
    return parse_geo_tiff(geo_key_dir, geo_doubles, geo_ascii)
Gets the 3 GeoTiff vlrs from the vlr_list and parse them into
    a nicer structure

    Parameters
    ----------
    vlr_list: pylas.vrls.vlrslist.VLRList list of vlrs from a las file

    Raises
    ------
        IndexError if any of the needed GeoTiffVLR is not found in the list

    Returns
    -------
    List of GeoTiff keys parsed from the VLRs