There's definitely an issue with the way collinear
entities without a common endpoint are projected. It seems like the overlapping
end points should have come through in the projection instead of being merged
into one. Thanks for reporting this. I've logged this in our database (ID:
1146666).
I haven't thought about it too much, but I don't
think it'll be easy to come up with a generalized test to detect this problem.
You could either use the workaround you've found (of projecting before adding
the collinear constraint) or if the entities have already been projected, you
can project them again & compare points on the previously and newly
projected entities to make sure they are the same. If they are the same, you can
discard the newly projected entities.
Sanjay-