I get the same line, NOT the line from the splitpoint to the endpoint going in the direction of the line.
Is this a bug? Is there a way to force this function to stay in the direction of the line? I had to do it manually vertex to vertex, which is a real pain.
Thanks for your post and questions. Could you let me know which version you are using against? I remember we have encountered this issue before and get it fixed. string verson = WinformsMap.GetVersion();
Also, it would be nice if you could send me a test case for this including the WTK for the multilineShape and the corresponding splitpoint. Any more questions please feel free to let me know.
I have tested this function it works properly, I think maybe your data is special to cause the problem, so could you provide your multi-line to us and we can test and find the reason. You can get well known text by using mymultiline.GetWellKnownText().
I can recreate your problem, this muli line is special I think we didn’t consider this case before, the first vertex and the last vertex has the same x y coordinate, the well know text is MULTILINESTRING((-113.9497133 51.091418,-113.9508707 51.0911999,-113.9504843 51.0902922,-113.9493139 51.0903037,-113.949246 51.0903594,-113.9497133 51.091418)), I use the PointShape(51.0911999, -113.9504843) to test both, their results are the same.
I have added it to our issue system, we will try to fix it later and let you know if we make it. Thanks James