union of polyshapes, problem with collinearity
14 views (last 30 days)
Alexandra Kopaleyshvili on 23 May 2021
I have 15 polygons (of streets) that I can merge into one using the union function.
But if I want to unite only a few of them (that are close to each other), I get:
Error using polyshape/parseCollinear (line 946)
Parameter name must be 'KeepCollinearPoints'.
Error in polyshape/parseIntersectUnionArgs (line 973)
Error in polyshape/union (line 42)
[has_clip, collinear] = polyshape.parseIntersectUnionArgs(false,
Unfortunately, I don't really understand what MatLAB wants me to do to get my unified polygon groups.
Ah, and if polygons are collinear, I'd like to keep those collinear points.
Matt J on 23 May 2021
Edited: Matt J on 23 May 2021
You just had a comma separated list in there by accident. The polyshapes must be given to union() as a vector.