Patrick,
Thanks for your post and response.
I think there are 2 solutions for you to fix this problem currently.
1) Change the setting in the “Regional and Language Options” which was opened in your Control Panel. Following is the screenshot for this. Try to change the (,) in french enviroment to (.) used in standard english enviroment.
2) Try to create your own class break style and override the DrawCore API. Folloiwng is the implementation.
Create your own ClassBreakStyle as following:public class MyClassBreakStyle : ClassBreakStyle
{
public MyClassBreakStyle()
: this(string.Empty, BreakValueInclusion.IncludeValue)
{
}
public MyClassBreakStyle(string columnName)
: this(columnName, BreakValueInclusion.IncludeValue)
{
}
public MyClassBreakStyle(string columnName, BreakValueInclusion breakValueInclusion)
: this(columnName, breakValueInclusion, new Collection<ClassBreak>())
{
}
public MyClassBreakStyle(string columnName, BreakValueInclusion breakValueInclusion, Collection<ClassBreak> classBreaks)
: base(columnName,breakValueInclusion,classBreaks)
{
}
protected override void DrawCore(System.Collections.Generic.IEnumerable<Feature> features, GeoCanvas canvas, System.Collections.ObjectModel.Collection<SimpleCandidate> labelsInThisLayer, System.Collections.ObjectModel.Collection<SimpleCandidate> labelsInAllLayers)
{
Collection<Feature> updatedFeatures = new Collection<Feature>();
foreach (Feature feature in features)
{
double fieldValue = double.Parse(feature.ColumnValues[ColumnName].Trim());
feature.ColumnValues[ColumnName] = fieldValue.ToString(CultureInfo.InvariantCulture);
updatedFeatures.Add(feature);
}
base.DrawCore(updatedFeatures, canvas, labelsInThisLayer, labelsInAllLayers);
}
}
Use it in this way:MyClassBreakStyle classBreakStyle = new MyClassBreakStyle("TestColumn");
classBreakStyle.ClassBreaks.Add(new ClassBreak(double.MinValue, AreaStyles.Grass1));
classBreakStyle.ClassBreaks.Add(new ClassBreak(5, AreaStyles.CreateSimpleAreaStyle(GeoColor.SimpleColors.Red)));
classBreakStyle.ClassBreaks.Add(new ClassBreak(10, AreaStyles.Evergreen1));
classBreakStyle.ClassBreaks.Add(new ClassBreak(15, AreaStyles.Crop1));
classBreakStyle.ClassBreaks.Add(new ClassBreak(20, AreaStyles.Forest1));
Any more questions just feel free to let me know.
Thanks.
Yale