The GeoDjango tutorial explains how to insert world borders into a spatial database.
I would like to create a world Map in HTML with these data, with both map
and area
tags. Something like that.
I just don't know how to retrieve the coordinates for each country (required for the area
's coords
attribute).
from world.models import WorldBorders
for country in WorldBorders.objects.all():
print u'<area shape="poly" title="%s" alt="%s" coords="%s" />' % (v.name, v.name, "???")
Thanks !