Hi ! I recover a point in pGeometry (type : Igeometry) , and I would like to draw it in the screen, but I have some troubles with the following code : Dim pGraphicsContainer As IGraphicsContainer pGraphicsContainer = Form1.AxMapControl1.Map.BasicGraphicsLayer Dim ppoint As IPoint ppoint = New Point ppoint = pGeometry !!! pGraphicsContainer.AddElement(pElement, 0) Form1.AxMapControl1.Refresh()The cast is impossible between ppoint and pgeometry !!!
// in C# IPoint point = new PointClass(); point.PutCoords( YourX, YourY );
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.