Updated polygon.hpp, ring_type is now reference because it returns a reference to its rings

Updated many test files to avoid point_2d
Updated boost.polygon adaption

[SVN r67178]
This commit is contained in:
Barend Gehrels
2010-12-11 15:51:38 +00:00
parent fa5027dc66
commit 1f90af482d
38 changed files with 207 additions and 212 deletions

View File

@@ -12,11 +12,10 @@
#include <geometry_test_common.hpp>
#include <boost/geometry/geometries/cartesian2d.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/ranges/segment_range.hpp>
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
#include <test_geometries/custom_segment.hpp>
template <typename Segment>
@@ -63,13 +62,13 @@ void test_geometry(std::string const& wkt, std::string const& expected)
template <typename P>
void test_all()
{
test_geometry<test::custom_segment>("linestring(1 1,2 2)", " 11 22");
test_geometry<test::custom_segment>("linestring(4 4,3 3)", " 44 33");
test_geometry<bg::model::segment<P> >("linestring(1 1,2 2)", " 11 22");
test_geometry<bg::model::segment<P> >("linestring(4 4,3 3)", " 44 33");
}
int test_main(int, char* [])
{
test_all<bg::model::d2::point>();
test_all<bg::model::d2::point_xy<double> >();
return 0;
}