mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-09 23:24:02 +00:00
Moved wkt (used in nearly all tests) from extension to domains tree for release
[SVN r69906]
This commit is contained in:
parent
0fc4cf96fb
commit
c1b1b4a6c7
26
doc/acknowledgments.qbk
Normal file
26
doc/acknowledgments.qbk
Normal file
@ -0,0 +1,26 @@
|
||||
[/============================================================================
|
||||
Boost.Geometry (aka GGL, Generic Geometry Library)
|
||||
|
||||
Copyright (c) 2009-2011 Barend Gehrels, Geodan, Amsterdam, the Netherlands.
|
||||
Copyright (c) 2009-2011 Mateusz Loskot (mateusz@loskot.net)
|
||||
Copyright (c) 2009-2011 Bruno Lalande, Paris, France.
|
||||
|
||||
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)
|
||||
=============================================================================/]
|
||||
|
||||
[section Acknowledgments]
|
||||
|
||||
We like to thank all the people who helped in a way to develop this library.
|
||||
|
||||
First of all we are grateful to Hartmut Kaiser for managing the formal review of this library. Hartmut was a very good review manager, who intervented when necessary and produced the review report quickly. He has also supported the library by subscribing to the GGL mailing list and participating actively on it.
|
||||
|
||||
We thank the 14 reviewers of our library, reviewed from November 5, 2009 to November 22, 2009. Reviews have been written by: Brandon Kohn, Christophe Henry, Fabio Fracassi, Gordon Woodhull, Joachim Faulhaber, Jonathan Franklin, Jose, Lucanus Simonson, Michael Caisse, Michael Fawcett, Paul Bristow, Phil Endecott, Thomas Klimpel, Tom Brinkman
|
||||
|
||||
We also thank all people who discussed on the list about Boost.Geometry, in preview stage or in review stage or after that. We cannot mention all those names, but we like to mention those who, sometimes with a short message, did have a major influence on our design: Dave Abrahams (for the hint on tag dispatching when we were lost in SFINAE), John Fem.... TODO (for the hint on the set of metafunctions for traits), and Mathias Gaunard (for the hint on ranges instead of iterators).
|
||||
|
||||
Finally I (Barend) would like to thank my former employer, Geodan, I've worked there for 16 years, started a geographic library in 1995 which after a number of incarnations, redesigns, refactorings, previews, a review and even more refactorings have led to the now released Boost.Geometry. [/And with them I want to thank those who were initially involved in the library, Maarten Hilfering, Valik, Anne Blankert, and later on Sjoerd Schreuder, Steven Fruitier and Paul den Dulk.]
|
||||
|
||||
[endsect]
|
||||
|
@ -22,7 +22,7 @@ OBSOLETE
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/geometries/adapted/std_as_linestring.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
|
||||
// All functions below are referred to in the documentation of Boost.Geometry
|
||||
|
@ -16,7 +16,7 @@ OBSOLETE
|
||||
|
||||
#include <boost/geometry/multi/multi.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/extensions/io/svg/write_svg_multi.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/io/svg/svg_mapper.hpp>
|
||||
|
@ -63,54 +63,16 @@ All algorithms in Boost.Geometry will check any geometry arguments against the c
|
||||
[def __boost_geometry__ Boost.Geometry]
|
||||
[def __boost_gil__ [@http://www.boost.org/libs/gil/ Boost.GIL]]
|
||||
|
||||
[heading Contributions]
|
||||
|
||||
[*In progress]
|
||||
Boost.Geometry contains contributions by:
|
||||
|
||||
Examples of documentation:
|
||||
Area algorithm [link geometry.reference.algorithms.area.area_1 here]
|
||||
Simplify algorithm [link geometry.reference.algorithms.simplify.simplify_3 here]
|
||||
* Akira Takahashi (adaption of Boost.Fusion)
|
||||
* Alfredo Correa (adaption of Boost.Array)
|
||||
* Adam Wulkiewicz (spatial indexes) [footnote Currently an extension]
|
||||
* Federico Fern\u00E1ndez (spatial indexes) [footnote Currently an extension]
|
||||
|
||||
[import src/examples/quick_start.cpp]
|
||||
[import src/examples/algorithms/area.cpp]
|
||||
[import src/examples/algorithms/area_with_strategy.cpp]
|
||||
[import src/examples/algorithms/append.cpp]
|
||||
[import src/examples/algorithms/assign_2d_point.cpp]
|
||||
[import src/examples/algorithms/assign_3d_point.cpp]
|
||||
[import src/examples/algorithms/assign_box_corners.cpp]
|
||||
[import src/examples/algorithms/assign_inverse.cpp]
|
||||
[import src/examples/algorithms/assign_with_range.cpp]
|
||||
[import src/examples/algorithms/assign_point_to_index.cpp]
|
||||
[import src/examples/algorithms/assign_point_from_index.cpp]
|
||||
[import src/examples/algorithms/difference.cpp]
|
||||
[import src/examples/algorithms/difference_inserter.cpp]
|
||||
[import src/examples/algorithms/envelope.cpp]
|
||||
[import src/examples/algorithms/for_each_point.cpp]
|
||||
[import src/examples/algorithms/for_each_point_const.cpp]
|
||||
[import src/examples/algorithms/for_each_segment_const.cpp]
|
||||
[import src/examples/algorithms/length.cpp]
|
||||
[import src/examples/algorithms/length_with_strategy.cpp]
|
||||
[import src/examples/algorithms/make_2d_point.cpp]
|
||||
[import src/examples/algorithms/make_3d_point.cpp]
|
||||
[import src/examples/algorithms/make_envelope.cpp]
|
||||
[import src/examples/algorithms/make_inverse.cpp]
|
||||
[import src/examples/algorithms/make_with_range.cpp]
|
||||
[import src/examples/algorithms/intersection_ls_ls_point.cpp]
|
||||
[import src/examples/algorithms/intersection_segment.cpp]
|
||||
[import src/examples/algorithms/intersection_poly_poly.cpp]
|
||||
[import src/examples/algorithms/intersects_linestring.cpp]
|
||||
[import src/examples/algorithms/num_geometries.cpp]
|
||||
[import src/examples/algorithms/num_interior_rings.cpp]
|
||||
[import src/examples/algorithms/num_points.cpp]
|
||||
[import src/examples/algorithms/simplify.cpp]
|
||||
[import src/examples/algorithms/simplify_inserter.cpp]
|
||||
[import src/examples/algorithms/sym_difference.cpp]
|
||||
[import src/examples/algorithms/union.cpp]
|
||||
[import src/examples/core/get_point.cpp]
|
||||
[import src/examples/core/get_box.cpp]
|
||||
[import src/examples/core/set_point.cpp]
|
||||
[import src/examples/core/set_box.cpp]
|
||||
[import src/examples/geometries/point.cpp]
|
||||
[import src/examples/geometries/register/point.cpp]
|
||||
[include imports.qbk]
|
||||
|
||||
[include introduction.qbk]
|
||||
[include quickstart.qbk]
|
||||
|
53
doc/imports.qbk
Normal file
53
doc/imports.qbk
Normal file
@ -0,0 +1,53 @@
|
||||
[/============================================================================
|
||||
Boost.Geometry (aka GGL, Generic Geometry Library)
|
||||
|
||||
Copyright (c) 2009-2011 Barend Gehrels, Geodan, Amsterdam, the Netherlands.
|
||||
Copyright (c) 2009-2011 Mateusz Loskot (mateusz@loskot.net)
|
||||
Copyright (c) 2009-2011 Bruno Lalande, Paris, France.
|
||||
|
||||
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)
|
||||
=============================================================================/]
|
||||
|
||||
[import src/examples/quick_start.cpp]
|
||||
[import src/examples/algorithms/area.cpp]
|
||||
[import src/examples/algorithms/area_with_strategy.cpp]
|
||||
[import src/examples/algorithms/append.cpp]
|
||||
[import src/examples/algorithms/assign_2d_point.cpp]
|
||||
[import src/examples/algorithms/assign_3d_point.cpp]
|
||||
[import src/examples/algorithms/assign_box_corners.cpp]
|
||||
[import src/examples/algorithms/assign_inverse.cpp]
|
||||
[import src/examples/algorithms/assign_with_range.cpp]
|
||||
[import src/examples/algorithms/assign_point_to_index.cpp]
|
||||
[import src/examples/algorithms/assign_point_from_index.cpp]
|
||||
[import src/examples/algorithms/difference.cpp]
|
||||
[import src/examples/algorithms/difference_inserter.cpp]
|
||||
[import src/examples/algorithms/envelope.cpp]
|
||||
[import src/examples/algorithms/for_each_point.cpp]
|
||||
[import src/examples/algorithms/for_each_point_const.cpp]
|
||||
[import src/examples/algorithms/for_each_segment_const.cpp]
|
||||
[import src/examples/algorithms/length.cpp]
|
||||
[import src/examples/algorithms/length_with_strategy.cpp]
|
||||
[import src/examples/algorithms/make_2d_point.cpp]
|
||||
[import src/examples/algorithms/make_3d_point.cpp]
|
||||
[import src/examples/algorithms/make_envelope.cpp]
|
||||
[import src/examples/algorithms/make_inverse.cpp]
|
||||
[import src/examples/algorithms/make_with_range.cpp]
|
||||
[import src/examples/algorithms/intersection_ls_ls_point.cpp]
|
||||
[import src/examples/algorithms/intersection_segment.cpp]
|
||||
[import src/examples/algorithms/intersection_poly_poly.cpp]
|
||||
[import src/examples/algorithms/intersects_linestring.cpp]
|
||||
[import src/examples/algorithms/num_geometries.cpp]
|
||||
[import src/examples/algorithms/num_interior_rings.cpp]
|
||||
[import src/examples/algorithms/num_points.cpp]
|
||||
[import src/examples/algorithms/simplify.cpp]
|
||||
[import src/examples/algorithms/simplify_inserter.cpp]
|
||||
[import src/examples/algorithms/sym_difference.cpp]
|
||||
[import src/examples/algorithms/union.cpp]
|
||||
[import src/examples/core/get_point.cpp]
|
||||
[import src/examples/core/get_box.cpp]
|
||||
[import src/examples/core/set_point.cpp]
|
||||
[import src/examples/core/set_box.cpp]
|
||||
[import src/examples/geometries/point.cpp]
|
||||
[import src/examples/geometries/register/point.cpp]
|
@ -8,5 +8,5 @@
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/multi/multi.hpp>
|
||||
#include <boost/geometry/multi/geometries/multi_point.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
namespace bg = boost::geometry; /*< Convenient namespace alias >*/
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
namespace bg = boost::geometry; /*< Convenient namespace alias >*/
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
/*<-*/ #include "create_svg_overlay.hpp" /*->*/
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
/*<-*/ #include "create_svg_overlay.hpp" /*->*/
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
/*<-*/ #include "create_svg_two.hpp" /*->*/
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
|
||||
template <typename Point>
|
||||
|
@ -14,7 +14,7 @@
|
||||
#include <deque>
|
||||
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/geometries/adapted/std_as_linestring.hpp> /*< Adapts std::vector to linestring concept >*/
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
/*<-*/ #include "create_svg_overlay.hpp" /*->*/
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include <iostream>
|
||||
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/geometries/adapted/std_as_linestring.hpp> /*< Adapts std::vector to linestring concept >*/
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include <iostream>
|
||||
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include <iostream>
|
||||
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
|
||||
int main()
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include <boost/geometry/multi/multi.hpp>
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/multi/geometries/multi_polygon.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
|
||||
int main()
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include <boost/geometry/multi/multi.hpp>
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/multi/geometries/multi_polygon.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
|
||||
int main()
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include <boost/geometry/multi/multi.hpp>
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/multi/geometries/multi_polygon.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
|
||||
int main()
|
||||
|
@ -12,8 +12,8 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/stream_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/stream_wkt.hpp>
|
||||
|
||||
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/multi/geometries/multi_polygon.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
/*<-*/ #include "create_svg_overlay.hpp" /*->*/
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
#include <boost/foreach.hpp>
|
||||
/*<-*/ #include "create_svg_overlay.hpp" /*->*/
|
||||
|
@ -20,7 +20,7 @@
|
||||
#include <boost/geometry/strategies/transform.hpp>
|
||||
#include <boost/geometry/strategies/transform/matrix_transformers.hpp>
|
||||
#include <boost/geometry/extensions/io/svg/write_svg.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/random.hpp>
|
||||
|
@ -22,13 +22,11 @@
|
||||
#include <boost/graph/dijkstra_shortest_paths.hpp>
|
||||
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
|
||||
|
||||
// Yes, this example currently uses some extensions:
|
||||
|
||||
// For input:
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
|
||||
// For output:
|
||||
#include <boost/geometry/extensions/io/svg/svg_mapper.hpp>
|
||||
|
||||
|
@ -26,13 +26,11 @@
|
||||
#include <boost/graph/dijkstra_shortest_paths.hpp>
|
||||
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
|
||||
|
||||
// Yes, this example currently uses some extensions:
|
||||
|
||||
// For input:
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
|
||||
// For output:
|
||||
#include <boost/geometry/extensions/io/svg/svg_mapper.hpp>
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
namespace bg = boost::geometry;
|
||||
namespace proto = boost::proto;
|
||||
|
@ -17,7 +17,7 @@
|
||||
#include <boost/geometry/extensions/gis/io/shapelib/shp_create_object_multi.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/shapelib/dbf_write_attribute.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
|
||||
// Writing shapefiles has never been easier.
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/algorithms/parse.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/stream_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/stream_wkt.hpp>
|
||||
#include <boost/geometry/extensions/gis/latlong/latlong.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/parameters.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/proj/robin.hpp>
|
||||
|
@ -9,7 +9,7 @@
|
||||
// Projection example 2, using factory
|
||||
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/stream_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/stream_wkt.hpp>
|
||||
#include <boost/geometry/extensions/gis/latlong/latlong.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/parameters.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/factory.hpp>
|
||||
|
@ -15,7 +15,7 @@
|
||||
#include <boost/geometry/geometries/register/point.hpp>
|
||||
#include <boost/geometry/multi/geometries/multi_polygon.hpp>
|
||||
#include <boost/geometry/extensions/io/svg/write_svg.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt_multi.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt_multi.hpp>
|
||||
#include <boost/geometry/extensions/gis/latlong/latlong.hpp>
|
||||
#include <boost/geometry/extensions/gis/projections/project_transformer.hpp>
|
||||
|
||||
|
@ -33,7 +33,7 @@
|
||||
#include <boost/geometry/extensions/gis/latlong/latlong.hpp>
|
||||
#include <boost/geometry/extensions/gis/geographic/strategies/area_huiller_earth.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
|
||||
#include <gd.h>
|
||||
|
@ -36,7 +36,7 @@
|
||||
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/geometries/adapted/tuple_cartesian.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
|
||||
|
||||
|
@ -30,7 +30,7 @@
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
|
||||
struct city
|
||||
|
@ -32,7 +32,7 @@
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkb/read_wkb.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkb/utility.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
// user-defined type with GGL geometry
|
||||
struct tree
|
||||
|
@ -33,7 +33,7 @@
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkb/read_wkb.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkb/utility.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
|
@ -22,8 +22,8 @@
|
||||
#include <boost/geometry/geometries/register/ring.hpp>
|
||||
#include <boost/geometry/multi/multi.hpp>
|
||||
#include <boost/geometry/extensions/algorithms/selected.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt_multi.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt_multi.hpp>
|
||||
|
||||
|
||||
// wxWidgets, if these headers are NOT found, adapt include path (and lib path)
|
||||
|
@ -20,7 +20,7 @@
|
||||
#include "shapefil.h"
|
||||
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/stream_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/stream_wkt.hpp>
|
||||
|
||||
using namespace boost::geometry;
|
||||
|
||||
|
@ -28,7 +28,7 @@
|
||||
|
||||
#include <boost/geometry/multi/multi.hpp>
|
||||
#include <boost/geometry/extensions/algorithms/selected.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
|
||||
|
||||
|
@ -15,8 +15,8 @@
|
||||
|
||||
#include <boost/geometry/util/write_dsv.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/write_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/write_wkt.hpp>
|
||||
|
||||
#include <boost/geometry/geometries/point_xy.hpp>
|
||||
#include <boost/geometry/geometries/box.hpp>
|
||||
|
@ -15,7 +15,7 @@
|
||||
#include <boost/geometry/algorithms/detail/sections/range_by_section.hpp>
|
||||
#include <boost/geometry/iterators/range_type.hpp>
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
|
||||
|
||||
|
@ -16,8 +16,8 @@
|
||||
#include <boost/geometry/algorithms/num_points.hpp>
|
||||
#include <boost/geometry/algorithms/detail/sections/sectionalize.hpp>
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/write_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/write_wkt.hpp>
|
||||
|
||||
#include <test_common/test_point.hpp>
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
#include <boost/geometry/algorithms/disjoint.hpp>
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/strategies/strategies.hpp>
|
||||
|
||||
#include <test_common/test_point.hpp>
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
#include <boost/geometry/algorithms/make.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/write_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/write_wkt.hpp>
|
||||
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/geometries/adapted/c_array_cartesian.hpp>
|
||||
|
@ -25,8 +25,8 @@
|
||||
|
||||
#include <boost/geometry/strategies/strategies.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/write_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/write_wkt.hpp>
|
||||
|
||||
|
||||
|
||||
@ -86,9 +86,9 @@ inline void test_assemble(std::string const& id, Geometry const& p, Geometry con
|
||||
|| abs(diff_d2) < 0.001;
|
||||
|
||||
BOOST_CHECK_MESSAGE(ok,
|
||||
id << " diff: "
|
||||
<< diff << " d1: "
|
||||
<< diff_d1 << " d2: "
|
||||
id << " diff: "
|
||||
<< diff << " d1: "
|
||||
<< diff_d1 << " d2: "
|
||||
<< diff_d2);
|
||||
}
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
#include <geometry_test_common.hpp>
|
||||
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
#if defined(TEST_WITH_SVG)
|
||||
# include <boost/geometry/extensions/io/svg/svg_mapper.hpp>
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include <boost/geometry/strategies/strategies.hpp>
|
||||
#include <boost/geometry/multi/multi.hpp>
|
||||
#include <boost/geometry/multi/geometries/multi_polygon.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt_multi.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt_multi.hpp>
|
||||
#include <boost/geometry/extensions/io/svg/write_svg_multi.hpp>
|
||||
|
||||
|
||||
|
@ -25,8 +25,8 @@
|
||||
#include <boost/geometry/geometries/adapted/tuple_cartesian.hpp>
|
||||
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/write_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/write_wkt.hpp>
|
||||
|
||||
|
||||
#if defined(TEST_WITH_SVG)
|
||||
|
@ -28,7 +28,7 @@
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/multi/multi.hpp>
|
||||
#include <boost/geometry/multi/geometries/multi_polygon.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/extensions/io/svg/svg_mapper.hpp>
|
||||
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/multi/multi.hpp>
|
||||
#include <boost/geometry/multi/geometries/multi_polygon.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/extensions/io/svg/svg_mapper.hpp>
|
||||
|
||||
|
||||
@ -183,7 +183,7 @@ int main(int argc, char** argv)
|
||||
po::store(po::parse_command_line(argc, argv, description), varmap);
|
||||
po::notify(varmap);
|
||||
|
||||
if (varmap.count("help")
|
||||
if (varmap.count("help")
|
||||
|| (form != "box" && form != "triangle"))
|
||||
{
|
||||
std::cout << description << std::endl;
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/multi/multi.hpp>
|
||||
#include <boost/geometry/multi/geometries/multi_polygon.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/extensions/io/svg/svg_mapper.hpp>
|
||||
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
|
||||
#include <boost/geometry/algorithms/detail/overlay/debug_turn_info.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/extensions/io/svg/svg_mapper.hpp>
|
||||
|
||||
#include <geometry_test_common.hpp>
|
||||
@ -83,7 +83,7 @@ static bool test_overlay_p_q(std::string const& caseid,
|
||||
double sum_d2 = (area_u - area_p) - area_d2;
|
||||
bool wrong_d1 = std::abs(sum_d1) > settings.tolerance;
|
||||
bool wrong_d2 = std::abs(sum_d2) > settings.tolerance;
|
||||
|
||||
|
||||
if (wrong_d1 || wrong_d2)
|
||||
{
|
||||
wrong = true;
|
||||
@ -113,7 +113,7 @@ static bool test_overlay_p_q(std::string const& caseid,
|
||||
|
||||
if (settings.also_difference)
|
||||
{
|
||||
std::cout
|
||||
std::cout
|
||||
<< " area d1: " << area_d1
|
||||
<< " area d2: " << area_d2;
|
||||
}
|
||||
@ -153,12 +153,12 @@ static bool test_overlay_p_q(std::string const& caseid,
|
||||
{
|
||||
for (BOOST_AUTO(it, out_d.begin()); it != out_d.end(); ++it)
|
||||
{
|
||||
mapper.map(*it,
|
||||
mapper.map(*it,
|
||||
"opacity:0.8;fill:none;stroke:rgb(255,128,0);stroke-width:4;stroke-dasharray:1,7;stroke-linecap:round");
|
||||
}
|
||||
for (BOOST_AUTO(it, out_d2.begin()); it != out_d2.end(); ++it)
|
||||
{
|
||||
mapper.map(*it,
|
||||
mapper.map(*it,
|
||||
"opacity:0.8;fill:none;stroke:rgb(255,0,255);stroke-width:4;stroke-dasharray:1,7;stroke-linecap:round");
|
||||
}
|
||||
}
|
||||
|
@ -20,8 +20,8 @@
|
||||
|
||||
#include <boost/geometry/strategies/strategies.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/write_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/write_wkt.hpp>
|
||||
|
||||
|
||||
|
||||
|
@ -17,8 +17,8 @@
|
||||
|
||||
#include <boost/geometry/strategies/strategies.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/write_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/write_wkt.hpp>
|
||||
|
||||
|
||||
#if defined(TEST_WITH_SVG)
|
||||
|
@ -35,7 +35,7 @@
|
||||
|
||||
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
#define TEST_WITH_SVG
|
||||
|
||||
|
@ -14,11 +14,11 @@
|
||||
#include <boost/geometry/algorithms/area.hpp>
|
||||
#include <boost/geometry/strategies/strategies.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
|
||||
|
||||
template <typename Geometry>
|
||||
void test_area(Geometry const& geometry,
|
||||
void test_area(Geometry const& geometry,
|
||||
typename bg::area_result<Geometry>::type expected_area)
|
||||
{
|
||||
typename bg::area_result<Geometry>::type area = bg::area(geometry);
|
||||
@ -55,7 +55,7 @@ void test_area(Geometry const& geometry,
|
||||
}
|
||||
|
||||
template <typename Geometry>
|
||||
void test_geometry(std::string const& wkt,
|
||||
void test_geometry(std::string const& wkt,
|
||||
typename bg::area_result<Geometry>::type expected_area)
|
||||
{
|
||||
Geometry geometry;
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include <boost/geometry/algorithms/centroid.hpp>
|
||||
#include <boost/geometry/algorithms/distance.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
|
||||
|
||||
template<std::size_t D>
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
#include <boost/geometry/algorithms/combine.hpp>
|
||||
#include <boost/geometry/strategies/strategies.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/algorithms/assign.hpp>
|
||||
#include <boost/geometry/util/write_dsv.hpp>
|
||||
|
||||
|
@ -16,8 +16,8 @@
|
||||
|
||||
#include <boost/geometry/strategies/strategies.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/write_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/write_wkt.hpp>
|
||||
|
||||
#include <boost/geometry/geometries/polygon.hpp>
|
||||
|
||||
|
@ -34,7 +34,7 @@
|
||||
|
||||
#include <boost/geometry/strategies/strategies.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
|
||||
#if defined(TEST_WITH_SVG)
|
||||
@ -96,7 +96,7 @@ void test_difference(std::string const& caseid, G1 const& g1, G2 const& g2,
|
||||
{
|
||||
boost::copy(array_with_one_empty_geometry, bg::difference_inserter<OutputType>(g1, g2, std::back_inserter(inserted)));
|
||||
}
|
||||
|
||||
|
||||
BOOST_CHECK_EQUAL(boost::size(clip), boost::size(inserted) - 1);
|
||||
}
|
||||
#endif
|
||||
@ -150,7 +150,7 @@ void test_difference(std::string const& caseid, G1 const& g1, G2 const& g2,
|
||||
for (typename std::vector<OutputType>::const_iterator it = clip.begin();
|
||||
it != clip.end(); ++it)
|
||||
{
|
||||
mapper.map(*it,
|
||||
mapper.map(*it,
|
||||
//sym ? "fill-opacity:0.2;stroke-opacity:0.4;fill:rgb(255,255,0);stroke:rgb(255,0,255);stroke-width:8" :
|
||||
"fill-opacity:0.2;stroke-opacity:0.4;fill:rgb(255,0,0);stroke:rgb(255,0,255);stroke-width:8");
|
||||
}
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include <geometry_test_common.hpp>
|
||||
|
||||
#include <boost/geometry/algorithms/distance.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/strategies/strategies.hpp>
|
||||
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
#include <boost/geometry/geometries/box.hpp>
|
||||
#include <boost/geometry/strategies/strategies.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
|
||||
|
||||
template<typename Box, std::size_t DimensionCount>
|
||||
|
@ -15,7 +15,7 @@
|
||||
#include <boost/geometry/algorithms/equals.hpp>
|
||||
#include <boost/geometry/strategies/strategies.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
|
||||
|
||||
template <typename Geometry1, typename Geometry2>
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
#include <boost/geometry/algorithms/distance.hpp>
|
||||
#include <boost/geometry/strategies/strategies.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/util/write_dsv.hpp>
|
||||
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
#include <boost/geometry/strategies/strategies.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
|
||||
#if defined(TEST_WITH_SVG)
|
||||
@ -36,7 +36,7 @@
|
||||
|
||||
|
||||
template <typename OutputType, typename CalculationType, typename G1, typename G2>
|
||||
typename bg::area_result<G1>::type test_intersection(std::string const& caseid,
|
||||
typename bg::area_result<G1>::type test_intersection(std::string const& caseid,
|
||||
G1 const& g1, G2 const& g2,
|
||||
std::size_t expected_count = 0, std::size_t expected_point_count = 0,
|
||||
double expected_length_or_area = 0,
|
||||
@ -174,7 +174,7 @@ typename bg::area_result<G1>::type test_intersection(std::string const& caseid,
|
||||
}
|
||||
|
||||
template <typename OutputType, typename G1, typename G2>
|
||||
typename bg::area_result<G1>::type test_one(std::string const& caseid,
|
||||
typename bg::area_result<G1>::type test_one(std::string const& caseid,
|
||||
std::string const& wkt1, std::string const& wkt2,
|
||||
std::size_t expected_count = 0, std::size_t expected_point_count = 0,
|
||||
double expected_length_or_area = 0,
|
||||
|
@ -17,7 +17,7 @@
|
||||
#include <boost/geometry/geometries/ring.hpp>
|
||||
#include <boost/geometry/geometries/polygon.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
|
||||
|
||||
template <typename Geometry1, typename Geometry2>
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include <geometry_test_common.hpp>
|
||||
|
||||
#include <boost/geometry/algorithms/length.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/strategies/strategies.hpp>
|
||||
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
#include <boost/geometry/geometries/ring.hpp>
|
||||
#include <boost/geometry/geometries/polygon.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
|
||||
|
||||
template <typename Geometry1, typename Geometry2>
|
||||
|
@ -15,7 +15,7 @@
|
||||
#include <boost/geometry/strategies/strategies.hpp>
|
||||
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
|
||||
|
||||
template <typename Geometry>
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include <geometry_test_common.hpp>
|
||||
#include <boost/geometry/algorithms/reverse.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
|
||||
template <typename Geometry>
|
||||
|
@ -15,7 +15,7 @@
|
||||
#include <boost/geometry/algorithms/distance.hpp>
|
||||
#include <boost/geometry/strategies/strategies.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
template <typename Tag, typename Geometry>
|
||||
struct test_inserter
|
||||
|
@ -26,7 +26,7 @@
|
||||
|
||||
#include <boost/geometry/strategies/strategies.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
|
||||
#if defined(TEST_WITH_SVG)
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include <geometry_test_common.hpp>
|
||||
#include <boost/geometry/algorithms/unique.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
|
||||
template <typename Geometry>
|
||||
|
@ -17,7 +17,7 @@
|
||||
#include <boost/geometry/geometries/ring.hpp>
|
||||
#include <boost/geometry/geometries/polygon.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
|
||||
|
||||
template <typename Geometry1, typename Geometry2>
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
|
||||
#include <boost/geometry/util/write_dsv.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
#include <test_common/test_point.hpp>
|
||||
|
||||
|
@ -18,9 +18,27 @@
|
||||
|
||||
#include <algorithms/overlay/overlay_cases.hpp>
|
||||
|
||||
static std::string javier4[2] =
|
||||
{
|
||||
"POLYGON((-2 2, 1842 2, 1842 -2362, -2 -2362, -2 2), (0 0, 0 -2360, 1840 -2360, 1840 0, 0 0))",
|
||||
// "POLYGON((-0.01 -1960, 0 -1960, 0 -1880, 0.01 -1960, -0.01 -1960))"
|
||||
"POLYGON ((-0.01 -1960, 80.01 -1960, 0 -1880, -0.01 -1960))"
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
template <typename Ring, typename Polygon>
|
||||
void test_areal()
|
||||
{
|
||||
test_one<Polygon, Polygon, Polygon>("javier4",
|
||||
javier4[0], javier4[1],
|
||||
1, 1, 13, 20016.4);
|
||||
|
||||
test_one<Polygon, Polygon, Polygon>("simplex_normal",
|
||||
simplex_normal[0], simplex_normal[1],
|
||||
1, 0, 13, 11.526367);
|
||||
|
@ -21,7 +21,7 @@
|
||||
#include <boost/geometry/geometries/polygon.hpp>
|
||||
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
|
||||
|
||||
|
||||
|
@ -58,7 +58,7 @@
|
||||
|
||||
#include <boost/geometry/strategies/buffer.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
|
||||
|
||||
@ -110,32 +110,32 @@ void test_buffer(std::string const& caseid, Geometry const& geometry,
|
||||
> inserter_type;
|
||||
|
||||
|
||||
/***/
|
||||
/***/
|
||||
typedef bg::box<point_type> box_type;
|
||||
typedef bg::sections<box_type, 1> sections_type;
|
||||
|
||||
sections_type sections;
|
||||
bg::sectionalize(geometry, sections);
|
||||
|
||||
std::vector<GeometryOut> sections_buffered;
|
||||
std::vector<GeometryOut> sections_buffered;
|
||||
|
||||
|
||||
// Buffer all sections separately
|
||||
// Buffer all sections separately
|
||||
BOOST_FOREACH(typename sections_type::value_type const& section, sections)
|
||||
{
|
||||
if (! section.duplicate)
|
||||
{
|
||||
typedef typename boost::range_iterator
|
||||
<
|
||||
typename bg::range_type<Geometry>::type const
|
||||
>::type iterator_type;
|
||||
typedef typename boost::range_iterator
|
||||
<
|
||||
typename bg::range_type<Geometry>::type const
|
||||
>::type iterator_type;
|
||||
|
||||
|
||||
inserter_type inserter(sections_buffered);
|
||||
inserter_type inserter(sections_buffered);
|
||||
|
||||
iterator_type begin, end;
|
||||
typedef std::pair<iterator_type, iterator_type> section_range;
|
||||
//bg::get_section(geometry, section, begin, end);
|
||||
iterator_type begin, end;
|
||||
typedef std::pair<iterator_type, iterator_type> section_range;
|
||||
//bg::get_section(geometry, section, begin, end);
|
||||
|
||||
typedef bg::closeable_view
|
||||
<
|
||||
@ -145,41 +145,41 @@ void test_buffer(std::string const& caseid, Geometry const& geometry,
|
||||
|
||||
view_type view = bg::get_full_section<view_type>(geometry, section);
|
||||
|
||||
bg::detail::buffer::linestring_buffer
|
||||
<
|
||||
section_range, ring_type, distance, join_strategy
|
||||
bg::detail::buffer::linestring_buffer
|
||||
<
|
||||
section_range, ring_type, distance, join_strategy
|
||||
>::apply(std::make_pair(
|
||||
boost::begin(view) + section.begin_index,
|
||||
boost::begin(view) + section.end_index),
|
||||
boost::begin(view) + section.begin_index,
|
||||
boost::begin(view) + section.end_index),
|
||||
inserter,
|
||||
distance(distance_left, distance_left / 2.0), // two times left
|
||||
join_strategy());
|
||||
distance(distance_left, distance_left / 2.0), // two times left
|
||||
join_strategy());
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<GeometryOut> sections_buffered_unioned;
|
||||
BOOST_FOREACH(GeometryOut const& p, sections_buffered)
|
||||
{
|
||||
if (sections_buffered_unioned.empty())
|
||||
{
|
||||
bg::union_inserter<GeometryOut>(geometry, p, std::back_inserter(sections_buffered_unioned));
|
||||
}
|
||||
else if (boost::size(sections_buffered_unioned) == 1)
|
||||
{
|
||||
std::vector<GeometryOut> step;
|
||||
bg::union_inserter<GeometryOut>(sections_buffered_unioned.front(), p, std::back_inserter(step));
|
||||
step.swap(sections_buffered_unioned);
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cout << "nyi" << std::endl;
|
||||
BOOST_FOREACH(GeometryOut const& sbu, sections_buffered_unioned)
|
||||
{
|
||||
bg::union_inserter<GeometryOut>(p, sbu, sections_buffered_unioned);
|
||||
}
|
||||
}
|
||||
if (sections_buffered_unioned.empty())
|
||||
{
|
||||
bg::union_inserter<GeometryOut>(geometry, p, std::back_inserter(sections_buffered_unioned));
|
||||
}
|
||||
else if (boost::size(sections_buffered_unioned) == 1)
|
||||
{
|
||||
std::vector<GeometryOut> step;
|
||||
bg::union_inserter<GeometryOut>(sections_buffered_unioned.front(), p, std::back_inserter(step));
|
||||
step.swap(sections_buffered_unioned);
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cout << "nyi" << std::endl;
|
||||
BOOST_FOREACH(GeometryOut const& sbu, sections_buffered_unioned)
|
||||
{
|
||||
bg::union_inserter<GeometryOut>(p, sbu, sections_buffered_unioned);
|
||||
}
|
||||
}
|
||||
}
|
||||
/***/
|
||||
/***/
|
||||
|
||||
|
||||
std::vector<GeometryOut> buffered;
|
||||
@ -236,8 +236,8 @@ void test_buffer(std::string const& caseid, Geometry const& geometry,
|
||||
|
||||
#if defined(BOOST_GEOMETRY_TEST_BUFFER_POLYGON)
|
||||
/*
|
||||
bg::detail::buffer::unioning_buffer(geometry, sections_buffered_unioned,
|
||||
distance(distance_left, distance_left / 2.0)
|
||||
bg::detail::buffer::unioning_buffer(geometry, sections_buffered_unioned,
|
||||
distance(distance_left, distance_left / 2.0)
|
||||
#ifdef BOOST_GEOMETRY_DEBUG_WITH_MAPPER
|
||||
, join_strategy(mapper), mapper
|
||||
#else
|
||||
@ -264,8 +264,8 @@ void test_buffer(std::string const& caseid, Geometry const& geometry,
|
||||
#else
|
||||
|
||||
|
||||
bg::detail::buffer::segmenting_buffer(geometry, sections_buffered_unioned,
|
||||
distance(distance_left, distance_right)
|
||||
bg::detail::buffer::segmenting_buffer(geometry, sections_buffered_unioned,
|
||||
distance(distance_left, distance_right)
|
||||
#ifdef BOOST_GEOMETRY_DEBUG_WITH_MAPPER
|
||||
, join_strategy(mapper), mapper
|
||||
#else
|
||||
@ -342,16 +342,16 @@ std::cout << bg::wkt(ring)
|
||||
}
|
||||
#endif
|
||||
|
||||
/***
|
||||
/***
|
||||
coordinate_type a = coordinate_type();
|
||||
BOOST_FOREACH(GeometryOut const& polygon, buffered)
|
||||
{
|
||||
a += bg::area(polygon);
|
||||
}
|
||||
BOOST_CHECK_CLOSE(a, expected_area, join == 'r'
|
||||
BOOST_CHECK_CLOSE(a, expected_area, join == 'r'
|
||||
? coordinate_type(0.1)
|
||||
: coordinate_type(0.001));
|
||||
***/
|
||||
***/
|
||||
}
|
||||
|
||||
#ifdef BOOST_GEOMETRY_CHECK_WITH_POSTGIS
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include <boost/geometry/algorithms/num_points.hpp>
|
||||
#include <boost/geometry/algorithms/unique.hpp>
|
||||
#include <boost/geometry/extensions/algorithms/connect.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt_multi.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt_multi.hpp>
|
||||
#include <boost/geometry/multi/algorithms/area.hpp>
|
||||
#include <boost/geometry/multi/algorithms/length.hpp>
|
||||
#include <boost/geometry/multi/algorithms/num_points.hpp>
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
#include <boost/geometry/strategies/strategies.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
#include <boost/geometry/multi/algorithms/for_each.hpp>
|
||||
|
||||
@ -50,7 +50,7 @@ struct map_segment
|
||||
|
||||
map_segment<Mapper>& operator=(map_segment<Mapper> const& other)
|
||||
{
|
||||
if(this != &other)
|
||||
if(this != &other)
|
||||
{
|
||||
this->m_mapper = other.m_mapper;
|
||||
}
|
||||
@ -126,12 +126,12 @@ void test_dissolve(std::string const& caseid, Geometry const& geometry,
|
||||
|
||||
std::ofstream svg(filename.str().c_str());
|
||||
|
||||
typedef
|
||||
typedef
|
||||
bg::svg_mapper
|
||||
<
|
||||
typename bg::point_type<Geometry>::type
|
||||
> mapper_type;
|
||||
|
||||
|
||||
mapper_type mapper(svg, 500, 500);
|
||||
mapper.add(geometry);
|
||||
|
||||
@ -302,6 +302,14 @@ void test_all()
|
||||
test_one<multi_polygon, polygon>("new_hole",
|
||||
"MULTIPOLYGON(((0 0,1 4,4 1,0 0)),((2 2,3 6,6 3,2 2)),((3 4,5 6,6 2,3 4)),((3 1,5 4,8 4,3 1)))",
|
||||
1, 18, 19.5206);
|
||||
|
||||
// GGL mailing list - report Javier - 2011, March 7
|
||||
test_one<multi_polygon, polygon>("ggl_list_20110307_javier_01",
|
||||
"MULTIPOLYGON(((560 -400, 600 -400, 600 -440, 560 -440, 560 -400)), ((480 -400, 520 -400, 520 -440, 480 -440, 480 -400)), ((600 -320, 640 -320, 640 -360, 600 -360, 600 -320)), ((520 -400, 560 -400, 560 -440, 520 -440, 520 -400)))",
|
||||
1, 18, 19.5206);
|
||||
test_one<polygon, polygon>("ggl_list_20110307_javier_01",
|
||||
"POLYGON((0 0, 2000 0, 2000 -2000, 0 -2000, 0 0), (560 -400, 560 -440, 600 -440, 600 -400, 560 -400), (480 -400, 480 -440, 520 -440, 520 -400, 480 -400), (600 -320, 600 -360, 640 -360, 640 -320, 600 -320), (520 -400, 520 -440, 560 -440, 560 -400, 520 -400))",
|
||||
1, 18, 19.5206);
|
||||
}
|
||||
|
||||
|
||||
|
@ -18,15 +18,15 @@
|
||||
#include <boost/geometry/algorithms/area.hpp>
|
||||
#include <boost/geometry/algorithms/num_points.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/write_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/write_wkt.hpp>
|
||||
|
||||
#include <boost/geometry/strategies/strategies.hpp>
|
||||
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
|
||||
#include <boost/geometry/util/as_range.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/stream_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/stream_wkt.hpp>
|
||||
|
||||
|
||||
template <typename Geometry>
|
@ -20,7 +20,7 @@
|
||||
#include <boost/geometry/extensions/algorithms/mark_spikes.hpp>
|
||||
#include <boost/geometry/extensions/algorithms/remove_marked.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
|
||||
|
||||
@ -112,7 +112,7 @@ void test_all()
|
||||
"MULTIPOLYGON( ((114766.45300292969 560935.37800598145, 114839.08099365234 560958.13200378418, 114919.38200378418 560983.13500976562, 114945.70799255371 560990.80799865723, 114946.2380065918 560992.39601135254, 114930.75900268555 561046.63500976562, 114923.41007995606 561073.32402038574, 114924.41039576962 561073.6148228565, 114903.32929992676 561145.36410522461, 114895.68840026856 561171.36880493164, 114894.6575012207 561174.46450805664, 114894.59449768066 561174.43589782715, 114894.31700134277 561175.496307373, 114894.01480102539 561178.669998169, 114894.57029724121 561179.59580993652, 114969.90060575516 561202.33975150948, 114969.85419015621 561202.51050945686, 114942.83399963379 561194.24600219727, 114895.87001037598 561180.091003418, 114893.3570098877 561179.16500854492, 114872.97556998512 561162.44151731138, 114893.35699462891 561179.16400146484, 114894.90800476074 561173.2380065918, 114892.52699279785 561174.03199768066, 114889.74899291992 561171.51899719238, 114879.56199645996 561162.78800964355, 114844.50500488281 561131.30200195312, 114809.71200561523 561099.1549987793, 114787.22300720215 561079.17900085449, 114771.87699890137 561065.68499755859, 114753.62100219727 561048.4880065918, 114727.0299987793 561029.17300415039, 114717.10800170898 561021.5, 114701.89500427246 561011.04901123047, 114700.83599853516 561009.59400939941, 114701.89500427246 561006.94799804688, 114715.38800048828 560981.28300476074, 114729.9409942627 560953.370010376, 114738.27499389648 560937.62699890137, 114739.46600341797 560937.75900268555, 114766.45300292969 560935.37800598145), (114825.04400634766 560971.37200927734, 114823.72099304199 560971.76800537109, 114822.66299438477 560971.90100097656, 114821.07600402832 560973.22399902344, 114821.07600402832 560975.33999633789, 114821.47200012207 560976.26600646973, 114823.19200134277 560978.11799621582, 114825.04400634766 560978.51499938965, 114827.42599487305 560978.25100708008, 114828.48399353027 560976.796005249, 114828.61599731445 560974.15000915527, 114827.82200622559 560972.8270111084, 114825.04400634766 560971.37200927734), (114893.16600036621 561141.21200561523, 114891.51400756836 561142.51000976562, 114890.68800354004 561144.2799987793, 114890.92399597168 561146.9940032959, 114893.04200744629 561149.43600463867, 114897.01100158691 561148.77500915527, 114898.59399414063 561145.10600280762, 114898.00399780273 561142.9820098877, 114895.64399719238 561141.56600952148, 114893.16600036621 561141.21200561523)))",
|
||||
bg::select_gapped_spike<>(2.0, 0.1), 31052.272, 794.761);
|
||||
test_geometry<mp>("texel_195365",
|
||||
"MULTIPOLYGON( ((115681.31161499021 560944.083480835, 115681.2671573319 560944.22872300365, 115755.0199966431 560968.15299987793, 115727.1070022583 561055.33200073242, 115707.6600036621 561120.94999694824, 115708.341003418 561121.30999755859, 115728.7350006104 561055.82598876953, 115735.858001709 561033.60101318359, 115738.58300018311 561034.407989502, 115739.43000030521 561034.66000366211, 115739.2969970703 561037.56900024414, 115724.7450027466 561084.66598510742, 115713.5 561123.16198730469, 115736.263999939 561131.608001709, 115789.30400085451 561150.01800537109, 115866.6949996948 561176.07998657227, 115921.46299743649 561194.59899902344, 115984.4339981079 561215.10598754883, 115986.9479980469 561198.83401489258, 115992.372001648 561159.808013916, 115995.4150009155 561122.50100708008, 115997.0019989014 561087.70700073242, 115997.266998291 561057.28100585938, 115996.8700027466 561041.53799438477, 115986.5510025024 561038.89300537109, 115864.5780029297 561002.38000488281, 115757.55999755859 560968.05499267578, 115757.5589981079 560968.05499267578, 115749.0859985352 560965.33700561523, 115681.31161499021 560944.083480835)))",
|
||||
"MULTIPOLYGON( ((115681.31161499021 560944.083480835, 115681.2671573319 560944.22872300365, 115755.0199966431 560968.15299987793, 115727.1070022583 561055.33200073242, 115707.6600036621 561120.94999694824, 115708.341003418 561121.30999755859, 115728.7350006104 561055.82598876953, 115735.858001709 561033.60101318359, 115738.58300018311 561034.407989502, 115739.43000030521 561034.66000366211, 115739.2969970703 561037.56900024414, 115724.7450027466 561084.66598510742, 115713.5 561123.16198730469, 115736.263999939 561131.608001709, 115789.30400085451 561150.01800537109, 115866.6949996948 561176.07998657227, 115921.46299743649 561194.59899902344, 115984.4339981079 561215.10598754883, 115986.9479980469 561198.83401489258, 115992.372001648 561159.808013916, 115995.4150009155 561122.50100708008, 115997.0019989014 561087.70700073242, 115997.266998291 561057.28100585938, 115996.8700027466 561041.53799438477, 115986.5510025024 561038.89300537109, 115864.5780029297 561002.38000488281, 115757.55999755859 560968.05499267578, 115757.5589981079 560968.05499267578, 115749.0859985352 560965.33700561523, 115681.31161499021 560944.083480835)))",
|
||||
bg::select_gapped_spike<>(2.0, 0.9), 45002.987, 924.56);
|
||||
|
||||
// Found some PostGIS stored procedure as well.
|
||||
|
@ -20,7 +20,7 @@
|
||||
#include <boost/geometry/util/write_dsv.hpp>
|
||||
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
|
||||
#include <test_common/test_point.hpp>
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include <boost/geometry/algorithms/num_points.hpp>
|
||||
#include <boost/geometry/algorithms/unique.hpp>
|
||||
#include <boost/geometry/extensions/algorithms/offset.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt_multi.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt_multi.hpp>
|
||||
|
||||
#include <boost/geometry/strategies/strategies.hpp>
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
#include <boost/geometry/extensions/algorithms/remove_holes_if.hpp>
|
||||
#include <boost/geometry/algorithms/make.hpp>
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
|
||||
#include <boost/geometry/strategies/strategies.hpp>
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/extensions/algorithms/selected.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
|
||||
|
||||
#include <test_common/test_point.hpp>
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
#include <boost/geometry/algorithms/equals.hpp>
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkb/read_wkb.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkb/utility.hpp>
|
||||
|
||||
|
@ -29,8 +29,8 @@
|
||||
#include <boost/geometry/multi/geometries/multi_linestring.hpp>
|
||||
#include <boost/geometry/multi/geometries/multi_polygon.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt_multi.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/write_wkt_multi.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt_multi.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/write_wkt_multi.hpp>
|
||||
|
||||
|
||||
template <typename T>
|
||||
|
@ -24,8 +24,8 @@
|
||||
#include <boost/geometry/strategies/strategies.hpp>
|
||||
#include <boost/geometry/core/point_type.hpp>
|
||||
#include <boost/geometry/core/topological_dimension.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/write_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/write_wkt.hpp>
|
||||
|
||||
|
||||
template <typename G>
|
||||
|
@ -10,7 +10,7 @@
|
||||
#include <geometry_test_common.hpp>
|
||||
|
||||
#include <boost/geometry/algorithms/transform.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/stream_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/stream_wkt.hpp>
|
||||
#include <boost/geometry/strategies/strategies.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/latlong/point_ll.hpp>
|
||||
|
@ -12,7 +12,7 @@
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/strategies/strategies.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
|
||||
|
||||
template <typename Geometry>
|
||||
|
@ -8,13 +8,13 @@
|
||||
#include <geometry_test_common.hpp>
|
||||
|
||||
|
||||
#include<boost/geometry/geometry.hpp>
|
||||
#include<boost/geometry/geometries/adapted/boost_polygon/point.hpp>
|
||||
#include<boost/geometry/geometries/adapted/boost_polygon/box.hpp>
|
||||
#include<boost/geometry/geometries/adapted/boost_polygon/ring.hpp>
|
||||
#include<boost/geometry/geometries/adapted/boost_polygon/polygon.hpp>
|
||||
#include<boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include<iostream>
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/geometries/adapted/boost_polygon/point.hpp>
|
||||
#include <boost/geometry/geometries/adapted/boost_polygon/box.hpp>
|
||||
#include <boost/geometry/geometries/adapted/boost_polygon/ring.hpp>
|
||||
#include <boost/geometry/geometries/adapted/boost_polygon/polygon.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
#include <iostream>
|
||||
|
||||
template <typename T>
|
||||
void fill_polygon_with_two_holes(boost::polygon::polygon_with_holes_data<T>& boost_polygon_polygon)
|
||||
@ -65,7 +65,7 @@ void test_coordinate_type()
|
||||
|
||||
typedef bg::model::point<T, 2, bg::cs::cartesian> bg_point_type;
|
||||
bg_point_type boost_geometry_point(3, 4);
|
||||
BOOST_CHECK_EQUAL(bg::distance(boost_polygon_point, boost_geometry_point),
|
||||
BOOST_CHECK_EQUAL(bg::distance(boost_polygon_point, boost_geometry_point),
|
||||
2 * std::sqrt(2.0));
|
||||
|
||||
// 2a: Check if Boost.Polygon's box fulfills Boost.Geometry's box concept
|
||||
@ -86,7 +86,7 @@ void test_coordinate_type()
|
||||
// 3a: Check if Boost.Polygon's polygon fulfills Boost.Geometry's ring concept
|
||||
bg::concept::check<boost::polygon::polygon_data<T> >();
|
||||
|
||||
// 3b: use a Boost.Polygon polygon (ring)
|
||||
// 3b: use a Boost.Polygon polygon (ring)
|
||||
boost::polygon::polygon_data<T> boost_polygon_ring;
|
||||
{
|
||||
// Filling it is a two-step process using Boost.Polygon
|
||||
|
@ -8,12 +8,12 @@
|
||||
#include <geometry_test_common.hpp>
|
||||
|
||||
|
||||
#include<boost/geometry/geometry.hpp>
|
||||
#include<boost/geometry/geometries/adapted/boost_polygon/point.hpp>
|
||||
#include<boost/geometry/geometries/adapted/boost_polygon/box.hpp>
|
||||
#include<boost/geometry/geometries/adapted/boost_polygon/ring.hpp>
|
||||
#include<boost/geometry/geometries/adapted/boost_polygon/polygon.hpp>
|
||||
#include<boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/geometries/adapted/boost_polygon/point.hpp>
|
||||
#include <boost/geometry/geometries/adapted/boost_polygon/box.hpp>
|
||||
#include <boost/geometry/geometries/adapted/boost_polygon/ring.hpp>
|
||||
#include <boost/geometry/geometries/adapted/boost_polygon/polygon.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
#include<iostream>
|
||||
|
||||
@ -91,7 +91,7 @@ void test_overlay_using_boost_geometry(std::string const& case_id, std::string c
|
||||
|
||||
double sum = area_p + area_q - area_u - area_i;
|
||||
BOOST_CHECK_MESSAGE(abs(sum) < 0.001,
|
||||
"Overlay error\n"
|
||||
"Overlay error\n"
|
||||
<< "Boost.Geometry " << case_id
|
||||
<< " area p: " << area_p
|
||||
<< " area q: " << area_q
|
||||
|
@ -18,15 +18,15 @@
|
||||
#include <boost/geometry/geometries/adapted/boost_range/sliced.hpp>
|
||||
#include <boost/geometry/geometries/adapted/boost_range/uniqued.hpp>
|
||||
|
||||
#include <boost/geometry/extensions/gis/io/wkt/wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
|
||||
|
||||
#include <sstream>
|
||||
|
||||
struct not_two
|
||||
{
|
||||
template <typename P>
|
||||
bool operator()(P const& p) const
|
||||
{
|
||||
bool operator()(P const& p) const
|
||||
{
|
||||
return boost::geometry::get<0>(p) != 2.0;
|
||||
}
|
||||
};
|
||||
@ -34,8 +34,8 @@ struct not_two
|
||||
struct sum_not_five
|
||||
{
|
||||
template <typename P>
|
||||
bool operator()(P const& p1, P const& p2) const
|
||||
{
|
||||
bool operator()(P const& p1, P const& p2) const
|
||||
{
|
||||
return boost::geometry::get<0>(p1) + boost::geometry::get<0>(p2) != 5.0;
|
||||
}
|
||||
};
|
||||
@ -43,7 +43,7 @@ struct sum_not_five
|
||||
|
||||
template <typename P>
|
||||
void test_range_adaptor()
|
||||
{
|
||||
{
|
||||
bg::model::linestring<P> ls;
|
||||
bg::read_wkt("LINESTRING(1 1,2 2,3 3,4 4)", ls);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
#include <boost/geometry/core/coordinate_type.hpp>
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
#include <boost/geometry/iterators/box_iterator.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
|
||||
#include <test_geometries/custom_segment.hpp>
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include <boost/geometry/iterators/circular_iterator.hpp>
|
||||
|
||||
#include <boost/geometry/core/coordinate_type.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include <boost/geometry/iterators/closing_iterator.hpp>
|
||||
|
||||
#include <boost/geometry/core/coordinate_type.hpp>
|
||||
#include <boost/geometry/extensions/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>
|
||||
#include <boost/geometry/geometries/geometries.hpp>
|
||||
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user