> Im afraid that it does not change anything by leaving out the fromstr
> and wkt.
> It is a really weird problem reversing the lat and lng like that...

It's probably because your GEOS polygon has the order wrong to begin
with.  All spatial databases use (x, y) ordering -- in other words
(lon, lat).  Thus, your GEOS geometry should have the coordinates in
(lon, lat) order.  However, mapping APIs use (lat, lon) order
instead.  This is why GPolygon switches the order, to be compatible
with the GMaps API -- and you probably had the order wrong to begin
with in your geometry.

-Justin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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