Boost logo

Geometry :

Subject: [ggl] Quick question about bg::difference
From: Barend Gehrels (barend)
Date: 2011-10-24 19:47:52


On 24-10-2011 22:47, V D wrote:
> Hi,
> I have a question about the difference algorithm.
> template<typename Geometry1, typename Geometry2, typename Collection>
> void difference(Geometry1 const & geometry1, Geometry2 const
> & geometry2, Collection & output_collection)
> What happens in the case that the 2 geometries are disjoint? So far in
> my test cases it seems that in disjoint cases it will always return
> the second geometry, is this guaranteed ?

Hmm, I would expect they would always return the first. That is what OGC
specifies. Are you sure? I will look tomorrownight, and repair if necessary.

Regards, Barend

-------------- next part --------------
An HTML attachment was scrubbed...

Geometry list run by mateusz at