W dniu 19.09.2019 o 15:09, Mateusz Loskot via Geometry pisze:
> On Thu, 19 Sep 2019 at 13:01, Ahmet Temiz via Geometry
> <geometry@lists.boost.org> wrote:
>> I want to merge some partial lines (roads) to a continuous single line based on certain proximity.
>>
>> Can you guide me to use relevant function?
> Have you browsed through the API reference for potential candidates?
>
> For example, this one
> https://www.boost.org/libs/geometry/doc/html/geometry/reference/algorithms/append.html
> and this may be helpful
> https://github.com/boostorg/geometry/blob/develop/example/02_linestring_example.cpp
Well, I don't know if that's what is needed here. AFAIU there is some
reference line (linestring or segment?) and the problem is that some
other lines that are closer than some distance threshold should be
filtered out from a set of these other lines. Is that correct? If it is
then you probably only need bg::distance() or bg::comparable_distance().
But these functions will return the minimum distance between two
linestrings so if you define proximity differently then you'll need
something else.
So if the above does not apply please expand the explanation of the
problem defining what does "partial lines", "merge", "continuous single
line" and "proximity" mean exactly.
Adam
_______________________________________________
Geometry mailing list
Geometry@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/geometry