1 Reply Latest reply on Apr 20, 2018 11:37 AM by Simon Turner

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

    克 争 孙

      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);