linqiang_100
路人甲
路人甲
  • 注册日期2006-12-17
  • 发帖数1
  • QQ
  • 铜币124枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1525回复:1

求助??Arcgis engine编程实现identify功能

楼主#
更多 发布于:2007-02-05 01:21
<P>如何用arcgis engine编程实现identify功能?我在官方网站上下了一段vb代码,但是不怎么看得懂,有没有哪位高人能帮我翻译成c#啊?</P>
<P>Private Sub UIToolControl1_MouseDown(ByVal button As Long, ByVal shift As Long, ByVal x As Long, ByVal y As Long)<BR>  Dim pMxDoc As IMxDocument<BR>  Dim pActiveView As IActiveView<BR>  Dim pIdentifyDialog As IIdentifyDialog<BR>  Dim pIdentifyDialogProps As IIdentifyDialogProps<BR>  Dim pEnumLayer As IEnumLayer<BR>  Dim pLayer As ILayer<BR><BR>  Set pMxDoc = Application.Document<BR>  Set pActiveView = pMxDoc.FocusMap<BR><BR>  'Create a new IdentifyDialog and associate it<BR>  'with the focus map and the map's display<BR>  Set pIdentifyDialog = New IdentifyDialog<BR>  Set pIdentifyDialogProps = pIdentifyDialog 'QI<BR>  Set pIdentifyDialog.Map = pMxDoc.FocusMap<BR>  Set pIdentifyDialog.Display = pActiveView.ScreenDisplay<BR>  <BR>  'Clear the dialog on each mouse click<BR>  pIdentifyDialog.ClearLayers<BR>  <BR>  'Perform an identify on all of the layers the dialog<BR>  'says are searchable<BR>  Set pEnumLayer = pIdentifyDialogProps.Layers<BR>  pEnumLayer.Reset<BR>  Set pLayer = pEnumLayer.Next<BR>  Do While Not pLayer Is Nothing<BR>    pIdentifyDialog.AddLayerIdentifyPoint pLayer, x, y<BR>    Set pLayer = pEnumLayer.Next<BR>  Loop<BR>  <BR>  pIdentifyDialog.Show<BR>  <BR>End Sub<BR></P>
喜欢0 评分0
wangj779
路人甲
路人甲
  • 注册日期2007-06-07
  • 发帖数7
  • QQ
  • 铜币130枚
  • 威望0点
  • 贡献值0点
  • 银元0个
1楼#
发布于:2007-06-23 09:23
我也很想指知道啊!哪位高人给翻译一下吧1<img src="images/post/smile/dvbbs/em02.gif" />
举报 回复(0) 喜欢(0)     评分
游客

返回顶部