Hi all,
I am doing a search by attributes on a feature class and when I retrieve the whoe, record I would like to get the information in the attributes tables under Shape as a Point shape to obtain the X and Y coordinates.
How can I do that?
I am using VB.net
thanks
//let's assume you've already used some kind of searching in the feature class and you get the featurecursor
//shape of the feature class is Point, but you can do it with polyline and polygon too
IFeature feature = featCursor.NextFeature();
while (feature != null)
{
IPoint point = (IPoint)feature.Shape;
double X = point.X;
double Y = point.Y;
double Z = point.Z;
//more logic
...
feature = featCursor.NextFeature();
}