31
FOSS4G 2013 QGIS Server and Web Client QGIS Server and Web Client http://www.sourcepole.com/ http://gis.uster.ch/ Dr. Marco Hugentobler, Sourcepole AG Twitter: @sourcepole Andreas Neumann, City of Uster Twitter: @GISUster

Qgis Server Web Client

Embed Size (px)

DESCRIPTION

Qgis

Citation preview

Page 1: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

QGIS Server and Web Client

http://www.sourcepole.com/http://gis.uster.ch/

Dr. Marco Hugentobler, Sourcepole AGTwitter: @sourcepole

Andreas Neumann, City of UsterTwitter: @GISUster

Page 2: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

Why yet another OWS Server?

>Easier configuration

>Exactly the same look as QGIS Desktop

>Re-Use existing QGIS Desktop projects for publication on the Web and as OWS services

>Use the powerful symbology and labeling features of QGIS

>Reuse many settings from QGIS Desktop

>Web based printing out of the box

>Benefit from the dynamics of the QGIS desktop project

Page 3: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

What is QGIS server?

>Standard compliant WMS server

>WMS extensions for QGIS web client

>WFS server

>Configuration in the QGIS project and layer settings

Page 4: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

Technical Background

>Works with Apache server

>FastCGI application

>Uses the QGIS core libraries

>Configuration read from .qgs project files or alternatively from SLD

>Caching for project and layer settings

>Requires X-Server only for special symbology features

Page 5: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

OWS Project Configuration - Metadata

Page 6: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

Exclude layers and composers

Page 7: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

Selectively publish attributes for WMS/WFS

Page 8: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

Configure layers for WFS publication

Page 9: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

Additional honored QGIS Desktop settings

Layer identifyabilityand display field

Page 10: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

Available WMS Commands

>GetCapabilities

>GetMap

>GetFeatureInfo (with extensions)

>GetLegendGraphics (with extensions)

>GetProjectSettings (extended GetCapabilities)

>GetPrint (proprietary)

Page 11: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

Sample GetPrint command

http://myserver.com/qgis_mapserv.fcgi?

SERVICE=WMS

&REQUEST=GetPrint

&TEMPLATE=A4­Portrait

&DPI=300

&maptitle=My%20Home

&map0:Extent=696055.2,245996.2,696152.7,246122.7

&map0:rotation=­45

&map0:scale=500

Page 12: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

Additional GetLegendGraphic params

SYMBOLWIDTH width of the symbol preview (mm)

SYMBOLHEIGHT height of the symbol preview (mm)

BOXSPACE space between legend frame and content (mm)

LAYERSPACE vertical space between layers (mm)

LAYERTITLESPACE vertical space between layer title and following items (mm)

SYMBOLSPACE vertical space between symbol and following item (mm)

ICONLABELSPACE horizontal space between symbol and label text (mm)

LAYERFONTFAMILY / font family for layer title / item textITEMFONTFAMILY

LAYERFONTBOLD / 'TRUE' to use a bold fontITEMFONTBOLD

LAYERFONTSIZE / Font size in pointsITEMFONTSIZE

LAYERFONTITALIC / TRUE' to use italic fontITEMFONTITALIC '

LAYERFONTCOLOR / Hex color code (e.g. #FF0000 for red)ITEMFONTCOLOR

Page 13: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

Future plans for QGIS Server

>Export Widget/Form information

>Cascaded GetFeatureInfo support

>Geodata shop functionality – download original data of user-defined extent

>Printing enhancements: print of redlining/annotation content, print custom overlay/base-map layers

>Exposes serial print / data sheet functionality for reporting

Page 14: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

QGIS Web Client Motivation

Goal is to build a

>Easy to use and user friendly webgis client

>That tightly integrates with QGIS server

>Built on top of standard webgis components: OpenLayers, ExtJS, GeoExt

>Easy to configure and update

Page 15: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

QGIS Web Client Features

>Map display with navigation

>Layer control with reordering and transparency

>Legend and metadata window

>Print tool using the QGIS desktop print layouts

>Attribute data display

>Theme choice

>Measure tools

>Search

>Permalink

Page 16: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

QGIS Web Client User Interface

Map Area

LayerManager

LayerOrderandOpacity

Map tools Search

Overviewmap

Navigation

Map theme changer

Status bar

http://gis.uster.ch/

Legend andand MetadataWindow

Page 17: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

QGIS Web Client Printing

Page 18: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

QGIS Web Client Printing

Page 19: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

QGIS Web Theme Switcher

Searchable graphical list of themes with hierarchy (topics)

Search in title and tags

Configuration in JSON file for project listing with metadata

Page 20: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

Attribute data display

Mouseover tooltips with QGIS display field (can contain HTML code)

Moves along with the mouse

No way to interact with the content

Click tooltips display all visible attributes

Stays open until user closes it or clicks on different object

Can contain interactive content

Users can scroll in tooltip

Can contain interactive HTML content

Page 21: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

Search

Search in different searchtables simultaneously

Search results ordered by priority

Substring search

Search results while typing

Requires PostgreSQL and Python

Page 22: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

Search

Search in different searchtables simultaneously

Search results ordered by priority

Substring search

Search results while typing

Requires PostgreSQL and Python

Page 23: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

Legend and Metadata window

Legend and metadata derived from GetCapabilities

Page 24: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

QGIS Web Client Planned Features

>Redlining

>User-defined Overlay and BaseMap Layers

>High-dpi raster data export

>Vector data export (dxf, shape)

>Better widget and forms support

>Simple editing through WFS-T

Page 25: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

QGIS Mobile Web Client

>Developed with OpenLayers 3 and Jquery Mobile

>Developed by Sourcepole and financed by Glarus, Winterthur, Zürich

>http://mobile.geo.gl.ch/

Page 26: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

QGIS Mobile Web Client Features

>Map display

>Navigation with pinch zoom and rotation

>Theme change

>Layer control (order and transparency)

>Attribute display

>Compass

>GPS Centering

>Settings

Page 27: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

Theme Changer and Layers

Page 28: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

Attribute data and search

Page 29: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

Settings

Page 30: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

Thanks to the developers

QGIS (Mobile) Web Client

>Giovanni Allegri

>Otto Dassau

>Lars Linger

>Pirmin Kalberer

>Andreas Neumann

>Niccolo Rigazzi

>Bernhard Ströbl

>Tim Sutton

>Matthias Walker

>All the translators (9 languages)!

QGIS Server

>Marco Hugentobler

>René Luc d'Hont

>Stephane Brunner

Page 31: Qgis Server Web Client

FOSS4G 2013 QGIS Server and Web Client

FOSS4G 2013

Thank you!

http://gis.uster.ch/http://map.geo.gl.ch/

http://mobile.geo.gl.ch/