Problem with text rotation in SharpMap 1.0

Jan 4, 2014 at 12:47 AM
I am trying display map with text rotation, but seem it display wrong when rotation values not zero.
Here my code:
VectorLayer vLayer=new VectorLayer("vLayer");
            LabelLayer lLayer=new LabelLayer("lLayer");
            string wkt="POLYGON ((572654.16800000006 1115392.176, 572637.045 1115400.1030000001, 572636.52100000007 1115411.663, 572668.393 1115397.928, 572688.089 1115391.342, 572700.322 1115384.406, 572703.193 1115382.281, 572699.368 1115370.496, 572654.16800000006 1115392.176))";            
            NetTopologySuite.IO.WKTReader reader=new NetTopologySuite.IO.WKTReader();
            Polygon p=(Polygon)reader.Read(wkt);            
            System.Collections.ObjectModel.Collection<GeoAPI.Geometries.IGeometry> VectorLayerDatasource=
            new System.Collections.ObjectModel.Collection<GeoAPI.Geometries.IGeometry>();
            VectorLayerDatasource.Add(p);
           
           vLayer.DataSource = new SharpMap.Data.Providers.GeometryFeatureProvider(p);
           VectorStyle vStyle=new VectorStyle();
            vStyle.Fill =Brushes.Transparent;
            vStyle.EnableOutline=true;           
            vLayer.Style = vStyle;
            mapBox1.Map.Layers.Add(vLayer);           
            FeatureDataTable fdt=new FeatureDataTable();
            fdt.Columns.Add(new DataColumn("id",typeof(uint)));
            fdt.Columns.Add(new DataColumn("Label",typeof(string)));
            fdt.Columns.Add(new DataColumn("Rotation",typeof(double)));
            fdt.AcceptChanges();
            
            int index=1;
            double angle=38;
            //DataTable dtVertice=CreateTable();
            foreach(Coordinate c in p.ExteriorRing.Coordinates)
            {
                angle+=11;              
                NetTopologySuite.Geometries.Point point =new NetTopologySuite.Geometries.Point(c.X,c.Y);
                FeatureDataRow fdr=fdt.NewRow();
                fdr.ItemArray = new object[]{index,"text rotation",angle};
                
                fdr.Geometry = (IGeometry)point;
                fdt.Rows.Add(fdr);
                FeatureDataRow fdr1=fdt.NewRow();
                fdr1.ItemArray = new object[]{index,"text rotation",0};
                
                fdr1.Geometry = (IGeometry)point;
                fdt.Rows.Add(fdr1);
               index++;
                
           }
            lLayer.LabelColumn = "Label";
            lLayer.RotationColumn="Rotation";
            
            LabelStyle lStyle=new LabelStyle();
            Font font=new Font("Arial",15,FontStyle.Regular,GraphicsUnit.Point);
            lStyle.Font=font;
            lStyle.HorizontalAlignment = SharpMap.Styles.LabelStyle.HorizontalAlignmentEnum.Center;
            lStyle.VerticalAlignment = SharpMap.Styles.LabelStyle.VerticalAlignmentEnum.Top;
            lLayer.Style= lStyle;
            lLayer.DataSource=  new SharpMap.Data.Providers.GeometryFeatureProvider(fdt);
            mapBox1.Map.Layers.Add(lLayer);
            mapBox1.Map.ZoomToExtents();
            mapBox1.Refresh(); 
I want to print label with label point at polygon vertices, but when rotation label point has been changed.
Thanks,
Apr 9, 2014 at 10:12 AM
Edited Dec 7, 2014 at 10:51 AM
...