Giter Site home page Giter Site logo

rtree's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rtree's Issues

The constructor function of "RTree" is protected

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?

Missing variants of search and intersect APIs

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.

This is actually not a balanced tree!!!

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".

Add examples to the README

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.

bug in branch

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
}
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.