English 中文(简体)
Geodjango:从SGB_1936进口数据,见WGS84?
原标题:Geodjango: importing data from OSGB_1936, displaying in WGS84?

我在SGIS数据库中保存了一些多功能数据,预测SRID 27700。

geom = models.MultiPolygonField(srid=27700)

我想展示开放式StreetMap的形状,即与SRID 900913(我想?)的形状。

因此,有两个问题:

  1. How do I change the code below to output with the right SRID for OpenStreetMap?
  2. 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))

如果这个问题没有意义,则道歉——我对GeoDjango来说很新。

问题回答




相关问题
Matrix to Represent a Triangle in Screen Space

So i have a set of four points in 3D Space. P1 [0, 0, 0] P2 [128, 0, 0] P3 [0, 128, 0] P4 [128, 128, 0] Which I m then projecting orthographically to the screen effectively giving me two ...

Using LINQ To SQL with multiple database tables

I have an employee class with as follows: public class Employee { public string FirstName { get; set; } public string LastName { get; set; } public string UserName { get; set; } ...

Mapping points from Euclician 2-space onto a Poincare disc

For some reason it seems that everyone writing webpages about Poincare discs is only concerned with how to represent lines and measure distances. I d like to morph a collection of 2D points (as ...

Fluent NHibernate, varbinary(max) and SQLite

I have a varbinary field in my sql server database that needs to be varbinary(max). I create my database with NHibernate and I use Fluent Nhibernate for my mappings. I also use SQLite for my unit ...

Javascript redirect

I am working with javascript and here is what I am trying to do: 1. Send a get request which looks like "http://localhost:8080/myapp/verify.htm?verifyId=Agkvhs" My requests reaches my verify.jsp in ...

热门标签