Basic DotSpatial Desktop Mapping

How to Create an Extension

The following tutorial are useful for DotSpatial programmers and these are developed by Tevaganthan andDaniel Ames.

Description Tutorial Document Example Data
Working with DotSpatial Controls DotSpatial_Tutorial_1.docx
 DotSpatialTutorial ~ 1.7z
Working with DotSpatial Symbology and Attribute table DotSpatial_Tutorial_2.docx
 
Raster data operations in DotSpatial DotSpatial_Tutorial_3.docx 
  DotSpatialTutorial ~ 3.7z
Shape file, Attribute table operations and Printing map in DotSpatial DotSpatial_Tutorial_4.docx

Projection Explorer in DotSpatial DotSpatial_Tutorial_5.docx  
Raster Vector Data Analysis DotSpatial_Tutorial_6.docx  
label operations DotSpatial_Tutorial_7.docx
Create a custom plug-in in DotSpatial DotSpatial_Tutorial_8.docx  
Accessing GDAL data provider in DotSpatial DotSpatial Tutorial 9.docx  
Testing Data ~ US sates shape file states.zip

 

Potential Future Tutorials

1. How to create a custom Plugin in the last version of DotSpatial.
2. How to manage gis layers by geoprocessing.
3. How to implement a custom vector provider.
4. How to implement a custom raster provider.
5. How to serialize map or layer information.
6. How to use GPS Data with the GPS DotSpatial classes.
7. How to manage custom vector symbology (classified, unique values, charts, etc.)
8. How to load ECW and MrSID images.
9. How to clip polygons and lines with polygons and lines. 



Note. Put here your request to make one big tutorial page to allow another users learn how to collaborate with DotSpatial.NET project.


Last edited Jan 27, 2012 at 7:51 PM by mudnug, version 49

Comments

mudnug Sep 10, 2012 at 4:50 PM 
Only coordinators (https://dotspatial.codeplex.com/team/view) can delete comments. I'm glad your issue is solved.

gis4sd Sep 10, 2012 at 10:05 AM 
Thank Mudnug very much. Your answer is so fit with my point.
I will post my question on forum (you mean Discussion page?) as you recommend.
Sorry because I posted my question here, Please forgive me because Iam just a new user.
One again, thank you so much

PS. After you read the message, please delete it to clean the Webpage. Thank you!!!
======
GIS for Sustainable Development

mudnug Sep 8, 2012 at 9:10 PM 
Please consider posting questions in the forum. I would recommend checking the source of DotSpatial.Plugins.MenuBar to find the answer to your question. You'll find our example code in the OpenProject_Click event handler of MenuBarPlugin.cs.

gis4sd Sep 8, 2012 at 4:07 PM 
Some one please help me to load a map project programatically? It is easy to load a layer but difficult to load a map project. I don't want to load a toolstrip ribbon to my program because I don't want end user have to load map by browsing the project.
Please help me, I tried to search but can not find any help full things.
Sorry because I am just a new one and I will send many stupid question to you.
Thank you very much!

paulwhit May 3, 2012 at 1:39 PM 
phew, there it is. It was referred in Tevaganthan and geofran80's comments from Apr 2011

mudnug May 2, 2012 at 5:46 PM 
#4 is Shape file, Attribute table operations and Printing map in DotSpatial. But where did you find a reference to #4?

paulwhit May 2, 2012 at 4:35 PM 
These aren't numbered...where the heck is tutorial #4?

mudnug Jan 4, 2012 at 8:43 PM 
@mhosan There are plans to localize the framework to requested languages. There isn't a Spanish version of DotSpatial at this point, and there are no plans to translate the tutorials to Spanish at this time. Perhaps translate.google.com can help you some.

dragon07mt Dec 31, 2011 at 12:15 AM 
thank you very much

dragon07mt Dec 31, 2011 at 12:13 AM 
I saw the "DotSpatial_Release.1.0.845 RC2.zip" is the map using the api of google, yahoo, ESRI ... to map it. who can share for me?
email: dragon07mt@gmailcom

mhosan Jun 11, 2011 at 5:16 PM 
Is there exists any traduction to spanish??

Thank
Marcelo Hosan - Argentina
www.mhcad.com.ar

agelospanagiotaki Jun 2, 2011 at 11:03 PM 
Please add a tutorial on coloring rasters !

geofran80 May 24, 2011 at 9:29 AM 
I have problem to download the Tutorial 9. Is available this file?

Thanks in advanced.
Francisco J.

rstephenson Apr 8, 2011 at 7:38 PM 
DotSpatial tutorials now available for C# as well as VB. See inside of DotSpatial tutorials for C# code.

geofran80 Apr 8, 2011 at 7:29 AM 
Another issue found in the code is when I load the Polygon shapefile saved in edition it is loaded as Line shapefile.

Hope it serves you.

Thanks.

Francisco J.

geofran80 Apr 8, 2011 at 7:12 AM 
I Finally think that found the solution. A level class variable amIDrawing As Boolean that initialize at the CreatePointShapefile/CreateLineShapefile/CreatePolygonShapefile tool Menu and stop or put to false in the SavePointShapefile/SaveLineShapefile/SavePolygonShapefile function.

Thanks.

Francisco J.

geofran80 Apr 7, 2011 at 7:34 AM 
Many thanks, I will try to get more knowledge about feature editing, because the problem is to stop drawing in the map when I save the shapefile, anything as StopEditing.

Thanks in advanced.
Francisco J.

Tevaganthan Apr 6, 2011 at 8:07 PM 
Francisco,
Tutorial #4 helps to give you an idea about creating a point,polyline, and polygon shape files. If you want to create more than one shape file you don't need to create the same data column more than one time. You can't create a same data column more than once in a shape file. I guess, that's why you got an exception. And also polyline and polygon shape files saved locations are hard coded in the tutorial code. So, without the same directory path, you won't run your project.
Hope it helps.

geofran80 Apr 6, 2011 at 4:28 PM 
Following the fourth tutorial I have a problem because when I save the point, line, or polygon shapefile, if I click in my map although I have an arroy mousecursor I can following digitize the entities, and in several times I obtain and exception related with this.

Do I need to dispose any item or stop any edition item?

Thanks in advanced.

Francisco J.