GeoServer
Prof. Wenwen Li
School of Geographical Sciences and Urban Planning
5644 Coor Hall
wenwen@asu.edu
OutlineOutline
1. Overview & Installation
2. Web Administration Interface
3. Publishing WFS, WCS, WMS
4. Working with Vector Data
5. Working with Raster Data
6. Working with Databases
7. Others
OverviewOverview
GeoServer is an open source server for sharing geospatial data.
Designed for interoperability, it publishes data from any major spatial data sourceusing open standards.
Publishing WFS, WCS, WMSPublishing WFS, WCS, WMS
Create a Workspace
Click Start GeoServer under the installation folder.
Open a web browser, navigate to http://localhost:8080/geoserver/web
Log into GeoServer
Navigate to Data - Workspaces.
click the Add new workspace button
Publishing WFS, WCS, WMSPublishing WFS, WCS, WMS
Create a Data Store
Navigate to Data - Stores.
Click on the Add new store button
Publishing WFS, WCS, WMSPublishing WFS, WCS, WMS
Create a Data Store
Select Shapefile - ESRI(tm) Shapefiles (.shp).
Publishing WFS, WCS, WMSPublishing WFS, WCS, WMS
Create a Layer
Navigate to Data - Layers
Click on the Add a new resource button
Add layer from “nyc_roads:NYC_ROADS”
Click “Publish”
Publishing WFS, WCS, WMSPublishing WFS, WCS, WMS
Create a Layer
Publishing WFS, WCS, WMSPublishing WFS, WCS, WMS
Publish the layer
Navigate to Data – Layers Review
Click on the OpenLayers link
Web Administration InterfaceWeb Administration Interface
Server
Status: provides a summary of server configuration parameters and run-timestatus.
Contact Information:
Global Settings: configures messaging, logging, character, and proxysettings for the entire server.
Web Administration InterfaceWeb Administration Interface
Server (Cont.)
Coverage Access Settings: provides configuration options to customize threadpool executors and ImageIO caching memory.
JAI: provides reader, writer, and stream plug-ins for the standard Java Image I/OFramework, and configures JAI parameters for WMS and WCS operations
Java Advanced Imaging (JAI) is an image manipulation library built by SunMicrosystems and distributed with an open source license.
REST (Representational State Transfer) Configuration: allows to create newstores and append new granules to mosaics via file uploads.
Web Administration InterfaceWeb Administration Interface
Layer Preview
provides layer views in various output formats.
Web Administration InterfaceWeb Administration Interface
Data
Workspaces: describes how to view and configure workspaces.
Store: connects to a data source that contains raster or vector data.
Layers: refers to raster or vector data that contains a collection of geographicfeatures.
Layer Groups: a container in which layers and other groups can be organized in ahierarchical structure.
Single: the layer group is exposed as a single layer with a name.
Named tree: the layer group can be referred to by one name, but also exposesits nested layers and groups in the capabilities document.
Container tree: the layer group is exposed in the capabilities document, but doesnot have a name, making it impossible to render it on its own.
Earth Observation tree: a special type of group created to manage the WMSEarth Observation requirements.
Web Administration InterfaceWeb Administration Interface
Tile Caching
Tile Layers: shows a listing of all of the layers known to the integratedGeoWebCache. It is similar to the Layer Preview for GeoWebCache, with manyof the same options.
Demo page: enables viewing configured layers, reloading the configuration, andseeding or refreshing the existing cache on a per-layer basis.
Caching defaults: shows the global configuration options for the tile cachingfunctionality in GeoServer, an embedded GeoWebCache.
Gridsets: defines a spatial reference system, bounding box (extent), a list of zoomlevels (resolutions or scale denominators), and tile dimensions.
Disk Quotas: manages the disk usage for cached tiles and allows you to set theglobal disk quota.
Web Administration InterfaceWeb Administration Interface
Security
Settings: controls the global GeoServer security settings.
Authentication: manages the authentication options, including authenticationproviders and the authentication chain.
Passwords: configures the various options related to Passwords, the Masterpassword, and Password policies.
Users, Groups, Roles: provides the configuration options for User/group servicesand Role services.
Data: provides access to security settings related to data management and Layersecurity.
Web Administration InterfaceWeb Administration Interface
Security
Services: provides access to the settings for Service Security.
File Browsing: exposes locations of the file system other than the GeoServerdirectory.
Web Administration InterfaceWeb Administration Interface
Demos
Demo Requests: provides example WMS, WCS and WFS requests for GeoServerthat you can use, examine, and change.
SRS (Spatial Referencing Systems): supports almost 4,000 SRS, also known asprojections, and more can be added.
Working with Vector DataWorking with Vector Data
Shapefile
Adding a shapefile
Stores - Add a new store – Shapefile
Configuring a shapefile
Layers
Working with Vector DataWorking with Vector Data
Directory of spatial files
The directory store automates the process of loading multiple shapefiles intoGeoServer.
Adding a directory
Stores - Add a new store - Directory of spatial files
Configuring a Properties data store
Layer
Working with Vector DataWorking with Vector Data
Java Properties
provides access to one or more feature types (layers) stored in Java property files;these are plain text files stored on the local filesystem.
Adding a directory
Vector Data Sources - Properties
Configuring a Properties data store
Working with Raster DataWorking with Raster Data
GeoTIFF
Adding a GeoTIFF data store
Raster Data Sources - GeoTIFF
Configuring a GeoTIFF data store
Working with Raster DataWorking with Raster Data
GeoTIFF
a georeferenced TIFF (Tagged Image File Format) file.
Adding a GeoTIFF data store
Raster Data Sources - GeoTIFF
Configuring a GeoTIFF data store
Working with Raster DataWorking with Raster Data
GTOPO30
a Digital Elevation Model (DEM) dataset with a horizontal grid spacing of 30 arcseconds.
Adding a GTOPO30 data store
Raster Data Sources - GTOPO30
Configuring a GTOPO30 data store
Working with Raster DataWorking with Raster Data
WorldImage
a plain text file used to georeference raster map images. This file (often with anextension of .jgw or .tfw) accompanies an associated image file (.jpg or .tif).Together, the world file and the corresponding image file is known as aWorldImage in GeoServer.
Adding a WorldImage data store
Raster Data Sources – WorldImage
Configuring a WorldImage data store
Working with Raster DataWorking with Raster Data
ImageMosaic
allows the creation of a mosaic from a number of georeferenced rasters. Theplugin can be used with GeoTIFFs, as well as rasters accompanied by a world file(.pgw for PNG files, .jgw for JPG files, etc.).
Adding an ImageMosaic data store
Raster Data Sources – ImageMosaic
Configuring an ImageMosaic data store
Working with Raster DataWorking with Raster Data
ArcGrid
a coverage file format created by ESRI.
Adding an ArcGrid data store
Raster Data Sources – ArcGrid
Configuring a ArcGrid data store
Working with DatabasesWorking with Databases
PostGIS
Adding a PostGIS database
Stores - Add a new store - PostGIS NG
Working with DatabasesWorking with Databases
PostGIS
Using JNDI (Java Naming and Directory Interface)
Stores - Add a new store - PostGIS NG (JNDI)
Configuring PostGIS layers
Layer
Working with DatabasesWorking with Databases
PostGIS
Using loose bounding box
loose bbox
When this option is enabled, only the bounding box of a geometry is used.
Publishing a PostGIS view
Similar to publish a table,  the only additional step is to manually ensure that theview has an entry in the geometry_columns table.
Working with DatabasesWorking with Databases
MySQL
Installing the MySQL extension
Download the MySQL extension from: http://geoserver.org/download/
Adding a MySQL database
Vector Data Source - MySQL
Configuring a MySQL data store
ConclusionConclusion
Installation
Web Administration Interface
Publishing WFS, WCS, WMS
Working with Vector Data
Working with Raster Data
Working with Databases
Others