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 );
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.