conversant / rtree Goto Github PK
View Code? Open in Web Editor NEWHyper-Dimensional R-Tree Index in Java
License: Apache License 2.0
Hyper-Dimensional R-Tree Index in Java
License: Apache License 2.0
Hi:
It is kind of you to open your source code on github. But I would like to know why you make the constructor function of "RTree" protected?
I would like to use your RTree on my own project, but I find I could not new a RTree, because the constructor is protected.
Would you like to solve this problem?
This line should be
child[i].intersects(rect, consumer);
Current APIs in this RTree fill in results in either statically sized T[] or functionally via Consumer (since Java 8).
It would be nice to support general resizable targets such as any java.util.Collection or resizable T[]. Perhaps extend SpatialSearch with int search(HyperRect, T[], int) for paged search as well, like in Node.
Collection version isn't exactly hard to emulate with a Consumer but is very annoying to implement for every target collection type and not available on Android older than SDK 24.
The R-tree established in this project can't guarantee the balance of the tree. In fact, R-tree described by Guttman is a balanced tree in "R-TREES: A DYNAMIC INDEX STRUCTURE FOR SPATIAL SEARCHING".
Could you add some example use cases to the README? It took me a while to read the code and see how exactly to create an RTree (constructors are protected and it is not so obvious that SpatialSearches should be used) and how to use them.
The RTree constructor (here) have the protected atribute.
How I am suposed to instantiate it once I have imported the library?
Should return 3 instead
hi.I test the code and run some data and find some bug.
In branch.java function add should return this not child[i].return child[i] will miss some leaf.
here is code:
if(size < mMin) {
for(int i=0; i<size; i++) {
if(child[i].getRect().contains(tRect)) {
child[i] = child[i].add(t);
mbr = mbr.getMbr(child[i].getRect());
return child[i];//here should return this
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.