Skip to content

QGIS plugin to fetch OSM data with the Overpass API

License

Notifications You must be signed in to change notification settings

baniasthbird/QuickOSM

 
 

Repository files navigation

QuickOSM

Logo of QuickOSM

Watch the Video tutorial

Install the QuickOSM plugin

  • QGIS Plugins menu → Manage and Install Plugins…
  • Search for QuickOSM and select it
  • Install Plugin

Try a quick query

  • Vector menu → QuickOSM -> QuickOSM
  • In the key field enter amenity
  • In the value field enter toilets
  • Set the name of the town/village to London
  • Run Query

The Overpass API takes a few seconds to respond, and after that you should get new point and polygon layers for the toilets of London! (nodes and ways in OpenStreetMap with the amenity=toilet tag on them)

Generalities

QuickOSM allows you to work quickly with OSM data in QGIS thanks to Overpass API.

  • Write some queries for you by providing a key/value
  • Choose to run the query on an area or an extent
  • Configure the query : which layers, which columns…
  • Open a local OSM (.osm or .pbf) with a specific osmconf in QGIS
  • Build some models with QGIS Processing

There are some useful tips, like automatic colours on lines (if the tag is present) or some actions (right-click in the attribute table) for each entities (edit in JOSM for instance).

Using QuickOSM in a Processing model or in a Python script

Since QGIS 3.4, QuickOSM is available in the Processing modeler. Here some useful algorithms in an appropriate order:

  • QuickOSMAdvanced, one of the Build query algorithms.
  • File ToolsDownload file.
  • Modeler ToolsString concatenation. Useful to concatenate the downloaded filepath with
    • |layername=points
    • |layername=lines
    • |layername=multilinestrings
    • |layername=multipolygons
  • QuickOSMOpen OSM file. Instead of the step above with the string concatenation.

Check a more detailed answer on stackexchange.

  • Vector TableExplode HStore field (QGIS ≥ 3.6)
  • Vector TableFeature filter

Since QGIS 3.6, you can export your Processing model as a Python script.

Versions

  • QuickOSM is maintained only for a maintained QGIS version (LTR and stable release).
  • Current test status master : Build Status
QuickOSM QGIS Min QGIS Max Branch
1.0 → 1.4 2.0 2.18 master_qgis2
1.5 → 1.7 3.0 3.2
1.8 → 3.4 master

Authors

Etienne Trimaille : https://twitter.com/etrimaille

About

QGIS plugin to fetch OSM data with the Overpass API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 98.0%
  • Other 2.0%