![]() |
![]() |
Linestring concept. More...
Linestring concept.
A custom linestring, defining the necessary specializations to fulfill to the concept.
Suppose that the following linestring is defined:
struct custom_linestring1 : std::deque<P> { int id; };
It can then be adapted to the concept as following:
// adapt custom_linestring1 namespace boost { namespace geometry { namespace traits { template <typename P> struct tag< custom_linestring1<P> > { typedef linestring_tag type; }; }}} // namespace boost::geometry::traits
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 |