From 0db6db4b28bf4834a4e1d823b910983137b4e134 Mon Sep 17 00:00:00 2001 From: Barend Gehrels Date: Sat, 5 Mar 2011 13:54:32 +0000 Subject: [PATCH] Small renaming and comments [SVN r69582] --- test/geometries/boost_polygon_overlay.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/geometries/boost_polygon_overlay.cpp b/test/geometries/boost_polygon_overlay.cpp index 65790c025..5094c0a61 100644 --- a/test/geometries/boost_polygon_overlay.cpp +++ b/test/geometries/boost_polygon_overlay.cpp @@ -1,6 +1,6 @@ // Boost.Geometry (aka GGL, Generic Geometry Library) test file // -// Copyright Barend Gehrels 2010, Geodan, Amsterdam, the Netherlands +// Copyright Barend Gehrels 2011, 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) @@ -18,7 +18,7 @@ #include template -void test_overlay_using_bp(std::string const& case_id, std::string const& wkt_p, std::string const& wkt_q) +void test_overlay_using_boost_polygon(std::string const& case_id, std::string const& wkt_p, std::string const& wkt_q) { typedef boost::polygon::polygon_set_data polygon_set; @@ -26,7 +26,7 @@ void test_overlay_using_bp(std::string const& case_id, std::string const& wkt_p, polygon_set out_i, out_u; { - // Read it using Boost.Geometry + // Read polygons, conveniently using Boost.Geometry typedef boost::geometry::model::multi_polygon < boost::polygon::polygon_with_holes_data @@ -65,7 +65,7 @@ void test_overlay_using_bp(std::string const& case_id, std::string const& wkt_p, template -void test_overlay_using_bg(std::string const& case_id, std::string const& wkt_p, std::string const& wkt_q) +void test_overlay_using_boost_geometry(std::string const& case_id, std::string const& wkt_p, std::string const& wkt_q) { typedef boost::geometry::model::multi_polygon < @@ -104,8 +104,8 @@ void test_overlay_using_bg(std::string const& case_id, std::string const& wkt_p, template void test_overlay(std::string const& case_id, std::string const& wkt_p, std::string const& wkt_q) { - test_overlay_using_bp(case_id, wkt_p, wkt_q); - test_overlay_using_bg(case_id, wkt_p, wkt_q); + test_overlay_using_boost_polygon(case_id, wkt_p, wkt_q); + test_overlay_using_boost_geometry(case_id, wkt_p, wkt_q); } @@ -116,4 +116,4 @@ int test_main(int, char* []) test_overlay("case 2", "MULTIPOLYGON(((200 400,100 400,100 300,200 400)),((300 100,200 100,200 0,300 0,300 100)),((600 700,500 700,500 600,600 700)),((700 300,600 300,600 200,700 300)),((800 500,700 600,700 500,800 500)),((900 800,800 700,900 700,900 800)),((1000 200,900 100,1000 100,1000 200)),((1000 800,900 900,900 800,1000 800)))", "MULTIPOLYGON(((200 800,100 800,100 700,200 700,200 800)),((400 200,300 100,400 100,400 200)),((400 800,300 700,400 700,400 800)),((700 100,600 0,700 0,700 100)),((700 200,600 200,600 100,700 200)),((900 200,800 200,800 0,900 0,900 200)),((1000 300,900 200,1000 200,1000 300)))"); return 0; -} \ No newline at end of file +}