Boost C++ Libraries Home Libraries People FAQ More

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
{
  // ...
};

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