The city of Vancouver generally encourages UrbanAg - see here.
That's cool ! Some cities are less relaxed about what you can grow.
The most famous example being Julie Bass from Oak Park that was charged for a civil misdemeanor after replacing her front lawn with raised beds instead of a lawn after their yard was dug up due to sewage maintenance.
About this incident and others, Steven Kurutz wrote "The Battle of the Front Yard" in the New York Times.