39
4.2. Query Work Flow
The query flow to get non-spatial and spatial data can be described as figure 4.2.
Figure 4.2. Query Workflow
4.2.1. Processes Involved when Interacting with Map Spatial Data
When the users want to interact with the available maps, Map server packet opens the .map file and works with the component specified to generate a
view of the component fitting the zoom and pan commands issued by the user. The map server reads the configuration .txt file in the same folder as the index.php
file to know how to configure the display. The final view is rendered as an image and served by the map server to the browser within the stream of HTML
commands created by Apache processing of the .php pages. The list below shows the steps with more details:
• The Users generate the requests to the Map Application Server via HTTP
on the Graphic User Interface. •
The Web Server receives requests from the User, and sends requests to Map Application server.
Non-Spatial Database
List of Objects
Spatial Database
Integrated Web-GIS
Transformation Integration
module
Query module
Return map Object id
Query Data
User request Result
User – Web browser
Query Object id
40 •
The Map Application Server load Map file. •
The Map Application Server manipulates the .map file objects within the Map Server packet using CGI function.
• The final view is rendered as an image and served by the Map Application
Server to the User computers in the Graphical User Interface.
4.2.2. Processes Involved when Accessing Non-Spatial Data
With the given layout of the Web page, the process for accessing non- spatial data may follow the following steps:
• The Users generate the requests to the Application Server via HTTP on the
Graphic User Interface. •
The Web Server receives requests from the User, and sends to Application server.
• The Application Server connects and retrieves data from MySql database.
• The Application Server processes the data and generates php files, which
will display in user computer.
41
4.3. Database Design 4.3.1. Non-Spatial Database Design