Introduction to Programming with DotSpatial
Working with DotSpatial controls
Tutorial (1)
Purpose of this tutorial: Become familiar with the DotSpatial map control and its following
functionalities: ZoomIn, ZoomOut, Zoom to Extent, Select, Measure, Pan, Info, and load data.
This tutorial has 5 important steps.
Step 1: Download the DotSpatial class library
Step 2: Add the DotSpatial reference and change the compile option.
Step 3: Add the DotSpatial Controls into the Visual Studio Toolbox.
Step 4: Design the GUI. (GUI - Graphical User Interface)
Step 5: Write the code for implementing the map operations.
Step 1 : Download the DotSpatial class library
1. Download the DotSpatial class library (x86 Framework 4.0.zip) from the following URL.
http://dotspatial.codeplex.com
Step 2: Add the DotSpatial reference and change the compile option.
2.1) Add the DotSpatial reference
1. Right click over the project on the solution explorer and select the add reference from the
context menu.
2. Add the following 4 references from the downloaded folder. fig.5
DotSpatial.Controls.dll, DotSpatial.Data.dll, DotSpatial.Data.Forms.dll, DotSpatial.Symbology.dll
2
nd
Internaonal MapWindow GIS and DotSpaal Conference 2011 Page 1
- 1
- 2
前往页