Abstract:
We have developed a framework for Web-based GIS/database (WebGD) applications
that allow users to insert, query, and delete data with map interfaces displayed by Web
browsers. The framework uses such open source software packages as Minnesota
MapServer, PostGIS, and PostgreSQL. With this framework, we can create the map
interface of a new WebGD application only by providing configuration files. Those
configuration files define the contents, appearances, and interactions of the legend, the
quickview mechanism, and the map function tools. The map area needed for an
application can be covered by multiple regions, each with its own set of map layers and
region specific parameters such as a map projection and a map extent. Spatial references
for different map regions can be dynamically switched.
Description:
1 INTRODUCTION....................................................................................................................................... 5
2 ORGANIZATION OF A WEBGD APPLICATION.............................................................................. 6
2.1 PHP......................................................................................................................................................... 8
2.2 POSTGRESQL ......................................................................................................................................... 8
2.3 POSTGIS ................................................................................................................................................. 8
2.5 PHP-MAPSCRIPT.................................................................................................................................... 8
2.4 UNIVERSITY OF MINNESOTTA MAPSERVER (UMN MAPSERVER)....................................................... 9
3 INTERACTIVE MAP INTERFACE...................................................................................................... 10
3.1 LAYOUT OF THE MAP INTERFACE ........................................................................................................ 10
3.2 USING THE MAP INTERFACE................................................................................................................ 10
4 CREATING A WEBGD APPLICATION.............................................................................................. 12
4.1 REGION CONFIGURATION FILE ............................................................................................................. 12
4.2 MAP LAYER CONFIGURATION FILE...................................................................................................... 15
4.3 QUICK VIEW CONFIGURATION FILE..................................................................................................... 18
6 IMPLEMENTATION DETAILS OF THE WEBGD FRAMEWORK............................................. 21
6.1 GLOBAL VARIABLES DEFINED IN GMAP75.PHP ................................................................................... 21
6.2 HTML PARAMETERS IN GMAP75_MAIN.PHTML.................................................................................. 22
6.3 CREATION OF THE MAP LEGEND .......................................................................................................... 23
6.4 INTERACTION BETWEEN THE MAP LEGEND AND THE MAP FUNCTIONS ............................................. 24
6.5 CREATION OF DYNAMIC QUICKVIEW MECHANISM............................................................................. 25
6.6 ZOOM-IN MECHANISM......................................................................................................................... 25
6.7 ZOOM-OUT MECHANISM...................................................................................................................... 26
6.8 MAP PANNING MECHANISM................................................................................................................. 27
7 CONCLUSION .......................................................................................................................................... 29
REFERENCES.................................................................................................................................................. 30