Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
dev:gis_umn_mapserver [2007/06/24 05:13] hasitha |
dev:gis_umn_mapserver [2009/07/06 20:36] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Map Server How To ====== | ====== Map Server How To ====== | ||
+ | |||
+ | |||
+ | |||
Line 5: | Line 8: | ||
- | Sahana | + | Sahana' |
+ | |||
+ | [[http:// | ||
- | UMN map server is preferred because of it's support to different data formats, thus allowing their data to be accessible by wide spectrum of clients. | ||
===== Dependencies ===== | ===== Dependencies ===== | ||
- | UMN Map server | + | UMN MapServer |
Other mandatory libraries include the following. | Other mandatory libraries include the following. | ||
- | libpng – library of routines to render | + | * libpng – library of routines to render |
- | freetype – font rendering library | + | |
- | gd – library of graphics routines used by map server to render images. | + | |
- | zlib – data compression library | + | |
- | These libraries will give the map server | + | These libraries will allow MapServer |
- | For further information see http:// | ||
- | ==== Map server for Windows ==== | ||
- | Installing | + | ==== Map server |
- | The easiest way to use map server | + | |
- | All you have to do is to extract the .zip file to a driver root (ex: c:\) and you are ready to go! | ||
- | All the essential libraries and apache web server | + | The easiest way to use MapServer on the Windows platform |
- | Run the apache | + | |
+ | All you have to do is to extract the .zip file to a drive root (e.g. c:\) and you are ready to go! | ||
+ | |||
+ | All the essential libraries and apache web server is bundled in to the MS4W package. | ||
+ | Run the apache web server by executing the apache.exe found inside the MS4W directory structure. | ||
====Installing UMN Map Server in Linux ==== | ====Installing UMN Map Server in Linux ==== | ||
Line 41: | Line 44: | ||
=== Debian based distributions === | === Debian based distributions === | ||
- | sudo apt-cache search | + | |
+ | (Commands should be executed as the super user, thus following are tested on ubuntu linux) | ||
+ | |||
+ | * sudo apt-cache search | ||
make sure to have added community maintained open source software and main repositories added to your package manager' | make sure to have added community maintained open source software and main repositories added to your package manager' | ||
- | sudo apt-get update | + | * sudo apt-get update |
You will see the map server cgi programme if it is there. | You will see the map server cgi programme if it is there. | ||
- | sudo apt-get install cgi-mapserver | + | * sudo apt-get install cgi-mapserver |
+ | |||
+ | command will install the map sever cgi program to your web server' | ||
- | command will install the map sever cgi program to your web server' | ||
You are required to install a module to communicate with map server with a scripting language for development purposes. | You are required to install a module to communicate with map server with a scripting language for development purposes. | ||
Ex: php5-mapscript, | Ex: php5-mapscript, | ||
+ | |||
+ | * sudo apt-get install php5-mapscript | ||
- | sudo apt-get install php5-mapscript | ||
- | ===== How to make sure whether map server is set up correctly ===== | ||
- | type on your browser | ||
- | http:// | ||
- | this will give you the following out put. | ||
- | No query information | + | ===== How to check whether MapServer |
- | {{dev: | ||
+ | Type in your browser: | ||
+ | http:// | ||
+ | This will give you the following output: | ||
+ | No query information to decode. QUERY_STRING is set, but empty. | ||
+ | **Success Screen Shot** | ||
+ | {{dev: | ||
- | References : http:// | ||
- | | ||
+ | References : http:// | ||
+ | http:// |