Since there's already a thread about map editing questions, here's a small one; Are the terrain masks for map-making the same as the ones listed in the DB for locmasks of sites?
(Working on a random map generator for fun

)
Those are:
1 plains
2 forest
4 mountain
8 waste
16 farm
32 sea
64 coast
128 swamp
256 deep sea
512 cave
In case you don't feel like checking what the DB says.
(And of course, if not, what are they?)
Sadly, all that mapedit.pdf says is "You should use the map editor to set these values is it would be very difficult to do it by hand"
