阅读:1625回复:2
请教一个迷糊得问题:mapx能实现动态分段吗?
mapinfo系列可以实现动态分段技术吗,即根据新的属性生成新的图元,而不更改原有图元属性!??
请教<img src="images/post/smile/dvbbs/em02.gif" /> |
|
1楼#
发布于:2004-09-08 12:20
<P>应该可以的,可能要通过MAPBASIC编程实现!</P>
|
|
2楼#
发布于:2004-10-06 03:27
<P> <a>file://取</A>原线段终点
ex_int:=feature.parts.item(feature.parts.count).item(2).x; ey_int :=feature.parts.item(feature.parts.count).item(2).y; <a>file://重</A>设它的终点 feature.parts.item(feature.parts.count).item(2).set(x1,y1); feature.Update;</P><P> //建新段 sym_sty := feature.style; pts := CreateOleObject('MapX.Points.4'); pts.AddXY(x1, Y1); pts.AddXY(ex_int, ey_int); newObj := Map1.ControlInterface.FeatureFactory.CreateLine(pts, sym_sty); feature:=layer.AddFeature(newObj);</P> |
|