Boost logo

Geometry :

Subject: [ggl] Intersection of linestring with polygon
From: Aleksandar Babic (aleksandarb)
Date: 2011-11-16 09:20:48


It seems that the functionality for few combinations (also for some
other algorithms) is not yet implemented.

One approximation that you might try (may be valid approach from case to
case) is to try converting both geometries to the closest common
For example, try converting line and polygon to the linestring/ring and
the finding the intersection (might help with other algorithms as well).

Hope this helps.


On Mon, 2011-11-14 at 16:23 -0700, Mike Williams wrote:
> Hello,
> I have successfully used boost::geometry::intersection to get the
> intersection of two polygons. How I want to get the intersection of a
> polygon and a line (the portion of the line that is internal to the
> polygon). When I call intersection(polygon, linestring,
> vector_of_linestring) I get compiler errors.
> Could someone please advise me on how that can be accomplished.
> Thanks,
> Mike
> .
> ===============================================
> The content of this message may contain the private views and opinions
> of the sender and does not constitute a formal view and/or opinion of
> the company unless specifically stated.
> The contents of this email and any attachments may contain
> confidential and/or proprietary information, and is intended only for
> the person/entity to whom it was originally addressed. Any
> dissemination, distribution or copying of this communication is
> strictly prohibited.
> If you have received this email in error please notify the sender
> immediately by return e-mail and delete this message and any
> attachments from your system.
> Please refer to for other
> language versions of this disclaimer.
> ================================================
> _______________________________________________
> ggl mailing list
> ggl_at_[hidden]

Geometry list run by mateusz at