GithubHelp home page GithubHelp logo

thegeekyasian / geo-assist Goto Github PK

View Code? Open in Web Editor NEW
208.0 5.0 20.0 79 KB

Geo Assist is a spatial library to manage spatial data in-memory.

License: Apache License 2.0

Java 100.00%
geo-spatial geospatial gis java k-d-tree kd-tree location spatial-data tree-structure data-structures

geo-assist's People

Contributors

jenspapenhagen avatar thegeekyasian avatar

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

geo-assist's Issues

Edge Case: What if the system went down ?

Then we have to re runs all the insertions again to this KD Tree

Below is the feature that I am suggesting we can add -
We can have mode that will save this in memory KD Tree to hard disk and after system is up we can rebuild the tree and we don't have to run the insertion again (basically is same like redis stores I guess in hard disk)

Issue: KDTreeObject are inserted to a kdTree but the map inside the kdTree is empty

See the below code

KDTree<Integer, Object> kdTree = new KDTree<>();
kdTree.insert(new KDTreeObject.Builder<Integer, Object>().latitude(25.2002450).longitude(55.2734184).build());
kdTree.insert(new KDTreeObject.Builder<Integer, Object>().latitude(35.2002450).longitude(95.2734184).build());
kdTree.insert(new KDTreeObject.Builder<Integer, Object>().latitude(45.2002450).longitude(15.2734184).build());       

Now in the memory the kdTree will have

  • root with the tree
  • size
  • empty map

Here I guess we shouldn't allow user to build the KDTreeObject without an id

Some suggestions

Awesome project!

Some remarks and questions I have:

  • RAM: using K-d-trees: how is the memory complexity? Can you provide some measurements and graphs for big amounts of data? I think using some OSM country data could be a good idea.

  • What about the time complexity of the supported operations: insertion, fetching and deletion?

  • Is there support to persist the indexes to disk and reread them from disk?

  • I think it would be very helpful to provide some performance comparisons with the geo-spatial indexing engine of some popular databases.

  • What If I have a geospatial element that needs to be updated? For example the latitude needs to be corrected. Is there support for an "UPDATE" operation, and thus is updating the K-d tree possible? Or is there a work around: delete and insert? Maybe a good idea to document this in your README.md

  • What if I also have elevation data?

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.