Boost logo

Geometry :

Subject: [ggl] intersection_segment...
From: Chris Browet (cbro)
Date: 2009-06-25 11:09:00


BTW, linestring by linestring, which is what I actually need (I am now doing
linestring segment by linestring segment intersection) would be great.

But I can live with segment by segment...

2009/6/25 Barend Gehrels <Barend.Gehrels_at_[hidden]>

> Hi Chris,
>
> Sorry for the inconvenience. It was very old.
>
> It will be replaced by a generic segment/segment intersection, delivering
> one or two points.
>
> This functionis there already but as a strategy (because it is different in
> Cartesian than in Spherical systems). In this strategy is specified what you
> want (intersection points, or just how they intersect). It is internal, so
> more complicated. You might call this directly using
>
> #include <ggl/strategies/cartesian/cart_intersect.hpp>
> #include <ggl/strategies/intersection_result.hpp>
>
> #include <ggl/policies/relate/intersection_points.hpp>
> ...
>
> ggl::segment_intersection_points<P> is
> = ggl::strategy::intersection::relate_cartesian_segments
> <
> ggl::policies::relate::segments_intersection_points
> <
> segment_type,
> segment_type,
> ggl::segment_intersection_points<P>
> >
> >::relate(segment_type(p1,p2), segment_type(p3,p4));
>
>
> But maybe it is better to wait for half a day, I'll try make a wrapper
> soon.
>
> The generic linestring/linestring would be an option but also not yet
> there.
>
> Regards, Barend
>
>
>
> Chris Browet wrote:
>
> ... seem to have disappeared in latest SVN.
>
> As I understand the intersection algorithm is now generic, should it be
> replaced by a linestring/linestring intersection?
>
> - Chris -
>
> ------------------------------
>
>
>
> _______________________________________________
> ggl mailing list
> ggl_at_[hidden]
> http://lists.osgeo.org/mailman/listinfo/ggl
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/ggl/attachments/20090625/4127f262/attachment-0001.html


Geometry list run by mateusz at loskot.net