AnsweredAssumed Answered

how to get the startpoint and endpoint of a line use C#

Question asked by 克 争 孙 on Apr 20, 2018
Latest reply on Apr 20, 2018 by Simon Turner

When i get the startpoint and endpoint of a line use code like this, I got the wrong data like this

起点[-87.963,-10000074.710],终点[-87.963,9999925.290]

 

 

                    double start, end;

                    bool isClosed, isPeriodic;

                    curve.GetEndParams(out start, out  end, out  isClosed, out  isPeriodic);

                    //double[] startPnt = curve.Evaluate2(0, 0);

                    //double[] endPnt = curve.Evaluate2(1, 0);

                    double[] startPnt = curve.Evaluate2(start, 0);

                    double[] endPnt = curve.Evaluate2(end, 0);

Outcomes