buffer

# buffer: calculate buffer of a geometry

typename Input
typename Output
typename Distance
void void boost::geometry::buffer (Input const &geometry_in, Output &geometry_out, Distance const &distance, Distance const &chord_length=-1) 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. Input

Any type fulfilling a Geometry Concept

Output

Any type fulfilling a Geometry Concept

Distance

numerical type (int, double, ttmath, ...)

geometry_in

A model of the specified concept

geometry_out

A model of the specified concept

distance

The distance to be used for the buffer

chord_length

(optional) The length of the chord's in the generated arcs around points or bends

[include reference/algorithms/buffer.qbk]
typename GeometryIn
typename MultiPolygon
typename DistanceStrategy
typename SideStrategy
typename JoinStrategy
typename EndStrategy
typename PointStrategy
void 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) 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. GeometryIn

Any type fulfilling a Geometry Concept

MultiPolygon

A type fulfilling the MultiPolygon Concept

DistanceStrategy

A strategy defining distance (or radius)

SideStrategy

A strategy defining creation along sides

JoinStrategy

A strategy defining creation around convex corners

EndStrategy

A strategy defining creation at linestring ends

PointStrategy

A strategy defining creation around points

geometry_in

A model of the specified concept

geometry_out

output multi polygon (or std:: collection of polygons), will contain a buffered version of the input geometry

distance_strategy

The distance strategy to be used

side_strategy

The side strategy to be used

join_strategy

The join strategy to be used

end_strategy

The end strategy to be used

point_strategy

The point strategy to be used

with strategies [include reference/algorithms/buffer_with_strategies.qbk]
typename Output
typename Input
typename Distance
Output Output boost::geometry::return_buffer (Input const &geometry, Distance const &distance, Distance const &chord_length=-1) 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.. Input

Any type fulfilling a Geometry Concept

Output

Any type fulfilling a Geometry Concept

Distance

numerical type (int, double, ttmath, ...)

geometry

A model of the specified concept

distance

The 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)

The calculated \1