Installation guide
13
Figure 2. Name and Namespace URI of a New Workspace
10.3. Create a New Store
Click Stores (in the Data set), then click Add new Stores. You will see Vector Data Sources and
Raster Data Sources, respectively. Specifically, we use Shapefile and PostGIS as vector data
sources quite often. In this lab, we choose PostGIS as data source (you can get familiar with the
PostGIS environment), fill in inputs as it is shown in Table 2, and accept other default values.
Table 2. Configurations for Creating a New Store
No.
Input
Values
1
Workspace
medford
2
Data Source Name
medford
3
Enabled
checked
4
dbtype
postgis
5
host
localhost
6
port
5432
7
database
medford
8
schema
medford
9
user
postgres
10
password
postgres
11
validate connections
checked
10.4. Publish a Layer
After adding a data source, you can publish layers immediately. You can always access the same
configuration stage, i.e., by clicking Layers, Add a new resource, and selecting
medford:medford from the drop list. Publish the layer of buildings; on the Data tab compute
Bounding Boxes; and on Publishing tab fill in WMS Settings if you like. Lastly, check the result
by clicking OpenLayers of buildings in the Layer Preview tab.
10.5. Publish More Layers
Add some other layers from the same store above. Include URIs to review it in your report. Use
styles in WMS Settings to the relevant layers; include screens capture from reviews (zoom in to
suitable extent).
Visit the following link to create new styles for park and streets layers.
http://docs.geoserver.org/latest/en/user/styling/sld-cookbook/index.html