欢迎来到天天文库
浏览记录
ID:37915548
大小:69.00 KB
页数:7页
时间:2019-06-02
《ArcEngine接口大全》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、[转载]ArcEngine接口大全(四)《转自ESRI中国社区》(2010-11-1414:58:22)转载原文标签:转载分类:AE开发原文地址:ArcEngine接口大全(四)《转自ESRI中国社区》作者:GisEr27.怎样从Table中获取具体需求值的Row:1.ITablepTable=(ITable)pFC;2. intindex=pTable.Fields.FindField("FieldName");3. IQueryFilterpQFilter=newQueryFilter
2、Class();4. ICursorpCur;5. pCur=pTable.Search(pQFilter,false);6. IRowpRow=newRow();7. IRowpAnswerRow=newRow();8. pRow=pCur.NextRow();9. while(pRow!=null)10. {11. stringValue=pRow.get_Value(i
3、ndex).ToString();12. if(Value=="Value")13. {14. pAnswerRow=pRow;15. break;16. }17. pRow=pCur.NextRow();18. }28.怎样ZoomInCenter:1.PublicSubZoomInCenter()2. DimpMxDocumentAsIMx
4、Document3. DimpActiveViewAsIActiveView4. DimpDisplayTransformAsIDisplayTransformation5. DimpEnvelopeAsIEnvelope6. DimpCenterPointAsIPoint7. SetpMxDocument=Application.Document8. SetpActiveView=pMxDocument.FocusMap1. SetpDisplayTransform=pActiveView.ScreenDis
5、play.DisplayTransformation2. SetpEnvelope=pDisplayTransform.VisibleBounds3. 'Inthiscase,wecouldhavesetpEnvelopetoIActiveView::Extent4. 'SetpEnvelope=pActiveView.Extent5. SetpCenterPoint=NewPoint6. 7. pCenterPoint.x=((pEnvelope.XMax-pEnvelope.XMin)/2)+pEnvelop
6、e.XMin8. pCenterPoint.y=((pEnvelope.YMax-pEnvelope.YMin)/2)+pEnvelope.YMin9. pEnvelope.width=pEnvelope.width/210. pEnvelope.height=pEnvelope.height/211. pEnvelope.CenterAtpCenterPoint12. pDisplayTransform.VisibleBounds=pEnvelope13. pActiveView.Refresh14.EndSu
7、b29.怎样读取一个字段内的所有值:1. IFeatureClasspFC=m_SDEQuery.getFeatureClass();2. IFeatureCursorpFeaCur=pFC.Search(null,false);3. IFeaturepFeature=pFeaCur.NextFeature();4. intpFieldIndex=pFC.Fields.FindField(this.m_cboQryFld.SelectedItem.Val
8、ue.ToString());5. System.Collections.ArrayListpArr=newSystem.Collections.ArrayList();6. while(pFeature!=null)7. {8.
此文档下载收益归作者所有