WebGIS and WebMappingTechniques
WebGIS and WebMappingTechniques
Senior Lecturer
Ali Mansourian
A typical Application usually includes three essential
elements:
◦ Presentation,
◦ Logic (or business)
◦ Data
Ali Mansourian
Presentation Logic Data
Client/ Server/
Service requester Service Provider
Ali Mansourian
Presentation Logic Data
Client Server
Ali Mansourian
Glue/
Client Middleware Server
The client and the server are two independent
components in a client-server system
Ali Mansourian
Networking software such as TCP/IP
Web: HTTP, HTTPS, etc.
...
Glue
Client / Server
Middleware
Ali Mansourian
Two-Tier Architecture
Client Presentation
Logic
Server
Data
Ali Mansourian
Two-Tier Architecture
Presentation
Client
Logic
Server Data
Ali Mansourian
n-Tier Architecture
Client Presentation
Server 1 Logic
Server 2 Data
Ali Mansourian
n-Tier Architecture
Client Presentation
Server 1
Server 2 Logic
Server 3 Data
Ali Mansourian
Client Presentation
Ali Mansourian
is a special case of client-server architecture
has advantages of client-server architecture
is more efficient for distributed applications
across internet
wide accessibility is another advantage
Ali Mansourian
Server
Web Server
Web Client With Application Map Server Data Server
Server
DB
Ali Mansourian
Server
Web Server
Web Client With Application Map Server Data Server
Server
DB
Ali Mansourian
A typical web client is a web-browser with HTML
◦ To make the Web user interface dynamic and more interactive DHTML and
some client-side applications are used (will be explained later).
Ali Mansourian
Server
Web Server
Web Client With Application Map Server Data Server
Server
DB
Ali Mansourian
Web server, also called HTTP Server
Ali Mansourian
Server
Web Server
Web Client With Application Map Server Data Server
Server
DB
Ali Mansourian
Map server is a major workhorse component
that fulfills:
◦ spatial queries
◦ conducts spatial analysis
◦ generates and delivers maps to the client based on the
user’s request
Ali Mansourian
The map server provides a range of traditional
GIS functions or services including:
◦ Query
◦ filtering and data extraction
◦ geocode service
◦ spatial analysis service
◦ map-making services
◦ …
Ali Mansourian
The output of the map server can be:
◦ either in the form of filtered feature data that are sent
to the client program to be manipulated by the user
◦ or in the form of a simple map image in a graphic
format (e.g. JPEG or GIF)
Ali Mansourian
Server
Web Server
Web Client With Application Map Server Data Server
Server
DB
Ali Mansourian
Data server serves spatial and non-spatial data
from database for processing and analysis
purposes based on the user’s request.
Ali Mansourian
High
Interactive Web
Functionality
Mapping
Static Web
Mapping
Static Map
Publishing
Low
Ali Mansourian
Distributes maps on the Web page as static map
images in graphic formats like GIF, JPEG and PDF
Ali Mansourian
Ali Mansourian
Ali Mansourian
Users can not interact with the maps:
◦ Can not change their display format in any way
◦ Can not zoom to a certain area
◦ Can not get attribute of spatial features
No map-rendering tools
Ali Mansourian
Static Map publishing: Static Web Mapping:
Ali Mansourian
Two Web technologies made Static Web Mapping
possible:
Ali Mansourian
Web forms: facilitate
user input to make a
request
Ali Mansourian
CGI is a way of connecting your web pages to other
programs that are running on the server which
visitors wouldn't normally have access to.
Ali Mansourian
Old version of “Where is” Web site.
Ali Mansourian
Ali Mansourian
Ali Mansourian
Ali Mansourian
Ali Mansourian
Ali Mansourian
Ali Mansourian
Many current Web GISs belong to this category.
Ali Mansourian
Ali Mansourian
Interactive Navigation
Ali Mansourian
HTML is static for Web mapping
After a page and map is loaded in the
browser, they become static
The only things a user can do in a static Web
page are:
◦ If there is a link, click on it
◦ If there is a form, fill it out and click on submit
The response to each of the above actions is
slow, because a complete round trip to server
is required
Ali Mansourian
Alternative viewers are required for interaction:
◦ Plug-In Viewer
◦ ActiveX Viewer
◦ DHTML
Ali Mansourian
Collection of technologies to create
interactive and animated webpages
Combination of
◦ Markup language: HTML
◦ Client side scripting language: JavaScript
◦ Presentation definition language: CSS
Ali Mansourian
DHTML allows the scripting language to change different
properties in the HTML, or add and remove elements from
the HTML even after a page has been loaded into a
browser
The changes affect the look and the function of the HTML
content.
Ali Mansourian
The DHTML has three advantages over static
HTML:
Ali Mansourian
Several solutions
◦ Changing the look of an HTML element using CSS
◦ Combining several HTML elements to generate a
complex shape
◦ Draw on HTML Canvas element
◦ Draw on HTML SVG element
Ali Mansourian
Client side Web Map Programming
◦ To understand DHTML
Three exercises
◦ To develop a static map publishing tool
Ali Mansourian