[Django] #25664: `Point.dims` raises `GEOSException` during access

7 views
Skip to first unread message

Django

unread,
Nov 2, 2015, 12:26:00 PM11/2/15
to django-...@googlegroups.com
#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.

Django

unread,
Nov 2, 2015, 12:26:06 PM11/2/15
to django-...@googlegroups.com
#25664: `Point.dims` raises `GEOSException` during access
----------------------------+--------------------------------------
Reporter: sir-sigurd | Owner: sir-sigurd
Type: Bug | Status: assigned
Component: GIS | Version: 1.8
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
----------------------------+--------------------------------------
Changes (by sir-sigurd):

* 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>

Django

unread,
Nov 2, 2015, 1:12:11 PM11/2/15
to django-...@googlegroups.com
#25664: `Point.dims` raises `GEOSException` during access
----------------------------+--------------------------------------
Reporter: sir-sigurd | Owner: sir-sigurd
Type: Bug | Status: assigned
Component: GIS | Version: 1.8
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
----------------------------+--------------------------------------
Changes (by sir-sigurd):

* has_patch: 0 => 1


Comment:

PR -- https://github.com/django/django/pull/5536

--
Ticket URL: <https://code.djangoproject.com/ticket/25664#comment:2>

Django

unread,
Nov 2, 2015, 1:52:39 PM11/2/15
to django-...@googlegroups.com
#25664: `Point.dims` raises `GEOSException` during access
----------------------------+--------------------------------------
Reporter: sir-sigurd | Owner: sir-sigurd
Type: Bug | Status: closed
Component: GIS | Version: 1.8
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Unreviewed

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
----------------------------+--------------------------------------
Changes (by Claude Paroz <claude@…>):

* 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>

Reply all
Reply to author
Forward
0 new messages