Skip to content

Commit

Permalink
Make build sindex twice a no-op
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jan 22, 2021
1 parent 5a702c6 commit bcf5187
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions spatialpandas/geometry/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,6 @@ def sindex(self):
def build_sindex(self):
if self._sindex is None:
self._sindex = HilbertRtree(self.bounds)
else:
raise ValueError("Spatial index has already been built.")

@property
def cx(self):
Expand Down

0 comments on commit bcf5187

Please sign in to comment.