{"action":"closed","issue":{"url":"https://api.github.com/repos/mogikanin/temp/issues/58","repository_url":"https://api.github.com/repos/mogikanin/temp","labels_url":"https://api.github.com/repos/mogikanin/temp/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/mogikanin/temp/issues/58/comments","events_url":"https://api.github.com/repos/mogikanin/temp/issues/58/events","html_url":"https://github.com/mogikanin/temp/issues/58","id":153402851,"number":58,"title":"DotSpatial.Data:  Get the number of cells that are not no-data cells","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/mogikanin/temp/labels/CodePlex","name":"CodePlex","color":"ededed"},{"url":"https://api.github.com/repos/mogikanin/temp/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-06T08:26:47Z","updated_at":"2016-05-06T08:26:47Z","closed_at":"2016-05-06T08:26:47Z","body":"**This issue was imported from [CodePlex](http://dotspatial.codeplex.com/workitem/25)**\r\n\r\n**[AlamoMan](http://www.codeplex.com/site/users/view/AlamoMan)** wrote 2010-07-15 at 19:54\r\nThe method is supposed to get the count of the number of cells that contain data. However, when this method is used after opening a raw raster it returns a value of 0. When the original raster is saved as a new raster and re-opened, no other edits/changes\r\n made the value is 704346. Both rasters are loaded into ram, so this method should work. The RasterCellTests Test Method in the RasterTest class in the DotSpatial_Data unit tests. I'm uploading a raster that can be used to test this error.\r\n\r\n**[mudnug](http://www.codeplex.com/site/users/view/mudnug)** wrote 2011-01-06 at 01:22\r\nI don't see this test anywhere. We did find Tests.Data.DoubleRasterTest.\r\n\r\n\r\n\r\nCreating GetNoDataCellCount()\r\n\r\n**[mudnug](http://www.codeplex.com/site/users/view/mudnug)** wrote 2011-01-06 at 01:47\r\nAdded GetNoDataCellCount to Raster.cs, but this may not be the best home for this code. I cannot tell where it might belong just be looking.\r\n\r\n\r\n\r\nIf you relocated the method, please update the test in Tests.Data.RasterTest"}}