Tuesday 3 June, 2008

Build your First GIS Application Step:-1 ( Cont...)

To build your MapServer appication you need to download it
Mapserver is available in different flavors for different platforms
you cam download source code or pre-compiled binaries for your operating system
this is avialble form
OSGEO
MapTools
FGS

maptools.org provides a stand-alone environment that includes Apache http server, MapServer, and PHP MapScript.


Compilation instructions are available for Unix/Linux and Windows, with additional Build Notes for RedHat. Refractions Research Inc also maintains a set of Linux RPMs. If you are on the Windows platform, compilation can be quite challenging, for your first application, it is recommended that you utilize pre-compiled Windows binaries.

Once MapServer is installed, there are two ways that you can test it. First, at the command line, type 'mapserv -v', you should see a message describing your MapServer install, something like:


MapServer version 4.8.0-beta2 OUTPUT=GIF OUTPUT=PNG
OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE
SUPPORTS=WMS_SERVER INPUT=SHAPEFILE DEBUG=MSDEBUG



You can also send a HTTP request directly to the MapServer CGI program without passing any configuration variables (e.g. http://your.domain.name/cgi-bin/ms4/mapserv.exe). If you receive the message, 'No query information to decode. QUERY_STRING not set.', your installation is working.

No comments: