Smoothing out a contour map...


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 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

Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
Hi Sean,
Unfortunately there is no build in way to create a smooth surface series.


Best Regards,
Nevron Support Team


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