Boost logo

Geometry :

Subject: [ggl] Custom polygons
From: Barend Gehrels (Barend.Gehrels)
Date: 2009-06-28 16:43:49


Hi Chris,

>
> Is there a possibility to have custom polygons (without holes) the
> same way as std::vector<my_custom_point> for linestrings?
Yes, but...

1) You have to assign it the ring tag.
2) You cannot assign two different tags to the same structure. So either
you have to make this a std::deque or so, or (probably more convenient)
derive two different structs from your std::vector<my_custom_point> and
register them separately. The derived structs do not have to add
anything. Just deriving and registering must be enough.

Regards, Barend


Geometry list run by mateusz at loskot.net