save terrain definitions