Yes, that's exactly the problem I"m facing... If the coordinates are the same, or if one of them are the same, then there's an error.
I had thought of adding a little value, as said Wilfried, but I've not tried yet... But I think this is a "hacking" way, and we must be the more precise we could ... Anyway if this is the only solution then we'll use it !!