Introduction
I assume you have a basic knowledge of ASP.NET and C#.NET, and so on.
Easy GIS .NET is a suite of .NET GIS mapping tools and controls to let developers easily incorporate GIS functionality into their own applications. The Desktop Edition includes a stand-alone viewing application which can be used to open and view ESRI shapefiles. This application is built using the same .NET controls that can be included in your own applications. Easy GIS .NET is a free software released under the Lesser General Public License. You can freely use it in personal and commercial software.
Background
Presently, I am working on a project where I need to generate some map based on various distributions on Bangladesh map. I am using QGIS (A Free and Open Source Geographic Information System) which is an excellent tool to generate complex map. Then I wanted to generate some map based on my database value so I searched in Google and Easy GIS grab my attention. After some initial struggle, I am able to generate something that I think will be required by many.
How to Configure
Step 1
Download the required .dllÂfrom here.
Step 2
Start a new project as ASP.NET Web application; give the name as WebExample1
. It will give you one Default.aspxÂand .csÂfile.
Step 3
Now add these references:
- EGIS.ShapeFileLib.dll
- EGIS.Web.Controls.dll
- geomutil_lib.dll
- geomutil_libx64.dll
Step 4
Add the below mentioned code in Web.configÂfile under “system.web” section:
<httpHandlers> <add path="egismap.axd" verb="*" type="EGIS.Web.Controls.SFMapImageProvider, EGIS.Web.Controls, Version=4.3.0.0, Culture=neutral, PublicKeyToken=05b98c869b5ffe6a" validate="true" /> </httpHandlers>
Step 5
Download shapefile for Bangladesh from here.
Step 6
Add the folder in your project.
Step 7
Download bangladesh.egpÂhere.
Step 8
Add the file in your project
Step 9
Now your Solution Explorer will look like this: