[geos-devel] Fwd: Geometry/Rectangle Intersection: line touching rectangle
Mika Heiskanen
mika.heiskanen at fmi.fi
Fri Sep 12 03:08:24 PDT 2014
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.
Regards,
Mika Heiskanen / Finnish Meteorological Institute
More information about the geos-devel
mailing list