def get_tileset_info(hdf_file):
    """
    Get information about the tileset.

    :param hdf_file: A file handle for an HDF5 file (h5py.File('...'))
    """
    d = hdf_file["meta"]

    if "min-pos" in d.attrs:
        min_pos = d.attrs["min-pos"]
    else:
        min_pos = 0

    if "max-pos" in d.attrs:
        max_pos = d.attrs["max-pos"]
    else:
        max_pos = d.attrs["max-length"]

    return {
        "max_pos": max_pos,
        "min_pos": min_pos,
        "max_width": d.attrs["max-width"],
        "max_zoom": d.attrs["max-zoom"],
        "tile_size": d.attrs["tile-size"],
    }