Square, straight and ringlike ditches scattered throughout the Bolivian and Brazilian Amazon were there before the rainforest existed, study finds.