MyFairyKing, heartfelt thanks for keeping your dog shit in your own garden! If everyone did that, I'd probably accept the occasional pee-up-a-lamppost as a quid pro quo. What chance? Anyone else?
Your question about 'how' to stop a dog you own doing its business where you don't want it: Think of our small children. My own children, the people I love most (sorry, DP!) in the world, I made them wear horrible uncomfortable smelly wet/shitty things - nappies - out of concern for others' sensibilities about their pee and poo. If we do that to our children, why not to our (your) pets?
I know people will scream and laugh at the suggestion, but really, why not? Do you think a dog's feelings are more important than a human child's? I guess some people think that. Me, I think that's just crazy.
The long and the short is: we organise our lives and those of our children to avoid their pee and poo getting everywhere despite the feelings of the children themselves ... Why not organise things in a similar way with regard to pets? (You, fairyking, manage it with poo. Hooray! Come on the rest of you lot! And get thinking about the wee problem!) Is it that hard?
I know the answer, really. To some of you, your pets are more important than your children. To others of you, you think that's not the case but your actions prove otherwise. As I said earlier in the thread, weird.
Threads such as this won't change minds or behaviour much, sadly. But I hope it brings home to some of you dog owners just how weird and inconsistent your ideas are.
(Of course there's none so blind as them that won't see, as my old mum used to say.)