Hi everyone
I have some polygon data saved in a PostGIS database with projection SRID 27700.
geom = models.MultiPolygonField(srid=27700)
I want to display the shapes on OpenStreetMap, i.e. with SRID 900913 (I think?).
So, two questions:
- How do I change the code below to output with the right SRID for OpenStreetMap?
How can I change the Django code below to give me a nice json object, ready to display as a polygon?
area = get_object_or_404(soa.objects, code=my_code) polygon = area.geom return render_to_response('area.html', { 'area': area }, context_instance = RequestContext(request))
Apologies if this question doesn't make sense - I'm pretty new to GeoDjango.