Project (dspx) serialization and GDAL Imagery

Jan 20, 2014 at 7:44 PM
It appears that when I add a GDAL image to a DotSpatial Map and save the dspx file the serialization works, however if I go back and open that dspx file up again it always fails and says "Failed to read a portion of the specified map file: path_to_projectfile.dspx"

Do I have to run sort of custom serialization to save the imagery to the dspx file for later usage?

thanks
-j
Developer
Jan 21, 2014 at 3:42 AM
Could you attach your GDAL image file? And describe full steps how to reproduce this? It seems it is a bug...
Jan 21, 2014 at 5:58 PM
This seems to happen even when using the DemoMap.exe.

1.) Start up DemoMap.exe
2.) Add a gdal imagery layer to the application
3.) Save the project file
4.) Close DemoMap.exe
5.) Reopen DemoMap.exe
6.) Open the saved project file
7.) -- Error Here --

Link to a relatively small sid file I was using for this test:
https://dl.dropboxusercontent.com/u/16831965/gdal_sid.zip
Developer
Jan 23, 2014 at 10:27 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Developer
Jan 23, 2014 at 10:28 AM
Thank you for detailed description. Yes, it is a bug.
https://dotspatial.codeplex.com/workitem/25121
Marked as answer by jany_ on 9/9/2014 at 1:41 AM