{"action":"closed","issue":{"url":"https://api.github.com/repos/DotSpatial/DotSpatial/issues/175","repository_url":"https://api.github.com/repos/DotSpatial/DotSpatial","labels_url":"https://api.github.com/repos/DotSpatial/DotSpatial/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/DotSpatial/DotSpatial/issues/175/comments","events_url":"https://api.github.com/repos/DotSpatial/DotSpatial/issues/175/events","html_url":"https://github.com/DotSpatial/DotSpatial/issues/175","id":153407271,"number":175,"title":"Opening Esri \\sta.adf raster file","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"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-06T08:50:29Z","updated_at":"2016-05-28T12:29:11Z","closed_at":"2016-05-28T12:29:10Z","body":"**This issue was imported from [CodePlex](http://dotspatial.codeplex.com/workitem/181)**\r\n\r\n**[jsp5568](http://www.codeplex.com/site/users/view/jsp5568)** wrote 2010-12-02 at 17:55\r\nIf you refer to my discussion post \"Converting Esri grid/ascii grid to .bgd\" I am having issues opening an esri raster file. I have tried opening it using the raster.open(name\\sta.adf) method and receive a file not supported exception and have\r\n tested open it using the Demomap.exe (Downloaded Nov 28 2010) and I receive a unhandled exception error (see below) attached is an example of the type of files I am trying to open\r\n\r\n\r\n\r\n\r\nThanks \r\n\r\nJ. \r\n\r\n\r\n\r\nSee the end of this message for details on invoking \r\n\r\njust-in-time (JIT) debugging instead of this dialog box. \r\n\r\n\r\n\r\n************** Exception Text ************** \r\n\r\nSystem.ApplicationException: The specified file type is not supported. \r\n\r\nat DotSpatial.Data.DataManager.OpenFile(String fileName, Boolean inRam, IProgressHandler progressHandler) in C:\\Dev\\DotSpatial\\DotSpatial.Data\\DotSpatial.Data\\DataManager.cs:line 427\r\n\r\n\r\nat DotSpatial.Data.Forms.DataManagerExt.OpenFile(IDataManager self) in C:\\Dev\\DotSpatial\\DotSpatial.Data\\DotSpatial.Data.Forms\\DataManagerExt.cs:line 106\r\n\r\n\r\nat DotSpatial.Controls.Map.AddLayer() in C:\\Dev\\DotSpatial\\DotSpatial.Controls\\DotSpatial.Controls\\Map.cs:line 623\r\n\r\n\r\nat DotSpatial.Controls.Map.DotSpatial.Controls.IBasicMap.AddLayer() in C:\\Dev\\DotSpatial\\DotSpatial.Controls\\DotSpatial.Controls\\Map.cs:line 613\r\n\r\n\r\nat DotSpatial.Controls.SpatialToolStrip.cmdAddData_Click(Object sender, EventArgs e) in C:\\Dev\\DotSpatial\\DotSpatial.Controls\\DotSpatial.Controls\\SpatialToolStrip.cs:line 481\r\n\r\n\r\nat System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e) \r\n\r\nat System.Windows.Forms.ToolStripButton.OnClick(EventArgs e) \r\n\r\nat System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e) \r\n\r\nat System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e) \r\n\r\nat System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)\r\n\r\n\r\nat System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)\r\n\r\n\r\nat System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea) \r\n\r\nat System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)\r\n\r\n\r\nat System.Windows.Forms.Control.WndProc(Message& m) \r\n\r\nat System.Windows.Forms.ScrollableControl.WndProc(Message& m) \r\n\r\nat System.Windows.Forms.ToolStrip.WndProc(Message& m) \r\n\r\nat System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) \r\n\r\nat System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) \r\n\r\nat System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n\r\n\r\n\r\n\r\n\r\n\r\n************** Loaded Assemblies ************** \r\n\r\nmscorlib\r\n\r\n<pre><code>Assembly Version: 4.0.0.0\nWin32 Version: 4.0.30319.1 (RTMRel.030319-0100)</code></pre>\r\n<h2>CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll</h2>\r\nDemoMap\r\n\r\n<pre><code>Assembly Version: 1.0.0.40019\nWin32 Version: 1.0.0.0</code></pre>\r\n<h2>CodeBase: file:///D:/downloads/mwReleaseNov282010/x86/DemoMap.exe</h2>\r\nSystem.Windows.Forms\r\n\r\n<pre><code>Assembly Version: 4.0.0.0\nWin32 Version: 4.0.30319.1 built by: RTMRel</code></pre>\r\n<h2>CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll</h2>\r\nSystem.Drawing\r\n\r\n<pre><code>Assembly Version: 4.0.0.0\nWin32 Version: 4.0.30319.1 built by: RTMRel</code></pre>\r\n<h2>CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll</h2>\r\nSystem\r\n\r\n<pre><code>Assembly Version: 4.0.0.0\nWin32 Version: 4.0.30319.1 built by: RTMRel</code></pre>\r\n<h2>CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll</h2>\r\nDotSpatial.Controls\r\n\r\n<pre><code>Assembly Version: 1.0.0.40017\nWin32 Version: 1.0.0.0</code></pre>\r\n<h2>CodeBase: file:///D:/downloads/mwReleaseNov282010/x86/DotSpatial.Controls.DLL</h2>\r\nDotSpatial.Symbology\r\n\r\n<pre><code>Assembly Version: 1.0.0.40011\nWin32 Version: 1.0.0.0</code></pre>\r\n<h2>CodeBase: file:///D:/downloads/mwReleaseNov282010/x86/DotSpatial.Symbology.DLL</h2>\r\nDotSpatial.Topology\r\n\r\n<pre><code>Assembly Version: 1.0.0.40007\nWin32 Version: 1.0.0.0</code></pre>\r\n<h2>CodeBase: file:///D:/downloads/mwReleaseNov282010/x86/DotSpatial.Topology.DLL</h2>\r\nDotSpatial.Data\r\n\r\n<pre><code>Assembly Version: 1.0.0.40009\nWin32 Version: 1.0.0.0</code></pre>\r\n<h2>CodeBase: file:///D:/downloads/mwReleaseNov282010/x86/DotSpatial.Data.DLL</h2>\r\nDotSpatial.Data.Forms\r\n\r\n<pre><code>Assembly Version: 1.0.0.40011\nWin32 Version: 1.0.0.40011</code></pre>\r\n<h2>CodeBase: file:///D:/downloads/mwReleaseNov282010/x86/DotSpatial.Data.Forms.DLL</h2>\r\nDotSpatial.Symbology.Forms\r\n\r\n<pre><code>Assembly Version: 1.0.0.40014\nWin32 Version: 1.0.0.0</code></pre>\r\n<h2>CodeBase: file:///D:/downloads/mwReleaseNov282010/x86/DotSpatial.Symbology.Forms.DLL</h2>\r\nSystem.Core\r\n\r\n<pre><code>Assembly Version: 4.0.0.0\nWin32 Version: 4.0.30319.1 built by: RTMRel</code></pre>\r\n<h2>CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll</h2>\r\nDotSpatial.Projections\r\n\r\n<pre><code>Assembly Version: 1.0.0.40006\nWin32 Version: 1.0.0.0</code></pre>\r\n<h2>CodeBase: file:///D:/downloads/mwReleaseNov282010/x86/DotSpatial.Projections.DLL</h2>\r\nDotSpatial.Serialization\r\n\r\n<pre><code>Assembly Version: 1.0.0.40006\nWin32 Version: 1.0.0.0</code></pre>\r\n<h2>CodeBase: file:///D:/downloads/mwReleaseNov282010/x86/DotSpatial.Serialization.DLL</h2>\r\nSystem.Xml\r\n\r\n<pre><code>Assembly Version: 4.0.0.0\nWin32 Version: 4.0.30319.1 built by: RTMRel</code></pre>\r\n<h2>CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll</h2>\r\nDotSpatial.Modeling.Forms\r\n\r\n<pre><code>Assembly Version: 1.0.0.40016\nWin32 Version: 1.0.0.0</code></pre>\r\n<h2>CodeBase: file:///D:/downloads/mwReleaseNov282010/x86/DotSpatial.Modeling.Forms.DLL</h2>\r\n************** JIT Debugging ************** \r\n\r\nTo enable just-in-time (JIT) debugging, the .config file for this \r\n\r\napplication or computer (machine.config) must have the \r\n\r\njitDebugging value set in the system.windows.forms section. \r\n\r\nThe application must also be compiled with debugging \r\n\r\nenabled. \r\n\r\n\r\n\r\nFor example: \r\n\r\n\r\n\r\n<configuration>\r\n\r\n<pre><code><system.windows.forms jitDebugging=\"true\" /></code></pre>\r\n</configuration> \r\n\r\n\r\n\r\nWhen JIT debugging is enabled, any unhandled exception \r\n\r\nwill be sent to the JIT debugger registered on the computer \r\n\r\nrather than be handled by this dialog box.\r\n\r\n**[Shade1974](http://www.codeplex.com/site/users/view/Shade1974)** wrote 2010-12-16 at 05:32\r\nI have investigated this, and the good news is I was able to fix a bug related to short raster ESRI grids, and can open the sample data esri grid from the MapWindow 4 sample data repository. The bad news is that all variants of GDAL that I have turned\r\n up their nose at your particular type of ESRI grid. I have no explanation for it other than you must be using a grid version that is incompatible with GDAL. This might happen if you were using an unconventional data type or possibly something so new fangled\r\n from ArcGIS that GDAL hasn't caught up with it? It might even be the C# bindings that are to blame, I'm not sure. The old version of Basins that I had lying around on my machine just locked up when I tried to open it, so that wasn't a lot of help. Also, I\r\n don't have an ESRI license to use from home, so I can't even ensure this is valid, but presuming it is, the next step might be to try to hunt down the GDAL people and see if this type of grid needs special handling for some reason, or is simply not supported\r\n at all. It's a mystery.\r\n\r\n\r\n\r\nTed\r\n\r\n**[aparks](http://www.codeplex.com/site/users/view/aparks)** wrote 2011-02-28 at 16:49\r\nI have the same problem with adf files from NHDPlus which both Mapwindow 4 and openEV from FWTools could read. I have not been able to figure out a solution to this."}}
{"actor":{"display_login":"mogikanin"}}