默认头像
路人甲
路人甲
  • 注册日期2003-09-16
  • 发帖数19
  • QQ
  • 铜币161枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1566回复:3

求助:engine开发中identify功能的实现

楼主#
更多 发布于:2005-04-14 22:40

engine开发中显示属性,我用以下的方式实现: Private Sub MapControl1_OnMouseDown(ByVal button As Long, ByVal shift As Long, ByVal x As Long, ByVal y As Long, ByVal mapX As Double, ByVal mapY As Double) If opState = "findByPoint" Then Dim pIdentify As IIdentify Set pIdentify = Me.MapControl1.Layer(0) Dim pPoint As IPoint Set pPoint = New Point pPoint.x = mapX pPoint.y = mapY Dim pIDArray As IArray Set pIDArray = pIdentify.Identify(pPoint) Dim pGeoObj As IIdentifyObj Dim pDisplay As IScreenDisplay Set pDisplay = New ScreenDisplay pDisplay.hWnd = Me.MapControl1.hWnd If Not pIDArray Is Nothing Then Set pGeoObj = pIDArray.Element(0) pGeoObj.Flash pDisplay End If End If End Sub (点查属性时opState值是"findByPoint") 请问,Set pIDArray = pIdentify.Identify(pPoint)为什么得不到我想要的feature???

喜欢0 评分0
默认头像
gis
管理员
管理员
  • 注册日期2003-07-16
  • 发帖数15951
  • QQ
  • 铜币25345枚
  • 威望15368点
  • 贡献值0点
  • 银元0个
  • GIS帝国居民
  • 帝国沙发管家
  • GIS帝国明星
  • GIS帝国铁杆
1楼#
发布于:2005-04-15 22:30
如果单用engine的库好象是不能获取arcmap里的对话框滴
GIS麦田守望者,期待与您交流。
举报 回复(0) 喜欢(0)     评分
默认头像
路人甲
路人甲
  • 注册日期2003-09-16
  • 发帖数19
  • QQ
  • 铜币161枚
  • 威望0点
  • 贡献值0点
  • 银元0个
2楼#
发布于:2005-04-16 00:45

哦,,你是如何解决的???

举报 回复(0) 喜欢(0)     评分
默认头像
gis
管理员
管理员
  • 注册日期2003-07-16
  • 发帖数15951
  • QQ
  • 铜币25345枚
  • 威望15368点
  • 贡献值0点
  • 银元0个
  • GIS帝国居民
  • 帝国沙发管家
  • GIS帝国明星
  • GIS帝国铁杆
3楼#
发布于:2005-04-16 08:28
先利用点空间查询,自己编写窗体,显示属性就行
GIS麦田守望者,期待与您交流。
举报 回复(0) 喜欢(0)     评分
默认头像

返回顶部