Mention all geometry headerfiles explicitly in examples (according to doc)

[SVN r71821]
This commit is contained in:
Barend Gehrels 2011-05-08 14:38:45 +00:00
parent 402fecdd58
commit dbd742cbff
178 changed files with 291 additions and 175 deletions

View File

@ -192,7 +192,6 @@ INPUT = . .. ../../../../boost/geometry/core \
../../../../boost/geometry/multi/geometries \
../../../../boost/geometry/multi/geometries/register \
../../../../boost/geometry/multi/geometries/concepts \
../../../../boost/geometry/multi/iterators \
../../../../boost/geometry/multi/strategies/cartesian \
../../../../boost/geometry/policies \
../../../../boost/geometry/policies/relate \
@ -204,7 +203,6 @@ INPUT = . .. ../../../../boost/geometry/core \
../../../../boost/geometry/strategies/transform \
../../../../boost/geometry/util \
../../../../boost/geometry/views \
../../../../boost/geometry/extensions/io/svg \
./doxygen_input/pages \
./doxygen_input/groups
INPUT_ENCODING = UTF-8

View File

@ -20,7 +20,7 @@ OBSOLETE
#include <boost/geometry/geometry.hpp>
#include <boost/geometry/algorithms/overlaps.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/cartesian2d.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/register/point.hpp>
#include <boost/geometry/geometries/adapted/tuple_cartesian.hpp>
#include <boost/geometry/geometries/adapted/c_array_cartesian.hpp>

View File

@ -13,6 +13,7 @@ OBSOLETE
#include <fstream>
#include <boost/geometry/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/multi/multi.hpp>

View File

@ -72,6 +72,7 @@ All algorithms in Boost.Geometry will check any geometry arguments against the c
[def __boost_range__ Boost.Range]
[def __boost_tuple__ Boost.Tuple]
[def __boost_gil__ [@http://www.boost.org/libs/gil/ Boost.GIL]]
[def __boost_bb__ Boost.Build]
[def __ttmath__ [@http://www.ttmath.org/ ttmath]]
[def __ogc__ [@http://www.opengeospatial.org OGC]]
@ -91,6 +92,7 @@ Boost.Geometry contains contributions by:
[include quickstart.qbk]
[include design_rationale.qbk]
[include compiling.qbk]
[include matrix.qbk]
[include reference.qbk]
[include about_documentation.qbk]

View File

@ -15,143 +15,6 @@
['TODO: about giving birth here...]
[endsect] [/ end of Release Notes]
[section Compilation]
__boost_geometry__ is a headers-only library. Users only need to include the library
headers in their programs in order to be able to access definitions and algorithms
provided by the __boost_geometry__ library. No linking against any binaries is required.
__boost_geometry__ is only dependant on headers-only __boost__ libraries.
It does not introduce indirect dependencies on any binary libraries.
In order to be able to use __boost_geometry__, the only thing users need to do is to
install __boost_cpp_lib__ and specify location to include directories, so `include`
directives of this scheme will work:
#include <boost/...>
[heading Supported Compilers]
__boost_geometry__ library has been successfully tested with the following compilers:
* __msvc__ (including Express Edition)
* 9.0 (__msvs__ 2008)
* 8.0 (__msvs__ 2005)
* __gcc__
* 4.x (confirmed versoins 4.1, 4.2, 4.4)
* 3.4
For __msvs__, the examples contains some project files (for 2005). However, because the library
is header only, it will be no problem to integrate it in your own project files.
__boost_geometry__ uses __boost_bb__, a text-based system for developing and testing software, to
configure, build and execute unit tests and example programs. The build configuration is provided
as a collection of `Jamfile.v2` files.
For __gcc__ , flag `-Wno-long-long` can be used to surpress some warnings originating from Boost.
[heading Basic Includes]
This section concentrates on how to include __boost_geometry__ headers efficiently.
['TODO: link header names to files? --mloskot]
The most convenient headerfile including all algorithms and strategies is `geometry.hpp`:
#include <boost/geometry/geometry.hpp>
This is the main header of the __boost_geometry__ library and it is recommended to include this file.
Alternatively, it is possible to include __boost_geometry__ header files separately. However,
this may be inconvenient as header files might be renamed or moved occasionaly in future.
Another often used header is `geometries.hpp`:
#include <boost/geometry/geometries/geometries.hpp>
This includes definitions of all provided geometry tyoes: __model_point__, linestring, polygon,
linear_ring, box. The `geometries.hpp` is not included in the `geometry.hpp` headerfile because
users should be given the liberty to use their own geometries and not the provided ones.
However, for the __boost_geometry__ users who want to use the provided geometries it is
useful to include it.
For users using only Cartesian points, with floating point coordinates (of C++ type `double`),
in 2D or 3D, you can use instead:
#include <boost/geometry/geometries/cartesian2d.hpp>
This includes all 2D Cartesian geometries: point_2d, linestring_2d, etc.
Using this header file, the library seems to be a non-template library, so it is convenient
for users who do not feel strong with using and specializing C++ templates on their own.
For users using multi-geometries:
#include <boost/geometry/multi/multi.hpp>
[heading Advanced Includes]
This section is for users who have their own geometries and want to use algorithms from
the __boost_geometry__ library.
If you want to use your own points it makes sense to use the registration macro's:
#include <boost/geometry/geometries/register/point.hpp>
Defines preprocessor macros for point geometry types registration.
#include <boost/geometry/geometries/register/box.hpp>
Defines preprocessor macros for box geometry type registration.
If you are using standard containers containing points and want to handle them as a linestring.
#include <boost/geometry/geometries/adapted/std_as_linestring.hpp>
Allows you to use things like `std::vector<point_2d>` and put them as parameters into algorithms.
If you are using boost tuples and want to handle them as Cartesian points
#include <boost/geometry/geometries/adapted/tuple_cartesian.hpp>
[heading Extensions]
['TODO: Do we want this sub-section here? or moving completely to the Extensions node? --mloskot]
[section Hints]
[heading Performance]
The enumeration below is not exhaustive but can contain hints to improve the performance:
* For Microsoft __msvc__, set define `_SECURE_SCL=0` for preprocessor.
* For Microsoft __msvc__, set define `_HAS_ITERATOR_DEBUGGING=0` for preprocessor.
* Our measurements indicate that Visual C++ 8.0 generates faster code than Visual C++ 9.0
* Use of __stlport__, a very popular open-source implementation of the STL, may result in
significantly faster code than use of the C++ standard library provided by __msvc__ compiler.
* Turn on compiler optimizations, compile in release mode.
[endsect] [/ end of Hints]
[section:issues Known Problems]
[heading Problems with Intellisense]
Both versions of __msvs__, 2005 and 2008 (including Express Edition) can hang trying to resolve
symbols and give [@http://en.wikipedia.org/wiki/IntelliSense IntelliSense] suggestions while
typing in a bracket or angle bracket.
This is not directly related to __boost_geometry__, but is caused by problems with handling by this
IDE large C++ code base with intensively used templates, such as Boost and __boost_geometry__.
If this is inconvenient, IntelliSense can easily be turned off:
[:['["(...)disabling IntelliSense in VC++. There is a file called `feacp.dll` in
`<VS8INSTALL>/VC/vcpackages` folder. Renaming this file will disable Intellisense feature.]]
-- [@http://blogs.msdn.com/yash/archive/2007/09/19/intellisense-issues-in-visual-c-2005.aspx Intellisense issues in Visual C++ 2005]
]
[endsect] [/ end of Problems]
[endsect] [/ end of Compilation]
[section Performance (?)]
['TODO: how fast we are here...]

View File

@ -15,7 +15,7 @@
#include <boost/assign.hpp>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/adapted/boost_tuple.hpp>
BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS(cs::cartesian)

View File

@ -11,7 +11,10 @@
//` Calculate the area of a polygon
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
namespace bg = boost::geometry; /*< Convenient namespace alias >*/

View File

@ -11,7 +11,10 @@
//` Calculate the area of a polygon
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
namespace bg = boost::geometry; /*< Convenient namespace alias >*/

View File

@ -13,6 +13,9 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/box.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/adapted/boost_tuple.hpp>
BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS(cs::cartesian)

View File

@ -14,7 +14,7 @@
#include <iomanip>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#if defined(HAVE_TTMATH)
# include <boost/geometry/extensions/contrib/ttmath_stub.hpp>

View File

@ -14,7 +14,7 @@
#include <iomanip>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/point.hpp>
int main()
{

View File

@ -13,7 +13,8 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/box.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
using namespace boost::geometry;

View File

@ -13,7 +13,8 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/box.hpp>
#include <boost/geometry/geometries/point.hpp>
using namespace boost::geometry;

View File

@ -13,7 +13,8 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/segment.hpp>
using namespace boost::geometry;

View File

@ -13,7 +13,8 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/box.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
using namespace boost::geometry;

View File

@ -13,7 +13,7 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/linestring.hpp>
#include <boost/geometry/geometries/adapted/boost_tuple.hpp>
#include <boost/assign.hpp>

View File

@ -14,7 +14,8 @@
#include <list>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
/*<-*/ #include "create_svg_two.hpp" /*->*/

View File

@ -13,7 +13,8 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/ring.hpp>
#include <boost/geometry/geometries/adapted/boost_tuple.hpp>
BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS(cs::cartesian)

View File

@ -13,6 +13,7 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/numeric/conversion/bounds.hpp>
#include <boost/foreach.hpp>

View File

@ -13,6 +13,9 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/box.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/adapted/boost_tuple.hpp>
BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS(cs::cartesian)

View File

@ -13,6 +13,7 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/adapted/boost_tuple.hpp>
BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS(cs::cartesian)

View File

@ -13,6 +13,7 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/adapted/boost_tuple.hpp>
BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS(cs::cartesian)

View File

@ -14,7 +14,8 @@
#include <list>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
#include <boost/foreach.hpp>

View File

@ -14,7 +14,8 @@
#include <vector>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
#include <boost/foreach.hpp>

View File

@ -14,8 +14,11 @@
#include <list>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/linestring.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/multi/geometries/multi_point.hpp>
#include <boost/geometry/multi/geometries/multi_polygon.hpp>
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>

View File

@ -13,7 +13,9 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/box.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
/*<-*/ #include "create_svg_two.hpp" /*->*/

View File

@ -13,7 +13,7 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/adapted/boost_tuple.hpp>
BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS(cs::cartesian)

View File

@ -13,7 +13,8 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>

View File

@ -13,7 +13,8 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>

View File

@ -13,7 +13,8 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/linestring.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/assign.hpp>

View File

@ -15,6 +15,7 @@
#include <boost/geometry.hpp>
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/adapted/std_as_linestring.hpp> /*< Adapts std::vector to linestring concept >*/
#include <boost/foreach.hpp>

View File

@ -14,7 +14,8 @@
#include <deque>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
#include <boost/foreach.hpp>

View File

@ -13,6 +13,7 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/point_xy.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 >*/

View File

@ -13,6 +13,8 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/linestring.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
int main()

View File

@ -13,6 +13,8 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/linestring.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
int main()

View File

@ -12,6 +12,8 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/linestring.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>

View File

@ -12,6 +12,7 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/linestring.hpp>
int main()
{

View File

@ -13,7 +13,7 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/register/point.hpp>
#include <boost/geometry/geometries/adapted/boost_tuple.hpp>
#include <boost/geometry/geometries/adapted/boost_polygon/point.hpp>

View File

@ -13,7 +13,7 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/point.hpp>
int main()
{

View File

@ -13,7 +13,8 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/box.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
using namespace boost::geometry;

View File

@ -13,6 +13,8 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/linestring.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/adapted/c_array.hpp>
BOOST_GEOMETRY_REGISTER_C_ARRAY_CS(cs::cartesian) /*< Necessary to register a C array like {1,2} as a point >*/

View File

@ -13,8 +13,8 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/multi/multi.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/multi/geometries/multi_polygon.hpp>
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>

View File

@ -13,8 +13,8 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/multi/multi.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/multi/geometries/multi_polygon.hpp>
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>

View File

@ -14,7 +14,8 @@
#include <boost/geometry.hpp>
#include <boost/geometry/multi/multi.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/multi/geometries/multi_polygon.hpp>
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>

View File

@ -14,7 +14,9 @@
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/box.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/ring.hpp>
#include <boost/assign.hpp>

View File

@ -13,7 +13,8 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/ring.hpp>
#include <boost/geometry/geometries/adapted/boost_tuple.hpp>
BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS(cs::cartesian)

View File

@ -11,7 +11,10 @@
//` Example showing how to simplify a linestring
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/linestring.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
/*< For this example we use Boost.Assign to add points >*/
#include <boost/assign.hpp>

View File

@ -11,7 +11,10 @@
//` Simplify a linestring using a back inserter
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/linestring.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
int main()
{

View File

@ -11,7 +11,10 @@
//` Simplify a linestring using an output iterator
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/linestring.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
#include <boost/geometry/domains/gis/io/wkt/stream_wkt.hpp>

View File

@ -13,7 +13,8 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/multi/geometries/multi_polygon.hpp>
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>

View File

@ -14,7 +14,8 @@
#include <vector>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
#include <boost/foreach.hpp>

View File

@ -13,6 +13,7 @@
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/adapted/boost_tuple.hpp>
BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS(cs::cartesian)

View File

@ -14,7 +14,8 @@
#include <list>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
/*<-*/ #include "create_svg_two.hpp" /*->*/

View File

@ -11,7 +11,10 @@
//` Examine if a polygon is defined as "should be closed"
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
int main()
{

View File

@ -11,7 +11,9 @@
//` Examine the number of coordinates making up the points in a linestring type
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/linestring.hpp>
#include <boost/geometry/geometries/adapted/boost_tuple.hpp>
BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS(cs::cartesian);

View File

@ -12,7 +12,10 @@
#include <iostream>
#include <typeinfo>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
int main()
{

View File

@ -12,7 +12,10 @@
#include <iostream>
#include <typeinfo>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
int main()
{

View File

@ -11,7 +11,9 @@
//` Get the coordinate of a box
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
namespace bg = boost::geometry;

View File

@ -11,7 +11,9 @@
//` Get the coordinate of a point
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
namespace bg = boost::geometry;

View File

@ -12,7 +12,10 @@
#include <iostream>
#include <typeinfo>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/ring.hpp>
#include <boost/geometry/geometries/adapted/boost_array.hpp>
BOOST_GEOMETRY_REGISTER_BOOST_ARRAY_CS(cs::cartesian)

View File

@ -11,7 +11,10 @@
//` Examine the expected point order of a polygon type
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
int main()
{

View File

@ -12,7 +12,11 @@
#include <iostream>
#include <typeinfo>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/multi/geometries/multi_polygon.hpp>
int main()
{

View File

@ -12,7 +12,10 @@
#include <iostream>
#include <typeinfo>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
int main()
{

View File

@ -15,7 +15,10 @@ Also shows the related ring_type and interior_type.
*/
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
int main()

View File

@ -11,7 +11,9 @@
//` Set the coordinate of a box
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
namespace bg = boost::geometry;

View File

@ -11,7 +11,9 @@
//` Set the coordinate of a point
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
namespace bg = boost::geometry;

View File

@ -15,6 +15,8 @@
#include <boost/assign.hpp>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/multi/geometries/multi_polygon.hpp>
#include <boost/geometry/geometries/adapted/boost_tuple.hpp>
BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS(cs::cartesian)

View File

@ -12,7 +12,10 @@
#include <iostream>
#include <typeinfo>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
namespace geo = boost::geometry;
int main()

View File

@ -11,7 +11,9 @@
//` Shows how to use a Boost.Array using Boost.Geometry's distance, set and assign_values algorithms
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/linestring.hpp>
#include <boost/geometry/geometries/adapted/boost_array.hpp>
BOOST_GEOMETRY_REGISTER_BOOST_ARRAY_CS(cs::cartesian)

View File

@ -11,7 +11,10 @@
//` Shows how to use a Boost.Geometry linestring, filtered by Boost.Range adaptor
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/linestring.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/adapted/boost_range/filtered.hpp>
struct not_two

View File

@ -11,7 +11,10 @@
//` Shows how to use a Boost.Geometry linestring, reversed by Boost.Range adaptor
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/linestring.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/adapted/boost_range/reversed.hpp>
int main()

View File

@ -15,6 +15,8 @@
#include <boost/assign.hpp>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/linestring.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/adapted/boost_range/sliced.hpp>

View File

@ -15,6 +15,8 @@
#include <boost/assign.hpp>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/ring.hpp>
#include <boost/geometry/geometries/adapted/boost_range/strided.hpp>

View File

@ -15,6 +15,8 @@
#include <boost/assign.hpp>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/ring.hpp>
#include <boost/geometry/geometries/adapted/boost_range/uniqued.hpp>
typedef boost::geometry::model::d2::point_xy<int> xy;

View File

@ -17,7 +17,9 @@ various other examples as well.
*/
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/adapted/boost_tuple.hpp>
BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS(cs::cartesian)

View File

@ -11,7 +11,9 @@
//` Show the use of the macro BOOST_GEOMETRY_REGISTER_BOX_TEMPLATED
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/register/box.hpp>
template <typename P>

View File

@ -11,7 +11,9 @@
//` Show the use of BOOST_GEOMETRY_REGISTER_LINESTRING
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/register/linestring.hpp>
typedef boost::geometry::model::d2::point_xy<double> point_2d;

View File

@ -12,7 +12,9 @@
#include <iostream>
#include <deque>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/register/linestring.hpp>
// Adapt any deque to Boost.Geometry Linestring Concept

View File

@ -11,7 +11,9 @@
//` Show the use of the macro BOOST_GEOMETRY_REGISTER_MULTI_LINESTRING
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/linestring.hpp>
#include <boost/geometry/geometries/adapted/boost_tuple.hpp>
#include <boost/geometry/multi/geometries/register/multi_linestring.hpp>

View File

@ -11,7 +11,9 @@
//` Show the use of the macro BOOST_GEOMETRY_REGISTER_MULTI_POLYGON
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/adapted/boost_tuple.hpp>
#include <boost/geometry/multi/geometries/register/multi_polygon.hpp>

View File

@ -11,7 +11,9 @@
//` Show the use of the macro BOOST_GEOMETRY_REGISTER_RING
#include <iostream>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/register/ring.hpp>
typedef boost::geometry::model::d2::point_xy<double> point_2d;

View File

@ -12,7 +12,9 @@
#include <iostream>
#include <deque>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/register/ring.hpp>
// Adapt any deque to Boost.Geometry Ring Concept

View File

@ -22,6 +22,8 @@
//[quickstart_include
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
using namespace boost::geometry;
//]

View File

@ -13,6 +13,7 @@
#include <iostream>
#include <boost/geometry/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/adapted/boost_tuple.hpp>
#include <boost/geometry/geometries/adapted/c_array.hpp>
#include <boost/geometry/geometries/adapted/boost_array.hpp>

View File

@ -17,9 +17,13 @@
#include <vector>
#include <boost/geometry/geometry.hpp>
#include <boost/geometry/geometries/linestring.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
// Optional includes to handle c-arrays as points, std::vectors as linestrings
#include <boost/geometry/geometries/adapted/c_array.hpp>
#include <boost/geometry/geometries/adapted/std_as_linestring.hpp>
BOOST_GEOMETRY_REGISTER_C_ARRAY_CS(cs::cartesian)

View File

@ -15,9 +15,11 @@
#include <string>
#include <boost/geometry/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/adapted/c_array.hpp>
#include <boost/geometry/geometries/adapted/std_as_linestring.hpp>
#include <boost/geometry/multi/multi.hpp>
#include <boost/geometry/multi/geometries/multi_polygon.hpp>
BOOST_GEOMETRY_REGISTER_C_ARRAY_CS(cs::cartesian)

View File

@ -13,6 +13,9 @@
#include <iostream>
#include <boost/geometry/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/linestring.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/adapted/boost_tuple.hpp>
#include <boost/assign.hpp>

View File

@ -19,6 +19,8 @@
#include <boost/geometry/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/adapted/c_array.hpp>
#if defined(HAVE_SVG)

View File

@ -19,6 +19,9 @@
#include <boost/geometry/geometry.hpp>
#include <boost/geometry/geometries/linestring.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/adapted/c_array.hpp>
#if defined(HAVE_SVG)

View File

@ -13,6 +13,8 @@
#include <iostream>
#include <boost/geometry/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/geometries/adapted/c_array.hpp>
#include <boost/geometry/geometries/adapted/std_as_linestring.hpp>

View File

@ -16,6 +16,8 @@
#include <sstream>
#include <boost/geometry/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
#include <boost/geometry/algorithms/centroid.hpp>
#include <boost/geometry/strategies/transform.hpp>
#include <boost/geometry/strategies/transform/matrix_transformers.hpp>

View File

@ -24,6 +24,7 @@
#include <boost/graph/dijkstra_shortest_paths.hpp>
#include <boost/geometry/geometry.hpp>
#include <boost/geometry/geometries/linestring.hpp>
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>

View File

@ -28,6 +28,7 @@
#include <boost/graph/dijkstra_shortest_paths.hpp>
#include <boost/geometry/geometry.hpp>
#include <boost/geometry/geometries/linestring.hpp>
#include <boost/geometry/domains/gis/io/wkt/read_wkt.hpp>

View File

@ -16,6 +16,7 @@
#include <boost/geometry/algorithms/area.hpp>
#include <boost/geometry/algorithms/centroid.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/register/ring.hpp>
#include <boost/geometry/strategies/strategies.hpp>
#include <boost/geometry/util/write_dsv.hpp>

View File

@ -19,6 +19,7 @@
#include <boost/geometry/algorithms/make.hpp>
#include <boost/geometry/algorithms/intersection.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/adapted/std_as_linestring.hpp>
#include <boost/geometry/strategies/strategies.hpp>

View File

@ -18,6 +18,7 @@
#include <boost/scoped_array.hpp>
#include <boost/geometry/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/register/point.hpp>
#include <boost/geometry/geometries/register/ring.hpp>
#include <boost/geometry/multi/multi.hpp>

View File

@ -20,6 +20,7 @@
#include "shapefil.h"
#include <boost/geometry/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/domains/gis/io/wkt/stream_wkt.hpp>
using namespace boost::geometry;

View File

@ -23,6 +23,7 @@
#include <boost/foreach.hpp>
#include <boost/geometry/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/register/point.hpp>
#include <boost/geometry/geometries/register/ring.hpp>

View File

@ -21,6 +21,7 @@
#include <boost/geometry/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/domains/gis/io/wkt/wkt.hpp>
namespace bg = boost::geometry;

View File

@ -16,6 +16,8 @@
#include <boost/geometry/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/extensions/gis/latlong/latlong.hpp>
#include <boost/geometry/extensions/gis/geographic/strategies/andoyer.hpp>
#include <boost/geometry/strategies/spherical/distance_cross_track.hpp>

Some files were not shown because too many files have changed in this diff Show More