The rules are not only country dependant but, in at least some cases' state dependant. Further there are exceptions smaller area exception - for example a beach may have the local council boundary extend out to sea to manage sand banks. 