在ArcGISEngine中实现目标要素镜像复制主要用到下面几个接口
<!--[if !supportLists]-->Ø<!--[endif]-->ITransformation
<!--[if !supportLists]-->Ø<!--[endif]-->IAffineTransformation2D
<!--[if !supportLists]-->Ø<!--[endif]-->ITransform2D
具体功能实现的代码如下
ILinenLine = newLineClass();//镜像轴线
nLine.PutCoords(pPoint1, pPoint2);
ITransformation nTransformation = newAffineTransformation2DClass();
IAffineTransformation2D nAffineTransformation2D = nTransformation asIAffineTransformation2D;
nAffineTransformation2D.DefineReflection(nLine);
ITransform2D nTransform2D = pPolyline asITransform2D;//镜像目标
nTransform2D.Transform(esriTransformDirection.esriTransformForward, nTransformation);
IPolylinepPolyline1 = nTransform2D asIPolyline;//镜像所得
本文介绍如何使用ArcGISEngine中的ITransformation、IAffineTransformation2D和ITransform2D接口实现地理要素的镜像复制。通过定义一条镜像轴线并利用IAffineTransformation2D接口设置反射变换,完成目标要素的镜像操作。

561

被折叠的 条评论
为什么被折叠?



