Dogs and cats can be a real nuisance in the yard, especially when they do not belong to you. The problem then is what to do to cause the cat or the dog to leave your yard alone without hurting it since it probably is a pet for someone else. Repellents are probably the only effective measure. There are many repellents that have been designed specifically for dogs or cats. Some have bad smells, some spritz the cat or dog with water, and one will create a sound that makes the critter skeedadle.
Products for controlling cats and dogs can be found in Yardener's Tool Shed, click here.