• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • YouClaw
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
bobird的学习笔记
博客园    首页    新随笔    联系   管理    订阅  订阅

ArcGISEngine实现要素镜像复制

在ArcGISEngine中实现目标要素镜像复制主要用到下面几个接口

<!--[if !supportLists]-->Ø  <!--[endif]-->ITransformation

<!--[if !supportLists]-->Ø  <!--[endif]-->IAffineTransformation2D

<!--[if !supportLists]-->Ø  <!--[endif]-->ITransform2D

具体功能实现的代码如下

ILine nLine = new LineClass();//镜像轴线

nLine.PutCoords(pPoint1, pPoint2);

ITransformation nTransformation = new AffineTransformation2DClass();

IAffineTransformation2D nAffineTransformation2D = nTransformation as IAffineTransformation2D;

nAffineTransformation2D.DefineReflection(nLine);

ITransform2D nTransform2D = pPolyline as ITransform2D;//镜像目标

nTransform2D.Transform(esriTransformDirection.esriTransformForward, nTransformation);

IPolyline pPolyline1 = nTransform2D as IPolyline;//镜像所得

posted on 2013-07-03 15:59  bobird  阅读(421)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3