Maximising local food production in cities will lead to a trade-off with urban trees as their shade would significantly restrict crop growth, according to a study using Seattle in the northwestern United States as an example.