Profile Picture

Smoothing out a contour map...

Posted By Sean Dorsett 8 Years Ago
Author
Message
Sean Dorsett
Posted 8 Years Ago
View Quick Profile
Forum Newbie

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
Last Active: 6 Years Ago
Posts: 9, Visits: 55
I am currently using triangulation to render a contour map and trying to determine if there is a property that I can set or a technique that I can use to smooth out the rough edges of my map. I have a data file with 800 data point over a small area and the fillowing map is rendered. 

Here is the logic that I am currently using...

  public void PlotChart()
   {
    var chart = nChartControl1.Charts[0];
    chart.Series.Clear();

    var triangulatedSurface = new NTriangulatedSurfaceSeries
    {
      Name = "Surface Map",
      Legend = {Mode = SeriesLegendMode.SeriesLogic},
      FillMode = SurfaceFillMode.ZoneTexture,
      ShadingMode = ShadingMode.Smooth,
      FrameMode = SurfaceFrameMode.Contour,
      FrameColorMode = SurfaceFrameColorMode.Zone,
      DrawFlat = false,
      PositionValue = 0.5,
      SyncPaletteWithAxisScale = false,
      PaletteSteps = 8,
      UsePreciseGeometry = true,
      ValueFormatter = {FormatSpecifier = "0.00"},
      FillStyle = new NColorFillStyle(Color.YellowGreen)
    };

    chart.Series.Add(triangulatedSurface);

    var modGeospatialPoints = _geospatialPoints.ToList();

    SetMapProperties();

    // Remove unwanted depth.
    var maxDepth = Convert.ToDouble(MaxDepth.SelectedIndex);
    modGeospatialPoints.RemoveAll(item => item.Y > maxDepth);

    foreach (var point in modGeospatialPoints)
    {
      triangulatedSurface.XValues.Add(point.X);
      triangulatedSurface.ZValues.Add(point.Z);
      triangulatedSurface.Values.Add(point.Y);
      Debug.WriteLine("{0}, {1}, {2}", point.X, point.Z, point.Y);
    }

    chart.Refresh();
   }https://www.nevron.com/forum/uploads/images/6670bedf-9371-4294-9e5c-566a.png





Similar Topics


Reading This Topic