display MultiPolygonField data on Geodjango/OpenLayers

Posted by Markos Gogoulos on Stack Overflow See other posts from Stack Overflow or by Markos Gogoulos
Published on 2010-03-30T19:08:18Z Indexed on 2010/03/30 19:13 UTC
Read the original article Hit count: 615

Filed under:
|

Hi all,

I'm a Geodjango novice and would like to get some help on the following:

I have a MultiPolygonField field, for a GeoDjango application, and would like to display it on my view as cool as it gets displayed on django admin

Say for example I have

def index(request):
    "Index,main view"
    border = WorldBorders.objects.get(name='Italy')
    return render_to_response('world/index.html', {'user': request.user, 'border': border}, context_instance=RequestContext(request)) 

then on world/index.html, what is the way to display the border, as it would be on django admin?

Thanks in advance for all replies!

© Stack Overflow or respective owner

Related posts about geodjango

Related posts about openlayers