コード例 #1
0
ファイル: Theming.cs プロジェクト: cugkgq/Project
        public SharpMap.Styles.VectorStyle GetRotatedSymol(GeoAPI.Features.IFeature row)
        {
            if (!System.String.IsNullOrEmpty(SymbolColumn))
            {
                try
                {
                    SharpMap.Styles.VectorStyle dataStyle = CloneStyle(DefaultStyle);
                    if (!row.IsNull(SymbolColumn))
                    {
                        dataStyle.Symbol = new System.Drawing.Bitmap(
                            new System.IO.MemoryStream((byte[])row.Attributes[SymbolColumn]));
                    }
                    return(dataStyle);
                }
                catch { }
            }

            return(null);
        }