Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

How can I create a Map Document (including layers, symbology info etc.) for DotSpatial just like we have MXD File in ESRI ARCGIS.

share|improve this question
add comment

1 Answer 1

Adding the MenuBar plugin to your app will provide your user with an option on the File menu to Save Project. The project file is an xml based file that includes the layers, symbology and so on.

If you are creating your own DotSpatial app and wish to provide some other mechanism to save the project, please refer to the MenuBar plugin code for an example:

        try
        {
            //use the AppManager.SerializationManager to save the project
            App.SerializationManager.SaveProject(fileName);
        }
        catch (XmlException)
        {
            ShowSaveAsError(fileName);
        }
        catch (IOException)
        {
            ShowSaveAsError(fileName);
        }
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.