Re: Help with GeoDjango and Google Maps, please...

2008-11-21 Thread Ariel Mauricio Nunez Gomez
ChrisK, I use: * from django.contrib.gis.geos import fromstr gpoly=GPolygon(fromstr(poly.wkt, srid=4326))* --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to d

Re: Help with GeoDjango and Google Maps, please...

2008-11-21 Thread ChrisK
Well, this is interesting. The problem seems to be that GPolygon calls self.latlng_from_coords(poly.shell.coords) to unpack the coordinates. I handed in 2D points for the shell coordinates, but somewhere along the line, a third coordinate of "almost zero" in floating point was added to every po

Help with GeoDjango and Google Maps, please...

2008-11-20 Thread ChrisK
I'm struggling to get django.contrib.gis.maps.google.gmap to do something interesting. I have looked at the embedded examples, and as far as they go, they're great. I would really like to display a polygon using GPolygon, and for the life of me can't figure out the right syntax to get the first ar