Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

model::linestring

A linestring (named so by OGC) is a collection (default a vector) of points.

Model of

Linestring Concept

Synopsis

template<typename Point, template< typename, typename > class Container, template< typename > class Allocator>
class model::linestring
      : public Container< Point, Allocator< Point > >
{
  // ...
};

Template parameter(s)

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

Constructor(s)

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:

Header

Either

#include <boost/geometry/geometries/geometries.hpp>

Or

#include <boost/geometry/geometries/linestring.hpp>


PrevUpHomeNext