Dim pFeatureLayer1 As ESRI.ArcGIS.Carto.IFeatureLayer
Dim pCursor As ESRI.ArcGIS.Geodatabase.IFeatureCursor
Dim pFilter As ESRI.ArcGIS.Geodatabase.QueryFilter
Dim pFeature As ESRI.ArcGIS.Geodatabase.IFeature
Dim pEnv As IEnvelope
Dim pPoint As ESRI.ArcGIS.Geometry.IPoint = New ESRI.ArcGIS.Geometry.Point()
这块是图层检索代码省略了
pEnv = Me.AxMapControl1.ActiveView.Extent
pPoint.X = pEnv.XMin
pPoint.Y = pEnv.YMin
pPoint.PutCoords(pPoint.X, pPoint.Y)
Me.AxMapControl1.Map.SelectFeature(pFeatureLayer1, pFeature)
pFeature.Shape.Envelope.CenterAt(pPoint)
Me.AxMapControl1.Extent = pFeature.Shape.Envelope
End If
已经解决了。
版主我加了一个pFeature.Shape.Envelope.CenterAt(pPoint),还是没有反应?
答案:2 悬赏:70 手机版
解决时间 2021-01-30 16:40
- 提问者网友:我没有何以琛的痴心不悔
- 2021-01-30 00:49
最佳答案
- 五星知识达人网友:不如潦草
- 2021-01-30 00:57
解决了就行,忘了刷新了吧
全部回答
- 1楼网友:英雄的欲望
- 2021-01-30 02:26
期待看到有用的回答!
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯