Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all articles
Browse latest Browse all 1374

How to get the x and y coordinate of the selected point feature

$
0
0
I need help on how to get the x and y coordinate of the selected point feature.

I have a point feature and I need to get the x,y of the selected point. Got no luck in this code.

Dim pfcursor As IFeatureCursor
pfcursor = pFLayer.Search(pQF, False)

'get the first feature that matched that query
Dim pfeature As IFeature
pfeature = pfcursor.NextFeature

Dim pgeometry As IGeometry
pgeometry = pfeature.Shape

Dim pPoint As IPoint = pgeometry

Suggestion and ideas are well appreciated. Thanks :)

Viewing all articles
Browse latest Browse all 1374

Trending Articles