@classmethod
def FillUnitDatabaseWithPosc(cls, unit_database, fill_categories=True):
    """
        Fills a unit database with the posc values.

        :param UnitDatabase unit_database:
            The unit database to be filled.

        :param bool fill_categories:
            Indicates whether for each quantity type a category with the same name should be created.

        :rtype: UnitDatabase
        :returns:
            The unit database passed as a parameter.
        """
    from .posc import FillUnitDatabaseWithPosc
    unit_database.Clear()
    FillUnitDatabaseWithPosc(unit_database, fill_categories=fill_categories,
        override_categories=True)
    if fill_categories:
        for quantity_alias, quantity_type in cls._ADDITIONAL_CATEGORY_ALIASES.items(
            ):
            unit_database.AddCategory(quantity_alias, quantity_type)
    return unit_database
