[geos-devel] Union of linestrings

Mateusz Loskot mateusz at loskot.net
Tue Mar 1 05:52:32 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:
>> Hi,
>>
>> 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.

Sandro,

What about constructing a single LineString from connected
segments, instead of a MultiLineString?

What are the criteria in such case?

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


More information about the geos-devel mailing list