Is there a way of automatically generating a HTML-Map compatible list of coordinates of polygon-like objects (e.g. countries on a map) with very distinctive borders?

Example image:

Map of CEE countries http://www.bankaustria.at/landkarten/CEE_2007_w524.jpg

Final output:

<map id ="ceemap" name="ceemap">
    <area shape="poly" coords="149,303,162,301,162,298,171,293,180,299,169,309,159,306,148,306,149,303" href="austria.html" target ="_blank" alt="Austria" />       
    <!-- ... -->
</map>

Any tools/scripts extracting the coordinates of a polygon-like selection would be helpful.

Edit
Report