mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-11 11:52:11 +00:00
rtree tests divided into several files.
[SVN r79134]
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
# Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
|
||||
# Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
|
||||
# Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
|
||||
# Copyright (c) 2011-2012 Adam Wulkiewicz, Lodz, Poland.
|
||||
#
|
||||
# Use, modification and distribution is subject to the Boost Software License,
|
||||
# Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||
@@ -14,9 +15,9 @@ project boost-geometry-index-test
|
||||
:
|
||||
requirements
|
||||
<include>.
|
||||
<include>..
|
||||
<include>../..
|
||||
<include>../../..
|
||||
<include>..
|
||||
<include>../..
|
||||
<include>../../..
|
||||
#<include>../../../boost/geometry/extensions/contrib/ttmath
|
||||
<toolset>msvc:<asynch-exceptions>on
|
||||
;
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
# Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
|
||||
# Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
|
||||
# Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
|
||||
# Copyright (c) 2011-2012 Adam Wulkiewicz, Lodz, Poland.
|
||||
#
|
||||
# Use, modification and distribution is subject to the Boost Software License,
|
||||
# Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
|
||||
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
|
||||
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
|
||||
// Copyright (c) 2011-2012 Adam Wulkiewicz, Lodz, Poland.
|
||||
|
||||
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
|
||||
// (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
|
||||
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
|
||||
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
|
||||
// Copyright (c) 2011-2012 Adam Wulkiewicz, Lodz, Poland.
|
||||
|
||||
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
|
||||
// (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
|
||||
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
|
||||
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
|
||||
// Copyright (c) 2011-2012 Adam Wulkiewicz, Lodz, Poland.
|
||||
|
||||
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
|
||||
// (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
|
||||
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
|
||||
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
|
||||
// Copyright (c) 2011-2012 Adam Wulkiewicz, Lodz, Poland.
|
||||
|
||||
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
|
||||
// (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
|
||||
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
|
||||
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
|
||||
// Copyright (c) 2011-2012 Adam Wulkiewicz, Lodz, Poland.
|
||||
|
||||
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
|
||||
// (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
|
||||
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
|
||||
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
|
||||
// Copyright (c) 2011-2012 Adam Wulkiewicz, Lodz, Poland.
|
||||
|
||||
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
|
||||
// (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
|
||||
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
|
||||
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
|
||||
// Copyright (c) 2011-2012 Adam Wulkiewicz, Lodz, Poland.
|
||||
|
||||
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
|
||||
// (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
# Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
|
||||
# Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
|
||||
# Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
|
||||
# Copyright (c) 2011-2012 Adam Wulkiewicz, Lodz, Poland.
|
||||
#
|
||||
# Use, modification and distribution is subject to the Boost Software License,
|
||||
# Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||
@@ -10,7 +11,11 @@
|
||||
|
||||
test-suite boost-geometry-index-rtree
|
||||
:
|
||||
[ run rtree2d.cpp ]
|
||||
[ run rtree3d.cpp ]
|
||||
[ run rtree2d_linear.cpp ]
|
||||
[ run rtree2d_quadratic.cpp ]
|
||||
[ run rtree2d_rstar.cpp ]
|
||||
[ run rtree3d_linear.cpp ]
|
||||
[ run rtree3d_quadratic.cpp ]
|
||||
[ run rtree3d_rstar.cpp ]
|
||||
;
|
||||
|
||||
|
||||
39
test/rtree/rtree2d_linear.cpp
Normal file
39
test/rtree/rtree2d_linear.cpp
Normal file
@@ -0,0 +1,39 @@
|
||||
// Boost.Geometry (aka GGL, Generic Geometry Library)
|
||||
// Unit Test
|
||||
|
||||
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
|
||||
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
|
||||
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
|
||||
// Copyright (c) 2011-2012 Adam Wulkiewicz, Lodz, Poland.
|
||||
|
||||
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
|
||||
// (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
|
||||
|
||||
// Use, modification and distribution is subject to the Boost Software License,
|
||||
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include <rtree/test_rtree.hpp>
|
||||
|
||||
#include <boost/geometry/geometries/point_xy.hpp>
|
||||
#include <boost/geometry/geometries/point.hpp>
|
||||
#include <boost/geometry/geometries/box.hpp>
|
||||
|
||||
int test_main(int, char* [])
|
||||
{
|
||||
typedef bg::model::point<int, 2, bg::cs::cartesian> P2ic;
|
||||
typedef bg::model::point<float, 2, bg::cs::cartesian> P2fc;
|
||||
typedef bg::model::point<double, 2, bg::cs::cartesian> P2dc;
|
||||
|
||||
test_rtree<P2ic, bgi::linear<4, 2> >();
|
||||
test_rtree<P2fc, bgi::linear<4, 2> >();
|
||||
test_rtree<P2dc, bgi::linear<4, 2> >();
|
||||
|
||||
#ifdef HAVE_TTMATH
|
||||
typedef bg::model::point<ttmath_big, 2, bg::cs::cartesian> P2ttmc;
|
||||
|
||||
test_rtree<P2ttmc, bgi::linear<4, 2> >();
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -4,6 +4,7 @@
|
||||
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
|
||||
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
|
||||
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
|
||||
// Copyright (c) 2011-2012 Adam Wulkiewicz, Lodz, Poland.
|
||||
|
||||
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
|
||||
// (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
|
||||
@@ -24,22 +25,14 @@ int test_main(int, char* [])
|
||||
typedef bg::model::point<float, 2, bg::cs::cartesian> P2fc;
|
||||
typedef bg::model::point<double, 2, bg::cs::cartesian> P2dc;
|
||||
|
||||
test_rtree<P2ic, bgi::linear<4, 2> >();
|
||||
test_rtree<P2fc, bgi::linear<4, 2> >();
|
||||
test_rtree<P2dc, bgi::linear<4, 2> >();
|
||||
test_rtree<P2ic, bgi::quadratic<4, 2> >();
|
||||
test_rtree<P2fc, bgi::quadratic<4, 2> >();
|
||||
test_rtree<P2dc, bgi::quadratic<4, 2> >();
|
||||
test_rtree<P2ic, bgi::rstar<4, 2> >();
|
||||
test_rtree<P2fc, bgi::rstar<4, 2> >();
|
||||
test_rtree<P2dc, bgi::rstar<4, 2> >();
|
||||
|
||||
#ifdef HAVE_TTMATH
|
||||
typedef bg::model::point<ttmath_big, 2, bg::cs::cartesian> P2ttmc;
|
||||
|
||||
test_rtree<P2ttmc, bgi::linear<4, 2> >();
|
||||
test_rtree<P2ttmc, bgi::quadratic<4, 2> >();
|
||||
test_rtree<P2ttmc, bgi::rstar<4, 2> >();
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
39
test/rtree/rtree2d_rstar.cpp
Normal file
39
test/rtree/rtree2d_rstar.cpp
Normal file
@@ -0,0 +1,39 @@
|
||||
// Boost.Geometry (aka GGL, Generic Geometry Library)
|
||||
// Unit Test
|
||||
|
||||
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
|
||||
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
|
||||
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
|
||||
// Copyright (c) 2011-2012 Adam Wulkiewicz, Lodz, Poland.
|
||||
|
||||
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
|
||||
// (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
|
||||
|
||||
// Use, modification and distribution is subject to the Boost Software License,
|
||||
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include <rtree/test_rtree.hpp>
|
||||
|
||||
#include <boost/geometry/geometries/point_xy.hpp>
|
||||
#include <boost/geometry/geometries/point.hpp>
|
||||
#include <boost/geometry/geometries/box.hpp>
|
||||
|
||||
int test_main(int, char* [])
|
||||
{
|
||||
typedef bg::model::point<int, 2, bg::cs::cartesian> P2ic;
|
||||
typedef bg::model::point<float, 2, bg::cs::cartesian> P2fc;
|
||||
typedef bg::model::point<double, 2, bg::cs::cartesian> P2dc;
|
||||
|
||||
test_rtree<P2ic, bgi::rstar<4, 2> >();
|
||||
test_rtree<P2fc, bgi::rstar<4, 2> >();
|
||||
test_rtree<P2dc, bgi::rstar<4, 2> >();
|
||||
|
||||
#ifdef HAVE_TTMATH
|
||||
typedef bg::model::point<ttmath_big, 2, bg::cs::cartesian> P2ttmc;
|
||||
|
||||
test_rtree<P2ttmc, bgi::rstar<4, 2> >();
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
39
test/rtree/rtree3d_linear.cpp
Normal file
39
test/rtree/rtree3d_linear.cpp
Normal file
@@ -0,0 +1,39 @@
|
||||
// Boost.Geometry (aka GGL, Generic Geometry Library)
|
||||
// Unit Test
|
||||
|
||||
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
|
||||
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
|
||||
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
|
||||
// Copyright (c) 2011-2012 Adam Wulkiewicz, Lodz, Poland.
|
||||
|
||||
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
|
||||
// (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
|
||||
|
||||
// Use, modification and distribution is subject to the Boost Software License,
|
||||
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include <rtree/test_rtree.hpp>
|
||||
|
||||
#include <boost/geometry/geometries/point_xy.hpp>
|
||||
#include <boost/geometry/geometries/point.hpp>
|
||||
#include <boost/geometry/geometries/box.hpp>
|
||||
|
||||
int test_main(int, char* [])
|
||||
{
|
||||
typedef bg::model::point<int, 3, bg::cs::cartesian> P3ic;
|
||||
typedef bg::model::point<float, 3, bg::cs::cartesian> P3fc;
|
||||
typedef bg::model::point<double, 3, bg::cs::cartesian> P3dc;
|
||||
|
||||
test_rtree<P3ic, bgi::linear<4, 2> >();
|
||||
test_rtree<P3fc, bgi::linear<4, 2> >();
|
||||
test_rtree<P3dc, bgi::linear<4, 2> >();
|
||||
|
||||
#ifdef HAVE_TTMATH
|
||||
typedef bg::model::point<ttmath_big, 3, bg::cs::cartesian> P3ttmc;
|
||||
|
||||
test_rtree<P3ttmc, bgi::linear<4, 2> >();
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -4,6 +4,7 @@
|
||||
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
|
||||
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
|
||||
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
|
||||
// Copyright (c) 2011-2012 Adam Wulkiewicz, Lodz, Poland.
|
||||
|
||||
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
|
||||
// (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
|
||||
@@ -24,22 +25,14 @@ int test_main(int, char* [])
|
||||
typedef bg::model::point<float, 3, bg::cs::cartesian> P3fc;
|
||||
typedef bg::model::point<double, 3, bg::cs::cartesian> P3dc;
|
||||
|
||||
test_rtree<P3ic, bgi::linear<4, 2> >();
|
||||
test_rtree<P3fc, bgi::linear<4, 2> >();
|
||||
test_rtree<P3dc, bgi::linear<4, 2> >();
|
||||
test_rtree<P3ic, bgi::quadratic<4, 2> >();
|
||||
test_rtree<P3fc, bgi::quadratic<4, 2> >();
|
||||
test_rtree<P3dc, bgi::quadratic<4, 2> >();
|
||||
test_rtree<P3ic, bgi::rstar<4, 2> >();
|
||||
test_rtree<P3fc, bgi::rstar<4, 2> >();
|
||||
test_rtree<P3dc, bgi::rstar<4, 2> >();
|
||||
|
||||
#ifdef HAVE_TTMATH
|
||||
typedef bg::model::point<ttmath_big, 3, bg::cs::cartesian> P3ttmc;
|
||||
|
||||
test_rtree<P3ttmc, bgi::linear<4, 2> >();
|
||||
test_rtree<P3ttmc, bgi::quadratic<4, 2> >();
|
||||
test_rtree<P3ttmc, bgi::rstar<4, 2> >();
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
39
test/rtree/rtree3d_rstar.cpp
Normal file
39
test/rtree/rtree3d_rstar.cpp
Normal file
@@ -0,0 +1,39 @@
|
||||
// Boost.Geometry (aka GGL, Generic Geometry Library)
|
||||
// Unit Test
|
||||
|
||||
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
|
||||
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
|
||||
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
|
||||
// Copyright (c) 2011-2012 Adam Wulkiewicz, Lodz, Poland.
|
||||
|
||||
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
|
||||
// (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
|
||||
|
||||
// Use, modification and distribution is subject to the Boost Software License,
|
||||
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include <rtree/test_rtree.hpp>
|
||||
|
||||
#include <boost/geometry/geometries/point_xy.hpp>
|
||||
#include <boost/geometry/geometries/point.hpp>
|
||||
#include <boost/geometry/geometries/box.hpp>
|
||||
|
||||
int test_main(int, char* [])
|
||||
{
|
||||
typedef bg::model::point<int, 3, bg::cs::cartesian> P3ic;
|
||||
typedef bg::model::point<float, 3, bg::cs::cartesian> P3fc;
|
||||
typedef bg::model::point<double, 3, bg::cs::cartesian> P3dc;
|
||||
|
||||
test_rtree<P3ic, bgi::rstar<4, 2> >();
|
||||
test_rtree<P3fc, bgi::rstar<4, 2> >();
|
||||
test_rtree<P3dc, bgi::rstar<4, 2> >();
|
||||
|
||||
#ifdef HAVE_TTMATH
|
||||
typedef bg::model::point<ttmath_big, 3, bg::cs::cartesian> P3ttmc;
|
||||
|
||||
test_rtree<P3ttmc, bgi::rstar<4, 2> >();
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user