|
Geometry : |
From: Barend Gehrels (barend_at_[hidden])
Date: 2019-08-24 08:54:30
Hi Matthieu,
Op 20-8-2019 om 18:09 schreef Matthieu Beghin via Geometry:
> Hi,
> I'd like to get asymetric buffer (buffering only on one side) on a
> line string working but it doesn't, with boost 1.68.
> The path is in green here, the buffer output in black (and below the
> green path). Code below.
>
> Screenshot 2019-08-20 at 17.51.46.png
> Â Â Â Â lineString_t inputRing;
> Â Â Â Â bg::append(inputRing, points);
> Â Â Â Â bg::correct(inputRing);
>
> Â Â Â Â bg::strategy::buffer::join_miter join_strategy(2);
> Â Â Â Â bg::strategy::buffer::end_flat end_strategy;
> Â Â Â Â bg::strategy::buffer::point_circle circle_strategy(24);
> Â Â Â Â bg::strategy::buffer::side_straight side_strategy;
>
> Â Â Â Â multiPolygon_t inflated;
> bg::strategy::buffer::distance_asymmetric<double>
> inflatingStrategy(feathering/2,0);
> Â Â Â Â bg::buffer(inputRing, inflated,
> Â Â Â Â Â Â Â Â Â Â inflatingStrategy, side_strategy,
> Â Â Â Â Â Â Â Â Â Â join_strategy, end_strategy, circle_strategy);
>
> Any chance it has been fixed in later releases ? (upgrading is a
> process with Windows, macOS & raspberry pi builds)
> Thanks a lot!
Thanks for your message. I cannot predict if it is fixed. Can you create
an issue, including the WKT (or another representation) of your input, here?
https://github.com/boostorg/geometry/issues
Even if we don't have the time to jump on it immediately, in the end we
will.
Thanks, regards, Barend
Geometry list run by mateusz at loskot.net