Plotting Latitude, Longitude, and Elevation


Author
Message
Sean Dorsett
Sean Dorsett
Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)
Group: Forum Members
Posts: 9, Visits: 55
I am having some confusion with plotting latitude, longitude, and elevation via the NMeshSurfaceSeries. I see that we have to provide indexX, and indexZ values. I am not entirely clear on why. From what I gather, the values are for an array of sorts? The data I am using is  a comma delimited file containing latitude, longitude, and elevation. How would the data be translated in the method provided below? Thanks in advance for your help.

Latitude, Longitude, Depth
3357.424,-8648.6006,1
3357.4242,-8648.6004,1
3357.4245,-8648.6001,1.1
3357.4242,-8648.6004,1.2
3357.4248,-8648.6,1.3
3357.4248,-8648.6,0.6
3357.4254,-8648.5997,0.6
3357.4254,-8648.5997,0.6
3357.4254,-8648.5997,0.6
3357.4254,-8648.5997,0.6
3357.4254,-8648.5997,0.6
3357.4265,-8648.5976,0.6
3357.4266,-8648.5971,0.7
3357.4268,-8648.5965,0.7
3357.4268,-8648.5965,0.7
3357.4268,-8648.5965,0.7
3357.427,-8648.5955,0.7
3357.427,-8648.5955,0.7
3357.4273,-8648.5943,0.8
3357.4273,-8648.5943,0.8


        private void FillData(NMeshSurfaceSeries surface)
        {
            //double x, y, z;
            //int nCountX = surface.Data.GridSizeX;
            //int nCountZ = surface.Data.GridSizeZ;

            //for (int j = 0; j < nCountZ; j++)
            //{
            //    for (int i = 0; i < nCountX; i++)
            //    {
            //        x = 2 + i + Math.Sin(j / 4.0) * 2;
            //        z = 1 + j + Math.Cos(i / 4.0);

            //        y = Math.Sin(i / 3.0) * Math.Sin(j / 3.0);

            //        if (y < 0)
            //        {
            //            y = Math.Abs(y / 2.0);
            //        }

            //        System.Diagnostics.Debug.WriteLine("{0},{1},{2},{3}", j, i, y, x, z);
            //        surface.Data.SetValue(j, i, y, x, z);
            //    }
            //}

            surface.Data.SetValue(j, i, y, x, z);

        }

Reply
Sean Dorsett
Sean Dorsett
Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)
Group: Forum Members
Posts: 9, Visits: 55
Thanks for the sample application. I was hoping for some sort of example that used the data I provided.

Your answer for issue #2 is not going to fly for me. The error clearly states that there is a problem in the Nevron.Presentation.dll. Am I missing something here? I cannot have my client purchase your software if I can expect a stack overflow exception when plotting data. The file I provided has no more than 2400 data points. I will need a more concrete answer here.

System.StackOverflowException was unhandled
Message: An unhandled exception of type 'System.StackOverflowException' occurred in Nevron.Presentation.dll


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search