Hello, I am trying to pass the polygon coordinates to my JS array but i do not get numbers. I end up with a JS array in which every polygon is displayed like this :
<Polygon object at 0x14d3ef0> The truth is that i would rather have a numeric format...How could i parse my polygon objects and extract the coordinates? for example i have: fromDB = polygons.objects.all() coordArray = list(e.geometry for e in fromDB) ps. 1. replace() doesn't work because it is not a string 2. transform(4326) works but outputs "POLYGON ((... ... ...))" which is difficult to substract the coords. 3. GDAL methods such as 'wkt' do not work on the polygon object. 4. pretty bad eh? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---