Well, the
Monk Map does just that, so it is certainly possible. There was also a program posted here by
OeufMayo a while back -- I found this reference with Super Search to a talk he did about this
Re: Generating a map using perl, but
drawmap.pl - Spot The Monk! should be even more up your line.