#30274: Segfault on iteration of GEOS Polygons/LinearRings
-------------------------------------+-------------------------------------
     Reporter:  Murray               |                    Owner:  nobody
  Christopherson                     |
         Type:  Bug                  |                   Status:  new
    Component:  GIS                  |                  Version:  2.1
     Severity:  Normal               |               Resolution:
     Keywords:  geos gis             |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Claude Paroz):

 I can reproduce too. Note that putting `polygon[0]` in a variable runs
 fine:
 {{{
 >>> from django.contrib.gis.geos import Polygon
 >>> polygon = Polygon( ((0.0, 0.0), (0.0, 50.0), (50.0, 50.0), (50.0,
 0.0), (0.0, 0.0)) )
 >>>
 >>> line = polygon[0]
 >>> for p in line:
 ...         print('Longitude:', p[0])
 ...         print('Latitude:', p[1])
 Longitude: 0.0
 Latitude: 0.0
 etc.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30274#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.86ad584d3af8ea1119ef94f4da77492e%40djangoproject.com.

Reply via email to