fork of http://code.google.com/p/mapfile/