convert

# convert: convert geometries from one type to another

typename Geometry1
typename Geometry2
void void boost::geometry::convert (Geometry1 const &geometry1, Geometry2 &geometry2) 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.

Geometry1

Any type fulfilling a Geometry Concept

Geometry2

Any type fulfilling a Geometry Concept

geometry1

A model of the specified concept (source)

geometry2

A model of the specified concept (target)

[include reference/algorithms/convert.qbk]