Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STRtree generics? #777

Open
halset opened this issue Sep 27, 2021 · 2 comments
Open

STRtree generics? #777

halset opened this issue Sep 27, 2021 · 2 comments

Comments

@halset
Copy link
Contributor

halset commented Sep 27, 2021

It would be nice if STRtree & co could work with generics.

STRtree<Geometry> tree = new STRtree<>();
tree.insert(geometry.getEnvelopeInternal(), geometry);
tree.build();
for (Geometry geometry : tree.query(someOtherGeometry)) {
}
@dr-jts
Copy link
Contributor

dr-jts commented Nov 2, 2021

Agreed. Just need a PR to do this!

halset added a commit to halset/jts that referenced this issue Nov 3, 2021
@danishnawab
Copy link
Contributor

I would like to have this integrated as well.
@dr-jts any idea if we could get @halset's PR merged soon? #797

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants