[geos-devel] Fwd: Geometry/Rectangle Intersection: line touching rectangle

Sandro Santilli strk at keybit.net
Fri Sep 12 03:19:25 PDT 2014


On Fri, Sep 12, 2014 at 01:08:24PM +0300, Mika Heiskanen wrote:
> On 09/12/2014 01:03 PM, Sandro Santilli wrote:
> >BTW, is this statement correct in the docs ?
> >
> >  [...] the second clips the boundaries of polygons,
> >  not the polygons themselves.
> >  In the latter case polygons will be converted to polylines
> >  if any vertex is outside the clipping rectangle,
> >   ^^^^^^^^^^^^^^^^^^^^
> >  or will be cut out completely.
> >
> >Does it mean fully-contained polygons would be omitted from output ?
> >Test 48 suggests the contrary (the polygon is found fully in output).
> 
> No, my wording is poor. What I tried to say was that if any vertex
> is outside, the result will always be either a polyline or nothing.
> A polygon will result only if all vertices are in.

I've changed as:

 In the latter case polygons
 will be converted to polylines only if not fully inside or fully outside
 of the rectangle.

Does it sound correct ?

--strk;


More information about the geos-devel mailing list