Boost.Geometry    Boost C++ Libraries
Functions
buffer: calculate buffer of a geometry

Functions

template<typename Input , typename Output , typename Distance >
void boost::geometry::buffer (Input const &geometry_in, Output &geometry_out, Distance const &distance, Distance const &chord_length=-1)
 Calculates the buffer of a geometry.
template<typename GeometryIn , typename MultiPolygon , typename DistanceStrategy , typename SideStrategy , typename JoinStrategy , typename EndStrategy , typename PointStrategy >
void boost::geometry::buffer (GeometryIn const &geometry_in, MultiPolygon &geometry_out, DistanceStrategy const &distance_strategy, SideStrategy const &side_strategy, JoinStrategy const &join_strategy, EndStrategy const &end_strategy, PointStrategy const &point_strategy)
 Calculates the buffer of a geometry.
template<typename Output , typename Input , typename Distance >
Output boost::geometry::return_buffer (Input const &geometry, Distance const &distance, Distance const &chord_length=-1)
 Calculates the buffer of a geometry.

Function Documentation

template<typename Input , typename Output , typename Distance >
void boost::geometry::buffer ( Input const &  geometry_in,
Output &  geometry_out,
Distance const &  distance,
Distance const &  chord_length = -1 
)

Calculates the buffer of a geometry.

The free function buffer calculates the buffer (a polygon being the spatial point set collection within a specified maximum distance from a geometry) of a geometry.

Template Parameters:
InputAny type fulfilling a Geometry Concept
OutputAny type fulfilling a Geometry Concept
Distancenumerical type (int, double, ttmath, ...)
Parameters:
geometry_inA model of the specified concept
geometry_outA model of the specified concept
distanceThe distance to be used for the buffer
chord_length(optional) The length of the chord's in the generated arcs around points or bends
template<typename Output , typename Input , typename Distance >
Output boost::geometry::return_buffer ( Input const &  geometry,
Distance const &  distance,
Distance const &  chord_length = -1 
)

Calculates the buffer of a geometry.

The free function return_buffer calculates the buffer (a polygon being the spatial point set collection within a specified maximum distance from a geometry) of a geometry. This version with the return_ prefix returns the buffer, and a template parameter must therefore be specified in the call..

Template Parameters:
InputAny type fulfilling a Geometry Concept
OutputAny type fulfilling a Geometry Concept
Distancenumerical type (int, double, ttmath, ...)
Parameters:
geometryA model of the specified concept
distanceThe distance to be used for the buffer
chord_length(optional) The length of the chord's in the generated arcs around points or bends (RESERVED, NOT YET USED)
Returns:
The calculated \1
template<typename GeometryIn , typename MultiPolygon , typename DistanceStrategy , typename SideStrategy , typename JoinStrategy , typename EndStrategy , typename PointStrategy >
void boost::geometry::buffer ( GeometryIn const &  geometry_in,
MultiPolygon &  geometry_out,
DistanceStrategy const &  distance_strategy,
SideStrategy const &  side_strategy,
JoinStrategy const &  join_strategy,
EndStrategy const &  end_strategy,
PointStrategy const &  point_strategy 
)

Calculates the buffer of a geometry.

The free function buffer calculates the buffer (a polygon being the spatial point set collection within a specified maximum distance from a geometry) of a geometry.

Template Parameters:
GeometryInAny type fulfilling a Geometry Concept
MultiPolygonA type fulfilling the MultiPolygon Concept
DistanceStrategyA strategy defining distance (or radius)
SideStrategyA strategy defining creation along sides
JoinStrategyA strategy defining creation around convex corners
EndStrategyA strategy defining creation at linestring ends
PointStrategyA strategy defining creation around points
Parameters:
geometry_inA model of the specified concept
geometry_outoutput multi polygon (or std:: collection of polygons), will contain a buffered version of the input geometry
distance_strategyThe distance strategy to be used
side_strategyThe side strategy to be used
join_strategyThe join strategy to be used
end_strategyThe end strategy to be used
point_strategyThe point strategy to be used

April 2, 2011

Copyright © 2007-2011 Barend Gehrels, Amsterdam, the Netherlands
Copyright © 2008-2011 Bruno Lalande, Paris, France
Copyright © 2009-2010 Mateusz Loskot, London, UK
Documentation is generated by Doxygen