Questions tagged [libspatialindex]

Questions pertaining to the C/C++ libspatialindex library

libspatialindex is a library providing:

  • Generic main memory and disk based storage managers.
  • R*-tree index (also supports linear and quadratic splitting).
  • MVR-tree index (a.k.a. PPR-tree).
  • TPR-tree index.
  • Advanced query capabilities, using Strategy and Visitor patterns.
  • Arbitrary shaped range queries, by defining generic geometry interfaces.
  • Large parameterization capabilities, including dimensionality, fill factor, node capacity, etc.
  • STR packing / bulk loading.
16 questions
4
votes
2 answers

How do you install Rtree in Heroku?

I am deploying a GIS app on heroku. I developed it in my computer and when I deploy it, rtree is missing. I am not able to install it via pip, since the pip installation is buggy, as stated by the rtree developers themselves. How can I get this…
3
votes
1 answer

BulkLoading the R* tree with spatialindex library

After successfully building the R* tree with spatial library inserting records one-by-one 2.5 million of times, I was trying to create the R* tree with bulkloading. I implemented the DBStream class to iteratively give the data to the BulkLoader.…
arthur
  • 1,034
  • 2
  • 17
  • 31
2
votes
1 answer

pyinstaller EXE OSError: could not find or load spatialindex_c-64.dll

I am using Window 10 64bit to create exe. However, the exe gives error below: File "rtree\core.py", line 126, in OSError: could not find or load spatialindex_c-64.dll [23324] Failed to execute script microwave_python_code I tried below solutions…
2
votes
1 answer

how to find nearest point within querybox(query area) using rtree, python

I m new to python, I m using import rtree library. I m indexin the 2 d dimensional points data into rtree and specifying query box(rectangle). I should get the points which lie inside the query box. But I m getting the nearest point which is out of…
2
votes
2 answers

Is it possible to redefine a macro without the use of ‘undef’?

I am trying to make sense of the libspatialindex source code. Being new to c++, I have difficulty wrapping my head around the concept of macros. The library’s API wrapper for C, sidx_api.cc, directly and indirectly includes numerous headers two of…
Amis71
  • 33
  • 6
2
votes
1 answer

How to install libspatialindex on Google Colaboratory

To efficiently analyse spatial data with Python, I use the rtree spatial index library, relying on the libspatialindex C library. I am able to successfully install rtree in the Google Colaboratory notebook using !pip install rtree. As expected, this…
MartinT
  • 1,671
  • 3
  • 14
  • 14
2
votes
1 answer

libSpatialIndex: loading/storing index on disk

I have a bunch of points and I need to do a nearest neighbor search on them so I'm using the libSpatialIndex. The code is pretty straight forward and the library gives me the option to store the data on disk but I can not load it. the code: int…
2
votes
0 answers

Error while bulk loading in C/C++

I am using libspatialindex (http://libspatialindex.github.io/) library for r-tree construction: I am using the following code bulk loading the (latitude,longitude) in the r-tree. I need to bulk load (id,latitude,longitude) of a given place. The…
user3809749
  • 129
  • 1
  • 6
1
vote
2 answers

OSError: Could not find libspatialindex_c library file on Mac OSX

System: Mac OSX Im relatively new user of Python and currently exploring GIS. Trying to read a shape file with geopandas however I am getting: OSError: Could not find libspatialindex_c library file Using Python 3.7 normally, but since there are…
rldy
  • 11
  • 1
  • 3
1
vote
1 answer

what should be the format of input data file which is passed as an object to MyDataStream stream(argv[1])

I am using "libspatialindex" library for creating an R-tree index. My data is 2 dimensional with the following values: (1, (1,5)), (19, (6,8)), (20, (3,8)), (4, (1,9)). The description of the data is: 1 is a data point and it is present in…
user1778824
  • 369
  • 2
  • 6
  • 15
1
vote
2 answers

(Re)loading the R Tree with spatialindex library

I am bulkloading an R Tree with spatialindex (http://libspatialindex.github.com/) library: string baseName = "streets"; size_t capacity = 10 * 1024 * 1024; bool bWriteThrough = false; indexIdentifier = 0; IStorageManager *disk =…
arthur
  • 1,034
  • 2
  • 17
  • 31
0
votes
1 answer

AttributeError: 'GeoDataFrame' object has no attribute 'overlay'

I get an odd error when I run this overlay intersection using geopandas: grid = grid.overlay(national_outline, how='intersection') The error states no attribute 'overlay' is available despite both grid and national_outline being functioning…
Thirst for Knowledge
  • 1,606
  • 2
  • 26
  • 43
0
votes
0 answers

How to install libspatialindex to enable Rtree in windows?

While installing libspatialindex using pip in Windows I am getting the below error Command: python -m pip install libspatialindex Error: ERROR: Could not find a version that satisfies the requirement libspatialindex (from versions: none) ERROR: No…
0
votes
1 answer

Install libspatialindex on Google Cloud AI platform

I am trying to import rtree in python When importing I get this error OSError: Could not find libspatialindex_c library file Researching online it says I need to install libspatialindex when runnning !pip install libspatialindex in Jupyter, I get…
0
votes
0 answers

Windows 10 Rtree installation successful from .whl file, but error when running code

I am running Python 3.7, 64bit on Windows 10 and trying desperately to get Rtree running. I use the package Rtree-0.9.1-cp37-cp37m-win_amd64.whl from Christoph Gohlke (https://www.lfd.uci.edu/~gohlke/pythonlibs/). I have tried for very long to get…
skyburz
  • 1
  • 1
1
2