Even in the prime commercial districts and chic neighborhoods of Bangkok, the nation’s richest city, a short walk reveals miles of cracked pavements, piles of uncollected garbage, and rats scurrying freely. Such wrenching sights are typically accompanied by the pungent odor of a sewage system that is more a problem than a solution, especially during the rainy season.