Open Source Web Mapping Servers: Which horse for which course?
description
Transcript of Open Source Web Mapping Servers: Which horse for which course?
Antony Scott
Web Mapping Servers: Which Horse for Which Course?
OSGIS 2014, Nottingham
3rd September 2014
www.astuntechnology.com
Summary
You have:• data• websiteYou need:• a web mapping server to deliver the data to
the site in WMSShould you use:• MapServer?• GeoServer?• QGIS Server?
www.astuntechnology.com
VeryDigested summary
? ?
Install
www.astuntechnology.com
What does it run on?
CGI Jetty/Tomcat CGI/Apache server
How to install (Windows)?
OSGeo4W (6.4)MS4W (6.0)
geoserver.org OSGeo4W
How was the install?
Pretty straightforward. Some IIS configuration needed.
Very easy using Tomcat - out of the box.
A bit fiddly, with some config required.
Installation (on Windows…)
Implement
www.astuntechnology.com
Creating a WMS feed
How to create a working data source
Write a mapfile which:● Points at some data● Contains some styling
Configure a layer in the GeoServer GUI which:
● Points at some data
● Points at some styling
● Add layers to a QGIS project
● Style them● Save the project
A better idea Open the data in QGIS, create styling, and use the RT MapExporter plugin to create the mapfile
Open the data in QGIS, create styling, and use the OpenGeo Explorer plugin to publish it to GeoServer (though it’s Experimental)
There isn’t one
A different idea Don’t put any styling in the mapfile, reference some SLD in the URL
None
How hard is it? Requires some knowledge of mapfile syntax
All GUI driven if QGIS used for styling
Very easy if you are a QGIS user
What you do and what you get
www.astuntechnology.com
MapMapserver: Edit the mapfile
www.astuntechnology.com
Mapserver (Style from QGIS)
http://localhost/mapserver6/ms64?SERVICE=wms&VERSION=1.1.1&REQUEST=GetMap&map=C:\mapfiles\greenbelt.map&LAYERS=GreenBelt&srs=EPSG:27700&bbox=320298,86664,598604,588671&width=283&height=512&FORMAT=image/png
● Styling created in QGIS and exported to mapfile using RT MapServer exporter
www.astuntechnology.com
GeGeoServer: Configure the UI
www.astuntechnology.com
GeoServerhttp://localhost:8080/geoserver/Shapefiles/wms?service=WMS&version=1.1.0&request=GetMap&layers=Shapefiles:Local_Authority_Greenbelt_2011-12_27700&styles=&bbox=320298,86664,598604,588671&width=283&height=512&srs=EPSG:27700&format=application/openlayers
● Styling created in QGIS and saved as SLD● Viewed in GeoServer’s built-in OpenLayers
viewer
www.astuntechnology.com
QGIS Server
www.astuntechnology.com
QGIS Server
http://localhost/qgis/qgis_mapserv.fcgi.exe?map=c:/qgis/greenbelt.qgs&service=WMS&version=1.1.0&request=GetMap&styles=&bbox=320298,86664,598604,588671&width=283&height=512&srs=EPSG:27700&LAYERS=Local%20Authority%20Greenbelt%202011-12_27700&FORMAT=image/png
● Everything done in QGIS
The good and the not so
www.astuntechnology.com
What’s good and not so?
Good All the config is in the mapfileStyling is sophisticatedAdding layers is easyPostGIS and QGIS (with plugin) integrationLow footprint and dependenciesLarge range of data sourcesStable and well-supported
All the config is GUI-drivenStyling is OGC SLDMultiple output formatsIncludes security modelPostGIS and QGIS (with plugin) integrationStable and well-supported
Publish directly from QGISStable and well-supportedLarge range of data sources
Not so Mapfile is specific to MSManual config of mapfile
Adding layers requires several steps (though easy from QGIS)SLD hard to editLimited range of data sources
QGIS-dependantLess-usedWMS/WFS output only
Use for
Integration High-end stylingMulti-format environment
Non-coding map creatorsLayer cataloguePostGIS/QGIS environmentPublishing workflow
QGIS usersRapid map publishing
Questions/experiences