Database Reference
In-Depth Information
How to do it...
Carry out the following steps:
1. Open the GeoServer administrative interface, which is typically located at
http://localhost:8080/geoserver
, in your favorite, browser and log
in using your credentials—
admin
as the username and
geoserver
as the
password if you are just using the GeoServer default installation and have
not customized things.
2. After successfully logging in, create a workspace by clicking on the
Work-
space
linkunder
Work
(intheleft-handsidepaneloftheGeoServerapplica-
tion'smainmenu),andthenclickonthe
Add new workspace
link.Inthetext
boxesoftheformthatappears,specifythefollowingvaluesandthenclickon
the
Submit
button:
• Enter
postgis_cookbook
in the
Name
field
• Enter the URL
http://www.packtpub.com/postgis-to-store-organize-
manipulate-analyze-spatial-data-cookbook/book
in the
Namespace
URI
field
3. Now, to create a PostGIS store, click on the
Stores
link under
Data
(in the
left-hand side panel of the GeoServer application's main menu). Now, click
onthe
Add new store
link,andthenonthe
PostGIS
linkunder
Vector Data
Sources
, as shown in the following screenshot: