There's shp with a lot of points. GPS puts the point and I need to open the attributes of the closest point in edit mode. how to implement it?thanksChingiz
Dim objRS, Layer, Bookmark, X, Y, MaxDistance Set Layer = Map.Layers("LayerName to search for") MaxDistance = "1000" ' Distance is in map units ' Select the nearest point X = GPS.X Y = GPS.Y Set objRS = Layer.Records Bookmark = objRS.FindNearestXY(X, Y, MaxDistance) Call Map.Select(Layer, Bookmark) ' Show the attributes of the selected point If Bookmark <> 0 Then If Layer.CanEdit Then Layer.Editable = True Call Application.ExecuteCommand("featureproperties") End If Else Call MsgBox("Nothing Found") End If
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.