- Software: QGIS 2.4 – 2.8
- Operating System: Windows 7, Linux
1. Open QGIS
2. Add data in a WGS 84 Projection (EPSG:4326). If your data is in some other projection, use QGIS to reproject it. Right click on the Data layer and click Save As. Set the CRS as Selected and Brows for the WGS84 Projection. Give your file a filename.
3. Add our newly reprojected file to QGIS.
4. Click on the Vector Menu -> OpenStreetMap -> Download Data
5. Select from options: From map Canvas, From Layer, Manual. It will be easier if you already have a layer (as was done if 2) with a pre-defined import area. Be sure yo give your downloaded data a name like areaofinterest.osm (you need a .osm extension on it)
6. Once you have downloaded your data go back to the vector menu -> OpenStreetMap -> Import Topology from XML.
You will need to specify the OSM file that you downloaded and a new Spatialite DB File name. A connection will be created in QGIS so that the data can be accessed at a later time.
7. Next go back to the vector menu -> OpenStreetMap -> Export Topology to Spatialite
Your data will be created and displayed in QGIS. You can use the Connect to Spatialite Database to access this data at a later point if you need.
Here is some more information on downloading data: http://wiki.openstreetmap.org/wiki/Downloading_data