Thinking in GIS

a blog about GIS from a urban geogeek living at the countryside

Feed, Categories, Archives


Installing MapServer (c# mapscript tutorial, part 2)

Posted: July 03, 2006
Categories: GIS, .NET, PostGIS, devs, MapServer, Tutorials
Feedback: View Comments

Download MapServer

Download precompiled binaries here. For the purpose of this tutorial is indifferent if you download the MS4W for PHP4 or PHP5.

(As an alternative you could download an installation toolkit like this and compile yourself MapServer, but it is more difficult).

Installation

All you need to do is to extract the zip file, for example at: C:ms4w. Here we will not mention how to install cgi MapServer, because we are using the other modality (MapScript).

After doing that take a look at the structures of the directories created under C:ms4w.

All the references we need in our C# ASP .NET (or Windows) application are the dll under: C:ms4wApachecgi-binmapscriptcsharp and the dll under C:ms4wApachecgi-bin.

The only .NET dll is C:ms4wApachecgi-binmapscriptcsharpmapscript_csharp.dll.

For all the other dlls is enough for them to be accessible for our application. To get this it is possible to operate in two ways:

  • for every .NET project manually copy these dll under bin
  • or simply put the path to all these dll under PATH Windows environment variable.

Note that not even a dll need to be registered on Windows (with REGSVR32), so when your application will be complete you could easily FTP it to your web server host.

blog comments powered by Disqus