I have a working image map in mysql/php using hexagons. But I need to be able to generate interesting landmass features. There are about 2400 hexes currently although there could be more. It would be extremely difficult to manually input the terrain type of each hex into the database. I considered a system where I would click on a hex, and the hexes are links since its an image map, and then use a form to manually enter a terrain type into the database using the id, but that would still be pretty tedious and I would have to do this every time I wanted a new map.

Do any of you guys know of a good algorithm to generate good landmasses with hexes?