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.netthanks
//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(); }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.