#11827: GeoQuerySet extent() method fails if contains only one object with point
geometry
-----------------+----------------------------------------------------------
 Reporter:  mal  |       Owner:  nobody    
   Status:  new  |   Milestone:            
Component:  GIS  |     Version:  1.1       
 Keywords:       |       Stage:  Unreviewed
Has_patch:  0    |  
-----------------+----------------------------------------------------------
 I have a point object, with valid, non null geometry.
 {{{
 qs=Point.objects.filter(id=123456)
 }}}
 qs is not empty and contains one object with non null point geometry.

 Then, when calling
 {{{
 qs.extent()
 }}}

 i get the following error (as in the end of the stack trace):
 {{{
      36             # the 4-tuple from the coordinates in the polygon.

      37             poly = SpatialBackend.Geometry(clob.read())
 ---> 38             shell = poly.shell
      39             ll, ur = shell[0], shell[2]
      40             xmin, ymin = ll

 AttributeError: 'Point' object has no attribute 'shell'
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11827>
Django <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to