You're asking about eminent domain. In order to take your property they must pay you the fair market value for the house & land. This includes any mineral rights that may be under the property.
A storage shed built in San Diego, California must be at least three feet away from the property line. The eaves of the building must be at least two feet away from the property line.
If the government needs private property for its own use, they should give fair market value to the owner of the property. The property owner can also give the government an easement agreement to the property and still retain ownership.
The legal term is "eminent domain". The power is derived from the 5th Amendment of the United States Constitution. ...nor shall private property be taken for public use, without just compensation.
"just compensation" (5th Amendment)
If your neighbor has no easement rights in your property that would allow him to build a carport then he must remove it if you can establish that the structure encroaches on your property.
just compensation5th amendment
The English philosopher john Locke (1632-1704) believed that all people had rights that no government could take away. He expressed three of them as "life, liberty, and property." He believed that government should be run by the governed for their benefit.
Personal freedoms must not take away the freedom of others.
when the gov't plans on using the land for public use, they must give the owner just compensation for it, and it came from the fifth amendment.
when the gov't plans on using the land for public use, they must give the owner just compensation for it, and it came from the fifth amendment.
You have asked a complicated legal question and the laws vary in the United States. Generally, the local government could condemn the property, thus preventing you from inhabiting the dwelling, and issue an order that requires you make the necessary repairs to bring the property up to code. If you continue to fail to bring the property up to code the structure will fall into disrepair and that could eventually result in a demolition order. If the situation goes that far the city or town could place a demolition lien on the property that must be paid off it the property is ever sold.
The phrase "slog away" is informal. An example of the phrase "slog away" in a sentence is "He must slog away at cutting the wood symmetrically until he has enough pieces to build his model. "