[OSM-dev] Free OSM tag queries, WMS and WFS

Mayeul Kauffmann mayeul.kauffmann at free.fr
Fri Aug 19 01:08:09 BST 2011


Hi,
An alternate (yet very similar) wms solution is to use osm2postgresql,
qgis and qgis-server.
See here:
QGIS supports the WMS 1.3 specification. Additionally, it supports some
additional optional parameters and requests which allow filtering:
http://www.qgis.org/wiki/QGIS_Server_Tutorial#Extensions_to_WMS

It also ships with a user-friendly js wms webclient with search
capacity, which allows some kind of filtering as well. Here a screenshot
I've just uploaded based on OSM data:
http://www.qgis.org/wiki/QGIS_Server_Tutorial#Core_Features

Mayeul

Le vendredi 19 août 2011 à 00:11 +0200, BG a écrit :
> hej,
> that's great and usable. does it work only with the mapserver wms or 
> does it too with any other wms?
> 
> 
> On 18.08.2011 16:37, Jukka Rahkonen wrote:
> > Hi,
> >
> > This is not invented here and thus perhaps not so interesting, but anyway.
> > By using copy-paste and a browser it is possible
> >
> > 1. Select by OSM tags all the primary highways and show them on a map
> >
> > 188.64.1.61/cgi-bin/ms_ows?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=563&HEIGHT=437&LAYERS=sea,borders,osm_viivat&TRANSPARENT=TRUE&FORMAT=image/png&BBOX=-369151.98300283286,6597900.0,1511076.628895184,8057331.444759207&SRS=EPSG:3067&STYLES=&sql=(tags
> > @>  'highway=>primary')
> >
> > 2. Select by OSM tags all the primary highways without maxspeed tag. Hint
> > for a mappers to improve quality?
> >
> > 188.64.1.61/cgi-bin/ms_ows?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=563&HEIGHT=437&LAYERS=sea,borders,osm_viivat&TRANSPARENT=TRUE&FORMAT=image/png&BBOX=-369151.98300283286,6597900.0,1511076.628895184,8057331.444759207&SRS=EPSG:3067&STYLES=&sql=(tags
> > @>  'highway=>primary') AND not (tags ? 'maxspeed')
> >
> > 3. Download the data that was used for rendering the previous primary way
> > without maxspeed tag map.
> >
> > 188.64.1.61/ms_ows?service=wfs&version=1.0.0&request=getfeature&typename=osm_viivat&sql=(tags
> > @>  'highway=>primary') AND not (tags ? 'maxspeed')
> >
> > No own development done, just playing with existing possibilities of
> > MapServer WMS and WFS and osm2pgsql with hstore. Actually data
> > interoperability without imports is demostrated as well because layers sea
> > and borders are not OSM data. It is a live service, feel free to try other
> > free tag queries.
> >
> > -Jukka Rahkonen-
> >
> >
> > _______________________________________________
> > dev mailing list
> > dev at openstreetmap.org
> > http://lists.openstreetmap.org/listinfo/dev
> >
> 
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev





More information about the dev mailing list