Last active
April 11, 2016 23:02
-
-
Save pdbartsch/baeca4c85bda38dec84c5a566e9957d4 to your computer and use it in GitHub Desktop.
OpenStreetMap Overpass, Quantum GIS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* cygwin64 to get wget on windows | |
* QGIS 2 OpenStreetMap Vectors | |
QGIS 2.0 integrates OpenStreetMap import as a core functionality. To get OSM data: | |
Menu "Vector -> Openstreetmap -> Load data" will connect to the OSM server and download data. You can skip this step if you already have a .osm XML file. | |
"Import topology from an XML file" below will convert your .osm file into a spatialite database, and create a db connection. | |
"Export topology to Spatialite" then allows you to open the database connection, select the type of data you want (points, lines, polygons) and choose tags to import. This creates a spatialite geometry layer that you can then add to your project via the "add a spatialite layer" menu. | |
More details here. Note that this process imports raw OSM GIS data not any particular map style/symbology. | |
wget -O ucsb_highways.osm http://www.overpass-api.de/api/xapi?way[highway=*][bbox=-119.895180,34.402259,-119.826951,34.423969][@meta] | |
wget -O bldgs_since_july2012.osm http://www.overpass-api.de/api/xapi?way[building=*][bbox=-119.895180,34.402259,-119.826951,34.423969][@newer=2012-07-01T00:00:00Z][@meta] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment