Friends, family and colleagues attended the memorial for Strathclyde Police officer Rod Gellatly, 41, who was killed when a firearm was discharged at Baird Street police station in Glasgow on November 5.
No-one else is believed to have been involved in the incident.
At the civil service, which was held at Linn Crematorium in the south side of the city, tributes were led by Superintendent Gordon Barr, from the force's operational support division, and Pc Gellatly's Baird Street colleague, Pc Dawn McMaster.
Civil services are often used to celebrate the life of the deceased and reflect their individual wishes, as well as those of their family.
Mourners also heard from a family friend, Royal Navy Lieutenant Karl Harwood.
Hundreds of officers lined up on either side of the funeral cortege with their heads bowed, followed by Pc Gellatly's wife Fiona, 44, and other family members.
Pc Gellatly's coffin was draped with a blue Strathclyde Police flag, with his hat on top alongside a wreath of red and white flowers.
A piper played Highland Cathedral as the congregation made their way into the crematorium.
The Boys' Brigade song Will Your Anchor Hold was played inside and a short poem called Afterglow by an unknown writer was read out.