§1. A funeral for any deceased member of the faithful must generally be celebrated in his or her parish church.
§2. Any member of the faithful or those competent to take care of the funeral of a deceased member of the faithful are permitted to choose another church for the funeral rite with the consent of the person who governs it and after no-tification of the proper pastor of the deceased.
§3. If a death occurred outside the person’s own parish, and the body was not transferred to it nor another church legitimately chosen for the funeral rite, the funeral is to be celebrated in the church of the parish where the death occurred unless particular law has designated another church.
Source: Code of Canon Law (Vatican.va)