Vous êtes sur la page 1sur 31

QGISServer 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

FOSS4G 2013

QGISServer and Web Client

Why yet another OWSServer?


>Easier configuration
>Exactly the same look as QGIS Desktop
>Re-Use existing QGISDesktop projects for
publication on the Web and as OWS services
>Use the powerful symbology and labeling
features of QGIS
>Reuse many settings from QGISDesktop
>Web based printing out of the box
>Benefit from the dynamics of the QGIS
desktop project
FOSS4G 2013

QGISServer and Web Client

What is QGIS server?


>Standard compliant WMS server
>WMS extensions for QGISweb client
>WFS server
>Configuration in the QGISproject and layer
settings

FOSS4G 2013

QGISServer 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

FOSS4G 2013

QGISServer and Web Client

OWS Project Configuration - Metadata

FOSS4G 2013

QGISServer and Web Client

Exclude layers and composers

FOSS4G 2013

QGISServer and Web Client

Selectively publish attributes for WMS/WFS

FOSS4G 2013

QGISServer and Web Client

Configure layers for WFS publication

FOSS4G 2013

QGISServer and Web Client

Additional honored QGISDesktop settings


Layer identifyability
and display field

FOSS4G 2013

QGISServer and Web Client

Available WMS Commands


>GetCapabilities
>GetMap
>GetFeatureInfo (with extensions)
>GetLegendGraphics (with extensions)
>GetProjectSettings (extended
GetCapabilities)
>GetPrint (proprietary)

FOSS4G 2013

QGISServer and Web Client

Sample GetPrint command

http://myserver.com/qgis_mapserv.fcgi?
SERVICE=WMS
&REQUEST=GetPrint
&TEMPLATE=A4Portrait
&DPI=300
&maptitle=My%20Home
&map0:Extent=696055.2,245996.2,696152.7,246122.7
&map0:rotation=45
&map0:scale=500

FOSS4G 2013

QGISServer 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 text


ITEMFONTFAMILY
LAYERFONTBOLD /
ITEMFONTBOLD

'TRUE' to use a bold font

LAYERFONTSIZE /
ITEMFONTSIZE

Font size in points

LAYERFONTITALIC / TRUE' to use italic font


ITEMFONTITALIC '
LAYERFONTCOLOR / Hex color code (e.g. #FF0000 for red)
ITEMFONTCOLOR
FOSS4G 2013

QGISServer and Web Client

Future plans for QGISServer


>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

FOSS4G 2013

QGISServer and Web Client

QGIS Web Client Motivation


Goal is to build a
>Easy to use and user friendly webgis client
>That tightly integrates with QGISserver
>Built on top of standard webgis
components:OpenLayers, ExtJS, GeoExt
>Easy to configure and update

FOSS4G 2013

QGISServer 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
FOSS4G 2013

QGISServer and Web Client

QGIS Web Client User Interface

Navigation

Map tools

Search

Map theme changer

Overview
map

Layer
Manager

Legend and
and Metadata
Window

Map Area

Layer
Order
and
Opacity
Status bar
FOSS4G 2013

http://gis.uster.ch/

QGISServer and Web Client

QGIS Web Client Printing

FOSS4G 2013

QGISServer and Web Client

QGIS Web Client Printing

FOSS4G 2013

QGISServer 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

FOSS4G 2013

QGISServer 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
FOSS4G 2013

QGISServer and Web Client

Search
Search in different searchtables
simultaneously
Search results ordered by priority
Substring search
Search results while typing
Requires PostgreSQL and Python

FOSS4G 2013

QGISServer and Web Client

Search
Search in different searchtables
simultaneously
Search results ordered by priority
Substring search
Search results while typing
Requires PostgreSQL and Python

FOSS4G 2013

QGISServer and Web Client

Legend and Metadata window

Legend and metadata derived from GetCapabilities

FOSS4G 2013

QGISServer 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

FOSS4G 2013

QGISServer and Web Client

QGIS Mobile Web Client


>Developed with
OpenLayers 3 and Jquery
Mobile
>Developed by Sourcepole
and financed by Glarus,
Winterthur, Zrich
>http://mobile.geo.gl.ch/

FOSS4G 2013

QGISServer 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

FOSS4G 2013

QGISServer and Web Client

Theme Changer and Layers

FOSS4G 2013

QGISServer and Web Client

Attribute data and search

FOSS4G 2013

QGISServer and Web Client

Settings

FOSS4G 2013

QGISServer and Web Client

Thanks to the developers


QGISServer

QGIS(Mobile)WebClient

>Marco Hugentobler

>Giovanni Allegri

>Ren Luc d'Hont

>Otto Dassau

>Stephane Brunner

>Lars Linger
>Pirmin Kalberer
>Andreas Neumann
>Niccolo Rigazzi
>Bernhard Strbl
>Tim Sutton
>Matthias Walker
>All the translators (9 languages)!

FOSS4G 2013

QGISServer and Web Client

FOSS4G 2013

Thank you!

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

FOSS4G 2013

QGISServer and Web Client

Vous aimerez peut-être aussi