-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
What steps will reproduce the problem?
1. Create a zero-sized length
What is the expected output? What do you see instead?
I expect things to work. I get assertion error.
What version of the product are you using? On what operating system?
Python 2.6.6, Windows Vista.
Please provide any additional information below.
rect = Rect(point.coords[0], point.coords[1], point.coords[0], point.coords[1])
print rect.extent(), point.coords
self.extent = rect.union(self.extent)
self.points.append(point)
Traceback (most recent call last):
File "C:\Users\valit\Desktop\?\?.py", line 89, in <module>
a = PointCollection('?.csv', '?')
File "C:\Users\valit\Desktop\?\?.py", line 39, in __init__
self.rtree.insert(point, rect)
File "C:\Python26\lib\pyrtree\rtree.py", line 45, in insert
self.cursor.insert(o,orect)
File "C:\Python26\lib\pyrtree\rtree.py", line 203, in insert
self._insert_child(_NodeCursor.create_leaf(self.root,leafo,leafrect))
File "C:\Python26\lib\pyrtree\rtree.py", line 92, in create_leaf
assert(res.is_leaf())
AssertionError
This wont give an error:
rect = Rect(point.coords[0], point.coords[1], point.coords[0]+0.0000001,
point.coords[1]+0.0000001)
Original issue reported on code.google.com by qtv...@gmail.com on 9 May 2011 at 12:51
Reactions are currently unavailable