The threats to our cities seem endless - from flash flooding to pollution, overcrowding to the risk of pandemics. To help avert crises, many cities have invested in technology - the theory being…