/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.
* status: new => assigned
* needs_docs: => 0
* owner: nobody => sir-sigurd
* needs_tests: => 0
* needs_better_patch: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/25664#comment:1>
* has_patch: 0 => 1
Comment:
PR -- https://github.com/django/django/pull/5536
--
Ticket URL: <https://code.djangoproject.com/ticket/25664#comment:2>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"03c6ad7ad44032206a8780f74c693d16ca1f1a37" 03c6ad7]:
{{{
#!CommitTicketReference repository=""
revision="03c6ad7ad44032206a8780f74c693d16ca1f1a37"
Fixed #25664 -- Fixed `dims` for `Point`
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25664#comment:3>