if I had the room, I'd put the panels on a raised frame on the ground. This would make servicing & cleaning easier and also make it possible to put them at the optimal angle. Not possible/practical on most city lots, however.I have wondered how that works. Most roofing materials don't have a very long life, and to replace it, all of the solar cells would need to be removed and later re-installed. Who pays for that? And what if there is a major hailstorm? Are solar panels hail proof? And will homeowners insurance pay for storm damaged solar panel replacement?
A "green" builder in Bellingham WA went all out on his own property and built a net-zero house that is completely off-grid, not relying on the city for power or water.
"This groundbreaking project is the vision of innovative designer Dan Welch of [bundle] design studio in Bellingham, Washington. Welch designed and built his own home as a case study to validate principles of the Living Building Challenge (LBC), and achieve an "off-grid" Net-Zero Water home. He and his family now use purified rainwater for all uses and treat all their wastewater on-site, approved through progressive local & state green building codes that allowed him to legally decline City water/sewer hookups."
Pretty much a no-holds-barred, proof of concept project. He's in the same neighborhood as my gf, which has large, old lots so he had the room to experiment.