阅读:2858回复:5
在arcgis engine中如何实现点击图元查询其属性功能?
在arcgis engine中如何实现点击图元查询其属性功能?
|
|
1楼#
发布于:2004-12-23 09:26
<P>这个很简单:</P><P>iSpatialFilter:将Geometry的属性设为一个点。</P><P>之后用IFeatureLayer或者IFeatureClass的Search方法就可以了</P>
|
|
2楼#
发布于:2004-12-24 08:57
如果是点,要设一个容限的
|
|
|
3楼#
发布于:2004-12-24 09:03
<P>有没有点例子?</P>
|
|
4楼#
发布于:2004-12-27 11:47
<P> 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</P><P> ' Set pMxDoc = Application.Document Set pActiveView = GetMap() 'pMxDoc.FocusMap</P><P> '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</P><P> Do While Not Player Is Nothing pIdentifyDialog.AddLayerIdentifyPoint Player, x, y Set Player = pEnumLayer.Next Loop pIdentifyDialog.Show</P> |
|
5楼#
发布于:2007-01-15 18:56
可以用IIdentifyDialog接口来实现,帮助上有
|
|