[geos-devel] Union of linestrings

Mateusz Loskot mateusz at loskot.net
Mon Feb 29 12:29:29 PST 2016


On 29 February 2016 at 20:10, Sandro Santilli <strk at keybit.net> wrote:
> On Mon, Feb 29, 2016 at 07:18:08PM +0100, Mateusz Loskot wrote:
>>
>> I've started adding tests for OverlayOp [1] and I noticed
>> curious results for basic test case.
>>
>> OverlayOp(UNION) on Four segments of a sqare
>> always construct a MultiLineString.
>> I'd have expected a polygon, shouldn't I?
>
> No, you shouldn't.
> The union of lines do not yeld an area.
> You can use the Polygonizer class to build polygons
> from linework.


Right. I'll give it a go. Thanks.

Best regards,
-- 
Mateusz Łoskot, http://mateusz.loskot.net


More information about the geos-devel mailing list