manya2000

Using graphicTracker from Longitude and Latitude values question

Discussion created by manya2000 on Feb 20, 2012
Latest reply on Feb 22, 2012 by jeffmatson
This code from one of the Samples, adds a graphic to a map taking the x and y of where I click:

        Dim point As IPoint = m_hookHelper.ActiveView.ScreenDisplay.DisplayTransformation.ToMapPoint(X, Y)
        Dim id As Integer = m_form.m_graphicTracker.Add(TryCast(point, IGeometry), gtSymbol)
        m_form.m_graphicTracker.SetLabel(id, "ID " & id.ToString())
        m_form.m_GTGeometries.Add(id, TryCast(point, IGeometry))

That is fine for a demo, but what if I like to add points from a csv file from Longitude, Latitude as in:
43.596749,-79.712904
46.134721,-77.012301
56.236749,-89.232302

What will I use instead of ScreenDisplay.DisplayTransformation.ToMapPoint(X, Y)

??
Thanks for your help,

Manya2000

Outcomes