A few more relevant sections from the full text (direct link to PDF) of the Scottish Outdoor Access Code, with my emphasis:
Note: I realise the OP specifically wasn't taking "detailed photographs" of houses or other buildings, but included this passage anyway for more information.
It's...