Lecturer Pat Browne
This note describe how to set up GeoServer on your own Windows machine, it
done in the labs
We will cover.
on your own machine
Publish some ma
You will need PostgreSQL/PostGIS with the tables
from previous labs loaded
Also, you will need the PostGIS tables from previous Labs.
The GeoServer manual is at;
1) Install GeoServer
From the Web or studentdistrib
version of GeoS
: User Name: admin , Password: geoserver
the usual dialogs
, that data and web pages will be stored
Make sure that any other servers on port 8080 are stopped.
tart GeoServer from
Windows Start | All Programs
Point your web browser
WMS_GetMap.url and the Submit
You should get the map below.
Experiment with WMS_GetMapOpenLayers.url
eriment with the OpenLayers controls
Other formats are available (explore Select one)
In the GeoServer Layer Preview
Preview > sf:archsites
> Open Layers
Examine some of the
Do the followin
g query Filter=FeatureID and
in adjacent text box. Then
press the arrow on the right. You should see just one point.
To reset the map set Filter=OGC and text box blank.
Note there is little in the way of
View source with CT
3) Publish some maps
ogin to GeoServer
The defaults are username=admin,password=geoserver.
) Create a Work
re a way to logically group
consists of a name and a
In GeoServer, a workspace is often used to group similar layers
together. Individual layers are often referred to by their workspace name, colon, then
store. (Ex: topp:states) Two different layers having the same name can exist as long as
exist in different workspaces. (Ex: sf:states, topp:states).
Select Data | Workspace | New Workspace
When you c
lick submit your new Workspace
should appear as follows;
) Add new Store
Assume that the Ireland
WS has be
created in 2.3.
| New data source
Fill out form as follows and Save.
On Saving you should be
presented with a list of all the tables in the
(you could also use
3.4) Publish some maps.
Click on publish for county
This will present you with detailed layer information for
You should let the sys
tem compute the bounding boxes by clicking on “Computer from
data” and “Compute from native bounds”.
When you click Save, you should get:
Add a Layer Group
By viewing the map in
you should get.
Styling with SLD
erver has several built in styles that can be viewed from the Style option.
For a style tutorial
) Create a Data S
Data stores can host spatial data from a
variety of sources (e.g. PostGIS or shapefiles).
We need to create a data for each shapefile
. Later we will see that a PostGIS data store
can reference all the
tables in a database instance. Before we start we need to c
from the CD
Make a new Source | New data source | Shapefile (*.shp)
Select the appropriate Workspace/Namespace
ick Submit, and then click Save
) WMS Ge
the following as one
string into your browser
Everything before the question ma
rk is the web address of the server.
In the query string
vice=WMS specifies the service we’re interested in.
version= 1.1.1 specifies the version of the service you’d like to know about.
request=GetCapabilities asks for the capabilities document.
You should examine the returned
in TextPad or Notepad/
Using this approach only layers from a single host can be displayed.
Paste or type
the following as one single string into your browser
But what is wrong
with the image
Need to keep bounding box and coordinate window in the same proportions.
How would you get the image to display correctly?
Do the foll
Have a look at
the capabilities of
A lot of information about the server, layers,
unding boxes shou
returned in a file called