|
Geometry : |
From: Adam Wulkiewicz (adam.wulkiewicz_at_[hidden])
Date: 2019-09-19 16:12:14
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_at_[hidden]> 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 list run by mateusz at loskot.net