def aggregate(listFeatures):
    """
    Aggregate the geometries of the input list of features into one geometry.
    
    :param listFeatures: features to aggregate
    :listFeatures type: list of QgsFeatures objects
    
    :return: the aggregated geometry
    :rtype: QgsGeometry object
    """
    aggr = listFeatures[0].geometry()
    
    for i in range (1, len(listFeatures)):
        aggr = aggr.combine(listFeatures[i].geometry())
    
    return aggr