阅读:1507回复:0
怎么样将Polyline里面的点稀化?
<P>昂现在有一些等高线数据,但是每条等高线里面包含的点太多了,想隔几个点删几个,不知道用ArcMap能否实现?</P>
<P>或者用AO编程怎么实现?</P> <P>是这样想的,先通过下面的语句</P> <P> IFeatureCursor pcursor = m_layer.FeatureClass.Search(null,false);<BR> IFeature pfeature;</P> <P>while((pfeature = pcursor.NextFeature())!= null)<BR> {<BR> IGeometry pgeo = pfeature.Shape;<BR> IPointCollection pcon = (IPointCollection )pgeo;<BR> j+= pcon.PointCount;<BR> for(int i = 0;i<pcon.PointCount;i++)<BR> {<BR> if(i%2 == 0)<BR> pcon.RemovePoints(i,1);<BR> <BR> } </P> <P>隔一个点删除一个,但是不知道后面怎么样保存?</P> <P>不知道有没有高手会的?救急!!!!</P> |
|