Skip to content
Browse files

Merge branch 'master' of git@github.com:Toblerity/rtree

  • Loading branch information...
2 parents 2ec1dfd + 3111c9b commit fc9053f51c7858c804a2ef1210eb4ae2d3b2a0c6 @sgillies sgillies committed Apr 16, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 rtree/index.py
View
7 rtree/index.py
@@ -341,13 +341,12 @@ def insert(self, id, coordinates, obj = None):
"""
p_mins, p_maxs = self.get_coordinate_pointers(coordinates)
+ data = ctypes.c_ubyte(0)
+ size = 0
+ pyserialized = None
if obj is not None:
size, data, pyserialized = self._serialize(obj)
- else:
- data = ctypes.c_ubyte(0)
- size = 0
core.rt.Index_InsertData(self.handle, id, p_mins, p_maxs, self.properties.dimension, data, size)
-
add = insert
def count(self, coordinates):

0 comments on commit fc9053f

Please sign in to comment.
Something went wrong with that request. Please try again.