|
Geometry : |
Subject: [geometry] rtree query and std::back_inserter
From: Hussein Almashouq (hussein.almashouq_at_[hidden])
Date: 2015-06-15 09:05:22
Hi to all I'm using the rtree* to load 1M > data points . Then I use the
rtree query to different intersection query like
found +=rtree.query(bgi::intersects(qbox), std::back_inserter(result));
currently I'm interested in getting the count of results rather than
inserting into the result vector
I have to two question
1. is possible to skip std::back_inserter step and do a query that finds
the count only.
2. How can improve the performance of the std::back_inserter methods as my
results are N^2 where N > 1M usually . ( check this post
https://pkisensee.wordpress.com/2011/06/02/efficient-stl-insertion-tip-of-the-month/
)
Best Regards
Hussein
-- ------------------------------ This message and its contents, including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email.
Geometry list run by mateusz at loskot.net