...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
A linestring (named so by OGC) is a collection (default a vector) of points.
template<typename Point, template< typename, typename > class Container, template< typename > class Allocator> class model::linestring : public Container< Point, Allocator< Point > > { // ... };
Parameter |
Default |
Description |
---|---|---|
typename Point |
Any type fulfilling a Point Concept |
|
template< typename, typename > class Container |
std::vector |
container type, for example std::vector, std::deque |
template< typename > class Allocator |
std::allocator |
container-allocator-type |
Function |
Description |
Parameters |
---|---|---|
linestring()
|
Default constructor, creating an empty linestring. |
|
template<typename Iterator> linestring(Iterator begin, Iterator end)
|
Constructor with begin and end, filling the linestring. |
Iterator: begin: Iterator: end: |
Either
#include <boost/geometry/geometries/geometries.hpp>
Or
#include <boost/geometry/geometries/linestring.hpp>