Boost.Geometry    Boost C++ Libraries

buffer: calculate buffer of a geometry


Functions

template<typename Input , typename Output , typename T >
void boost::geometry::buffer (Input const &geometry_in, Output &geometry_out, T const &distance, T const &chord_length=-1)
 Calculate buffer (= new geometry) around specified distance of geometry.
template<typename Output , typename Input , typename T >
Output boost::geometry::make_buffer (Input const &geometry, T const &distance, T const &chord_length=-1)
 Calculate and return buffer (= new geometry) around specified distance of geometry.

Detailed Description

Source description:
  • OGC: Returns a geometric object that represents all Points whose distance from this geometric object is less than or equal to distance. Calculations are in the spatial reference system of this geometric object. Because of the limitations of linear interpolation, there will often be some relatively small error in this distance, but it should be near the resolution of the coordinates used
See also:
http://en.wikipedia.org/wiki/Buffer_(GIS)

Function Documentation

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

Calculate buffer (= new geometry) around specified distance of geometry.

Parameters:
geometry_in input geometry
distance the distance used in buffer
chord_length length of the chord's in the generated arcs around points or bends
geometry_out buffered geometry
Note:
Currently only implemented for box, the trivial case, but still useful
Use case:
BOX + distance -> BOX: it is allowed that "geometry_out" the same object as "geometry_in"

Definition at line 107 of file buffer.hpp.

template<typename Output , typename Input , typename T >
Output boost::geometry::make_buffer ( Input const &  geometry,
T const &  distance,
T const &  chord_length = -1 
)

Calculate and return buffer (= new geometry) around specified distance of geometry.

Parameters:
geometry input geometry
distance the distance used in buffer
chord_length length of the chord's in the generated arcs around points or bends
Returns:
the buffered geometry
Note:
See also: buffer

Definition at line 133 of file buffer.hpp.


December 1, 2009

Copyright © 1995-2009 Barend Gehrels, Geodan, Amsterdam
Copyright © 2008-2009 Bruno Lalande, Paris
Copyright © 2009 Mateusz Loskot, Cadcorp, London
Documentation is generated by Doxygen