Boost.Geometry    Boost C++ Libraries
Functions
convert: convert geometries from one type to another

Functions

template<typename Geometry1 , typename Geometry2 >
void boost::geometry::convert (Geometry1 const &geometry1, Geometry2 &geometry2)
 Converts one geometry to another geometry.

Function Documentation

template<typename Geometry1 , typename Geometry2 >
void boost::geometry::convert ( Geometry1 const &  geometry1,
Geometry2 &  geometry2 
)

Converts one geometry to another geometry.

The convert algorithm converts one geometry, e.g. a BOX, to another geometry, e.g. a RING. This only works if it is possible and applicable. If the point-order is different, or the closure is different between two geometry types, it will be converted correctly by explicitly reversing the points or closing or opening the polygon rings.

Template Parameters:
Geometry1Any type fulfilling a Geometry Concept
Geometry2Any type fulfilling a Geometry Concept
Parameters:
geometry1A model of the specified concept (source)
geometry2A model of the specified concept (target)

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