Is it OK to put dog poop in a neighbor's garbage can?

There are some dilemmas of modern life that our grandparents could never have imagined.  In various locations around this country there is an ongoing public debate about the disposal of dog poop.  Everyone agrees that the dog's owner should pick it up - but there is disagreement about the proper disposal.

The dog's owner is out for a walk.  The dog poops four blocks from home.  The owner bags the poop.  It's garbage pick-up day and the containers are at curbside.  Does he/she place the bagged poop in a nearby container, or carry it all the way home?
According to Minneapolis ordinances, you can’t put “substances or materials of any kind” in a residential garbage can “when the substances or materials were generated at a location other than the residence.”

In St. Paul, ordinances say when a dog poops on someone else’s property, the dog owner has to remove the poop “to a proper receptacle located on property owned or possessed” by the dog owner.
Discussion and various proposed solutions (including stickers to put on garbage cans) at the StarTribune.