#25664: `Point.dims` raises `GEOSException` during access
----------------------------+--------------------
     Reporter:  sir-sigurd  |      Owner:  nobody
         Type:  Bug         |     Status:  new
    Component:  GIS         |    Version:  1.8
     Severity:  Normal      |   Keywords:
 Triage Stage:  Unreviewed  |  Has patch:  0
Easy pickings:  0           |      UI/UX:  0
----------------------------+--------------------
 {{{
 In [3]: Point(0, 0).dims
 ---------------------------------------------------------------------------
 GEOSException                             Traceback (most recent call
 last)
 <ipython-input-3-e86d94f16a63> in <module>()
 ----> 1 Point(0, 0).dims

 /home/sergey/dev/django/django/contrib/gis/geos/geometry.pyc in dims(self)
     246     def dims(self):
     247         "Returns the dimension of this Geometry (0=point, 1=line,
 2=surface)."
 --> 248         return capi.get_dims(self.ptr)
     249
     250     def normalize(self):

 /home/sergey/dev/django/django/contrib/gis/geos/libgeos.pyc in
 __call__(self, *args, **kwargs)
     155         if self.func is None:
     156             self.func = self.get_func(*self.args, **self.kwargs)
 --> 157         return self.func(*args, **kwargs)
     158
     159     def get_func(self, *args, **kwargs):

 /home/sergey/dev/django/django/contrib/gis/geos/prototypes/threadsafe.pyc
 in __call__(self, *args)
      54             # Call the threaded GEOS routine with pointer of the
 context handle
      55             # as the first argument.
 ---> 56             return self.cfunc(self.thread_context.handle.ptr,
 *args)
      57         else:
      58             return self.cfunc(*args)

 /home/sergey/dev/django/django/contrib/gis/geos/prototypes/errcheck.pyc in
 check_zero(result, func, cargs)
      88     "Error checking on routines that should not return 0."
      89     if result == 0:
 ---> 90         raise GEOSException('Error encountered in GEOS C function
 "%s".' % func.__name__)
      91     else:
      92         return result

 GEOSException: Error encountered in GEOS C function
 "GEOSGeom_getDimensions_r".
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25664>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/053.f08a524cd22fd95a180fb329d201cb92%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to