Boost logo

Geometry :

Subject: [ggl] compile error with a custom linestring
From: Barend Gehrels (barend)
Date: 2011-05-06 21:16:11


Hi Vishnu,

On 6-5-2011 20:04, Vishnu wrote:
> I have a compiler error on MSVC 2008 using boost-geometry-0.9.0. The error
> appears to be due to my creating a custom linestring that isn't being
> recognized as a geometry. I'm wondering whether someone can give me a more
> specific pointer on what needs to be added to fix this.

Right, it is true, expand is only implemented for points/boxes.

The most easy is to call it using
expand(make_envelope<my_box_type>(my_line))

I will add it for other geometry-types than point/box, I was confused as
well recently.

Regards, Barend


Geometry list run by mateusz at loskot.net