Introduction to GeoServer. Intro to GeoServer

Intro to GeoServer Introduction to GeoServer Introduction to GeoServer Outline 1. 2. 3. 4. 5. 6. Installing GeoServer GeoServer web interface Ov...
Author: Tyrone Chase
5 downloads 0 Views 2MB Size
Intro to GeoServer

Introduction to GeoServer

Introduction to GeoServer

Outline 1. 2. 3. 4. 5. 6.

Installing GeoServer GeoServer web interface Overview Working with data Styling Web map output

Introduction to GeoServer

Introduction to GeoServer

What is GeoServer?

GeoServer is an open source software server written in Java that allows users to share and edit geospatial data

Introduction to GeoServer

Introduction to GeoServer

Section 1: Installing GeoServer is a core component of OpenGeo Suite.

Introduction to GeoServer

Introduction to GeoServer

Installation

Introduction to GeoServer

Introduction to GeoServer

Installation

Introduction to GeoServer

Introduction to GeoServer

Dashboard Central location for launching applications and resources.

Introduction to GeoServer

Introduction to GeoServer

Section 2: GeoServer web interface Manage GeoServer graphically.

Introduction to GeoServer

Introduction to GeoServer

Tour of the interface http://localhost:8080/geoserver/

Introduction to GeoServer

Introduction to GeoServer

Authentication Default credentials: admin / geoserver • Robust security system • Ability to create custom user accounts and roles

Introduction to GeoServer

Introduction to GeoServer

Authentication

Introduction to GeoServer

Introduction to GeoServer

Layer Preview View published layers with minimal clicks

Introduction to GeoServer

Introduction to GeoServer

Layer Preview View published layers with minimal clicks

Introduction to GeoServer

Introduction to GeoServer

Logs View application logs inside the application itself

Introduction to GeoServer

Introduction to GeoServer

Bonus exercises • What is the filesystem path to the GeoServer data directory? • What version of Java is GeoServer using?

Introduction to GeoServer

Introduction to GeoServer

Loading your first data set

Introduction to GeoServer

Introduction to GeoServer

Loading your first data set

Introduction to GeoServer

Introduction to GeoServer

Loading your first data set

Introduction to GeoServer

Introduction to GeoServer

Loading your first data set

Introduction to GeoServer

Introduction to GeoServer

Loading your first data set

Introduction to GeoServer

Introduction to GeoServer

Loading your first data set

Introduction to GeoServer

Introduction to GeoServer

Section 3: Overview Basic concepts related to GeoServer and web mapping, including OGC protocols and useful terminology.

Introduction to GeoServer

Introduction to GeoServer

Web servers http://example.com/some/path/page.html http://example.com/ some/path/image.jpg http://example.com/some/path/archive.zip http://example.com/some/path/data.xml

Introduction to GeoServer

Introduction to GeoServer

Web mapping servers Like a web server, but designed specifically for conveying geospatial content.

Introduction to GeoServer

Introduction to GeoServer

Data sources Lots of options • Files (Shapefile, GeoTIFF, MrSID, ArcGrid, JPEG2000, GDAL formats) • Databases (PostGIS, ArcSDE, Oracle Spatial, DB2, SQL Server)

Introduction to GeoServer

Introduction to GeoServer

OGC protocols

• • • • •

Web Map Service (WMS) Web Feature Service (WFS) Web Coverage Service (WCS) Web Processing Service (WPS) ...and more

Introduction to GeoServer

Introduction to GeoServer

Web Map Service Also known as the "map image"

Introduction to GeoServer

Introduction to GeoServer

Web Map Service Example GetMap request: http://demo.boundlessgeo.com/geoserver/wms? service=wms& version=1.3.0& request=GetMap& layers=osm:osm& styles=& srs=EPSG:900913& bbox=-13744070,6170985,-13720028,6191021& format=image/png& width=600& height=500

Introduction to GeoServer

Introduction to GeoServer

Web Map Service

Introduction to GeoServer

Introduction to GeoServer

Web Map Service Example GetCapabilities request: http://demo.boundlessgeo.com/geoserver/wms? service=WMS& version=1.3.0& request=GetCapabilities

Introduction to GeoServer

Introduction to GeoServer

Web Feature Service Also known as the "map source code"

Introduction to GeoServer

Introduction to GeoServer

Web Feature Service Example GetFeature request: http://demo.boundlessgeo.com/geoserver/wfs? service=wfs& version=1.1.0& request=GetFeature& typename=topp:states& featureid=states.39

Introduction to GeoServer

Introduction to GeoServer

Web Feature Service

Introduction to GeoServer

Introduction to GeoServer

Web Feature Service Example GetCapabilities request: http://demo.boundlessgeo.com/geoserver/wfs? service=WFS& version=2.0.0& request=GetCapabilities

Introduction to GeoServer

Introduction to GeoServer

Other OGC protocols • Web Coverage Service ◦ Like Web Feature Service (WFS) • Web Processing Service ◦ Analysis!

Introduction to GeoServer

Introduction to GeoServer

GeoServer concepts: Workspace Notional container for grouping similar data together

Introduction to GeoServer

Introduction to GeoServer

GeoServer concepts: Store A container of geographic data (a file/database)

Introduction to GeoServer

Introduction to GeoServer

GeoServer concepts: Layer A collection of geospatial features or a coverage

Introduction to GeoServer

Introduction to GeoServer

GeoServer concepts: Layer group A collection of layers (WMS only)

Introduction to GeoServer

Introduction to GeoServer

GeoServer concepts

Introduction to GeoServer

Introduction to GeoServer

GeoServer concepts: Style Visualization directive for rendering geographic data

Introduction to GeoServer

Introduction to GeoServer

Section 4: Working with Data Load and manage data in GeoServer

Introduction to GeoServer

Introduction to GeoServer

Adding a workspace

Introduction to GeoServer

Introduction to GeoServer

Adding a workspace

Introduction to GeoServer

Introduction to GeoServer

Adding a workspace

Introduction to GeoServer

Introduction to GeoServer

Publishing a shapefile

Introduction to GeoServer

Introduction to GeoServer

Publishing a shapefile

Introduction to GeoServer

Introduction to GeoServer

Publishing a shapefile

Introduction to GeoServer

Introduction to GeoServer

Publishing a shapefile

Introduction to GeoServer

Introduction to GeoServer

Publishing a shapefile

Introduction to GeoServer

Introduction to GeoServer

Publishing a GeoTIFF

Introduction to GeoServer

Introduction to GeoServer

Publishing a GeoTIFF

Introduction to GeoServer

Introduction to GeoServer

Publishing a GeoTIFF

Introduction to GeoServer

Introduction to GeoServer

Publishing a GeoTIFF

Introduction to GeoServer

Introduction to GeoServer

Publishing a GeoTIFF

Introduction to GeoServer

Introduction to GeoServer

Loading multiple layers Using the Layer Importer

Introduction to GeoServer

Introduction to GeoServer

Loading multiple layers

Introduction to GeoServer

Introduction to GeoServer

Loading multiple layers

Introduction to GeoServer

Introduction to GeoServer

Bonus: PostGIS and Layer Importer Load in PostGIS and then publish in GeoServer, all in one step!

Introduction to GeoServer

Introduction to GeoServer

Other ways of loading data • Directory of shapefiles • REST API

Introduction to GeoServer

Introduction to GeoServer

Creating a layer group

Introduction to GeoServer

Introduction to GeoServer

Creating a layer group

Introduction to GeoServer

Introduction to GeoServer

Creating a layer group

Introduction to GeoServer

Introduction to GeoServer

Creating a layer group

Introduction to GeoServer

Introduction to GeoServer

Section 5: Styling GeoServer can render geospatial data as images and return them for viewing in a browser. However, additional information, in the form of a style, needs to be applied to data in order to visualize it.

Introduction to GeoServer

Introduction to GeoServer

Viewing an SLD

Introduction to GeoServer

Introduction to GeoServer

SLD structure • Header ◦ FeatureTypeStyles ▪ Rules ▪ Symbolizers

Introduction to GeoServer

Introduction to GeoServer

Simple SLD ... circle #FF0000 6 ...

Introduction to GeoServer

Introduction to GeoServer

Simple SLD

Introduction to GeoServer

Introduction to GeoServer

Another SLD example SmallPop 1 to 50000 pop 50000 circle #0033CC 8

Introduction to GeoServer

Introduction to GeoServer

Another SLD

Introduction to GeoServer

Introduction to GeoServer

Functions in SLD Use functions to simplify output. pop 8 50000 16 100000 20

Introduction to GeoServer

Introduction to GeoServer

Functions in SLD

Introduction to GeoServer

Introduction to GeoServer

YSLD • Improving on SLD • Based on YAML syntax • Native rendering

Introduction to GeoServer

Introduction to GeoServer

Benefits of YSLD Easier to read SLD: #FF0000

YSLD: fill-color: '#FF0000'

Introduction to GeoServer

Introduction to GeoServer

Benefits of YSLD More compact circle #FF0000 #000000 2 8

Introduction to GeoServer

Introduction to GeoServer

Benefits of YSLD More compact rules: - symbolizers: - point: size: 8 symbols: - mark: shape: circle fill-color: '#FF0000' stroke-color: '#000000' stroke-width: 2

Introduction to GeoServer

Introduction to GeoServer

Benefits of YSLD More flexible syntax Valid: ... ...

Invalid: ... ...

Introduction to GeoServer

Introduction to GeoServer

Benefits of YSLD More flexible syntax Both valid: fill-color: '#FF0000' stroke-color: '#000000' stroke-color: '#000000' fill-color: '#FF0000'

Introduction to GeoServer

Introduction to GeoServer

Benefits of YSLD Contains variables for reusable code define: &variable shape: circle fill-color: '#FF0000' stroke-color: '#000000' rules: - name: rule1 scale: [35000,max] symbolizers: - point: size: 6 symbols: - mark: