Comments (3)
Could you explain more about what you're trying to achieve? Preferably with a minimal reproducible example. I mostly work with geometries in R2, so I have to admit that I simply don't understand the phrase "points that could have a single dimension".
from rstar.
I'm not sure it makes sense to use an RTree for less than 2 dimensions.
If I wanted to efficiently insert and query over a 1 dimensional range, I think I'd use a btree:
https://doc.rust-lang.org/stable/std/collections/struct.BTreeMap.html#method.range
Or do you mean that your points will be a mix of 1 and 2(+) dimensions?
from rstar.
I am working with a program that works with problems could be set in different dimensions - I just want to solve all situation with the same piece of code. It's right that btree or other solution is better for one dimensional problem. And I have found the crate that is more suitable for me (kd_tree)
from rstar.
Related Issues (20)
- Panic after inserting `Rectangle` with NaN to `RTree`
- Implement `IntoIterator` for `RTree` HOT 2
- Implement nearest_neighbour_mut HOT 1
- Envelope on Point<f32> fails since v0.10 HOT 9
- Why must point scalars be signed? HOT 9
- Discussion: Flat representation of R-tree HOT 1
- Clarify nearest_neighbors() method HOT 2
- Can I use rstar for geographic points & use a great circle distance? HOT 7
- `attempt to multiply with overflow` when using `i32` HOT 22
- attempt to add with overflow HOT 6
- Enable merge queues and CI runs for PR
- Need to use different types for Point::Scalar and square HOT 1
- rstar with u32, u64, ... HOT 2
- Hash not implemented
- Rectangle does not implement Hash
- New release? HOT 2
- Move PointExt::new to Point HOT 4
- Documentation about bulk load HOT 5
- rstar not listed on https://georust.org/ HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rstar.