阅读:2863回复:5
在arcgis engine中如何实现点击图元查询其属性功能?
在arcgis engine中如何实现点击图元查询其属性功能?
|
|
1楼#
发布于:2007-01-15 18:56
可以用IIdentifyDialog接口来实现,帮助上有
|
|
2楼#
发布于:2004-12-27 11:47
On Error GoTo eh ' Dim pMxDoc As IMxDocument Dim pActiveView As IActiveView Dim pIdentifyDialog As IIdentifyDialog Dim pIdentifyDialogProps As IIdentifyDialogProps Dim pEnumLayer As IEnumLayer Dim Player As ILayer ' Set pMxDoc = Application.Document Set pActiveView = GetMap() 'pMxDoc.FocusMap 'Create a new IdentifyDialog and associate it 'with the focus map and the map's display Set pIdentifyDialog = New IdentifyDialog Set pIdentifyDialogProps = pIdentifyDialog 'QI Set pIdentifyDialog.Map = GetMap() Set pIdentifyDialog.display = pActiveView.ScreenDisplay 'Clear the dialog on each mouse click pIdentifyDialog.ClearLayers 'Perform an identify on all of the layers the dialog 'says are searchable Set pEnumLayer = pIdentifyDialogProps.Layers pEnumLayer.Reset Set Player = pEnumLayer.Next Do While Not Player Is Nothing pIdentifyDialog.AddLayerIdentifyPoint Player, x, y Set Player = pEnumLayer.Next Loop pIdentifyDialog.Show |
|
3楼#
发布于:2004-12-24 09:03
有没有点例子? |
|
4楼#
发布于:2004-12-24 08:57
如果是点,要设一个容限的
|
|
|
5楼#
发布于:2004-12-23 09:26
这个很简单: iSpatialFilter:将Geometry的属性设为一个点。 之后用IFeatureLayer或者IFeatureClass的Search方法就可以了 |
|