{"action":"closed","issue":{"url":"https://api.github.com/repos/DotSpatial/DotSpatial/issues/253","repository_url":"https://api.github.com/repos/DotSpatial/DotSpatial","labels_url":"https://api.github.com/repos/DotSpatial/DotSpatial/issues/253/labels{/name}","comments_url":"https://api.github.com/repos/DotSpatial/DotSpatial/issues/253/comments","events_url":"https://api.github.com/repos/DotSpatial/DotSpatial/issues/253/events","html_url":"https://github.com/DotSpatial/DotSpatial/issues/253","id":153407971,"number":253,"title":"SelectByAttributes - Unhandled Exception","user":{"login":"mogikanin","id":840681,"avatar_url":"https://avatars.githubusercontent.com/u/840681?v=3","gravatar_id":"","url":"https://api.github.com/users/mogikanin","html_url":"https://github.com/mogikanin","followers_url":"https://api.github.com/users/mogikanin/followers","following_url":"https://api.github.com/users/mogikanin/following{/other_user}","gists_url":"https://api.github.com/users/mogikanin/gists{/gist_id}","starred_url":"https://api.github.com/users/mogikanin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mogikanin/subscriptions","organizations_url":"https://api.github.com/users/mogikanin/orgs","repos_url":"https://api.github.com/users/mogikanin/repos","events_url":"https://api.github.com/users/mogikanin/events{/privacy}","received_events_url":"https://api.github.com/users/mogikanin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DotSpatial/DotSpatial/labels/bug","name":"bug","color":"ee0701"},{"url":"https://api.github.com/repos/DotSpatial/DotSpatial/labels/CodePlex","name":"CodePlex","color":"ededed"},{"url":"https://api.github.com/repos/DotSpatial/DotSpatial/labels/DS.Data","name":"DS.Data","color":"fef2c0"}],"state":"closed","locked":false,"assignee":{"login":"mogikanin","id":840681,"avatar_url":"https://avatars.githubusercontent.com/u/840681?v=3","gravatar_id":"","url":"https://api.github.com/users/mogikanin","html_url":"https://github.com/mogikanin","followers_url":"https://api.github.com/users/mogikanin/followers","following_url":"https://api.github.com/users/mogikanin/following{/other_user}","gists_url":"https://api.github.com/users/mogikanin/gists{/gist_id}","starred_url":"https://api.github.com/users/mogikanin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mogikanin/subscriptions","organizations_url":"https://api.github.com/users/mogikanin/orgs","repos_url":"https://api.github.com/users/mogikanin/repos","events_url":"https://api.github.com/users/mogikanin/events{/privacy}","received_events_url":"https://api.github.com/users/mogikanin/received_events","type":"User","site_admin":false},"assignees":[{"login":"mogikanin","id":840681,"avatar_url":"https://avatars.githubusercontent.com/u/840681?v=3","gravatar_id":"","url":"https://api.github.com/users/mogikanin","html_url":"https://github.com/mogikanin","followers_url":"https://api.github.com/users/mogikanin/followers","following_url":"https://api.github.com/users/mogikanin/following{/other_user}","gists_url":"https://api.github.com/users/mogikanin/gists{/gist_id}","starred_url":"https://api.github.com/users/mogikanin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mogikanin/subscriptions","organizations_url":"https://api.github.com/users/mogikanin/orgs","repos_url":"https://api.github.com/users/mogikanin/repos","events_url":"https://api.github.com/users/mogikanin/events{/privacy}","received_events_url":"https://api.github.com/users/mogikanin/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/DotSpatial/DotSpatial/milestones/1","html_url":"https://github.com/DotSpatial/DotSpatial/milestones/2.0","labels_url":"https://api.github.com/repos/DotSpatial/DotSpatial/milestones/1/labels","id":1751198,"number":1,"title":"2.0","description":"","creator":{"login":"mogikanin","id":840681,"avatar_url":"https://avatars.githubusercontent.com/u/840681?v=3","gravatar_id":"","url":"https://api.github.com/users/mogikanin","html_url":"https://github.com/mogikanin","followers_url":"https://api.github.com/users/mogikanin/followers","following_url":"https://api.github.com/users/mogikanin/following{/other_user}","gists_url":"https://api.github.com/users/mogikanin/gists{/gist_id}","starred_url":"https://api.github.com/users/mogikanin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mogikanin/subscriptions","organizations_url":"https://api.github.com/users/mogikanin/orgs","repos_url":"https://api.github.com/users/mogikanin/repos","events_url":"https://api.github.com/users/mogikanin/events{/privacy}","received_events_url":"https://api.github.com/users/mogikanin/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":52,"state":"open","created_at":"2016-05-06T09:43:31Z","updated_at":"2016-10-17T09:05:41Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-05-06T08:54:01Z","updated_at":"2016-10-17T09:05:41Z","closed_at":"2016-10-17T09:05:41Z","body":"**This issue was imported from [CodePlex](http://dotspatial.codeplex.com/workitem/260)**\r\n\r\n**[jirikadlec2](http://www.codeplex.com/site/users/view/jirikadlec2)** wrote 2011-03-03 at 01:46\r\nCreate a new FeatureSet (FeatureType.Point) and add it as a layer to the map.\r\n\r\n\r\nIn DemoMap main menu, go to Selection - Select By Attribute \r\n\r\nAn unhandled exception is thrown in SQLQueryControl.cs : \r\n\r\nUnable to cast object of type 'System.Data.DataColumn' to type 'DotSpatial.Data.Field'.\r\n\r\n\r\nThis exception occurs for all types of shapefiles.\r\n\r\n**[jirikadlec2](http://www.codeplex.com/site/users/view/jirikadlec2)** wrote 2011-03-05 at 07:54\r\nThis issue only occurs when the FeatureSet is in-memory or when the Shapefiles are opened with OgrVectorProvider.\r\n\r\n**[olivier57](http://www.codeplex.com/site/users/view/olivier57)** wrote 2011-03-05 at 11:44\r\nI think that this is not the only problem with SelectByAttribute.\r\n\r\n\r\n\r\n<a href=\"http://dotspatial.codeplex.com/discussions/247502\" rel=\"nofollow\">http://dotspatial.codeplex.com/discussions/247502</a>"}}
{"actor":{"display_login":"mogikanin"}}