What movie or story was 'Avatar' based on?

Avatar was written by James Cameron and is not based on any story. James Cameron has said that it has some similarities to The Emerald Forest and At Play in the Fields of the Lord, and that there is a connection to the film Dances With Wolves.