|
|
Functions | |
| template<typename Geometry , typename RoP > | |
| void | boost::geometry::append (Geometry &geometry, RoP const &range_or_point, int ring_index=-1, int multi_index=0) |
| Appends one or more points to a linestring, ring, polygon, multi. | |
| template<typename Geometry , typename Range > | |
| void | boost::geometry::assign (Geometry &geometry, Range const &range) |
| assign a range of points to a linestring, ring or polygon | |
| template<typename Geometry , typename Type > | |
| void | boost::geometry::assign (Geometry &geometry, Type const &c1, Type const &c2, Type const &c3, Type const &c4) |
| assign center + radius to a sphere [for extension] | |
| template<typename Geometry , typename Type > | |
| void | boost::geometry::assign (Geometry &geometry, Type const &c1, Type const &c2, Type const &c3) |
| assign three values to a 3D point [or the center + radius to a circle] | |
| template<typename Geometry , typename Type > | |
| void | boost::geometry::assign (Geometry &geometry, Type const &c1, Type const &c2) |
| assign two values to a 2D point | |
| template<typename Box , typename Point > | |
| void | boost::geometry::assign_box_corners (Box const &box, Point &lower_left, Point &lower_right, Point &upper_left, Point &upper_right) |
| Assign the 4 points of a 2D box. | |
| template<typename Geometry > | |
| void | boost::geometry::assign_inverse (Geometry &geometry) |
| assign to a box inverse infinite | |
| template<std::size_t Index, typename Point , typename Geometry > | |
| void | boost::geometry::assign_point_from_index (Geometry const &geometry, Point &point) |
| Assign a point with a point of a box or segment. | |
| template<std::size_t Index, typename Geometry , typename Point > | |
| void | boost::geometry::assign_point_to_index (Point const &point, Geometry &geometry) |
| Assign a box or segment with the value of a point. | |
| template<typename Geometry > | |
| void | boost::geometry::assign_zero (Geometry &geometry) |
| assign zero values to a box, point | |
| template<typename Geometry > | |
| void | boost::geometry::clear (Geometry &geometry) |
| Clears a linestring, linear ring or polygon (exterior+interiors) or multi*. | |
| template<typename Polygon > | |
| const ring_type< Polygon >::type & | boost::geometry::exterior_ring (Polygon const &polygon) |
| Function to get the exterior ring of a polygon (const version). | |
| template<typename Polygon > | |
| ring_type< Polygon >::type & | boost::geometry::exterior_ring (Polygon &polygon) |
| Function to get the exterior_ring ring of a polygon. | |
| template<std::size_t Dimension, typename Geometry > | |
| coordinate_type< Geometry >::type | boost::geometry::get (Geometry const &geometry) |
| |
| template<std::size_t Dimension, typename Geometry > | |
| coordinate_type< Geometry >::type | boost::geometry::get_as_radian (const Geometry &geometry) |
| get coordinate value of a point, result is in Radian | |
| template<typename Polygon > | |
| const interior_type< Polygon > ::type & | boost::geometry::interior_rings (Polygon const &polygon) |
| Function to get the interior rings of a polygon (const version). | |
| template<typename Polygon > | |
| interior_type< Polygon >::type & | boost::geometry::interior_rings (Polygon &polygon) |
| Function to get the interior rings of a polygon (non const version). | |
| template<typename Geometry , typename T > | |
| Geometry | boost::geometry::make (T const &c1, T const &c2, T const &c3) |
| Make a geometry. | |
| template<typename Geometry , typename T > | |
| Geometry | boost::geometry::make (T const &c1, T const &c2) |
| Make a geometry. | |
| template<typename Geometry > | |
| Geometry | boost::geometry::make_inverse () |
| Create a box with inverse infinite coordinates. | |
| template<typename Geometry > | |
| Geometry | boost::geometry::make_zero () |
| Create a geometry with "zero" coordinates. | |
| template<typename Geometry > | |
| std::size_t | boost::geometry::num_interior_rings (Geometry const &geometry) |
| Function to get the number of interior rings of a polygon. | |
| template<typename Geometry > | |
| std::size_t | boost::geometry::num_points (Geometry const &geometry) |
| get number of points | |
| template<std::size_t Dimension, typename Geometry > | |
| void | boost::geometry::set (Geometry &geometry, typename coordinate_type< Geometry >::type const &value) |
| |
| template<std::size_t Dimension, typename Geometry > | |
| void | boost::geometry::set_from_radian (Geometry &geometry, const typename coordinate_type< Geometry >::type &radians) |
| set coordinate value (in radian) to a point | |
The library provides the following functions to edit geometries:
For getting coordinates it is similar:
| coordinate_type< Geometry >::type boost::geometry::get | ( | Geometry const & | geometry | ) |
| Index | index
| |
| Dimension | dimension | |
| Geometry | geometry |
Definition at line 263 of file access.hpp.
| void boost::geometry::set | ( | Geometry & | geometry, | |
| typename coordinate_type< Geometry >::type const & | value | |||
| ) |
| Index | index
| |
| Dimension | dimension | |
| Geometry | geometry |
Definition at line 299 of file access.hpp.
| ring_type<Polygon>::type& boost::geometry::exterior_ring | ( | Polygon & | polygon | ) |
Function to get the exterior_ring ring of a polygon.
| P | polygon type |
Definition at line 93 of file exterior_ring.hpp.
| const ring_type<Polygon>::type& boost::geometry::exterior_ring | ( | Polygon const & | polygon | ) |
Function to get the exterior ring of a polygon (const version).
| Polygon | polygon type |
Definition at line 113 of file exterior_ring.hpp.
| interior_type<Polygon>::type& boost::geometry::interior_rings | ( | Polygon & | polygon | ) |
Function to get the interior rings of a polygon (non const version).
| P | polygon type |
Definition at line 177 of file interior_rings.hpp.
| const interior_type<Polygon>::type& boost::geometry::interior_rings | ( | Polygon const & | polygon | ) |
Function to get the interior rings of a polygon (const version).
| P | polygon type |
Definition at line 197 of file interior_rings.hpp.
| std::size_t boost::geometry::num_interior_rings | ( | Geometry const & | geometry | ) |
Function to get the number of interior rings of a polygon.
Can be used for any geometry, returning 0 for geometries not having interior rings
| Geometry | geometry type |
Definition at line 222 of file interior_rings.hpp.
| coordinate_type<Geometry>::type boost::geometry::get_as_radian | ( | const Geometry & | geometry | ) |
get coordinate value of a point, result is in Radian
Result is in Radian, even if source coordinate system is in Degrees
Definition at line 112 of file radian_access.hpp.
| void boost::geometry::set_from_radian | ( | Geometry & | geometry, | |
| const typename coordinate_type< Geometry >::type & | radians | |||
| ) |
set coordinate value (in radian) to a point
Coordinate value will be set correctly, if coordinate system of point is in Degree, Radian value will be converted to Degree
Definition at line 132 of file radian_access.hpp.
| void boost::geometry::append | ( | Geometry & | geometry, | |
| RoP const & | range_or_point, | |||
| int | ring_index = -1, |
|||
| int | multi_index = 0 | |||
| ) |
Appends one or more points to a linestring, ring, polygon, multi.
| geometry | a geometry | |
| range_or_point | the point or range to add | |
| ring_index | the index of the ring in case of a polygon: exterior ring (-1, the default) or interior ring index | |
| multi_index | reserved for multi polygons |
Definition at line 170 of file append.hpp.
| void boost::geometry::assign | ( | Geometry & | geometry, | |
| Type const & | c1, | |||
| Type const & | c2 | |||
| ) |
assign two values to a 2D point
Definition at line 354 of file assign.hpp.
| void boost::geometry::assign | ( | Geometry & | geometry, | |
| Type const & | c1, | |||
| Type const & | c2, | |||
| Type const & | c3 | |||
| ) |
assign three values to a 3D point [or the center + radius to a circle]
Definition at line 371 of file assign.hpp.
| void boost::geometry::assign | ( | Geometry & | geometry, | |
| Type const & | c1, | |||
| Type const & | c2, | |||
| Type const & | c3, | |||
| Type const & | c4 | |||
| ) |
| void boost::geometry::assign | ( | Geometry & | geometry, | |
| Range const & | range | |||
| ) |
assign a range of points to a linestring, ring or polygon
Definition at line 409 of file assign.hpp.
| void boost::geometry::assign_inverse | ( | Geometry & | geometry | ) |
assign to a box inverse infinite
The assign_inverse function initialize a 2D or 3D box with large coordinates, the min corner is very large, the max corner is very small. This is a convenient starting point to collect the minimum bounding box of a geometry.
Definition at line 426 of file assign.hpp.
| void boost::geometry::assign_zero | ( | Geometry & | geometry | ) |
assign zero values to a box, point
The assign_zero function initializes a 2D or 3D point or box with coordinates of zero
| Geometry | the geometry type |
Definition at line 444 of file assign.hpp.
| void boost::geometry::assign_box_corners | ( | Box const & | box, | |
| Point & | lower_left, | |||
| Point & | lower_right, | |||
| Point & | upper_left, | |||
| Point & | upper_right | |||
| ) |
Assign the 4 points of a 2D box.
Definition at line 463 of file assign.hpp.
| void boost::geometry::assign_point_to_index | ( | Point const & | point, | |
| Geometry & | geometry | |||
| ) |
| void boost::geometry::assign_point_from_index | ( | Geometry const & | geometry, | |
| Point & | point | |||
| ) |
| void boost::geometry::clear | ( | Geometry & | geometry | ) |
Clears a linestring, linear ring or polygon (exterior+interiors) or multi*.
Generic function to clear a geometry
| Geometry boost::geometry::make | ( | T const & | c1, | |
| T const & | c2 | |||
| ) |
Make a geometry.
the Generic Geometry Library uses concepts for all its geometries. Therefore it does not rely on constructors. The "make" functions are object generators creating geometries. There are overloads with two, three, four or six values, which are implemented depending on the geometry specified.
| G | the geometry type | |
| T | the coordinate type |
| Geometry boost::geometry::make | ( | T const & | c1, | |
| T const & | c2, | |||
| T const & | c3 | |||
| ) |
| Geometry boost::geometry::make_inverse | ( | ) |
| Geometry boost::geometry::make_zero | ( | ) |
| std::size_t boost::geometry::num_points | ( | Geometry const & | geometry | ) |
get number of points
| Geometry | geometry type |
Definition at line 129 of file num_points.hpp.
|
December 1, 2009 |
Copyright © 1995-2009 Barend Gehrels, Geodan, Amsterdam Copyright © 2008-2009 Bruno Lalande, Paris Copyright © 2009 Mateusz Loskot, Cadcorp, London |