{"action":"created","issue":{"url":"https://api.github.com/repos/DotSpatial/DotSpatial/issues/1175","repository_url":"https://api.github.com/repos/DotSpatial/DotSpatial","labels_url":"https://api.github.com/repos/DotSpatial/DotSpatial/issues/1175/labels{/name}","comments_url":"https://api.github.com/repos/DotSpatial/DotSpatial/issues/1175/comments","events_url":"https://api.github.com/repos/DotSpatial/DotSpatial/issues/1175/events","html_url":"https://github.com/DotSpatial/DotSpatial/issues/1175","id":334253199,"node_id":"MDU6SXNzdWUzMzQyNTMxOTk=","number":1175,"title":"Label ANGLE","user":{"login":"sigster","id":18507437,"node_id":"MDQ6VXNlcjE4NTA3NDM3","avatar_url":"https://avatars2.githubusercontent.com/u/18507437?v=4","gravatar_id":"","url":"https://api.github.com/users/sigster","html_url":"https://github.com/sigster","followers_url":"https://api.github.com/users/sigster/followers","following_url":"https://api.github.com/users/sigster/following{/other_user}","gists_url":"https://api.github.com/users/sigster/gists{/gist_id}","starred_url":"https://api.github.com/users/sigster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigster/subscriptions","organizations_url":"https://api.github.com/users/sigster/orgs","repos_url":"https://api.github.com/users/sigster/repos","events_url":"https://api.github.com/users/sigster/events{/privacy}","received_events_url":"https://api.github.com/users/sigster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-20T21:18:08Z","updated_at":"2018-06-21T22:21:35Z","closed_at":null,"author_association":"NONE","body":"Hi\r\n\r\nI have try to add ANGLE to streetname anyone who can help me with this\r\n\r\nDotSpatial version:  2.0\r\n\r\n\r\n\r\n\r\n```\r\n        Dim StreetLayer As IFeatureLayer = CType(Map1.AddLayer(\"C:\\kort\\temp\\STREETNAME.shp\"), IFeatureLayer)\r\n        Dim SymbStreetname As New PolygonSymbolizer(Color.FromArgb(0, 191, 0))\r\n        SymbStreetname.SetFillColor(Color.Transparent)\r\n        SymbStreetname.OutlineSymbolizer = New LineSymbolizer(Color.Transparent, 1)\r\n        SymbStreetname.ScaleMode = ScaleMode.Simple\r\n        StreetLayer.Symbolizer = SymbStreetname\r\n\r\n        Dim My_labelLayer As New MapLabelLayer()\r\n        StreetLayer.LabelLayer = My_labelLayer\r\n        StreetLayer.ShowLabels = True\r\n\r\n\r\n        My_labelLayer.Symbology.Categories(0).Expression = \"[TEXTSTRING]\"\r\n\r\n\r\n        Dim A As String = \"[ANGLE]\" '\"[\" + fl.DataSet.DataTable.Columns(16).ColumnName + \"]\"\r\n        Dim B As Double\r\n\r\n        B = CDbl(Val(A))\r\n\r\n        '  My_labelLayer.Symbolizer.Angle = 90\r\n\r\n        My_labelLayer.Symbolizer.ScaleMode = ScaleMode.Simple\r\n        My_labelLayer.Symbolizer.Orientation = ContentAlignment.TopCenter\r\n        My_labelLayer.Symbolizer.LabelPlacementMethod = LabelPlacementMethod.Centroid\r\n        My_labelLayer.Symbolizer.PartsLabelingMethod = PartLabelingMethod.LabelLargestPart\r\n        My_labelLayer.Symbolizer.FontSize = 7.0F\r\n\r\n        'Dim Angle As Single\r\n        'Angle = StreetLayer.DataSet.DataTable.Columns(16).ColumnName\r\n\r\n        My_labelLayer.Symbolizer.UseAngle = True\r\n        My_labelLayer.Symbolizer.UseAngle = True\r\n        My_labelLayer.Symbolizer.LabelAngleField = True\r\n        My_labelLayer.Symbolizer.Angle = B\r\n\r\n        '  My_labelLayer.Symbolizer.Angle = \"[ANGLE]\" 'Angle '* Math.PI / 180.0\r\n\r\n        Map1.Refresh()\r\n```"},"comment":{"url":"https://api.github.com/repos/DotSpatial/DotSpatial/issues/comments/399261695","html_url":"https://github.com/DotSpatial/DotSpatial/issues/1175#issuecomment-399261695","issue_url":"https://api.github.com/repos/DotSpatial/DotSpatial/issues/1175","id":399261695,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTI2MTY5NQ==","user":{"login":"sindizzy","id":5298460,"node_id":"MDQ6VXNlcjUyOTg0NjA=","avatar_url":"https://avatars0.githubusercontent.com/u/5298460?v=4","gravatar_id":"","url":"https://api.github.com/users/sindizzy","html_url":"https://github.com/sindizzy","followers_url":"https://api.github.com/users/sindizzy/followers","following_url":"https://api.github.com/users/sindizzy/following{/other_user}","gists_url":"https://api.github.com/users/sindizzy/gists{/gist_id}","starred_url":"https://api.github.com/users/sindizzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindizzy/subscriptions","organizations_url":"https://api.github.com/users/sindizzy/orgs","repos_url":"https://api.github.com/users/sindizzy/repos","events_url":"https://api.github.com/users/sindizzy/events{/privacy}","received_events_url":"https://api.github.com/users/sindizzy/received_events","type":"User","site_admin":false},"created_at":"2018-06-21T22:21:35Z","updated_at":"2018-06-21T22:21:35Z","author_association":"NONE","body":"You have a string variable that has the value \"[ANGLE]\". You cannot convert that string to a the double variable B. The Symbolizer.Angle field is a single number as far as I know. If you hover over the field Angle it says property Angle as Double. meaning it is not an expression."}}
{"actor":{"display_login":"sindizzy"}}