After 3 days trying to solve this, I found that geopy returns
latitude/longitude and GEOS expects coordinates in reversed order. This
fixes my issue with the maps.

Thanks though,
Miguel Araujo

2010/8/27 maraujop <muchoch...@gmail.com>

> Hi everyone,
>
> I'm new to GeoDjango. After installing it and test it. I have created
> a model called Spot which gas a Geography SRID 4326 PointField.
>
> class Spot(models.Model):
>    point = models.PointField(spatial_index = True,
>                            srid = 4326,
>                            geography = True)
>
>    objects = models.GeoManager()
>
> I have activated Open Street Maps admin interface. The points I get
> come from Google geocode API, I'm using geopy library for this. So I
> guess they are in 900913. My problem is that points like (40,-3) that
> are in Spain are being showed in the cost of Kenya. So I guess I'm
> doing something wrong. I was not sure if this map supported 900913 so
> I tried this:
> http://taylanpince.com/blog/posts/adding-geolocation-support-to-geodjango-admin/#comments
>
> But it kept doing the same thing. Any help on this?
>
> Thanks, best regards
> Miguel Araujo

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to