|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r81868 - sandbox-branches/geometry/index/test/rtree
From: adam.wulkiewicz_at_[hidden]
Date: 2012-12-11 19:19:30
Author: awulkiew
Date: 2012-12-11 19:19:29 EST (Tue, 11 Dec 2012)
New Revision: 81868
URL: http://svn.boost.org/trac/boost/changeset/81868
Log:
Added commented out tests of rtree spatial queries for Polygon and Ring query regions.
Text files modified:
sandbox-branches/geometry/index/test/rtree/test_rtree.hpp | 45 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 45 insertions(+), 0 deletions(-)
Modified: sandbox-branches/geometry/index/test/rtree/test_rtree.hpp
==============================================================================
--- sandbox-branches/geometry/index/test/rtree/test_rtree.hpp (original)
+++ sandbox-branches/geometry/index/test/rtree/test_rtree.hpp 2012-12-11 19:19:29 EST (Tue, 11 Dec 2012)
@@ -21,6 +21,9 @@
#include <boost/geometry/extensions/index/rtree/visitors/are_levels_ok.hpp>
#include <boost/geometry/extensions/index/rtree/visitors/are_boxes_ok.hpp>
+//#include <boost/geometry/geometries/ring.hpp>
+//#include <boost/geometry/geometries/polygon.hpp>
+
// Set point's coordinates
template <typename Point>
@@ -394,6 +397,16 @@
test_spatial_query(tree, qbox, expected_output);
test_spatial_query(tree, bgi::intersects(qbox), expected_output);
test_spatial_query(tree, !bgi::disjoint(qbox), expected_output);
+
+ /*typedef bg::traits::point_type<Box>::type P;
+ bg::model::ring<P> qring;
+ bg::convert(qbox, qring);
+ test_spatial_query(tree, bgi::intersects(qring), expected_output);
+ test_spatial_query(tree, !bgi::disjoint(qring), expected_output);
+ bg::model::polygon<P> qpoly;
+ bg::convert(qbox, qpoly);
+ test_spatial_query(tree, bgi::intersects(qpoly), expected_output);
+ test_spatial_query(tree, !bgi::disjoint(qpoly), expected_output);*/
}
template <typename Value, typename Algo, typename Box>
@@ -407,6 +420,14 @@
test_spatial_query(tree, bgi::disjoint(qbox), expected_output);
test_spatial_query(tree, !bgi::intersects(qbox), expected_output);
+
+ /*typedef bg::traits::point_type<Box>::type P;
+ bg::model::ring<P> qring;
+ bg::convert(qbox, qring);
+ test_spatial_query(tree, bgi::disjoint(qring), expected_output);
+ bg::model::polygon<P> qpoly;
+ bg::convert(qbox, qpoly);
+ test_spatial_query(tree, bgi::disjoint(qpoly), expected_output);*/
}
@@ -420,6 +441,14 @@
expected_output.push_back(v);
test_spatial_query(tree, bgi::covered_by(qbox), expected_output);
+
+ /*typedef bg::traits::point_type<Box>::type P;
+ bg::model::ring<P> qring;
+ bg::convert(qbox, qring);
+ test_spatial_query(tree, bgi::covered_by(qring), expected_output);
+ bg::model::polygon<P> qpoly;
+ bg::convert(qbox, qpoly);
+ test_spatial_query(tree, bgi::covered_by(qpoly), expected_output);*/
}
template <typename Tag>
@@ -435,6 +464,14 @@
expected_output.push_back(v);
test_spatial_query(tree, bgi::overlaps(qbox), expected_output);
+
+ /*typedef bg::traits::point_type<Box>::type P;
+ bg::model::ring<P> qring;
+ bg::convert(qbox, qring);
+ test_spatial_query(tree, bgi::overlaps(qring), expected_output);
+ bg::model::polygon<P> qpoly;
+ bg::convert(qbox, qpoly);
+ test_spatial_query(tree, bgi::overlaps(qpoly), expected_output);*/
}
};
@@ -503,6 +540,14 @@
expected_output.push_back(v);
test_spatial_query(tree, bgi::within(qbox), expected_output);
+
+ /*typedef bg::traits::point_type<Box>::type P;
+ bg::model::ring<P> qring;
+ bg::convert(qbox, qring);
+ test_spatial_query(tree, bgi::within(qring), expected_output);
+ bg::model::polygon<P> qpoly;
+ bg::convert(qbox, qpoly);
+ test_spatial_query(tree, bgi::within(qpoly), expected_output);*/
}
// rtree nearest queries
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk