Geodjango: importing data from OSGB_1936, displaying in WGS84?
Posted
by
AP257
on Stack Overflow
See other posts from Stack Overflow
or by AP257
Published on 2010-07-26T15:41:34Z
Indexed on
2011/01/03
4:54 UTC
Read the original article
Hit count: 402
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.
© Stack Overflow or respective owner