Creates a SpatialIndex object with the specified parameters.
Returns a SmartPointer to the new SpatialIndex object.
maxDepth specifies the maximum number of times the tree-structured SpatialIndex can branch.