Quantcast
Channel: DotSpatial
Viewing all articles
Browse latest Browse all 3973

New Post: Dueling DotSpatial.Symbology.IntervalMethods

$
0
0
Greetings,
I've been working using different IntervalMethods to change how a dataset is displayed. I've created a comboBox with EqualInterval, Geometrical, NaturalBeaks, Quantile, and StandardDeviation listed. The user selects the method and clicks a button to symbolize.

The application seems to work... somewhat. However, if the user selects EqualInterval, Geometrical, NaturalBeaks, or StandardDeviation the breaks are all exactly the same. The only IntervalMethod that has different breaks is Quantile. Are there EditorSettings that must be set dependent upon what IntervalMethod is applied?

I'm using the following code:
        var classification = getClassification();
        System.Diagnostics.Debug.WriteLine("classification: " + classification);
        myScheme.EditorSettings.IntervalMethod = classification;
        myScheme.EditorSettings.NumBreaks = Convert.ToInt32(npClassCount.Value);
        myScheme.EditorSettings.StartColor = Color.LightBlue;
        myScheme.EditorSettings.EndColor = Color.DarkBlue;
        myScheme.EditorSettings.IntervalRoundingDigits = 5;
        myScheme.EditorSettings.FieldName = "POP2010";
        myScheme.CreateCategories(fLayer.DataSet.DataTable);
        fLayer.Symbology = myScheme;

Viewing all articles
Browse latest Browse all 3973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>