I live in a semi-rural area that has requirements of 200 feet of frontage and 100 foot setbacks. Most of the lots are least 2.5 acres. Nevertheless, there is a 30 foot height restriction on buildings. This seems kind of crazy to me. I thought that zoning regulations to "serve a public purpose". Normally a height restriction is meant to prevent shadowing in urban environments. That is totally irrelevant to my community. Also, as far as trees are concerned, most of the trees in the area are 100-feet high, so they tower over the houses. So, there is zero risk that a house would rise above the trees if the height restriction was eliminated.

What is the legal precedent here? Can I just sue the town and get it voided?

Note that I am not interested in just building a particular building here: I want to totally overturn the restriction for everybody. So, in that case I prepared to file a class action with multiple residents as the plaintiffs if need be.