Property owners who lose ocean views when the government builds protective sand dunes are entitled to compensation, regardless of whether eminent domain comes into play, a New Jersey appeals court held Monday.

The precedential ruling in Petrozzi v. Ocean City was issued one day short of the first anniversary of Hurricane Sandy, which highlighted the effect of dunes in blocking the destructive impact of a storm.