`

C# +AO获取线段中点

阅读更多

 public static IPoint getLineCenterPoint(IPolyline pPolyline)
    {
        double d = pPolyline.Length;
        IPoint pPoint = new PointClass();
        try
        {
            pPolyline.QueryPoint(esriSegmentExtension.esriNoExtension, d / 2, false, pPoint);


            return pPoint;

        }
        catch (Exception ex)
        {
            return null;

        }

    }
 
1
6
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics