/third_party/boost/libs/geometry/test/algorithms/ |
D | assign.cpp | 37 out << bg::wkt(geometry); in BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS() 45 bg::assign_points(geometry, points); in check_assign_points() 49 bg::assign_points(v, points); in check_assign_points() 55 bg::model::linestring<Point> line; in test_assign_linestring_2d() 59 check_assign_points<bg::model::linestring<Point> >(coors, "LINESTRING(1 2,3 4,5 6)"); in test_assign_linestring_2d() 63 bg::assign_values(points[0], 1, 2); in test_assign_linestring_2d() 64 bg::assign_values(points[1], 3, 4); in test_assign_linestring_2d() 65 bg::assign_values(points[2], 5, 6); in test_assign_linestring_2d() 66 check_assign_points<bg::model::linestring<Point> >(points, "LINESTRING(1 2,3 4,5 6)"); in test_assign_linestring_2d() 73 check_assign_points<bg::model::linestring<Point> >(tuples, "LINESTRING(1 2,3 4,5 6)"); in test_assign_linestring_2d() [all …]
|
D | is_valid_failure.cpp | 35 namespace bg = ::boost::geometry; 37 typedef bg::validity_failure_type failure_type; 39 typedef bg::model::point<double, 2, bg::cs::cartesian> point_type; 40 typedef bg::model::segment<point_type> segment_type; 41 typedef bg::model::box<point_type> box_type; 42 typedef bg::model::linestring<point_type> linestring_type; 43 typedef bg::model::multi_linestring<linestring_type> multi_linestring_type; 44 typedef bg::model::multi_point<point_type> multi_point_type; 51 case bg::no_failure: in to_string() 53 case bg::failure_few_points: in to_string() [all …]
|
D | comparable_distance.cpp | 41 typedef typename bg::default_distance_result<P, P>::type distance_type; in test_distance_result() 43 P p1 = bg::make<P>(0, 0); in test_distance_result() 44 P p2 = bg::make<P>(3, 0); in test_distance_result() 45 P p3 = bg::make<P>(0, 4); in test_distance_result() 47 distance_type dr12 = bg::comparable_distance(p1, p2); in test_distance_result() 48 distance_type dr13 = bg::comparable_distance(p1, p3); in test_distance_result() 49 distance_type dr23 = bg::comparable_distance(p2, p3); in test_distance_result() 61 bg::set<0>(p1, 1); in test_distance_point() 62 bg::set<1>(p1, 1); in test_distance_point() 65 bg::set<0>(p2, 2); in test_distance_point() [all …]
|
D | centroid.cpp | 64 bg::model::polygon<bg::model::d2::point_xy<int> >, in BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS() 65 typename bg::point_type<Polygon>::type, in BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS() 66 typename bg::coordinate_type<Polygon>::type in BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS() 74 test_centroid<bg::model::linestring<P> >("LINESTRING(1 1, 2 2, 3 3)", 2.0, 2.0); in test_2d() 75 test_centroid<bg::model::linestring<P> >("LINESTRING(0 0,0 4, 4 4)", 1.0, 3.0); in test_2d() 76 test_centroid<bg::model::linestring<P> >("LINESTRING(0 0,3 3,0 6,3 9,0 12)", 1.5, 6.0); in test_2d() 78 test_centroid<bg::model::linestring<P> >("LINESTRING(1 1,10 1,1 0,10 0,4 -2,1 1)", in test_2d() 82 test_centroid<bg::model::linestring<P> >("LINESTRING(1 1, 1 1)", 1.0, 1.0); in test_2d() 83 test_centroid<bg::model::linestring<P> >("LINESTRING(1 1)", 1.0, 1.0); in test_2d() 86 bg::model::linestring<P> ls; in test_2d() [all …]
|
D | convert.cpp | 29 bg::model::box<Point1>, in test_mixed_point_types() 30 bg::model::box<Point2> in test_mixed_point_types() 36 bg::model::segment<Point1>, in test_mixed_point_types() 37 bg::model::segment<Point2> in test_mixed_point_types() 44 bg::model::linestring<Point1>, in test_mixed_point_types() 45 bg::model::linestring<Point2> in test_mixed_point_types() 52 bg::model::ring<Point1>, in test_mixed_point_types() 53 bg::model::ring<Point2> in test_mixed_point_types() 59 bg::model::ring<Point1, true>, in test_mixed_point_types() 60 bg::model::ring<Point2, false> in test_mixed_point_types() [all …]
|
D | transform.cpp | 38 BOOST_CHECK(bg::transform(geometry1, geometry2)); in check_transform() 41 result_wkt << bg::wkt(geometry2); in check_transform() 42 expected_wkt << bg::wkt(expected); in check_transform() 50 bg::set<0>(p1, 1); in test_transform_point() 51 bg::set<1>(p1, 2); in test_transform_point() 55 bg::assign(expected, p1); in test_transform_point() 56 bg::multiply_value(expected, value); in test_transform_point() 65 typedef bg::model::linestring<P1> line1_type; in test_transform_linestring() 66 typedef bg::model::linestring<P2> line2_type; in test_transform_linestring() 69 line1.push_back(bg::make<P1>(1, 1)); in test_transform_linestring() [all …]
|
D | simplify.cpp | 38 typedef typename bg::point_type<Geometry>::type point_type; in test_with_ax() 39 typedef bg::strategy::distance::detail::projected_point_ax<> ax_type; in test_with_ax() 40 typedef typename bg::strategy::distance::services::return_type in test_with_ax() 42 bg::strategy::distance::detail::projected_point_ax<>, in test_with_ax() 47 typedef bg::strategy::distance::detail::projected_point_ax_less in test_with_ax() 52 typedef bg::strategy::simplify::detail::douglas_peucker in test_with_ax() 55 bg::strategy::distance::detail::projected_point_ax<>, in test_with_ax() 71 test_geometry<bg::model::linestring<P> >( in test_all() 75 test_geometry<bg::model::linestring<P> >( in test_all() 79 test_geometry<bg::model::linestring<P> >( in test_all() [all …]
|
/third_party/boost/libs/geometry/test/cs_undefined/ |
D | distance.cpp | 18 bg::distance(g.pt, g.pt, bg::strategy::distance::pythagoras<>()); in test_main() 19 bg::distance(g.pt, g.pt, bg::strategy::distance::haversine<>()); in test_main() 20 bg::distance(g.pt, g.pt, bg::strategy::distance::geographic<>()); in test_main() 21 bg::distance(g.pt, g.mpt, bg::strategy::distance::pythagoras<>()); in test_main() 22 bg::distance(g.pt, g.mpt, bg::strategy::distance::haversine<>()); in test_main() 23 bg::distance(g.pt, g.mpt, bg::strategy::distance::geographic<>()); in test_main() 24 bg::distance(g.mpt, g.mpt, bg::strategy::distance::pythagoras<>()); in test_main() 25 bg::distance(g.mpt, g.mpt, bg::strategy::distance::haversine<>()); in test_main() 26 bg::distance(g.mpt, g.mpt, bg::strategy::distance::geographic<>()); in test_main() 27 bg::distance(g.pt, g.ls, bg::strategy::distance::projected_point<>()); in test_main() [all …]
|
D | measure.cpp | 20 bg::area(g.r, bg::strategy::area::cartesian<>()); in test_main() 21 bg::area(g.r, bg::strategy::area::spherical<>()); in test_main() 22 bg::area(g.r, bg::strategy::area::geographic<>()); in test_main() 23 bg::area(g.po, bg::strategy::area::cartesian<>()); in test_main() 24 bg::area(g.po, bg::strategy::area::spherical<>()); in test_main() 25 bg::area(g.po, bg::strategy::area::geographic<>()); in test_main() 26 bg::area(g.mpo, bg::strategy::area::cartesian<>()); in test_main() 27 bg::area(g.mpo, bg::strategy::area::spherical<>()); in test_main() 28 bg::area(g.mpo, bg::strategy::area::geographic<>()); in test_main() 30 bg::length(g.s, bg::strategy::distance::pythagoras<>()); in test_main() [all …]
|
D | envelope_expand.cpp | 19 bg::expand(g.b, g.pt, bg::strategy::expand::cartesian_point()); in test_main() 20 bg::expand(g.b, g.pt, bg::strategy::expand::spherical_point()); in test_main() 21 bg::expand(g.b, g.b, bg::strategy::expand::cartesian_box()); in test_main() 22 bg::expand(g.b, g.b, bg::strategy::expand::spherical_box()); in test_main() 23 bg::expand(g.b, g.s, bg::strategy::expand::cartesian_segment()); in test_main() 24 bg::expand(g.b, g.s, bg::strategy::expand::spherical_segment<>()); in test_main() 25 bg::expand(g.b, g.s, bg::strategy::expand::geographic_segment<>()); in test_main() 27 bg::envelope(g.pt, g.b, bg::strategy::envelope::cartesian_point()); in test_main() 28 bg::envelope(g.pt, g.b, bg::strategy::envelope::spherical_point()); in test_main() 29 bg::envelope(g.b, g.b, bg::strategy::envelope::cartesian_box()); in test_main() [all …]
|
/third_party/boost/libs/geometry/test/algorithms/disjoint/ |
D | disjoint_seg_box.cpp | 32 namespace bg = boost::geometry; 39 test_disjoint<bg::model::box<P>, P>("BOX(1 1,3 3)", "POINT(4 4)", true); in disjoint_tests_1() 40 test_disjoint<bg::model::box<P>, P>("BOX(1 1,3 3)", "POINT(2 2)", false); in disjoint_tests_1() 41 test_disjoint<bg::model::box<P>, P>("BOX(1 1,3 3)", "POINT(3 3)", false); in disjoint_tests_1() 42 test_disjoint<bg::model::box<P>, P>("BOX(1 1,3 3)", "POINT(2 3)", false); in disjoint_tests_1() 44 test_disjoint<bg::model::box<P>, bg::model::box<P> >("BOX(1 1,3 3)", in disjoint_tests_1() 47 test_disjoint<bg::model::box<P>, bg::model::box<P> >("BOX(1 1,3 3)", in disjoint_tests_1() 50 test_disjoint<bg::model::box<P>, bg::model::box<P> >("BOX(1 1,3 3)", in disjoint_tests_1() 53 test_disjoint<bg::model::box<P>, bg::model::box<P> >("BOX(1 1,3 3)", in disjoint_tests_1() 57 test_disjoint<bg::model::box<P>, bg::model::segment<P> >("BOX(1 1,3 3)", in disjoint_tests_1() [all …]
|
/third_party/boost/libs/geometry/test/srs/ |
D | projections_static.cpp | 35 typedef typename bg::coordinate_type<GeoPoint>::type coordinate_type; in test_forward() 36 typedef bg::model::d2::point_xy<coordinate_type> cartesian_point_type; in test_forward() 37 typedef bg::projections::parameters<double> parameters_type; in test_forward() 38 typedef bg::projections::detail::static_wrapper_f in test_forward() 46 bg::srs::detail::proj4_parameters params(sparams); in test_forward() 47 parameters_type par = bg::projections::detail::pj_init<double>(params); in test_forward() 56 … int const distance_expected = static_cast<int>(bg::distance(geo_point1, geo_point2) / 1000.0); in test_forward() 57 int const distance_found = static_cast<int>(bg::distance(xy1, xy2) / 1000.0); in test_forward() 72 catch(bg::projection_exception const& e) in test_forward() 85 typedef bg::model::point<T, 2, bg::cs::geographic<bg::degree> > geo_point_type; in test_all() [all …]
|
/third_party/boost/libs/geometry/test/algorithms/area/ |
D | area_sph_geo.cpp | 25 namespace bg = boost::geometry; 35 typedef typename bg::model::point in test_spherical_geo() 37 ct, 2, bg::cs::geographic<bg::degree> in test_spherical_geo() 40 bg::strategy::area::geographic in test_spherical_geo() 42 bg::strategy::vincenty, in test_spherical_geo() 46 bg::model::polygon<pt_geo> geometry_geo; in test_spherical_geo() 50 typedef typename bg::model::point in test_spherical_geo() 52 ct, 2, bg::cs::spherical_equatorial<bg::degree> in test_spherical_geo() 54 bg::model::polygon<pt> geometry; in test_spherical_geo() 60 bg::strategy::area::spherical in test_spherical_geo() [all …]
|
D | area_geo.cpp | 21 namespace bg = boost::geometry; 29 typedef bg::model::point<CT, 2, bg::cs::geographic<bg::degree> > pt_geo; in test_geo_strategies() 31 bg::strategy::area::geographic<> geographic_default; in test_geo_strategies() 33 bg::strategy::area::geographic<bg::strategy::andoyer, 1> in test_geo_strategies() 35 bg::strategy::area::geographic<bg::strategy::andoyer, 2> in test_geo_strategies() 37 bg::strategy::area::geographic<bg::strategy::andoyer, 3> in test_geo_strategies() 39 bg::strategy::area::geographic<bg::strategy::andoyer, 4> in test_geo_strategies() 41 bg::strategy::area::geographic<bg::strategy::andoyer, 5> in test_geo_strategies() 44 bg::strategy::area::geographic<bg::strategy::thomas, 1> in test_geo_strategies() 46 bg::strategy::area::geographic<bg::strategy::thomas, 2> in test_geo_strategies() [all …]
|
D | area.cpp | 51 test_geometry<bg::model::box<P> >("POLYGON((0 0,2 2))", 4.0); in test_all() 52 test_geometry<bg::model::box<P> >("POLYGON((2 2,0 0))", 4.0); in test_all() 54 test_polygon<bg::model::polygon<P> >(); in test_all() 58 test_geometry<bg::model::ring<P> >("POLYGON((0 0,0 7,4 2,2 0,0 0))", 16.0); in test_all() 59 test_geometry<bg::model::ring<P> >("POLYGON((0 0,2 0,4 2,0 7,0 0))", -16.0); in test_all() 64 test_geometry<bg::model::polygon<P, false> > in test_all() 67 test_geometry<bg::model::polygon<P, false> > in test_all() 70 typedef typename bg::coordinate_type<P>::type coord_type; in test_all() 73 test_geometry<bg::model::polygon<P, false, false> > in test_all() 79 test_geometry<bg::model::polygon<P, false, false> > in test_all() [all …]
|
/third_party/boost/libs/geometry/test/core/ |
D | coordinate_system.cpp | 37 BOOST_CHECK_EQUAL(typeid(typename bg::coordinate_system<G>::type).name(), in BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS() 46 test_geometry<bg::model::linestring<P> , Expected>(); in test_all() 47 test_geometry<bg::model::ring<P> , Expected>(); in test_all() 48 test_geometry<bg::model::polygon<P> , Expected>(); in test_all() 49 test_geometry<bg::model::box<P> , Expected>(); in test_all() 50 test_geometry<bg::model::segment<P> , Expected>(); in test_all() 51 test_geometry<bg::model::referring_segment<P const> , Expected>(); in test_all() 60 test_geometry<int[2], bg::cs::cartesian>(); in test_main() 61 test_geometry<float[2], bg::cs::cartesian>(); in test_main() 62 test_geometry<double[2], bg::cs::cartesian>(); in test_main() [all …]
|
D | ring.cpp | 39 void test_order_closure(bg::order_selector expected_order, bg::closure_selector exptected_closure) in test_order_closure() 41 bg::order_selector order = bg::point_order<Poly>::value; in test_order_closure() 42 bg::closure_selector closure = bg::closure<Poly>::value; in test_order_closure() 55 typedef bg::model::polygon<P> the_polygon; in test_ring() 56 typedef typename bg::ring_type<the_polygon>::type the_ring; in test_ring() 57 typedef typename bg::interior_return_type<the_polygon const>::type the_interior; in test_ring() 60 bg::read_wkt(wkt, poly); in test_ring() 62 the_ring ext = bg::exterior_ring(poly); in test_ring() 63 the_interior rings = bg::interior_rings(poly); in test_ring() 65 BOOST_CHECK_EQUAL(bg::num_interior_rings(poly), expected_interior_ring_count); in test_ring() [all …]
|
/third_party/boost/libs/geometry/test/strategies/ |
D | transform_cs.cpp | 26 T x = bg::get<0>(p); in check_distance() 27 T y = bg::get<1>(p); in check_distance() 28 T z = bg::get<2>(p); in check_distance() 54 bg::model::point<T, 2, bg::cs::spherical<bg::degree> > sp(input_long, input_lat); in test_transformations_spherical() 57 bg::model::point<T, 2, bg::cs::spherical<bg::radian> > spr; in test_transformations_spherical() 58 bg::transform(sp, spr); in test_transformations_spherical() 59 BOOST_CHECK_CLOSE(bg::get<0>(spr), expected_long, 0.001); in test_transformations_spherical() 60 BOOST_CHECK_CLOSE(bg::get<1>(spr), expected_lat, 0.001); in test_transformations_spherical() 63 bg::model::point<T, 3, bg::cs::cartesian> pc3; in test_transformations_spherical() 64 bg::transform(sp, pc3); in test_transformations_spherical() [all …]
|
/third_party/boost/libs/geometry/test/algorithms/intersects/ |
D | intersects_box_geometry.cpp | 25 typedef bg::model::polygon<P1> polygon; in test_all() 26 typedef bg::model::ring<P1> ring; in test_all() 31 test_geometry<P1, bg::model::box<P2> >("POINT(1 1)", "BOX(0 0,2 2)", true); in test_all() 33 test_geometry<polygon, bg::model::box<P2> >( in test_all() 37 test_geometry<ring, bg::model::box<P2> >( in test_all() 41 test_geometry<polygon, bg::model::box<P2> >( in test_all() 45 test_geometry<P1, bg::model::box<P2> >( in test_all() 61 test_geometry<bg::model::segment<P>, bg::model::box<P> >( in test_additional() 65 test_geometry<bg::model::segment<P>, bg::model::box<P> >( in test_additional() 69 test_geometry<bg::model::segment<P>, bg::model::box<P> >( in test_additional() [all …]
|
/third_party/boost/libs/geometry/test/algorithms/distance/ |
D | distance.cpp | 54 namespace services = bg::strategy::distance::services; in test_distance_point() 55 typedef typename bg::default_distance_result<P>::type return_type; in test_distance_point() 60 bg::set<0>(p1, 1); in test_distance_point() 61 bg::set<1>(p1, 1); in test_distance_point() 64 bg::set<0>(p2, 2); in test_distance_point() 65 bg::set<1>(p2, 2); in test_distance_point() 67 return_type d = bg::distance(p1, p2); in test_distance_point() 73 bg::point_tag, bg::point_tag, P in test_distance_point() 76 d = bg::distance(p1, p2, strategy); in test_distance_point() 81 BOOST_CONCEPT_ASSERT( (bg::concepts::PointDistanceStrategy<taxicab_distance, P, P>) ); in test_distance_point() [all …]
|
D | test_distance_geo_common.hpp | 45 namespace bg = ::boost::geometry; 47 typedef bg::srs::spheroid<double> stype; 51 typedef bg::strategy::distance::haversine<double> spherical_pp; 55 typedef bg::strategy::distance::andoyer<stype> andoyer_pp; 56 typedef bg::strategy::distance::thomas<stype> thomas_pp; 57 typedef bg::strategy::distance::vincenty<stype> vincenty_pp; 61 typedef bg::strategy::distance::cross_track<> spherical_ps; 65 typedef bg::strategy::distance::geographic_cross_track<bg::strategy::andoyer, stype, double> 68 typedef bg::strategy::distance::geographic_cross_track<bg::strategy::thomas, stype, double> 71 typedef bg::strategy::distance::geographic_cross_track<bg::strategy::vincenty, stype, double> [all …]
|
/third_party/boost/libs/geometry/test/algorithms/detail/ |
D | calculate_point_order.cpp | 26 inline const char * order_str(bg::order_selector o) in order_str() 28 if (o == bg::clockwise) in order_str() 30 else if (o == bg::counterclockwise) in order_str() 36 inline const char * cs_str(bg::cartesian_tag) in cs_str() 41 inline const char * cs_str(bg::spherical_equatorial_tag) in cs_str() 46 inline const char * cs_str(bg::geographic_tag) in cs_str() 52 inline void test_one(Ring const& ring, bg::order_selector expected) in test_one() 54 typedef typename bg::cs_tag<Ring>::type cs_tag; in test_one() 56 bg::order_selector result = bg::detail::calculate_point_order(ring); in test_one() 58 …BOOST_CHECK_MESSAGE(result == expected, "Expected: " << order_str(expected) << " for " << bg::wkt(… in test_one() [all …]
|
/third_party/boost/libs/geometry/test/algorithms/within/ |
D | within_pointlike_geometry.cpp | 26 typedef bg::model::multi_point<P> mpt; in test_p_p() 48 typedef bg::model::multi_point<P> mpt; in test_p_l() 49 typedef bg::model::segment<P> seg; in test_p_l() 50 typedef bg::model::linestring<P> ls; in test_p_l() 51 typedef bg::model::multi_linestring<ls> mls; in test_p_l() 84 typedef bg::model::multi_point<P> mpt; in test_p_a() 85 typedef bg::model::ring<P> ring; in test_p_a() 86 typedef bg::model::polygon<P> poly; in test_p_a() 87 typedef bg::model::multi_polygon<poly> mpoly; in test_p_a() 155 bg::model::polygon<Point> wrangel; in test_spherical_geographic() [all …]
|
/third_party/boost/libs/geometry/test/arithmetic/ |
D | general.cpp | 36 bg::assign_values(p1, 1, 2, 3); in BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS() 37 bg::add_value(p1, 10); in BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS() 38 BOOST_CHECK(bg::get<0>(p1) == 11); in BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS() 39 BOOST_CHECK(bg::get<1>(p1) == 12); in BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS() 40 BOOST_CHECK(bg::get<2>(p1) == 13); in BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS() 43 bg::add_point(p1, p2); in BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS() 44 BOOST_CHECK(bg::get<0>(p1) == 15); in BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS() 45 BOOST_CHECK(bg::get<1>(p1) == 17); in BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS() 46 BOOST_CHECK(bg::get<2>(p1) == 19); in BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS() 53 bg::assign_values(p1, 1, 2, 3); in test_subtraction() [all …]
|
/third_party/boost/libs/geometry/test/ |
D | minimal.cpp | 19 typedef bg::model::point<double, 2, bg::cs::cartesian> point; in test_main() 20 typedef bg::model::box<point> box; in test_main() 21 typedef bg::model::linestring<point> linestring; in test_main() 22 typedef bg::model::multi_linestring<linestring> mlinestring; in test_main() 23 typedef bg::model::polygon<point> polygon; in test_main() 24 typedef bg::model::multi_polygon<polygon> mpolygon; in test_main() 32 bg::read_wkt("POINT(0 0)", p); in test_main() 33 bg::read_wkt("LINESTRING(0 0,7 7,7 9)", ls); in test_main() 34 bg::read_wkt("MULTILINESTRING((0 0,7 7,7 9),(7 9, 9 9))", mls); in test_main() 35 bg::read_wkt("POLYGON((0 0,0 5,5 5,5 0,0 0),(1 1,4 1,4 4,1 4,1 1))", po); in test_main() [all …]
|