| < Day Day Up > |
3.7. Summary of ApplicationsTable 3-1 summarizes the functions of each application discussed in this chapter: one checkmark shows peripheral use; two checks denotes common use.
Table 3-1. Summary of the types of functions each application
|
|
GDAL |
OGR |
PostGIS |
OpenEV |
MapServer |
|||||
|---|---|---|---|---|---|---|---|---|---|
|
Viewing and mapping |
|
|
|
||||||
|
Analysis |
|
|
|
|
|||||
|
Manipulation |
|
|
|
|
Conversion |
|
|
||
|
Sharing |
|
|
Though the applications may fit more than one category, this table is intended to show the most common ways they are used. For some
| < Day Day Up > |
| < Day Day Up > |
Chapter 4. Installing MapServer
Whether you are preparing static map images for a web page or publishing an interactive web site, MapServer can do the job. Interactive maps allow users to zoom in to particular areas and
You can use MapServer from the command line or, for interested programmers, through an API. MapServer also can be used as a common gateway interface (CGI) application or scripted using common web programming languages such as PHP, Perl, Python, and Java. Whether using the CGI version or scripting your own, MapServer's runtime configuration files control what layers are shown and how they are drawn. Mapping data can easily be added to an existing application by editing the configuration file. This chapter discusses what MapServer is, how it can be used, and how it works. It also covers how to set up the underlying programs that make up MapServer, so it can be used in custom applications. Examples of MapServer application development are given in Chapters 10 and 11. |
| < Day Day Up > |
| < Day Day Up > |
4.1. How MapServer Applications Operate
MapServer usually works behind a web server application. The web server receives
MapServer's primary function is reading data from various sources and pulling these
Figure 4-1. A diagram showing the basic operation of a MapServer application
satellite image, another the outline of your country or points showing a major city. Each layer is overlaid or drawn on top of the others and then printed into a web-friendly graphic for the user to see. A good example of the results of the overlapping and mapping process can be seen in Figure 4-2. You can see a satellite image (from a remote server), road lines, and city locations; the city labels are dynamically generated by MapServer.
This drawing process (a.k.a.
rendering
) occurs each time a request for a new map is made to MapServer, for instance, when a user zooms into the map for a closer look. This process also occurs when a user manually requests a
|
| < Day Day Up > |