Engine中如何根据道路中心线获取其两侧道路?

Engine中如何根据道路中心线获取其两侧道路?
已邀请:

朱新颖

赞同来自:

【解决办法】:
可以使用IConstructCurve.ConstructOffset将线进行平移,参考下面代码:


IConstructCurve pCurve1 = new PolylineClass(); 
pCurve1.ConstructOffset(pLline1, pBufferDis, ref o, ref o); 
IPolyline pline1 = pCurve1 as IPolyline; 
IConstructCurve pCurve2 = new PolylineClass(); 
pCurve2.ConstructOffset(pLline1, -1 * pBufferDis, ref o, ref o); 
IPolyline pline2 = pCurve2 as IPolyline;

要回复问题请先登录注册