Pulling Water from the Air

Emptying my dehumidifier 4 or 5 times a day into my toilet, got my creative juices going. At 1st thought of building toilet tank into a dehumidifier. Then, about filtering the water for drinking water. Then checked areas of the world with water shortage, and the average humidity for those areas. Turns out many had average humidity of 70. Why not pull water out of the air, rather than pipes from dams? Also use solar power for them. Further searching turned up directions for building one for oneself. But I wonder about doing it for entire communities. More details about this tomorrow, but I’d appreciate feed-back.