Installation guide

15
to the map:
// Initialize WMS layer from our local GeoServer
buildings = new OpenLayers.Layer.WMS( "Medford Buildings",
"/geoserver/wms",
{
layers: 'medford:buildings',
'format':'image/png'},
{'reproject': true});
// Add WMS layer to our map
map.addLayers([buildings]);
NOW, IT IS YOUR TAKS!
Task
Description
1
Add tax lots, streets, and zoning layers to your map. Add your code as well as screen shots in your
report.
2
Add Controls such as mouse position, layer switcher and scales to the map.
3
Create an identify control to identify features from building layer.
Review the querying part in the link of http://workshops.opengeo.org/stack-intro/openlayers.html,
and navigate to C:\Program Files\ApacheSoftwareFoundation\Tomcat7.0\webapps\spatialdbtips\Ope
nLayers\examples, view the source code of the getfeatureinfo.html, getfeatureinfo-control.html, and
getfeatureinfo-popup.html files.
4
Describe the background process that OpenLayers runs to get information about a feature. Start your
description from the click event until you get the information about the feature back.
12. PostGIS
PostGIS adds support for geographic objects to the PostgreSQLobject-relational database. In
effect, PostGIS "spatially enables" the PostgreSQL server, allowing it to be used as a backend
spatial database for geographic information systems (GIS), much like ESRI's SDE or Oracle's
Spatial extension.
(Reference: http://postgis.refractions.net/)
Get familiar with PostGIS. Open PostgreSQL tools pgAdmin, you will see spatial data that we are
using is as the following structures (Figure 3).